/* ==========================================================================
1. ДИЗАЙН-ТОКЕНИ (ЗМІННІ) ТА БАЗОВІ СТИЛІ
========================================================================== */
@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-VariableFont_wght.woff2") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-Italic-VariableFont_wght.woff2") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
    /* Кольори тексту */
    --color-text-main: #263b59;
    --color-text-heading: #18346d;
    --color-text-muted: #243853;
    --color-text-subtle: #466085;
    --color-text-dark: #374f70;
    --color-text-body-alt: #4b5868;

    /* Кольори бренду та інтерактивних елементів */
    --color-primary: #1f487e;
    --color-primary-hover: #16365f;
    --color-primary-dark: #1d3461;
    --color-accent-gold: #9b805b;
    --color-accent-gold-light: #d6bd96;

    /* Кольори фону та меж */
    --color-bg-body: #f8fafd;
    --color-bg-surface: #ffffff;
    --color-bg-muted: #edf2f7;
    --color-bg-alt: #edf1f6;
    --color-bg-header-top: #e7edf4;
    --color-bg-header-main: #829cbc;
    --color-border: #cbd5e1;
    --color-border-light: #edf1f6;

    /* Шрифти */
    --font-main: "Montserrat", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
}

main {
    flex: 1;
    padding: 130px 24px 60px;
}

