/* ==========================================================================
   Signature Stays — carousel, tabs and the property slide-over.
   Mobile-first. Scoped under .sig-* so nothing here can reach the rest of
   the site. Uses --sig-accent, set inline per page from the segment config.
   ========================================================================== */

.sig-stays {
    --sig-ink: #1a1a1a;
    --sig-muted: #6b6b6b;
    --sig-line: #e8e5df;
    --sig-paper: #fbfaf8;
    --sig-radius: 14px;
    --sig-card-w: 84vw;

    padding: 56px 0 64px;
    background: var(--sig-paper);
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--sig-ink);
}

.sig-stays__inner { max-width: 1240px; margin: 0 auto; padding: 0 18px; }

/* ── Heading ───────────────────────────────────────────────────────────── */
.sig-stays__head { text-align: center; max-width: 660px; margin: 0 auto 28px; }

.sig-stays__eyebrow {
    font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--sig-accent); margin: 0 0 10px; font-weight: 600;
}

.sig-stays__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(26px, 5vw, 40px); line-height: 1.15;
    margin: 0 0 12px; font-weight: 700; color: var(--sig-ink);
}

.sig-stays__sub { font-size: 15px; line-height: 1.65; color: var(--sig-muted); margin: 0; }

.sig-stays__foot {
    margin: 26px auto 0; max-width: 640px; text-align: center;
    font-size: 13.5px; line-height: 1.6; color: var(--sig-muted);
}

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.sig-tabs {
    display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden;
    padding: 4px 2px 12px; margin-bottom: 18px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.sig-tabs::-webkit-scrollbar { display: none; }

.sig-tab {
    flex: 0 0 auto; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--sig-line); background: #fff;
    font-size: 13.5px; font-weight: 500; color: var(--sig-muted);
    cursor: pointer; white-space: nowrap;
    transition: border-color .18s, color .18s, background .18s;
}
.sig-tab:hover { border-color: var(--sig-accent); color: var(--sig-ink); }

.sig-tab.is-active {
    background: var(--sig-ink); border-color: var(--sig-ink); color: #fff;
}

.sig-tab__count {
    font-size: 11px; font-variant-numeric: tabular-nums;
    opacity: .55; font-weight: 600;
}

.sig-tab:focus-visible,
.sig-nav:focus-visible,
.sig-card__link:focus-visible,
.sig-btn:focus-visible,
.sig-drawer__close:focus-visible,
.sig-gal__item:focus-visible {
    outline: 2px solid var(--sig-accent); outline-offset: 3px; border-radius: 8px;
}

/* ── Carousel ──────────────────────────────────────────────────────────── */
.sig-carousel { position: relative; }

.sig-track {
    display: flex; gap: 14px; list-style: none; margin: 0;
    padding: 4px 2px 18px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.sig-track::-webkit-scrollbar { display: none; }

.sig-card-wrap { flex: 0 0 var(--sig-card-w); scroll-snap-align: start; }

.sig-card {
    height: 100%; background: #fff; border: 1px solid var(--sig-line);
    border-radius: var(--sig-radius); overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.sig-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.09); border-color: #dcd6c9; }

.sig-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }

.sig-card__media { position: relative; aspect-ratio: 3 / 2; background: #ece8e1; overflow: hidden; }
.sig-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder for images not yet fetched. */
.sig-card__plate {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: 'Playfair Display', Georgia, serif; font-size: 46px; font-weight: 700;
    color: rgba(255,255,255,.85);
    background: linear-gradient(135deg, #6f6553 0%, #2f2b25 100%);
}

.sig-card__type {
    position: absolute; top: 10px; left: 10px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.94); color: var(--sig-ink);
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.sig-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }

.sig-card__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px; line-height: 1.3; margin: 0 0 4px; font-weight: 600;
}

.sig-card__area { font-size: 12.5px; color: var(--sig-muted); margin: 0 0 10px; }

