* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #0a6e9e; --primary-dark: #084d70; --accent: #f4a02d;
    --dark: #1a2733; --gray: #6b7c8a; --light: #f5f8fa; --border: #e1e8ed;
    --success: #28a745; --danger: #dc3545; --warning: #ffc107; --info: #17a2b8;
    /* Theme tokens — overridden by html[data-theme="dark"] below */
    --bg: #ffffff;
    --text: #1a2733;
    --text-muted: #6b7c8a;
    --card: #ffffff;
    --card-soft: #f5f8fa;
    --card-border: #e1e8ed;
    --header-bg: #ffffff;
    --input-bg: #ffffff;
    --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,.12);
    color-scheme: light;
}
html[data-theme="dark"] {
    /* --dark stays unchanged (brand navy, used by footer) */
    --gray: #9aaab9;
    --light: #1a2330;          /* section background — slightly above body */
    --border: #2d3a48;
    --bg: #0f1620;             /* body background — deepest */
    --text: #e6edf3;
    --text-muted: #9aaab9;
    --card: #2a3a4f;           /* raised card — visibly LIGHTER than section */
    --card-soft: #1c2733;
    --card-border: #3a4a5e;    /* visible border around cards */
    --header-bg: #161e2a;
    --input-bg: #1f2a38;
    --shadow-sm: 0 2px 12px rgba(0,0,0,.4);
    --shadow-md: 0 12px 30px rgba(0,0,0,.55);
    color-scheme: dark;
}
html { scroll-behavior: smooth; }
body { font-family: 'Helvetica Neue','BPG Nino Mtavruli','Sylfaen',Arial,sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); transition: background .25s, color .25s; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { color: var(--text); line-height: 1.25; margin-bottom: .5em; }
h1 { font-size: 2.4rem; } h2 { font-size: 1.9rem; } h3 { font-size: 1.3rem; }
p { margin-bottom: 1em; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.muted { color: var(--text-muted); }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); box-shadow: none; transition: background .25s, box-shadow .25s, padding .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.10); }
main.site-main { display: block; margin: 0; padding: 0; }
main.site-main > .page-hero:first-child { margin-top: 0; }
.site-header.is-scrolled .nav-wrap { padding: 8px 20px; }
html[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.55); }
.nav-wrap { transition: padding .25s; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; color: var(--text); line-height: 1; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.25rem; color: var(--primary); line-height: 1.1; letter-spacing: .3px; }
.brand-text small { color: var(--text-muted); font-size: .72rem; line-height: 1.1; letter-spacing: .8px; text-transform: uppercase; }
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { color: var(--text); font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-color: var(--primary); }
.main-nav .nav-cta { padding: 8px 16px; border: 2px solid var(--primary); border-radius: 6px; color: var(--primary); }
.main-nav .nav-cta:hover { background: var(--primary); color: #fff; }
/* Drawer-only elements — hidden on desktop, shown inside mobile drawer */
.nav-drawer-brand,
.nav-drawer-actions { display: none; }
.nav-drawer-links { display: contents; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text); padding: 8px; border-radius: 8px; transition: background .2s; }
.nav-toggle:hover { background: rgba(0,0,0,.05); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 24px; height: 24px; }
.nav-toggle-bars span { display: block; width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity .2s; transform-origin: center; }
.nav-toggle.is-active .nav-toggle-bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active .nav-toggle-bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-close { display: none; }
.nav-backdrop { display: none; }
body.nav-locked { overflow: hidden; }

/* Theme toggle button (sun/moon) */
.theme-toggle-pub {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--card-soft);
    border: 1px solid var(--card-border);
    color: var(--text);
    cursor: pointer;
    font-size: 1.05rem;
    transition: background .15s, transform .15s, border-color .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.theme-toggle-pub:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.06); }
.theme-toggle-pub:active { transform: scale(.95); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hero {
    position: relative;
    min-height: clamp(440px, 62vh, 720px);
    display: flex; align-items: center;
    background: linear-gradient(135deg, #0a6e9e 0%, #084d70 100%);
    color: #fff; overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.30) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.55) 100%); z-index: 1; }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: clamp(50px, 8vh, 90px) 20px; width: 100%; }
.hero-inner h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    color: #fff; margin-bottom: .25em;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
    line-height: 1.15;
}
.hero-inner h1 span { color: var(--accent); }
.hero-sub {
    font-size: clamp(1rem, 2.4vw, 1.4rem);
    opacity: .95; margin-bottom: .5em;
    text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.hero-text {
    max-width: 680px; margin: 0 auto 2em;
    opacity: .92;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
    font-size: clamp(.95rem, 1.8vw, 1.05rem);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero slider */
.hero-slider .hero-slides {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 8s ease;
    will-change: opacity, transform;
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.10); /* slow Ken-Burns zoom while visible */
}
/* Poster mode — show whole image (contain) over a blurred copy of itself.
   Activated by filename suffix "_poster" (e.g. "promo_poster.jpg"). */
.hero-slide.is-poster { background: none; transform: scale(1) !important; }
.hero-slide.is-poster.is-active { transform: scale(1) !important; }
.hero-slide.is-poster .hero-slide-bg {
    position: absolute; inset: -8%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(28px) brightness(.55) saturate(.85);
    z-index: 0;
}
.hero-slide.is-poster .hero-slide-fg {
    position: absolute; inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
}
/* When the active slide is a poster, hide overlay heading + soften gradient
   (the poster already has its own designed text/logo). */
.hero-slider:has(.hero-slide.is-active.is-poster) .hero-inner { display: none; }
.hero-slider:has(.hero-slide.is-active.is-poster) .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.10) 100%);
}
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: 1.6rem; line-height: 1;
    cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .15s, transform .15s;
}
.hero-nav:hover { background: rgba(255,255,255,.32); }
.hero-nav:active { transform: translateY(-50%) scale(.94); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-nav span { display: block; margin-top: -3px; font-weight: 300; }

.hero-dots {
    position: absolute; bottom: 22px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px;
    z-index: 5;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: 1px solid rgba(255,255,255,.6);
    cursor: pointer; padding: 0;
    transition: all .2s;
}
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.is-active {
    background: #fff;
    width: 28px; border-radius: 6px;
    border-color: #fff;
}

@media (max-width: 768px) {
    .hero-nav { width: 38px; height: 38px; font-size: 1.3rem; }
    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }
    .hero-dots { bottom: 14px; }
    .hero-actions .btn-lg { padding: 12px 22px; font-size: 1rem; }
    /* Slightly slower zoom on small screens (less perceived motion) */
    .hero-slide.is-active { transform: scale(1.06); transition-duration: 1s, 10s; }
}
@media (max-width: 420px) {
    .hero-nav { display: none; } /* dots only on small phones — saves real estate */
    .hero-actions { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; }
    .hero-actions .btn { width: 100%; }
}
@media (min-width: 1600px) {
    /* Cap on huge displays so hero doesn't feel oversized */
    .hero { min-height: 720px; }
}