.container {
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ==========================================================================
2. УНІФІКОВАНА ТИПОГРАФІКА ТА ШАПКИ СТОРІНОК
========================================================================== */
.page-header {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.page-eyebrow,
.section-label,
.hero-label,
.rooms-eyebrow,
.about-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--color-text-subtle);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-title {
    margin: 0 0 16px;
    color: var(--color-text-heading);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.25;
}

.page-lead {
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.section-title {
    margin: 0 0 18px;
    color: var(--color-text-heading);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 600;
    line-height: 1.35;
}

.block-title {
    margin: 0 0 10px;
    color: var(--color-text-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.content-text {
    margin: 0 0 14px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .page-header {
        margin-bottom: 30px;
    }
}

/* ==========================================================================
3. ШАПКА САЙТУ (HEADER) ТА НАВІГАЦІЯ
========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.top-bar {
    height: 32px;
    background: var(--color-bg-header-top);
    border-bottom: 1px solid rgba(29, 52, 97, 0.08);
}

.top-bar-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.phone-numbers {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    white-space: nowrap;
}

.phone-numbers a,
.language-switch a {
    font-size: 13px;
    text-decoration: none;
    color: #192d49;
    font-weight: 500;
    transition: color 0.2s ease;
}

.phone-numbers a:hover,
.language-switch a:hover {
    color: var(--color-primary);
}

.phone-copy {
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-heading);
    cursor: pointer;
    line-height: inherit;
    display: inline-flex;
    align-items: center;
}

.phone-copy:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-subtle);
}

.language-switch .active {
    font-weight: 700;
    color: var(--color-text-heading);
}

.main-header {
    height: 64px;
    background: var(--color-bg-header-main);
}

.header-container {
    max-width: 1248px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--color-text-heading);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navigation a {
    text-decoration: none;
    color:var(--color-text-main);
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.navigation a:hover,
.navigation a.active {
    color: var(--color-text-heading);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 12px;
    padding: 10px 22px;
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.25s ease;
}

.booking-button:hover {
    border-radius: 4px;
    background: var(--color-primary-hover);
}

.mobile-booking-link {
    display: none;
}

.burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-heading);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.burger-menu-btn.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu-btn.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

body.menu-locked {
    overflow: hidden;
}

@media (max-width: 992px) {
    .burger-menu-btn {
        display: flex;
    }

    .desktop-booking-button {
        border-radius: 4px;
        display: none;
    }

    .navigation {
        position: fixed;
        top: 114px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s ease-in-out;
        z-index: 999;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }

    .navigation.open {
        transform: translateX(0);
    }

    .navigation a {
        display: block;
        width: 100%;
        padding: 16px 0;
        font-size: 18px;
        color: var(--color-text-heading);
        border-bottom: 1px solid #eef2f6;
    }

    .navigation a.mobile-booking-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 24px;
        padding: 14px 20px;
        background: var(--color-primary);
        color: #ffffff;
        border-radius: 4px;
        font-size: 16px;
        text-align: center;
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .top-bar-container,
    .header-container {
        max-width: 1248px;
        height: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }

    .main-header {
        height: 68px;
    }

    .logo {
        font-size: 24px;
    }

    .navigation {
        top: 106px;
    }

    .phone-numbers .secondary-phone {
        display: none;
    }

    .top-bar-container {
        justify-content: space-between;
        gap: 12px;
    }
}

/* ==========================================================================
4. ФУТЕР
========================================================================== */
.footer {
    background: var(--color-primary-dark);
    color: #ffffff;
    padding: 20px 24px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-logo {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.footer-column h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.footer-column p {
    margin: 0;
    color: #d5deeb;
    font-size: 13px;
    line-height: 1.7;
}

.footer-column a:not(.footer-logo) {
    color: #d5deeb;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.5;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-map-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    margin-top: 8px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #263b59;
}

.footer-map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p,
.footer-bottom a {
    margin: 0;
    color: #d5deeb;
    font-size: 12px;
    text-decoration: none;
}

@media (max-width: 800px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================================================
5. ГОЛОВНА СТОРІНКА (HOME)
========================================================================== */
main.home-main {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 130px 0px 60px;
}

.home-main > section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #263b59;
    border-radius: 6px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 30, 52, 0.78) 0%,
        rgba(15, 30, 52, 0.38) 55%,
        rgba(15, 30, 52, 0.08) 100%
    );
}

.hero-content {
    position: absolute;
    left: 7%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 560px;
    color: #ffffff;
    z-index: 2;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.2;
}

.hero-content p {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.8;
    color: #edf1f7;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 12px;
    padding: 14px 24px;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s;
    border-radius: 4px;
}

.hero-button:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    border-radius: 4px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(20, 35, 55, 0.25);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-arrow:hover {
    background: rgba(20, 35, 55, 0.75);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    z-index: 4;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 24px;
    height: 3px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s, background 0.25s;
}

.hero-dot.active {
    width: 42px;
    background: #ffffff;
}

.home-intro {
    padding: 75px 20px 65px;
    text-align: center;
}

.home-intro h2,
.section-heading h2,
.home-booking h2 {
    margin: 0 0 18px;
    color: var(--color-text-heading);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 600;
    line-height: 1.35;
}

.home-intro p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.9;
}

.home-discover {
    padding: 20px 0 70px;
}

.section-heading {
    margin-bottom: 30px;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-card {
    position: relative;
    display: block;
    min-width: 0;
    height: 300px;
    overflow: hidden;
    background: #263b59;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
}

.home-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 27, 46, 0.88),
        rgba(13, 27, 46, 0.05) 75%
    );
    z-index: 1;
}

.home-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-card:hover img {
    transform: scale(1.06);
}

.card-number {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 2;
    font-size: 12px;
    letter-spacing: 1px;
    color: #ffffff;
}

.card-info {
    position: absolute;
    right: 22px;
    bottom: 24px;
    left: 22px;
    z-index: 2;
}

.card-info h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
}

.card-info span {
    font-size: 12px;
    color: #e2e8f0;
}

.home-booking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 12px 48px;
    background: var(--color-bg-alt);
    border-radius: 4px;
}

.home-booking > div {
    max-width: 520px;
}

.home-booking p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .home-hero {
        height: 450px;
    }

    .home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .home-card {
        height: 280px;
    }

    .home-booking {
        padding: 48px;
    }
}