.sig-card__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; }
.sig-card__tags li {
    font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
    color: var(--sig-accent); border: 1px solid currentColor; border-radius: 4px;
    padding: 3px 7px; opacity: .9;
}

.sig-card__teaser { font-size: 13.5px; line-height: 1.6; color: #4a4a4a; margin: 0 0 14px; }

.sig-card__foot {
    margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding-top: 12px; border-top: 1px solid var(--sig-line);
}
.sig-card__price { font-size: 14px; font-weight: 700; }
.sig-card__price em { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--sig-muted); text-transform: uppercase; letter-spacing: .08em; }
.sig-card__cta { font-size: 12.5px; font-weight: 600; color: var(--sig-accent); }

/* ── Arrows (desktop only; touch users swipe) ─────────────────────────── */
.sig-nav {
    position: absolute; top: 38%; z-index: 3;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--sig-line); background: #fff; color: var(--sig-ink);
    display: none; place-items: center; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.10); transition: opacity .2s, transform .2s;
}
.sig-nav svg { width: 20px; height: 20px; }
.sig-nav--prev { left: -8px; }
.sig-nav--next { right: -8px; }
.sig-nav:hover { transform: scale(1.06); }
.sig-nav[disabled] { opacity: .3; cursor: default; transform: none; }

/* ── Slide-over ───────────────────────────────────────────────────────── */
.sig-panelwrap { position: fixed; inset: 0; z-index: 1200; }
.sig-panelwrap[hidden] { display: none; }

.sig-panelwrap__backdrop {
    position: absolute; inset: 0; background: rgba(18,16,14,.62);
    opacity: 0; transition: opacity .28s ease;
    backdrop-filter: blur(2px);
}
.sig-panelwrap.is-open .sig-panelwrap__backdrop { opacity: 1; }

.sig-drawer {
    position: absolute; inset: auto 0 0 0; height: 94vh;
    background: #fff; border-radius: 18px 18px 0 0;
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(100%); transition: transform .32s cubic-bezier(.22,.8,.28,1);
    box-shadow: 0 -10px 50px rgba(0,0,0,.28);
}
.sig-panelwrap.is-open .sig-drawer { transform: translateY(0); }

.sig-drawer__close {
    position: absolute; top: 12px; right: 12px; z-index: 5;
    width: 38px; height: 38px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.94); color: #1a1a1a;
    display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.sig-drawer__close svg { width: 19px; height: 19px; }

.sig-drawer__scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

