/* ── HERO ─────────────────────────────────────────────────────────── */
.hb-hero {
    position: relative;
    min-height: 88vh;
    display: flex; align-items: center;
    background: var(--hb-dark, #0f172a);
    overflow: hidden;
    margin-top: -76px;      /* pull under the fixed nav */
    padding-top: 76px;
}
.hb-hero-video, .hb-hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.hb-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(15,23,42,0.35) 0%, rgba(15,23,42,0.55) 60%, rgba(15,23,42,0.7) 100%),
        radial-gradient(ellipse at 30% 40%, rgba(var(--hb-accent-rgb, 196,154,82),0.15) 0%, transparent 60%);
}
.hb-hero-inner {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto;
    padding: 60px 24px 200px;
    text-align: center; color: #fff; width: 100%;
}
.hb-hero-eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--hb-bg-tint, #f5ecd7); margin-bottom: 22px;
    padding: 6px 18px;
    background: rgba(var(--hb-accent-rgb, 196,154,82),.18);
    border: 1px solid rgba(var(--hb-accent-rgb, 196,154,82),.4);
    border-radius: 999px;
}
.hb-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 6vw, 74px);
    font-weight: 700; line-height: 1.05;
    color: #fff; letter-spacing: -1px;
    margin: 0 0 22px;
}
.hb-hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: rgba(255,255,255,.85);
    line-height: 1.65; max-width: 640px;
    margin: 0 auto 38px;
}
.hb-hero-ctas {
    display: inline-flex; gap: 14px; flex-wrap: wrap;
    justify-content: center;
}
.hb-btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 32px;
    background: var(--hb-accent, #c49a52); color: #fff !important;
    border-radius: 999px; border: none;
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: background .15s, transform .1s;
    text-decoration: none !important;
}
.hb-btn-primary:hover { background: var(--hb-accent-dark, #a37f3d); color: #fff !important; transform: translateY(-1px); }
.hb-btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 32px;
    background: transparent; color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: background .15s, border-color .15s;
    text-decoration: none !important;
}
.hb-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

/* ── SEARCH WIDGET (overlaps hero + section below) ─────────────── */
.hb-search-wrap {
    max-width: 1140px;
    margin: -120px auto 0;
    padding: 0 24px;
    position: relative; z-index: 3;
}
.hb-search {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(15,23,42,.14), 0 4px 12px rgba(15,23,42,.06);
    padding: 24px;
    display: grid;
    /* Dates uses a single combined field (picker handles both dates in
       one popup). Email sits at the end and is optional. */
    grid-template-columns: 1.7fr 1fr 1fr 1.4fr auto;
    gap: 12px; align-items: end;
}
.hb-search-optional {
    font-weight: 500; color: #94a3b8; text-transform: none; letter-spacing: 0.4px;
    font-size: 10.5px; margin-left: 6px; font-style: italic;
}
.hb-search-field { min-width: 0; }
.hb-search-field label {
    display: block;
    font-size: 11px; font-weight: 700;
    color: #64748b; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 8px;
}
.hb-search-field input,
.hb-search-field select {
    width: 100%; height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--hb-line-2, #e5e0d3); border-radius: 9px;
    background: var(--hb-bg-soft, #faf6ef);
    font-size: 14px; color: var(--hb-ink-2, #1e293b);
    font-family: inherit;
    box-sizing: border-box; min-width: 0;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
/* Native date inputs have a built-in intrinsic min-width that can make
   them push out of their grid slot on some browsers — normalise them. */
.hb-search-field input[type="date"] { max-width: 100%; }
.hb-search-field input:focus,
.hb-search-field select:focus {
    outline: none;
    border-color: var(--hb-accent, #c49a52); background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--hb-accent-rgb, 196,154,82),.15);
}
.hb-search-btn {
    height: 46px; padding: 0 24px;
    background: var(--hb-accent, #c49a52); color: #fff;
    border: none; border-radius: 9px;
    font-size: 12.5px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: background .15s;
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
.hb-search-btn:hover { background: var(--hb-accent-dark, #a37f3d); }

/* ── SECTION defaults ────────────────────────────────────────────── */
.hb-section { padding: 90px 24px; }
.hb-section-cream { background: var(--hb-bg-soft, #faf6ef); }
.hb-section-white { background: #ffffff; }
.hb-section-navy  { background: var(--hb-dark, #0f172a); color: #e2e8f0; }

/* Section break: when two neighbouring sections share a background (e.g. a
   hotel hides Amenities, so Rooms runs into the Gallery), the second starts
   with a thin line and a small accent diamond so they don't read as one. */
.hb-section-white + .hb-section-white,
.hb-section-cream + .hb-section-cream,
.hb-section-navy + .hb-section-navy { position: relative; }
.hb-section-white + .hb-section-white::before,
.hb-section-cream + .hb-section-cream::before,
.hb-section-navy + .hb-section-navy::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: min(1200px, calc(100% - 48px)); height: 1px;
    background: linear-gradient(90deg, transparent, var(--hb-line, #e8dfc9) 12%, var(--hb-line, #e8dfc9) 88%, transparent);
}
.hb-section-white + .hb-section-white::after,
.hb-section-cream + .hb-section-cream::after,
.hb-section-navy + .hb-section-navy::after {
    content: ''; position: absolute; top: -4px; left: 50%;
    width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg);
    background: var(--hb-accent, #c49a52);
    box-shadow: 0 0 0 5px #fff;
}
.hb-section-cream + .hb-section-cream::after { box-shadow: 0 0 0 5px var(--hb-bg-soft, #faf6ef); }
.hb-section-navy + .hb-section-navy::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.14) 12%, rgba(255,255,255,.14) 88%, transparent); }
.hb-section-navy + .hb-section-navy::after { box-shadow: 0 0 0 5px var(--hb-dark, #0f172a); }
.hb-section-inner { max-width: 1200px; margin: 0 auto; }

.hb-section-head { text-align: center; margin-bottom: 56px; }
.hb-eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    color: var(--hb-accent-dark, #a37f3d); letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 14px;
}
.hb-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 700; color: var(--hb-ink, #0f172a);
    letter-spacing: -0.5px; margin: 0 0 18px;
}
.hb-section-navy .hb-section-title { color: #fff; }
.hb-section-lead {
    font-size: 16px; line-height: 1.7;
    color: #64748b; max-width: 640px; margin: 0 auto;
}
.hb-section-navy .hb-section-lead { color: #94a3b8; }

/* ── ROOMS grid ──────────────────────────────────────────────────── */
.hb-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.hb-room {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--hb-line, #eee7d4);
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.hb-room:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.1); }
.hb-room-media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--hb-bg-tint, #f5ecd7);
}
.hb-room-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.hb-room:hover .hb-room-media img { transform: scale(1.05); }
.hb-room-price {
    position: absolute; top: 16px; right: 16px;
    padding: 8px 14px;
    background: rgba(15,23,42,.85);
    color: #fff; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    backdrop-filter: blur(6px);
}
.hb-room-price span { font-size: 11px; color: var(--hb-bg-tint, #f5ecd7); margin-left: 4px; }
.hb-room-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.hb-room-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700; color: var(--hb-ink, #0f172a);
    margin: 0 0 12px; line-height: 1.25;
}
.hb-room-cta {
    margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
    color: var(--hb-accent-dark, #a37f3d); font-weight: 700; font-size: 13px;
    letter-spacing: 1px; text-transform: uppercase;
    padding-top: 8px;
    border-top: 1px solid var(--hb-line, #eee7d4);
}
.hb-room-cta:hover { color: var(--hb-accent-deep, #7f6122); }
.hb-room-cta i { transition: transform .15s; }
.hb-room:hover .hb-room-cta i { transform: translateX(4px); }

/* ── SERVICES ────────────────────────────────────────────────────── */
.hb-services-grid {
    display: grid;
    /* One column per service, up to 4 a row (set by the view). */
    grid-template-columns: repeat(var(--hb-service-cols, 4), 1fr);
    gap: 28px;
    margin-top: 12px;
}
.hb-service {
    background: #fff; border: 1px solid var(--hb-line, #eee7d4);
    padding: 34px 26px; border-radius: 14px;
    text-align: center;
    transition: border-color .2s, transform .2s;
}
.hb-service:hover { border-color: var(--hb-accent, #c49a52); transform: translateY(-3px); }
.hb-service-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; border-radius: 50%;
    background: var(--hb-bg-tint, #f5ecd7); color: var(--hb-accent-dark, #a37f3d);
    margin-bottom: 18px;
    font-size: 26px;
}
.hb-service h4 {
    font-family: 'Playfair Display', serif;
    font-size: 19px; font-weight: 700;
    color: var(--hb-ink, #0f172a); margin: 0 0 10px;
}
.hb-service p {
    font-size: 13.5px; color: #64748b; line-height: 1.6;
    margin: 0;
}
/* Service with a picture: a large image across the top, with the icon
   badge sitting on its bottom edge. */
.hb-service.has-image { padding-top: 0; overflow: hidden; }
.hb-service-img {
    margin: 0 -26px; aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--hb-bg-tint, #f5ecd7);
}
.hb-service-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hb-service.has-image:hover .hb-service-img img { transform: scale(1.05); }
.hb-service.has-image .hb-service-icon {
    position: relative; margin-top: -31px;           /* half the badge over the picture */
    background: #fff; box-shadow: 0 0 0 4px #fff, 0 6px 16px -6px rgba(15, 23, 42, .35);
}

/* ── GALLERY ─────────────────────────────────────────────────────── */
/* One row only: up to 4 photos (set by the view); on smaller screens the
   photos that don't fit in the row are not shown. */
.hb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--hb-gallery-cols, 4), 1fr);
    gap: 14px;
}
.hb-gallery-item {
    aspect-ratio: 1;
    overflow: hidden; border-radius: 12px;
    position: relative;
}
.hb-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.hb-gallery-item:hover img { transform: scale(1.08); }
.hb-gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15,23,42,.35));
    opacity: 0; transition: opacity .2s;
}
.hb-gallery-item:hover::after { opacity: 1; }

/* ── CONTACT / LOCATION ──────────────────────────────────────────── */
.hb-contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: stretch;
}
.hb-map {
    aspect-ratio: 4/3;
    background: var(--hb-line, #eee7d4); border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.hb-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.hb-contact-facts { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.hb-contact-fact {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 18px; background: var(--hb-bg-soft, #faf6ef);
    border-radius: 10px; border: 1px solid var(--hb-line, #eee7d4);
}
.hb-contact-fact-icon {
    flex-shrink: 0; width: 42px; height: 42px;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--hb-accent-dark, #a37f3d); font-size: 16px;
    border: 1px solid var(--hb-line, #eee7d4);
}
.hb-contact-fact-label {
    font-size: 11px; font-weight: 700;
    color: var(--hb-accent-muted, #94875a); letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 4px;
}
.hb-contact-fact-value { font-size: 14.5px; color: var(--hb-ink-2, #1e293b); font-weight: 500; line-height: 1.5; }
.hb-contact-fact-value a { color: var(--hb-ink-2, #1e293b); }
.hb-contact-fact-value a:hover { color: var(--hb-accent-dark, #a37f3d); }

.hb-contact-form { display: flex; flex-direction: column; gap: 14px; }
.hb-contact-form input,
.hb-contact-form textarea {
    width: 100%; padding: 14px 16px;
    border: 1.5px solid var(--hb-line-2, #e5e0d3); border-radius: 10px;
    background: #fff; font-size: 14px; color: var(--hb-ink-2, #1e293b);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.hb-contact-form input:focus,
.hb-contact-form textarea:focus {
    outline: none; border-color: var(--hb-accent, #c49a52);
    box-shadow: 0 0 0 3px rgba(var(--hb-accent-rgb, 196,154,82),.15);
}
.hb-contact-form textarea { min-height: 120px; resize: vertical; }
.hb-contact-form button {
    height: 48px; padding: 0 26px;
    background: var(--hb-accent, #c49a52); color: #fff; border: none; border-radius: 999px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: background .15s;
    display: inline-flex; align-items: center; gap: 9px;
    align-self: flex-start;
}
.hb-contact-form button:hover { background: var(--hb-accent-dark, #a37f3d); }

/* ── REVIEWS ─────────────────────────────────────────────────────── */
.hb-reviews-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.hb-review {
    background: #fff; padding: 28px 26px;
    border-radius: 14px; border: 1px solid rgba(255,255,255,.08);
    position: relative;
}
.hb-section-navy .hb-review { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.hb-review-stars { color: var(--hb-accent-soft, #f0c268); font-size: 15px; margin-bottom: 10px; letter-spacing: 2px; }
.hb-review-text {
    font-size: 14.5px; line-height: 1.7;
    color: #cbd5e1; margin: 0 0 18px;
    font-style: italic;
}
.hb-review-author {
    font-size: 13px; font-weight: 600;
    color: #fff; letter-spacing: 0.5px;
}
.hb-review-author span { display: block; font-size: 11px; font-weight: 500; color: #94a3b8; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hb-search { grid-template-columns: repeat(3, 1fr); }
    .hb-search-btn { grid-column: 1 / -1; justify-content: center; }
    .hb-rooms-grid, .hb-services-grid { grid-template-columns: repeat(2, 1fr); }
    .hb-gallery-grid { grid-template-columns: repeat(var(--hb-gallery-cols-md, 3), 1fr); }
    .hb-gallery-item:nth-child(n+4) { display: none; }
    .hb-reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .hb-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hb-hero { min-height: auto; padding-bottom: 40px; }
    .hb-hero-inner { padding: 40px 20px 30px; }
    .hb-hero-title { font-size: clamp(30px, 8vw, 44px); }
    .hb-hero-sub   { font-size: 15px; }
    /* On phones the search widget no longer overlaps the hero — it sits
       cleanly below with breathing room, so users can tap without the
       hero background eating touch events. */
    .hb-search-wrap { margin-top: 20px; padding: 0 16px; }
    .hb-search { grid-template-columns: 1fr; padding: 18px; gap: 10px; border-radius: 12px; }
    .hb-search-btn { height: 48px; }
    .hb-section { padding: 60px 16px; }
    .hb-section-head { margin-bottom: 40px; }
    .hb-rooms-grid, .hb-services-grid, .hb-gallery-grid, .hb-reviews-grid { grid-template-columns: 1fr; gap: 20px; }
    .hb-gallery-grid { grid-template-columns: repeat(var(--hb-gallery-cols-sm, 2), 1fr); }
    .hb-gallery-item:nth-child(n+3) { display: none; }
    .hb-hero-ctas { flex-direction: column; width: 100%; }
    .hb-btn-primary, .hb-btn-ghost { justify-content: center; width: 100%; height: 48px; }

    /* Contact section */
    .hb-contact-form input,
    .hb-contact-form textarea { padding: 14px 14px; }
    .hb-contact-form button { width: 100%; justify-content: center; height: 50px; }
}

/* ── Promo popup (image from wwwroot/sites/<Folder>/popup/) ─────────── */
.hb-promo {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .6);
}
.hb-promo[hidden] { display: none; }
.hb-promo-box { position: relative; min-width: 0; max-width: min(760px, 100%); }
.hb-promo-box a { display: block; }
.hb-promo-box img {
    display: block; max-width: 100%; max-height: calc(100vh - 64px);
    width: auto; height: auto; margin: 0 auto;
    border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.hb-promo-close {
    position: absolute; top: -14px; right: -14px;
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: #fff; color: #111;
    font-size: 24px; line-height: 36px; text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3); cursor: pointer;
}
.hb-promo-close:hover, .hb-promo-close:focus-visible { background: #f1f1f1; outline: none; }
@media (max-width: 480px) {
    .hb-promo-close { top: 6px; right: 6px; }
}