@media (max-width: 600px) {
    main.home-main {
        padding: 110px 16px 35px;
    }

    .home-hero {
        height: 440px;
    }

    .hero-content {
        right: 22px;
        left: 24px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-arrow {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .home-intro {
        padding: 55px 5px;
    }

    .home-discover {
        padding-bottom: 45px;
    }

    .home-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-booking {
        align-items: flex-start;
        flex-direction: column;
        padding: 32px 22px;
    }
}

/* ==========================================================================
6. СТОРІНКА НОМЕРНОГО ФОНДУ (ROOMS)
========================================================================== */
main.rooms-page {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 130px 24px 70px;
}

.rooms-container {
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
}

.rooms-common {
    margin: 0 0 45px;
    padding: 36px 40px;
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.rooms-common h2 {
    margin: 0 0 10px;
    color: var(--color-text-heading);
    font-size: 24px;
    font-weight: 600;
}

.rooms-common > p {
    margin: 0 0 24px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.rooms-common .room-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.rooms-common .room-features li {
    position: relative;
    padding-left: 24px;
    color: var(--color-text-dark);
    font-size: 14px;
    line-height: 1.5;
}

.rooms-common .room-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
}

.rooms-common .rooms-common-note {
    margin: 16px 0 6px;
    font-size: 13px;
    color: var(--color-text-subtle);
    line-height: 1.5;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.rooms-common .rooms-add-note {
    margin: 0;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
}

.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.room-card {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
    height: 440px; /* або max-height: 320px; */
    overflow: hidden;
    background: var(--color-bg-surface);

    border: 1px solid var(--color-border); /* або помітніший: 2px solid #cbd5e1; */
    border-radius: 8px; /* заокруглення кутів картки */
    
    box-shadow: 0 4px 18px rgba(29, 52, 97, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.room-card:hover {
    box-shadow: 0 8px 28px rgba(29, 52, 97, 0.10);
}

.room-photo {
    height: 100%;
    max-height: 440px;
    overflow: hidden;
}

.room-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* зберігає правильні пропорції, обрізаючи зайві краї */
}

.room-card:hover .room-photo img {
    transform: scale(1.035);
}

.room-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px;
}

.room-category {
    margin-bottom: 12px;
    color: var(--color-text-subtle);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.room-info h2 {
    margin: 0 0 12px;
    color: var(--color-text-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.room-description {
    max-width: 460px;
    margin: 0 0 20px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.room-list-title {
    margin: 0 0 8px;
    color: var(--color-text-heading);
    font-size: 13px;
    font-weight: 600;
}

.room-features {
    margin: 0 0 20px;
    padding-left: 20px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.room-features li {
    padding-left: 3px;
}

.room-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: auto;
    margin-bottom: 22px;
}

.room-price strong {
    color: var(--color-text-heading);
    font-size: 24px;
    font-weight: 600;
}

.room-price span {
    color: #788394;
    font-size: 14px;
}

.room-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.room-details-button,
.room-book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 12px;
    padding: 11px 19px;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border-radius: 4px;
}

.room-details-button {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: var(--color-bg-surface);
    border-radius: 4px;
}

.room-details-button:hover {
    color: #ffffff;
    background: var(--color-primary);
    border-radius: 4px;
}

.room-book-button {
    border: 1px solid var(--color-primary);
    color: #ffffff;
    background: var(--color-primary);
    border-radius: 4px;
}

.room-book-button:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
    border-radius: 4px;
}

.rooms-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 35px;
    padding: 22px 25px;
    background: var(--color-bg-alt);
}

.rooms-note p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.rooms-note a {
    flex-shrink: 0;
    color: var(--color-primary);
    font-size: 14px;
    text-decoration: none;
}

.rooms-note a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    main.rooms-page {
        padding: 120px 20px 50px;
    }

    .room-card {
        grid-template-columns: 40% minmax(0, 1fr);
    }

    .room-info {
        padding: 24px;
    }

    .room-info h2 {
        font-size: 22px;
    }

    .room-price strong {
        font-size: 21px;
    }
}

@media (max-width: 580px) {
    main.rooms-page {
        padding: 110px 16px 40px;
    }

    .room-card {
        grid-template-columns: 1fr;
    }

    .room-photo,
    .room-photo img {
        height: 230px;
        min-height: 230px;
    }

    .room-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .rooms-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
}

/* ==========================================================================
7. СТОРІНКА ДЕТАЛЕЙ НОМЕРА (ROOM DETAILS)
========================================================================== */
.room-details-page {
    padding-top: 130px;
    padding-bottom: 70px;
}

.details-breadcrumbs {
    margin-bottom: 24px;
}

.details-breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.details-breadcrumbs a:hover {
    text-decoration: underline;
}

.details-loading,
.details-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.details-error h2 {
    color: var(--color-text-heading);
    margin-bottom: 12px;
}

.details-header {
    margin-bottom: 28px;
}

.details-main-image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    max-height: 620px;
    background: var(--color-bg-header-top);
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}

.details-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 35, 55, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.details-nav-arrow:hover {
    background: rgba(20, 35, 55, 0.85);
    transform: translateY(-50%) scale(1.06);
}

.details-nav-prev {
    left: 18px;
}

.details-nav-next {
    right: 18px;
}

.lightbox-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2015;
    transition: background 0.2s ease;
}

.lightbox-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

@media (max-width: 600px) {
    .details-nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .details-nav-prev { left: 10px; }
    .details-nav-next { right: 10px; }

    .lightbox-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

.details-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.3s ease;
}

.details-main-img:hover {
    transform: scale(1.015);
}

.details-thumbnails {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.details-thumb-btn {
    flex: 0 0 130px;
    height: 85px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    background: var(--color-bg-header-top);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.7;
}

.details-thumb-btn.active,
.details-thumb-btn:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

.details-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.details-quick-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    margin-top: 25px;
}

.spec-card {
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    padding: 18px 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(29, 52, 97, 0.03);
}

.spec-title {
    font-size: 12px;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.spec-value {
    font-size: 16px;
    color: var(--color-text-heading);
}

.spec-price {
    font-size: 18px;
    font-weight: 700;
}

.details-grid-body {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    align-items: start;
}

.details-section {
    margin-bottom: 35px;
}

.details-section h2 {
    color: var(--color-text-heading);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border-light);
}

.details-section p {
    color: var(--color-text-body-alt);
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
}

.details-amenities-list {
    margin: 0;
    padding-left: 20px;
    color: var(--color-text-body-alt);
    line-height: 1.9;
    font-size: 15px;
}

.details-amenities-list li {
    margin-bottom: 6px;
}

.details-booking-card {
    position: sticky;
    top: 130px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(29, 52, 97, 0.06);
}

.details-booking-card h3 {
    margin: 0 0 10px;
    color: var(--color-text-heading);
    font-size: 20px;
    font-weight: 600;
}

.details-booking-card p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.sidebar-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.sidebar-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text-heading);
}