.sig-drawer__cta {
    flex: 0 0 auto; display: flex; gap: 8px; padding: 12px 16px;
    border-top: 1px solid var(--sig-line); background: #fff;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

/* ── Drawer content ───────────────────────────────────────────────────── */
.sig-hero { position: relative; aspect-ratio: 16 / 10; background: #ece8e1; }
.sig-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sig-hero__plate {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: 'Playfair Display', Georgia, serif; font-size: 64px; color: rgba(255,255,255,.85);
    background: linear-gradient(135deg, #6f6553 0%, #2f2b25 100%);
}

.sig-body { padding: 20px 18px 28px; }

.sig-body__eyebrow {
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--sig-accent, #C9A84C); font-weight: 700; margin: 0 0 6px;
}
.sig-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(22px, 5.4vw, 30px); line-height: 1.2; margin: 0 0 6px; font-weight: 700;
}
.sig-body__area { font-size: 13.5px; color: #6b6b6b; margin: 0 0 14px; }

.sig-tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.sig-tagrow li {
    font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700;
    padding: 4px 9px; border-radius: 5px; background: #f3efe6; color: #6a5c39;
}

.sig-prose { font-size: 15px; line-height: 1.75; color: #333; margin: 0 0 22px; }

.sig-h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px; margin: 0 0 10px; font-weight: 600;
}

.sig-highlights { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.sig-highlights li {
    position: relative; padding-left: 22px; font-size: 14px; line-height: 1.55; color: #3a3a3a;
}
.sig-highlights li::before {
    content: ''; position: absolute; left: 4px; top: 8px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--sig-accent, #C9A84C);
}

/* Gallery */
.sig-galgroup { margin: 0 0 22px; }
.sig-galgroup__label {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: #8a8a8a; font-weight: 700; margin: 0 0 9px;
}
.sig-gal {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
    scroll-snap-type: x proximity; scrollbar-width: none;
}
.sig-gal::-webkit-scrollbar { display: none; }
.sig-gal__item {
    flex: 0 0 68%; scroll-snap-align: start; border: 0; padding: 0; margin: 0;
    background: #ece8e1; border-radius: 10px; overflow: hidden; cursor: zoom-in;
    aspect-ratio: 3 / 2; position: relative;
}
.sig-gal__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sig-gal__cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 10px 8px;
    font-size: 11.5px; line-height: 1.4; color: #fff; text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}
.sig-gal__plate {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: linear-gradient(135deg, #6f6553 0%, #2f2b25 100%);
    color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}

.sig-imgnote {
    font-size: 11.5px; line-height: 1.55; color: #8a8a8a;
    background: #f6f4ef; border-left: 3px solid var(--sig-line); padding: 9px 12px;
    border-radius: 0 6px 6px 0; margin: 0 0 24px;
}

/* Room types */
.sig-rooms { display: grid; gap: 10px; margin: 0 0 24px; }
.sig-room {
    border: 1px solid var(--sig-line); border-radius: 10px; padding: 13px 15px; background: #fdfcfa;
}
.sig-room h4 { margin: 0 0 5px; font-size: 14.5px; font-weight: 700; }
.sig-room p { margin: 0; font-size: 13px; line-height: 1.6; color: #5c5c5c; }

/* Gate + form */
.sig-gate {
    border: 1px solid #e4dcc6; border-radius: 14px; overflow: hidden;
    background: linear-gradient(180deg, #fffdf7 0%, #fbf7ea 100%); margin: 4px 0 8px;
}
.sig-gate__head { padding: 18px 16px 0; }
.sig-gate__head h3 {
    font-family: 'Playfair Display', Georgia, serif; font-size: 19px; margin: 0 0 8px; font-weight: 700;
}
.sig-gate__promise { font-size: 13.5px; line-height: 1.65; color: #5a5344; margin: 0 0 14px; }

.sig-gate__list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 7px; }
.sig-gate__list li {
    position: relative; padding-left: 24px; font-size: 13.5px; color: #4a4436; line-height: 1.5;
}
.sig-gate__list li::before {
    content: '✓'; position: absolute; left: 3px; top: -1px;
    color: var(--sig-accent, #C9A84C); font-weight: 700;
}

.sig-form { padding: 0 16px 18px; display: grid; gap: 10px; }
.sig-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sig-form label { display: block; font-size: 11.5px; font-weight: 600; color: #6b6b6b; margin-bottom: 4px; letter-spacing: .03em; }
.sig-form input, .sig-form select {
    width: 100%; padding: 11px 12px; border: 1px solid #ddd6c6; border-radius: 9px;
    font-size: 15px; font-family: inherit; background: #fff; color: #1a1a1a;
}
.sig-form input:focus, .sig-form select:focus { outline: 2px solid var(--sig-accent, #C9A84C); outline-offset: 1px; border-color: transparent; }
.sig-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sig-form__err { font-size: 12.5px; color: #b3261e; margin: 0; }
.sig-form__fine { font-size: 11.5px; color: #8a8a8a; margin: 2px 0 0; line-height: 1.5; }

.sig-unlocked {
    border: 1px solid #d8e8d4; background: #f4faf2; border-radius: 14px; padding: 16px; margin: 4px 0 8px;
}
.sig-unlocked h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; margin: 0 0 8px; }
.sig-unlocked__band { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.sig-unlocked p { font-size: 13.5px; line-height: 1.65; color: #40483d; margin: 0 0 8px; }

.sig-success {
    display: flex; gap: 10px; align-items: flex-start;
    background: #f4faf2; border: 1px solid #d8e8d4; border-radius: 10px;
    padding: 12px 14px; font-size: 13.5px; line-height: 1.6; color: #2f5d2a; margin: 0 0 14px;
}

/* Buttons */
.sig-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 13px 18px; border-radius: 10px; border: 1px solid transparent;
    font-size: 14.5px; font-weight: 700; font-family: inherit; cursor: pointer;
    text-decoration: none; transition: filter .18s, background .18s;
}
.sig-btn--primary { flex: 1; background: var(--sig-accent, #C9A84C); color: #1a1a1a; }
.sig-btn--primary:hover { filter: brightness(1.06); }
.sig-btn--primary[disabled] { opacity: .6; cursor: progress; }
.sig-btn--ghost { background: #fff; border-color: var(--sig-line); color: #1a1a1a; }
.sig-btn--wa { background: #25D366; color: #fff; flex: 0 0 auto; }
.sig-btn--call { background: #1a1a1a; color: #fff; flex: 0 0 auto; }
.sig-btn--block { width: 100%; }

/* Skeleton */
.sig-skel { padding: 0 0 24px; }
.sig-skel__hero { aspect-ratio: 16 / 10; background: #eeeae3; }
.sig-skel__line { height: 14px; margin: 14px 18px; border-radius: 6px; background: #eeeae3; }
.sig-skel__line--lg { height: 26px; width: 62%; }
.sig-skel__line--sm { width: 40%; }
.sig-skel__hero, .sig-skel__line { animation: sigPulse 1.4s ease-in-out infinite; }
@keyframes sigPulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }

.sig-drawer__error { padding: 40px 20px; text-align: center; }
.sig-drawer__error p { font-size: 15px; color: #6b6b6b; margin: 0 0 14px; }

/* Lightbox */
.sig-lightbox {
    position: fixed; inset: 0; z-index: 1400; background: rgba(10,9,8,.95);
    display: grid; place-items: center; padding: 20px;
}
.sig-lightbox[hidden] { display: none; }
.sig-lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.sig-lightbox__cap { color: #ddd; font-size: 12.5px; text-align: center; margin-top: 12px; max-width: 640px; line-height: 1.5; }
.sig-lightbox__cap a { color: #bbb; }
.sig-lightbox__close {
    position: absolute; top: 16px; right: 16px; width: 42px; height: 42px;
    border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff;
    font-size: 22px; cursor: pointer; line-height: 1;
}

/* ── Larger screens ───────────────────────────────────────────────────── */
@media (min-width: 640px) {
    .sig-stays { --sig-card-w: 46%; }
    .sig-gal__item { flex-basis: 44%; }
    .sig-drawer {
        inset: 0 0 0 auto; width: min(560px, 100%); height: 100%;
        border-radius: 0; transform: translateX(100%);
    }
    .sig-panelwrap.is-open .sig-drawer { transform: translateX(0); }
    .sig-body { padding: 26px 30px 34px; }
    .sig-drawer__cta { padding: 14px 30px; padding-bottom: 14px; }
    .sig-gate__head, .sig-form { padding-left: 20px; padding-right: 20px; }
}

@media (min-width: 1024px) {
    .sig-stays { --sig-card-w: 30.4%; padding: 76px 0 84px; }
    .sig-nav { display: grid; }
    .sig-carousel { padding: 0 4px; }
    .sig-gal__item { flex-basis: 32%; }
    .sig-drawer { width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
    .sig-track { scroll-behavior: auto; }
    .sig-drawer, .sig-panelwrap__backdrop { transition: none; }
    .sig-card { transition: none; }
    .sig-skel__hero, .sig-skel__line { animation: none; }
}