.btn { display: inline-block; padding: 10px 22px; border-radius: 6px; border: 2px solid transparent; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all .2s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 30px; font-size: 1.1rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.hero-actions .btn-outline { color: #fff; border-color: #fff; }
.hero-actions .btn-outline:hover { background: #fff; color: var(--primary); }

.quick-search { background: #fff; margin-top: -45px; position: relative; z-index: 5; }
.search-form { background: #fff; padding: 24px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.search-form-card { background: var(--light); padding: 20px; border-radius: 10px; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.form-group label { display: block; font-size: .85rem; color: var(--gray); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,110,158,.15); }

.section-title { text-align: center; margin-bottom: 36px; font-size: 2rem; }

/* AJAX rooms list loading state */
#roomsResults { transition: opacity .2s; min-height: 200px; }
#roomsResults.is-loading { opacity: .5; pointer-events: none; }
#roomsResults.is-loading::after {
    content: '⌛ ფილტრდება...';
    display: block; text-align: center;
    padding: 40px 20px;
    color: var(--gray, #6c757d);
    font-size: 1rem;
}

/* Rich-text content rendered from admin Quill editor */
.rich-content { line-height: 1.7; font-size: 1.02rem; }
.rich-content p { margin: 0 0 1em; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 1.2em 0 .5em; line-height: 1.3; }
.rich-content ul, .rich-content ol { margin: 0 0 1em 1.4em; padding: 0; }
.rich-content li { margin-bottom: .35em; }
.rich-content a { color: var(--primary, #0a6e9e); text-decoration: underline; }
.rich-content blockquote {
    margin: 1em 0; padding: .6em 1em;
    border-left: 4px solid var(--primary, #0a6e9e);
    background: rgba(10,110,158,.06);
    color: #2c3e50;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right  { text-align: right; }
.rich-content .ql-align-justify{ text-align: justify; }
.features { padding: 70px 0; background: var(--light); }
.features-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: #fff; padding: 28px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.feature:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,.08); }
.feature-ico { font-size: 2.5rem; margin-bottom: 10px; }
.feature h3 { color: var(--primary); margin-bottom: 8px; }
a.feature-linked { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s; }
a.feature-linked:hover h3 { text-decoration: underline; }

.rooms-preview, .content-section { padding: 70px 0; }
/* ---------- Room cards (modern v2) ---------- */
.rooms-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.room-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 18px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .25s;
}
.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 22px 46px rgba(10,110,158,.16);
    border-color: rgba(10,110,158,.12);
}
.room-img-link { display: block; overflow: hidden; position: relative; }
.room-img {
    height: 230px;
    position: relative;
    background: linear-gradient(135deg, #b3d9eb 0%, #4ca3c8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    overflow: hidden;
}
.room-img-photo { background-size: cover; background-position: center; }
.room-img-photo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
}
.room-img-tag {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 3;
    background: rgba(255,255,255,.92);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.room-body {
    padding: 22px 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.room-body h3 {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -.2px;
    line-height: 1.3;
}
.room-title-link { color: inherit; transition: color .2s; }
.room-title-link:hover { color: var(--primary); }
.room-meta {
    color: var(--gray);
    font-size: .86rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: .15px;
}
.room-desc {
    color: var(--gray);
    font-size: .93rem;
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.room-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}
.room-foot .price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.room-foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.room-foot-actions .btn { border-radius: 999px; padding-left: 16px; padding-right: 16px; }
.price { font-size: 1.45rem; color: var(--success); font-weight: 800; letter-spacing: .2px; }
.price small { color: var(--gray); font-size: .8rem; font-weight: normal; }

.room-detail-grid { display: grid; gap: 36px; grid-template-columns: 1.3fr 1fr; align-items: start; }
.room-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--light); box-shadow: 0 4px 20px rgba(0,0,0,.08); position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-thumbs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.gallery-thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--primary); }

/* ===== LIGHTBOX (room photo viewer — truly fullscreen) ===== */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.96);
    z-index: 2147483647; /* topmost possible */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .25s ease, visibility 0s;
}
/* Stage fills the entire viewport; image is absolutely centered. */
.lb-stage {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.lb-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 96vw;
    max-height: 84vh; /* reserves space for bottom thumbs strip + counter */
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 60px rgba(0,0,0,.7);
    user-select: none;
    -webkit-user-drag: none;
}
/* If only one image, no thumbs visible — image can fill more height */
.lb-thumbs:has(.lb-thumb:only-child) { display: none; }
.lightbox:has(.lb-thumbs[style*="display: none"]) .lb-img,
.lightbox:has(.lb-thumb:only-child) .lb-img { max-height: 94vh; }

/* Top-right close button — always above image */
.lb-close {
    position: absolute; top: 16px; right: 20px;
    background: rgba(0,0,0,.55);
    color: #fff; border: 1px solid rgba(255,255,255,.25);
    width: 46px; height: 46px;
    border-radius: 50%;
    font-size: 1.3rem; cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: background .15s, transform .15s;
}
.lb-close:hover { background: rgba(220,53,69,.9); transform: scale(1.08); }

/* Side arrows — overlay image edges */
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.55);
    color: #fff; border: 1px solid rgba(255,255,255,.22);
    width: 56px; height: 56px;
    border-radius: 50%;
    font-size: 2.2rem; line-height: 1; cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: background .15s, transform .15s;
    display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: var(--primary, #0a6e9e); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* Counter — top-left overlay */
.lb-counter {
    position: absolute; top: 22px; left: 20px;
    color: #fff;
    font-size: .92rem;
    padding: 6px 14px;
    background: rgba(0,0,0,.55);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    z-index: 10;
    user-select: none;
}

/* Thumbnail strip — bottom overlay */
.lb-thumbs {
    position: absolute; bottom: 12px; left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 40px);
    display: flex; gap: 6px;
    padding: 8px 12px;
    background: rgba(0,0,0,.55);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    overflow-x: auto;
    z-index: 10;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) transparent;
}
.lb-thumbs::-webkit-scrollbar { height: 6px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 3px; }
.lb-thumb {
    width: 84px; height: 56px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: .55;
    border: 2px solid transparent;
    transition: opacity .15s, border-color .15s, transform .15s;
    flex: 0 0 auto;
}
.lb-thumb:hover { opacity: .85; transform: scale(1.04); }
.lb-thumb.is-active {
    opacity: 1;
    border-color: var(--primary, #0a6e9e);
    transform: scale(1.04);
}

@media (max-width: 600px) {
    .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 1.1rem; }
    .lb-counter { top: 14px; left: 10px; font-size: .82rem; padding: 4px 10px; }
    .lb-img { max-width: 100vw; max-height: 78vh; }
    .lb-thumbs { bottom: 8px; padding: 6px 10px; }
    .lb-thumb { width: 64px; height: 44px; }
}
.room-img-placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg,#b3d9eb,#4ca3c8); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 1.4rem; }
.room-features { list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); margin: 16px 0; }
.room-features li { background: var(--light); padding: 10px 14px; border-radius: 6px; }
.room-description { background: var(--light); padding: 18px; border-radius: 8px; line-height: 1.7; margin: 16px 0; }
.room-price-block { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-top: 2px solid var(--border); margin-top: 20px; gap: 16px; flex-wrap: wrap; }
.room-price-block .price { font-size: 2rem; }

.about-snippet { padding: 70px 0; background: var(--light); }
.about-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.about-img { height: 360px; border-radius: 10px; background: linear-gradient(135deg,#f4a02d,#c47e1f); }

/* Sub-page hero (room-details / about / contact / booking).
   Custom photo: drop a file named headerbg.* (or page-hero.*) into assets/images/.
   header.php picks the first match and injects its URL via --page-hero-img. */
.page-hero {
    position: relative;
    color: #fff;
    padding: clamp(70px, 10vh, 110px) 0 clamp(80px, 12vh, 130px);
    min-height: clamp(360px, 52vh, 520px);
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(180deg,
            #1d6997 0%,
            #114b71 60%,
            #084d70 100%);
}
/* Photo layer + dark overlay combined (gradient on top of image). */
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,.62) 95%),
        var(--page-hero-img, none);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 0;
}
.page-hero > .container { width: 100%; }
@media (max-width: 600px) {
    .page-hero { min-height: 320px; }
    .page-hero::before { background-position: center bottom; }
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 {
    color: #fff;
    text-shadow: 0 2px 22px rgba(0,0,0,.7), 0 0 8px rgba(0,0,0,.5);
    margin-bottom: .35em;
    letter-spacing: .2px;
}
.page-hero p {
    color: #fff;
    text-shadow: 0 1px 14px rgba(0,0,0,.65), 0 0 6px rgba(0,0,0,.4);
    opacity: .98;
}
/* Subtle wave decoration at the bottom edge */
.page-hero::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px;
    height: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'><path d='M0,20 Q150,40 300,20 T600,20 T900,20 T1200,20 V40 H0 Z' fill='%23ffffff' opacity='0.95'/></svg>");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}
.content-narrow { max-width: 800px; margin: 0 auto; }
.check-list { margin: 1em 0 1em 1.2em; }
.check-list li { margin: .5em 0; }

.booking-form-wrap { max-width: 800px; margin: 0 auto; background: var(--light); padding: 30px; border-radius: 10px; }
.booking-summary { display: flex; justify-content: space-between; gap: 20px; background: #fff; padding: 18px; border-radius: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.booking-form .form-group { margin-bottom: 16px; }
.form-check { margin: 16px 0; }

.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1.3fr; }
.contact-info { background: var(--light); padding: 30px; border-radius: 10px; }
.contact-form-wrap { background: #fff; padding: 30px; border-radius: 10px; border: 1px solid var(--border); }

.success-card { background: var(--light); padding: 40px; border-radius: 10px; text-align: center; border-left: 5px solid var(--success); }
.booking-details { text-align: left; background: #fff; padding: 22px; border-radius: 8px; margin-top: 24px; }
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.detail-row.total { font-size: 1.2rem; color: var(--primary); padding-top: 16px; border-top: 2px solid var(--primary); }

.flash { padding: 14px 18px; margin: 16px 0; border-radius: 6px; font-weight: 500; border-left: 4px solid; }
.flash-success { background: #d4edda; color: #155724; border-color: var(--success); }
.flash-error { background: #f8d7da; color: #721c24; border-color: var(--danger); }

.site-footer { background: var(--dark); color: #cfd8df; margin-top: 80px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 1fr; padding: 50px 20px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; }
.footer-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; margin-bottom: 14px; background: #fff; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.footer-links { list-style: none; }
.footer-links li { margin: .4em 0; }
.footer-links a { color: #cfd8df; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { background: rgba(0,0,0,.2); padding: 16px 0; font-size: .85rem; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-operator-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #cfd8df;
    font-size: .82rem;
    font-weight: 500;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.footer-operator-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}
@media (max-width: 600px) {
    .footer-bottom-row { justify-content: center; text-align: center; }
}

.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#0a6e9e,#084d70); padding: 20px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 12px; padding: 40px; }
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo img { width: 70px; margin: 0 auto 12px; }
.login-logo h1 { color: var(--primary); }
.login-form .form-group { margin-bottom: 16px; }
.login-foot { text-align: center; margin-top: 24px; font-size: .9rem; }

.price-calculator { background: linear-gradient(135deg,#e7f3f9,#d1ecf1); border-left: 4px solid var(--primary); padding: 20px; border-radius: 10px; margin: 20px 0; }
.calc-row { display: flex; justify-content: space-between; padding: 8px 0; }
.calc-total { border-top: 2px solid var(--primary); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; }
.calc-total strong { color: var(--primary); font-size: 1.4rem; font-weight: bold; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; order: -1; }
    .nav-wrap { gap: 10px; justify-content: flex-start; }
    .brand { margin-right: auto; min-width: 0; }
    .brand-text strong { font-size: 1rem; }
    .brand-text small { font-size: .65rem; }
    .header-actions { gap: 6px; }
    .header-actions .theme-toggle-pub { width: 36px; height: 36px; }
    .header-actions .lang-switch-btn { padding: 6px 8px; }

    /* Slide-out drawer from the left */
    .main-nav {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: min(82vw, 320px);
        background: var(--header-bg, #fff);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 72px 18px 24px;
        box-shadow: 4px 0 32px rgba(0,0,0,.18);
        transform: translateX(-105%);
        transition: transform .32s cubic-bezier(.2,.7,.3,1);
        z-index: 200;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
    }
    .main-nav.is-open { transform: translateX(0); }

    .nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px; right: 14px;
        width: 36px; height: 36px;
        background: none;
        border: 0;
        border-radius: 10px;
        font-size: 1.2rem;
        color: var(--text);
        cursor: pointer;
        transition: background .2s, color .2s;
    }
    .nav-close:hover { background: rgba(0,0,0,.06); color: var(--primary); }

    /* Drawer brand (top of drawer) */
    .nav-drawer-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 6px 10px 14px;
        margin-bottom: 8px;
        text-decoration: none;
        color: inherit;
        border-bottom: 1px solid var(--card-border, rgba(0,0,0,.08));
    }
    .nav-drawer-brand .brand-logo {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .nav-drawer-brand .brand-text {
        display: flex;
        flex-direction: column;
        line-height: 1.15;
        gap: 2px;
        min-width: 0;
    }
    .nav-drawer-brand .brand-text strong {
        font-size: 1.2rem;
        color: var(--primary);
        letter-spacing: .3px;
    }
    .nav-drawer-brand .brand-text small {
        font-size: .68rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: .8px;
    }

    /* Drawer links wrapper */
    .nav-drawer-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    /* Drawer links — modern pill rows */
    .nav-drawer-links a {
        padding: 13px 16px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
        border: 0;
        border-radius: 12px;
        position: relative;
        text-decoration: none;
        transition: background .2s, color .2s, padding-left .2s;
    }
    .nav-drawer-links a:hover {
        background: rgba(10,110,158,.08);
        color: var(--primary);
        padding-left: 20px;
    }
    .nav-drawer-links a.active {
        background: linear-gradient(90deg, rgba(10,110,158,.14) 0%, rgba(10,110,158,.04) 100%);
        color: var(--primary);
        padding-left: 22px;
    }
    .nav-drawer-links a.active::before {
        content: '';
        position: absolute;
        left: 8px; top: 50%;
        width: 4px; height: 22px;
        background: var(--primary);
        border-radius: 4px;
        transform: translateY(-50%);
    }
    .nav-drawer-links a::after { display: none; }

    /* Drawer actions (bottom: lang + theme) */
    .nav-drawer-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-top: 14px;
        margin-top: 14px;
        border-top: 1px solid var(--card-border, rgba(0,0,0,.08));
    }
    .nav-drawer-actions .lang-switch { flex: 1; min-width: 0; }
    .nav-drawer-actions .lang-switch-btn {
        width: 100%;
        justify-content: space-between;
        padding: 10px 14px;
    }
    .nav-drawer-actions .lang-switch-menu {
        right: 0; left: auto;
        bottom: calc(100% + 6px); top: auto;
        width: 100%;
    }
    .nav-drawer-actions .theme-toggle-pub {
        width: 42px; height: 42px;
        flex-shrink: 0;
    }

    .main-nav .nav-cta { margin-top: 12px; text-align: center; padding: 12px; border-radius: 12px; }

    /* Backdrop overlay — pointer-events keeps clicks reaching header buttons while invisible */
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 22, 32, .55);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .26s ease;
        z-index: 150;
    }
    .nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

    /* Off-screen drawer — block stray hits while closed (insurance for transform hit-area quirks) */
    .main-nav { pointer-events: none; }
    .main-nav.is-open { pointer-events: auto; }

    .hero-inner h1 { font-size: 2.4rem; }
    .about-grid, .contact-grid, .room-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; padding: 30px 20px; }
    .room-features { grid-template-columns: 1fr; }
}

/* ---------- Room status badge ---------- */
.room-status-badge {
    position: absolute;
    bottom: 14px; left: 14px; z-index: 3;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.room-status-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}
.status-free { background: rgba(40,167,69,.92); color: #fff; }
.status-free::before {
    background: #c4f5cf;
    box-shadow: 0 0 0 3px rgba(196,245,207,.35);
    animation: statusPulse 2s ease-in-out infinite;
}
.status-booked { background: rgba(220,53,69,.92); color: #fff; }
.status-booked::before { background: #ffd1d4; }
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(196,245,207,.35); }
    50%      { box-shadow: 0 0 0 6px rgba(196,245,207,.12); }
}

/* მცირედ გათუმდე ბუქირებული ბარათი */
.room-card-booked .room-img-photo::after,
.room-card-booked .room-img::after {
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.room-card-booked .price { opacity: .85; }

/* ---------- Rooms loader (infinite scroll) ---------- */
.rooms-loader {
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}
.spinner {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.rooms-end { text-align: center; padding: 30px 20px; opacity: .6; }

/* fade-in animation for newly loaded rooms */
#roomsGrid .room-card { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
#roomsGrid .room-card.room-card-visible { opacity: 1; transform: translateY(0); }

/* ===========================================================
   Mobile Responsive Improvements (Public Site)
   =========================================================== */
@media (max-width: 900px) {
    .container { padding: 0 14px; }
    .hero { min-height: 460px; }
    .hero-inner { padding: 60px 16px; }
    .hero-inner h1 { font-size: 2rem; }
    .hero-sub { font-size: 1.05rem; }
    .hero-text { font-size: .95rem; }
    .hero-actions .btn { padding: 12px 20px; font-size: .95rem; }

    .nav-wrap { padding: 10px 14px; }
    .brand-logo { width: 38px; height: 38px; }
    .brand-text strong { font-size: 1.1rem; }
    .brand-text small { font-size: .7rem; }

    .quick-search { margin-top: -30px; }
    .search-form { padding: 18px; }

    .features { padding: 50px 0; }
    .features-grid { gap: 16px; }
    .feature { padding: 22px 18px; }

    .rooms-preview, .content-section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; margin-bottom: 24px; }

    .form-row { grid-template-columns: 1fr; gap: 10px; }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* prevents iOS zoom */
    }

    .btn { padding: 12px 20px; font-size: .95rem; min-height: 44px; }
    .btn-sm { padding: 10px 14px; min-height: 38px; }
    .btn-lg { padding: 14px 24px; font-size: 1rem; }

    .room-card { box-shadow: 0 1px 6px rgba(0,0,0,.08); }

    .booking-form-wrap { padding: 20px 16px; }
    .price-calculator { padding: 16px; }

    .footer-grid { padding: 30px 14px; gap: 24px; }
}

@media (max-width: 480px) {
    /* Header on tight screens — keep brand compact */
    .brand-text small { display: none; }
    .brand-text strong { font-size: 1.05rem; }
    .brand-logo { width: 34px; height: 34px; }
    .nav-wrap { padding: 8px 12px; gap: 8px; }
    .header-actions .lang-switch-btn { padding: 5px 7px; font-size: .8rem; }
    .header-actions .lang-switch-btn .lang-flag-img { width: 20px; height: 14px; }

    .hero-inner h1 { font-size: 1.7rem; }
    .hero-sub { font-size: .95rem; }
    .section-title { font-size: 1.4rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }
    .rooms-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .price-calculator { padding: 12px; }
    .calc-row { font-size: .9rem; }
    .calc-total strong { font-size: 1.1rem !important; }
    .booking-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Touch-friendly mobile nav (drawer rules in earlier @media block) */
@media (max-width: 900px) {
    .nav-toggle { padding: 10px; }
}

/* =============================================================
 * v9 — Booking form polish, success card actions, policy box
 * ============================================================= */
.policy-box { background: var(--light, #f8f9fa); border-radius: 8px; padding: 12px 16px; margin: 14px 0; }
.policy-box details { margin-bottom: 8px; }
.policy-box summary { cursor: pointer; padding: 4px 0; }

.success-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.gallery-thumb { cursor: pointer; transition: transform .15s, opacity .15s; opacity: .75; }
.gallery-thumb:hover { opacity: 1; transform: scale(1.04); }
.gallery-thumb.active { opacity: 1; outline: 2px solid var(--primary, #0a6e9e); outline-offset: 2px; }

.price-calculator p.muted { font-size: .85em; }

.booking-form button:disabled { opacity: .5; cursor: not-allowed; }

.flash { padding: 12px 16px; border-radius: 6px; margin: 12px 0; }
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.flash-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

@media print {
    .page-hero, .site-header, .site-footer, .success-actions, .btn { display: none !important; }
    .success-card { border: 2px solid #000; padding: 24px !important; }
    body { background: #fff !important; }
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; }
    .form-row .form-group { width: 100% !important; }
    .booking-summary { flex-direction: column; gap: 8px; }
    .room-foot-actions { flex-direction: column; gap: 6px; }
    .search-form-card { padding: 12px; }
    .price-calculator { font-size: .95em; }
}

/* =============================================================
 * v11 — Monthly prices table (public room-details)
 * ============================================================= */
.monthly-prices-public { margin-top: 16px; padding: 12px 16px; background: #f8f9fa; border-radius: 8px; }
.monthly-prices-public summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.monthly-prices-public summary:hover { color: var(--primary, #0a6e9e); }
.monthly-prices-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.monthly-prices-table td { padding: 8px 12px; border-bottom: 1px solid #e0e0e0; }
.monthly-prices-table tr:last-child td { border-bottom: none; }
.monthly-prices-table tr.is-current { background: #e3f2fd; font-weight: 600; }
.monthly-prices-table tr.is-current td { color: #075578; }

/* =============================================================
 * v12 — Comprehensive mobile responsiveness for public site
 * ============================================================= */
@media (max-width: 900px) {
    .container { padding: 0 14px; }
    /* Drawer-specific rules consolidated in earlier media block — only keep here what doesn't conflict */
    .hero h1 { font-size: 2em; }
    .hero-sub, .hero-text { font-size: .95em; }
    .features-grid, .rooms-grid { grid-template-columns: 1fr; gap: 16px; }
    .room-detail-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: left; }
    .quick-search .form-row,
    .search-form-card .form-row { flex-direction: column; gap: 10px; }
    .quick-search .form-group,
    .search-form-card .form-group { width: 100%; }
    .booking-summary { flex-direction: column; align-items: stretch; gap: 10px; }
    .booking-form-wrap { padding: 14px; }
    .price-calculator { padding: 12px; }
    .calc-row { font-size: .92em; padding: 4px 0; }
    .room-foot { flex-direction: column; align-items: stretch; gap: 10px; }
    .room-foot-actions { flex-direction: row; }
    .room-foot-actions .btn { flex: 1; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .success-card { padding: 20px; }
    .success-actions { flex-direction: column; }
    .success-actions .btn { width: 100%; }
    .room-price-block { flex-direction: column; align-items: stretch; gap: 10px; }
    .room-price-block .btn { width: 100%; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6em; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .section-title { font-size: 1.3em; }
    .room-card { font-size: .92em; }
    .price { font-size: 1.1em; }
    .booking-details .detail-row { flex-direction: column; gap: 4px; padding: 10px 0; }
}

/* =============================================================
 * v14 — Range Calendar widget (compact modern, public booking)
 * ============================================================= */
.rc-wrap {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 12px 14px 14px;
    user-select: none;
    max-width: 360px;
    margin: 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.05);
}
.rc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.rc-title { font-weight: 700; font-size: .98em; text-align: center; flex: 1; color: #2c3e50; letter-spacing: .2px; }
.rc-nav {
    background: transparent;
    border: 1px solid #e1e8ed;
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    line-height: 1;
    color: #2c3e50;
    transition: all .15s;
    flex: 0 0 auto;
}
.rc-nav:hover { background: #0a6e9e; color: #fff; border-color: #0a6e9e; }
.rc-nav:active { transform: scale(.94); }
.rc-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
    font-size: .72em;
    color: #6c757d;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.rc-dow > div { padding: 4px 0; }
.rc-dow-weekend { color: #dc3545; }
.rc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.rc-day {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9em;
    color: #2c3e50;
    transition: background .12s, color .12s, border-color .12s;
    position: relative;
}
.rc-day-blank { background: transparent; pointer-events: none; }
.rc-day:hover { background: #e3f2fd; border-color: #0a6e9e; }
.rc-day-weekend { color: #dc3545; }
.rc-day-today { font-weight: 700; box-shadow: inset 0 0 0 1.5px #0a6e9e; }
.rc-day-past {
    color: #6c757d;
    cursor: not-allowed;
    opacity: .35;
    pointer-events: none;
}
.rc-day-blocked {
    color: #dc3545;
    background: rgba(220,53,69,.10);
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: line-through;
    opacity: .7;
}
.rc-day-blocked::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(220,53,69,.18) 3px 6px);
    border-radius: 6px;
    pointer-events: none;
}
.rc-day-start, .rc-day-end {
    background: #0a6e9e;
    color: #fff;
    font-weight: 700;
    border-color: #0a6e9e;
    box-shadow: 0 2px 6px rgba(10,110,158,.35);
}
.rc-day-start:hover, .rc-day-end:hover { background: #075578; color: #fff; border-color: #075578; }
.rc-day-in-range { background: rgba(10,110,158,.16); color: #075578; border-radius: 0; }
.rc-day-in-range:hover { background: rgba(10,110,158,.28); }

.rc-legend {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e1e8ed;
    font-size: .72em; color: #6c757d;
    justify-content: center;
}
.rc-leg { display: inline-flex; align-items: center; gap: 4px; }
.rc-leg::before { content: ''; width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rc-leg-selected::before { background: #0a6e9e; }
.rc-leg-blocked::before  { background: rgba(220,53,69,.25); border: 1px solid rgba(220,53,69,.5); }
.rc-leg-past::before     { background: #f8f9fa; border: 1px solid #e1e8ed; }

.rc-status {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .85em;
    line-height: 1.4;
    text-align: center;
}
.rc-status-empty   { background: #f8f9fa; color: #6c757d; }
.rc-status-partial { background: rgba(255,193,7,.15); color: #856404; }
.rc-status-ok      { background: rgba(40,167,69,.15); color: #155724; }
.rc-status-error   { background: rgba(220,53,69,.15); color: #dc3545; }

@media (max-width: 480px) {
    .rc-wrap { padding: 10px; max-width: 100%; }
    .rc-day { height: 36px; font-size: .85em; }
    .rc-title { font-size: .92em; }
}

/* =============================================================
 * Dark mode overrides (public site)
 * ============================================================= */

/* Cards: raised above section, visible border + soft glow shadow */
html[data-theme="dark"] .quick-search,
html[data-theme="dark"] .search-form,
html[data-theme="dark"] .feature,
html[data-theme="dark"] .room-card,
html[data-theme="dark"] .booking-summary,
html[data-theme="dark"] .booking-details,
html[data-theme="dark"] .contact-form-wrap,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .rc-wrap {
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text);
}
html[data-theme="dark"] .feature {
    box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
html[data-theme="dark"] .feature:hover { box-shadow: 0 6px 20px rgba(0,0,0,.55); border-color: var(--primary); }
html[data-theme="dark"] .room-card { box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.45); border-color: var(--card-border); }
html[data-theme="dark"] .room-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 22px 46px rgba(95,219,126,.18); border-color: rgba(95,219,126,.25); }
html[data-theme="dark"] .room-img-tag { background: rgba(42,58,79,.85); color: #fff; }
html[data-theme="dark"] .room-foot { border-top-color: var(--card-border); }
html[data-theme="dark"] .feature h3,
html[data-theme="dark"] .feature p,
html[data-theme="dark"] .room-card h3,
html[data-theme="dark"] .room-card p { color: var(--text); }
html[data-theme="dark"] .feature p,
html[data-theme="dark"] .room-card .room-meta,
html[data-theme="dark"] .room-card .room-desc { color: var(--text-muted); }

/* Form inputs (covers all variants) */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="time"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: var(--input-bg);
    color: var(--text);
    border-color: var(--card-border);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--text-muted); opacity: .65; }
html[data-theme="dark"] input[type="date"] { color-scheme: dark; }
html[data-theme="dark"] .form-group label { color: var(--text-muted); }
html[data-theme="dark"] .form-check label { color: var(--text); }

/* Mobile dropdown nav */
html[data-theme="dark"] .main-nav { background: var(--header-bg); }
@media (max-width: 900px) {
    html[data-theme="dark"] .main-nav { box-shadow: 4px 0 32px rgba(0,0,0,.55); }
    html[data-theme="dark"] .nav-drawer-links a:hover { background: rgba(95,219,126,.10); color: #5fdb7e; }
    html[data-theme="dark"] .nav-drawer-links a.active { background: linear-gradient(90deg, rgba(95,219,126,.18) 0%, rgba(95,219,126,.04) 100%); color: #5fdb7e; }
    html[data-theme="dark"] .nav-drawer-links a.active::before { background: #5fdb7e; }
    html[data-theme="dark"] .nav-drawer-brand,
    html[data-theme="dark"] .nav-drawer-actions { border-color: var(--card-border); }
    html[data-theme="dark"] .nav-drawer-brand .brand-text strong { color: #5fdb7e; }
    html[data-theme="dark"] .nav-close:hover { background: rgba(255,255,255,.08); color: #5fdb7e; }
    html[data-theme="dark"] .nav-toggle:hover { background: rgba(255,255,255,.08); }
}

/* Range calendar widget */
html[data-theme="dark"] .rc-day { color: var(--text); }
html[data-theme="dark"] .rc-day:hover { background: rgba(75,163,212,.20); border-color: var(--primary); }
html[data-theme="dark"] .rc-day-past { background: transparent; }
html[data-theme="dark"] .rc-day-in-range { background: rgba(75,163,212,.22); color: #aedcff; }
html[data-theme="dark"] .rc-day-blocked { background: rgba(220,53,69,.18); color: #ff8a93; }
html[data-theme="dark"] .rc-status-empty   { background: var(--card-soft); color: var(--text-muted); }
html[data-theme="dark"] .rc-status-partial { background: rgba(255,193,7,.18); color: #ffe082; }
html[data-theme="dark"] .rc-status-ok      { background: rgba(40,167,69,.20); color: #6dd47e; }
html[data-theme="dark"] .rc-status-error   { background: rgba(220,53,69,.20); color: #ff8a93; }
html[data-theme="dark"] .rc-title { color: var(--text); }
html[data-theme="dark"] .rc-nav { color: var(--text); border-color: var(--card-border); background: var(--card-soft); }
html[data-theme="dark"] .rc-dow > div { color: var(--text-muted); }

/* Headings — already white on hero/page-hero (kept), elsewhere use --text */
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 { color: var(--text); }
html[data-theme="dark"] .section-title { color: var(--text); }

/* Status/flash messages need visible text on dark bg */
html[data-theme="dark"] .flash { color: var(--text); border-left: 4px solid var(--info); padding: 12px 16px; border-radius: 6px; }
html[data-theme="dark"] .flash-error    { background: rgba(220,53,69,.18); color: #ff8a93; border-left-color: var(--danger); }
html[data-theme="dark"] .flash-success  { background: rgba(40,167,69,.18); color: #6dd47e; border-left-color: var(--success); }
html[data-theme="dark"] .flash-warning  { background: rgba(255,193,7,.15); color: #ffe082; border-left-color: var(--warning); }
html[data-theme="dark"] .flash-info     { background: rgba(23,162,184,.15); color: #79d4e3; border-left-color: var(--info); }

/* Policy box / details */
html[data-theme="dark"] .policy-box { background: var(--card-soft); border: 1px solid var(--card-border); }
html[data-theme="dark"] details > summary { color: var(--text); }

/* Pricing / calc rows */
html[data-theme="dark"] .price-calculator { background: var(--card-soft); border-color: var(--card-border); color: var(--text); }
html[data-theme="dark"] .calc-row { color: var(--text); border-color: var(--card-border); }
html[data-theme="dark"] .calc-row strong { color: var(--text); }
html[data-theme="dark"] .calc-row.calc-total { color: var(--primary); }

/* Monthly prices on room-details */
html[data-theme="dark"] .monthly-prices-public { background: var(--card-soft); }
html[data-theme="dark"] .monthly-prices-table { color: var(--text); }
html[data-theme="dark"] .monthly-prices-table tr { border-color: var(--card-border); }
html[data-theme="dark"] .monthly-prices-table tr.is-current { background: rgba(75,163,212,.18); }

/* Buttons */
html[data-theme="dark"] .btn-outline { color: var(--text); border-color: var(--card-border); }
html[data-theme="dark"] .btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Site-header subtle border */
html[data-theme="dark"] .site-header { border-bottom: 1px solid var(--card-border); }

/* Room-detail info / gallery */
html[data-theme="dark"] .room-features li { background: var(--card-soft); color: var(--text); border: 1px solid var(--card-border); }
html[data-theme="dark"] .room-description { background: var(--card-soft); border: 1px solid var(--card-border); color: var(--text); }
html[data-theme="dark"] .room-price-block { background: var(--card-soft); border-color: var(--card-border); }
html[data-theme="dark"] .price { color: #5fdb7e; }
html[data-theme="dark"] .room-price-block .price { color: #5fdb7e; }
html[data-theme="dark"] .gallery-main { background: var(--card-soft); }

/* Booking form wrap (page) */
html[data-theme="dark"] .booking-form-wrap { background: var(--card); border: 1px solid var(--card-border); color: var(--text); }
html[data-theme="dark"] .booking-summary { background: var(--card-soft); }

/* Contact info box */
html[data-theme="dark"] .contact-info { background: var(--card-soft); border: 1px solid var(--card-border); color: var(--text); }
html[data-theme="dark"] .contact-info h3 { color: var(--text); }

/* Success card (after booking) */
html[data-theme="dark"] .success-card { background: var(--card); border: 1px solid var(--card-border); border-left: 5px solid var(--success); color: var(--text); }

/* About-snippet section (homepage about block, if any) — same as features */
html[data-theme="dark"] .about-snippet { background: var(--light); }

/* Rich content (about page editor output) */
html[data-theme="dark"] .rich-content blockquote { background: rgba(75,163,212,.10); color: var(--text); border-left-color: var(--primary); }

/* Theme toggle button — slightly stronger contrast in dark */
html[data-theme="dark"] .theme-toggle-pub { background: var(--card-soft); border-color: var(--card-border); }

/* Footer stays dark in both modes (brand --dark = #1a2733), but tweak link hover for dark mode */
html[data-theme="dark"] .site-footer { border-top: 1px solid var(--card-border); }

/* Date-range / availability warning banner */
html[data-theme="dark"] #dateAvailWarning { background: rgba(220,53,69,.18); color: #ff8a93; border: 1px solid rgba(220,53,69,.3); }

/* Status badges remaining tweaks */
html[data-theme="dark"] .room-status-badge.status-free   { background: rgba(40,167,69,.85); color: #fff; }
html[data-theme="dark"] .room-status-badge.status-booked { background: rgba(220,53,69,.85); color: #fff; }

/* =============================================================
 * Modern motion — reveal on scroll + micro-interactions
 * ============================================================= */
@media (prefers-reduced-motion: no-preference) {
    .reveal, .reveal-fade, .reveal-left, .reveal-right, .reveal-zoom {
        will-change: opacity, transform;
    }
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
    }
    .reveal.is-visible { opacity: 1; transform: translateY(0); }
    .reveal-fade { opacity: 0; transition: opacity 1s ease; }
    .reveal-fade.is-visible { opacity: 1; }
    .reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
    .reveal-left.is-visible { opacity: 1; transform: translateX(0); }
    .reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
    .reveal-right.is-visible { opacity: 1; transform: translateX(0); }
    .reveal-zoom { opacity: 0; transform: scale(.94); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.4,1.2); }
    .reveal-zoom.is-visible { opacity: 1; transform: scale(1); }
    /* Stagger children on parent[data-stagger] */
    [data-stagger] > .reveal:nth-child(1),
    [data-stagger] > .reveal-zoom:nth-child(1) { transition-delay: 0s; }
    [data-stagger] > .reveal:nth-child(2),
    [data-stagger] > .reveal-zoom:nth-child(2) { transition-delay: .07s; }
    [data-stagger] > .reveal:nth-child(3),
    [data-stagger] > .reveal-zoom:nth-child(3) { transition-delay: .14s; }
    [data-stagger] > .reveal:nth-child(4),
    [data-stagger] > .reveal-zoom:nth-child(4) { transition-delay: .21s; }
    [data-stagger] > .reveal:nth-child(5),
    [data-stagger] > .reveal-zoom:nth-child(5) { transition-delay: .28s; }
    [data-stagger] > .reveal:nth-child(6),
    [data-stagger] > .reveal-zoom:nth-child(6) { transition-delay: .35s; }
    [data-stagger] > .reveal:nth-child(7),
    [data-stagger] > .reveal-zoom:nth-child(7) { transition-delay: .42s; }
    [data-stagger] > .reveal:nth-child(8),
    [data-stagger] > .reveal-zoom:nth-child(8) { transition-delay: .49s; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-fade, .reveal-left, .reveal-right, .reveal-zoom {
        opacity: 1 !important; transform: none !important; transition: none !important;
    }
}

/* Hero text — animated entry on first paint */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-inner h1            { animation: heroFadeUp .9s cubic-bezier(.2,.7,.3,1) both; }
    .hero-inner .hero-sub     { animation: heroFadeUp .9s cubic-bezier(.2,.7,.3,1) .15s both; }
    .hero-inner .hero-text    { animation: heroFadeUp .9s cubic-bezier(.2,.7,.3,1) .30s both; }
    .hero-inner .hero-actions { animation: heroFadeUp .9s cubic-bezier(.2,.7,.3,1) .45s both; }
    .page-hero h1             { animation: heroFadeUp .9s cubic-bezier(.2,.7,.3,1) both; }
    .page-hero p              { animation: heroFadeUp .9s cubic-bezier(.2,.7,.3,1) .15s both; }
}

/* Section title — decorative gradient underline */
.section-title {
    position: relative;
    display: block;
    text-align: center;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 14px auto 0;
    border-radius: 2px;
    transform-origin: center;
    animation: titleUnderline .7s cubic-bezier(.2,.8,.4,1.2) .2s both;
}
@keyframes titleUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Feature card hover — lift + icon spin */
.feature {
    transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .25s;
    border: 1px solid transparent;
    cursor: default;
}
.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(10,110,158,.18);
    border-color: var(--primary);
}
.feature-ico {
    transition: transform .45s cubic-bezier(.2,.8,.4,1.2);
    display: inline-block;
}
.feature:hover .feature-ico {
    transform: scale(1.18) rotate(-6deg);
}

/* Room card — image zoom on hover (lift/shadow defined above) */
.room-card .room-img-photo,
.room-card .room-img {
    transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.room-card:hover .room-img-photo,
.room-card:hover .room-img {
    transform: scale(1.07);
}

/* Buttons — micro-interactions */
.btn { transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .2s, color .2s, border-color .2s; }
.btn-primary { box-shadow: 0 4px 12px rgba(10,110,158,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10,110,158,.40); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-outline:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.btn-lg:hover { transform: translateY(-3px); }

/* Nav link sliding underline */
.main-nav a {
    position: relative;
    border-bottom: 0 !important;
}
.main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 50%; right: 50%; bottom: 2px;
    height: 2px;
    background: var(--primary);
    transition: left .25s cubic-bezier(.2,.7,.3,1), right .25s cubic-bezier(.2,.7,.3,1);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).active::after { left: 0; right: 0; }

/* Quick search subtle lift on focus-within */
.quick-search { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.search-form { transition: box-shadow .25s; }
.search-form:focus-within { box-shadow: 0 12px 36px rgba(10,110,158,.18); }

/* Theme-toggle small spin on activate */
.theme-toggle-pub { transition: background .15s, transform .35s cubic-bezier(.2,.8,.4,1.2), border-color .15s; }
.theme-toggle-pub:hover { transform: rotate(20deg) scale(1.06); }

/* ===== Language switcher (public site) ===== */
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-switch-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px;
    background: var(--card-soft);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    transition: background .15s, border-color .15s, transform .15s;
}
.lang-switch-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-switch-btn .lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-switch-btn .lang-caret { font-size: .7rem; opacity: .7; transition: transform .15s; }
.lang-flag-img {
    display: inline-block;
    width: 22px; height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
    flex-shrink: 0;
}
.lang-switch.is-open .lang-switch-btn .lang-caret { transform: rotate(180deg); }
.lang-switch-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 160px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 4px;
    z-index: 50;
    animation: langMenuFade .15s ease;
}
@keyframes langMenuFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.lang-switch-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: .9rem;
    transition: background .12s, color .12s;
}
.lang-switch-item:hover { background: var(--card-soft); color: var(--primary); }
.lang-switch-item.is-active { background: var(--primary); color: #fff; }
.lang-switch-item.is-active:hover { background: var(--primary-dark); color: #fff; }
.lang-switch-item .lang-flag { font-size: 1.2rem; line-height: 1; }
.lang-switch-item .lang-name { font-weight: 500; }
@media (max-width: 768px) {
    .lang-switch-menu { right: 0; left: auto; }
}

/* Smooth focus ring */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Scroll-margin so anchor jumps don't get hidden under sticky header */
:target { scroll-margin-top: 90px; }
section[id] { scroll-margin-top: 90px; }