.sidebar-period {
    color: var(--color-text-subtle);
    font-size: 14px;
}

.details-book-action {
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
}

.sidebar-phone-box {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-subtle);
}

.sidebar-phone-box a {
    color: var(--color-text-heading);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.sidebar-phone-box a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .details-main-image-wrap {
        min-height: 340px;
        max-height: 450px;
    }

    .details-quick-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid-body {
        grid-template-columns: 1fr;
    }

    .details-booking-card {
        position: static;
    }
}

@media (max-width: 580px) {
    .details-main-image-wrap {
        min-height: 240px;
        max-height: 320px;
        aspect-ratio: 4 / 3;
    }

    .details-thumb-btn {
        flex: 0 0 100px;
        height: 65px;
    }

    .details-quick-specs {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
8. СТОРІНКА "ПРО НАС" (ABOUT)
========================================================================== */
.about-page {
    flex: 1;
    padding-top: 130px;
    padding-bottom: 30px;
}

.about-container {
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-hero {
    padding: 50px 0 65px;
    background: var(--color-bg-muted);
    border-bottom: 1px solid var(--color-border);
}

.about-hero .about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-hero-content {
    max-width: 520px;
}

.about-hero-content .about-hero-lead {
    margin-bottom: 18px;
    color: #344763;
    font-size: 18px;
    line-height: 1.6;
}

.about-hero-content p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.85;
}

.about-hero-photo {
    height: 440px;
    overflow: hidden;
    border-radius: 4px;
}

.about-hero-photo img,
.about-section-photo img,
.about-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-button,
.about-button-outline {
    display: inline-flex;
    min-height: 12px;
    padding: 14px 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
    border-radius: 4px;
}

.about-button {
    border: 1px solid var(--color-primary-dark);
    background: var(--color-primary-dark);
    color: #ffffff;
    border-radius: 4px;
}

.about-button:hover {
    background: #294775;
    border-color: #294775;
    border-radius: 4px;
}

.about-button-outline {
    border: 1px solid var(--color-primary-dark);
    color: var(--color-primary-dark);
    background: transparent;
    border-radius: 4px;
}

.about-button-outline:hover {
    color: #ffffff;
    background: var(--color-primary-dark);
    border-radius: 4px;
}

.about-section {
    padding: 70px 0;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.about-section-photo {
    height: 390px;
    overflow: hidden;
    border-radius: 4px;
}

.about-section-content {
    max-width: 510px;
}

.about-section-content h2 {
    margin: 0 0 16px;
    color: var(--color-text-heading);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 600;
}

.about-section-content p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 14px;
}

.about-section-content p:last-child {
    margin-bottom: 0;
}

.about-split-reverse .about-section-content {
    order: 1;
}

.about-split-reverse .about-section-photo {
    order: 2;
}

.about-section-muted {
    background: var(--color-bg-muted);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-location {
    max-width: 820px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.about-location h2 {
    margin: 0 0 16px;
    color: var(--color-text-heading);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 600;
}

.about-location p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 14px;
}

.about-text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--color-text-heading);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #b8c1cf;
    padding-bottom: 5px;
    transition: color 0.2s ease;
}

.about-text-link:hover {
    color: var(--color-accent-gold);
}

.about-gallery-section {
    padding: 65px 0 75px;
    background: var(--color-bg-muted);
    border-top: 1px solid var(--color-border);
}

.about-gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.about-gallery-heading h2 {
    margin: 0;
    color: var(--color-text-heading);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 600;
}

.about-gallery {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
}

.about-gallery-item {
    height: 260px;
    overflow: hidden;
    background: #e7eaf0;
}

.about-gallery-item img {
    transition: transform 0.4s ease;
}

.about-gallery-item:hover img {
    transform: scale(1.04);
}

.about-cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 0;
    text-align: center;
    background: var(--color-primary-dark);
}

.about-cta .about-container {
    max-width: 520px;
}

.about-cta .about-eyebrow {
    color: var(--color-accent-gold-light);
}

.about-cta h2 {
    color: #ffffff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    margin: 0 0 16px;
}

.about-cta p {
    margin-bottom: 28px;
    color: #e0e6ef;
    font-size: 15px;
    line-height: 1.8;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.about-cta .about-button {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--color-primary-dark);
    border-radius: 4px;
}

.about-cta .about-button:hover {
    background: #e9edf3;
    border-radius: 4px;
}

.about-cta .about-button-outline {
    border-color: #dce3ee;
    color: #ffffff;
    border-radius: 4px;
}

.about-cta .about-button-outline:hover {
    background: #ffffff;
    color: var(--color-primary-dark);
    border-radius: 4px;
}

@media (max-width: 900px) {
    .about-hero .about-container,
    .about-split {
        gap: 32px;
    }

    .about-hero-photo {
        height: 360px;
    }

    .about-section-photo {
        height: 330px;
    }

    .about-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-gallery-item:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .about-container {
        padding: 0 16px;
        width: 100%;
    }

    .about-hero {
        padding: 35px 0 40px;
    }

    .about-hero .about-container,
    .about-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-split-reverse .about-section-content,
    .about-split-reverse .about-section-photo {
        order: initial;
    }

    .about-gallery {
        grid-template-columns: 1fr;
    }

    .about-gallery-item,
    .about-gallery-item:last-child {
        grid-column: auto;
        height: 240px;
    }

    .about-cta-actions {
        flex-direction: column;
    }

    .about-cta-actions a {
        width: 100%;
    }
}

/* ==========================================================================
9. СТОРІНКА ГАЛЕРЕЇ (GALLERY)
========================================================================== */
.gallery-page {
    flex: 1;
    padding-top: 130px;
    padding-bottom: 70px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    color: #263b59;
    padding: 9px 18px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.gallery-category-section {
    margin-bottom: 50px;
}

.category-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
    margin-bottom: 22px;
}

.category-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-heading);
}

.category-count {
    font-size: 13px;
    color: var(--color-text-subtle);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-card {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-bg-header-top);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(15, 30, 52, 0.85), transparent);
    color: #ffffff;
    font-size: 13px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-card:hover .gallery-card-caption {
    opacity: 1;
    transform: translateY(0);
}

.toggle-container {
    text-align: center;
    margin-top: 24px;
}

.btn-toggle-more {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 22px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-more:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 46, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    margin-top: 12px;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    z-index: 2010;
}

@media (max-width: 850px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        height: 220px;
    }
}

/* ==========================================================================
10. СТОРІНКА БРОНЮВАННЯ (BOOKING)
========================================================================== */
.booking-page {
    flex: 1;
    padding-top: 130px;
    padding-bottom: 70px;
}

.booking-container-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 36px 40px;
    box-shadow: 0 4px 18px rgba(29, 52, 97, 0.04);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field-full {
    grid-column: 1 / -1;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #263b59;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg-surface);
    color: #191a2c;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 72, 126, 0.15);
}

.field-textarea {
    resize: vertical;
    min-height: 90px;
}

.booking-rules-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.booking-rules-check input {
    margin-top: 3px;
}

.booking-rules-check a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-status {
    display: none;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.form-status.success {
    display: block;
    background: #eef8f1;
    border: 1px solid #bce2c7;
    color: #1a6334;
}

.form-status.error {
    display: block;
    background: #fdf2f2;
    border: 1px solid #f8b4b4;
    color: #9b1c1c;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 28px;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-submit:disabled {
    background: #94a3b8;
    border-color: #94a3b8;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .booking-container-card {
        padding: 24px 18px;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
11. СТОРІНКА КОНТАКТІВ (CONTACTS)
========================================================================== */
.contacts-page {
    flex: 1;
    padding-top: 130px;
    padding-bottom: 60px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.contacts-info-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    padding: 32px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-group h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-subtle);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-group p,
.contact-group a {
    margin: 0;
    color: var(--color-text-heading);
    font-size: 16px;
    text-decoration: none;
    line-height: 1.5;
}

.contact-group a:hover {
    text-decoration: underline;
}

.contacts-map-wrapper {
    position: relative;
    min-height: 380px;
    background: var(--color-bg-header-top);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.contacts-map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contacts-cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: #f5f7fa;
    padding: 24px;
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-heading);
}

.feature-card p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.contact-form-section {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    padding: 36px;
    border-radius: 4px;
}

.contact-form-section h2 {
    margin: 0 0 8px;
    color: var(--color-text-heading);
    font-size: 24px;
    font-weight: 600;
}

.contact-form-section p {
    margin: 0 0 24px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #263b59;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg-surface);
    color: #191a2c;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 72, 126, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

@media (max-width: 850px) {
    .contacts-grid,
    .contacts-cards-row {
        grid-template-columns: 1fr;
    }

    .contacts-map-wrapper {
        min-height: 320px;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-section,
    .contacts-info-card {
        padding: 24px 18px;
    }
}

/* ==========================================================================
12. ТЕКСТОВІ СТОРІНКА (ПРАВИЛА ТА ПОЛІТИКА)
========================================================================== */
.privacy-page,
.rules-page {
    flex: 1;
    padding-top: 130px;
    padding-bottom: 70px;
}

.privacy-content,
.rules-content {
    max-width: 1248px;
    text-align: justify;
    margin: 0 auto;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 40px 48px;
    box-shadow: 0 4px 18px rgba(29, 52, 97, 0.03);
}

.privacy-section,
.rules-section {
    margin-bottom: 32px;
}

.privacy-section:last-child,
.rules-section:last-child {
    margin-bottom: 0;
}

.privacy-section h2,
.rules-section h2 {
    margin: 0 0 14px;
    color: var(--color-text-heading);
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 8px;
}

.privacy-section p,
.rules-section p {
    margin: 0 0 12px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.privacy-list,
.rules-list {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.privacy-list li,
.rules-list li {
    margin-bottom: 8px;
}

.privacy-notice,
.rules-notice {
    background: var(--color-bg-muted);
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    margin-top: 24px;
    border-radius: 0 4px 4px 0;
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.privacy-notice p,
.rules-notice p {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .privacy-content,
    .rules-content {
        padding: 28px 20px;
    }
}

/* ==========================================================================
13. СТОРІНКА СНІДАНКІВ ТА СЕРВІСІВ (BREAKFAST)
========================================================================== */
.breakfast-page {
    flex: 1;
    padding-top: 130px;
    padding-bottom: 80px;
}

.breakfast-container {
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
}

.menu-section {
    margin-bottom: 70px;
}

.menu-section-heading {
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.menu-section-heading h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 600;
    color: var(--color-text-heading);
}

.menu-section-heading p {
    margin: 0;
    color: var(--color-text-subtle);
    line-height: 1.6;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.menu-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.menu-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.menu-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f0ec;
    overflow: hidden;
}

.menu-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.menu-card-content h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-heading);
    line-height: 1.4;
}

.menu-card-description {
    margin: 0 0 18px;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-line;
}

.menu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--color-border-light);
}

.menu-card-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-heading);
    white-space: nowrap;
}

.menu-card-details {
    color: var(--color-text-subtle);
    font-size: 14px;
}

.menu-empty {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: var(--color-text-subtle);
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.menu-error {
    color: #9b2525;
    text-align: center;
}

.breakfast-note {
    padding: 24px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    text-align: center;
    line-height: 1.7;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.service-info {
    margin: 32px 0;
    padding: 24px;
    background: var(--color-bg-muted);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.service-info h2 {
    margin: 0 0 20px;
    color: var(--color-text-heading);
}

.service-info-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-info-item {
    padding: 16px;
    background: var(--color-bg-surface);
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.service-info-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--color-text-heading);
}

.service-info-item p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .menu-grid,
    .service-info-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .breakfast-page {
        padding: 110px 16px 50px;
    }

    .menu-grid,
    .service-info-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .menu-card-content {
        padding: 18px;
    }
}

/* ==========================================================================
14. ПІДТРИМКА ДОСТУПНОСТІ (ACCESSIBILITY)
========================================================================== */
.home-card:focus-visible,
.hero-button:focus-visible,
.hero-arrow:focus-visible,
.hero-dot:focus-visible,
.room-details-button:focus-visible,
.room-book-button:focus-visible {
    outline: 3px solid var(--color-bg-header-main);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .home-card img,
    .hero-dot,
    .hero-button,
    .room-card,
    .room-photo img,
    .room-details-button,
    .room-book-button {
        transition: none;
    }
}

/* ==========================================================================
15. ШВИДКА ДОВІДКА В ПРАВИЛАХ (RULES HIGHLIGHT)
========================================================================== */
.rules-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border-light, #edf1f6);
}

.rules-highlight-card {
    background: var(--color-bg-surface, #ffffff);
    border: 1px solid var(--color-border, #cbd5e1);
    border-radius: 6px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(29, 52, 97, 0.03);
}

.rules-highlight-label,
.service-info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-subtle, #7186a3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.rules-highlight-val,
.service-info-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-heading, #1d3461);
    line-height: 1.25;
}

.rules-highlight-sub,
.service-info-sub {
    font-size: 13px;
    color: var(--color-text-muted, #626d7c);
    line-height: 1.4;
}

/* Блок на сторінці сніданків */
.service-info {
    margin: 32px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.service-info h2 {
    margin: 0 0 20px;
    color: var(--color-text-heading, #1d3461);
}

.service-info-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-info-item {
    background: var(--color-bg-surface, #ffffff);
    border: 1px solid var(--color-border, #cbd5e1);
    border-radius: 6px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(29, 52, 97, 0.03);
}

@media (max-width: 900px) {
    .rules-highlight-grid,
    .service-info-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .rules-highlight-grid,
    .service-info-list {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 28px;
    }
}

@media (max-width: 700px) {
    .rooms-common {
        padding: 24px 18px;
    }

    .rooms-common .room-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* 3. Компактні картки номерів для телефонів */
@media (max-width: 600px) {
    .room-card {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .room-photo,
    .room-photo img {
        height: 200px;
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }

    .room-info {
        padding: 18px 16px;
    }

    /* Приховуємо перелік "У номері:" на смартфонах для компактності */
    .room-card .room-list-title,
    .room-card .room-features {
        display: none;
    }

    .room-description {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .room-price {
        margin-bottom: 16px;
    }

    .room-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .room-details-button,
    .room-book-button {
        padding: 10px 8px;
        font-size: 13px;
        width: 100%;
    }
}

/* 4. Розвантаження сторінки правил на телефонах */
@media (max-width: 600px) {
    .top-bar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 12px;
        gap: 8px;
        overflow: hidden;
    }

    .phone-numbers {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        white-space: nowrap;
    }

.phone-numbers a,
    .phone-copy {
        font-size: 11px;
        white-space: nowrap;
    }

    /* Перемикач мов: забороняємо зникати чи виштовхуватися за екран */
    .language-switch {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        margin-left: auto; /* притискає перемикач праворуч */
        padding-left: 6px;
    }
    .language-switch a {
        font-size: 12px;
    }

    .rules-page {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .rules-content,
    .privacy-content {
        padding: 20px 14px;
        text-align: left; /* усуває розриви між словами на вузьких екранах */
    }

    .rules-section h2,
    .privacy-section h2 {
        font-size: 18px;
    }

    .rules-list {
        padding-left: 18px;
    }

    .rules-notice,
    .privacy-notice {
        padding: 14px 14px;
    }
}

@media (max-width: 600px) {
    /* 1. Захист сторінки та контейнера контактів від виходу за межі */
    .contacts-page {
        padding-top: 110px;
        padding-bottom: 40px;
        overflow-x: hidden;
    }

    .contacts-page .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 2. Компактна сітка та відступи карток */
    .contacts-grid,
    .contacts-cards-row {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        margin-bottom: 24px;
    }

    .contacts-info-card,
    .contact-form-section {
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 3. Карта: суворе обмеження ширини та висоти */
    .contacts-map-wrapper {
        min-height: 260px;
        height: 260px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .contacts-map-wrapper iframe {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 4. Поля форми в один стовпчик без розпирання */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }

    .form-input,
    .form-textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 5. Захист довгих посилань та email від переповнення */
    .contact-group p,
    .contact-group a {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* Навігація галереї на картці номера */
.room-photo {
    position: relative;
}

.room-card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(20, 35, 55, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.room-photo:hover .room-card-arrow {
    opacity: 1;
    pointer-events: auto;
}

.room-card-arrow:hover {
    background: rgba(20, 35, 55, 0.85);
    transform: translateY(-50%) scale(1.08);
}

.room-card-prev {
    left: 10px;
}

.room-card-next {
    right: 10px;
}

.room-photo-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 4;
    background: rgba(15, 30, 52, 0.75);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* На смартфонах показуємо стрілки постійно, оскільки немає hover */
@media (max-width: 768px) {
    .room-card-arrow {
        opacity: 0.9;
        pointer-events: auto;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}