/* =========================================================
   StayNest Booking — Frontend Styles
   Clean, Airbnb-inspired aesthetic
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --sn-primary:    #C9A84C;
    --sn-primary-dk: #b8903e;
    --sn-gold:       #C9A84C;
    --sn-gold-light: #E8C87A;
    --sn-gold-pale:  #F9F3E6;
    --sn-dark:       #1A1612;
    --sn-charcoal:   #2D2820;
    --sn-text:       #3D3530;
    --sn-muted:      #8C7E72;
    --sn-border:     #E2D9CC;
    --sn-bg:         #F9F6F1;
    --sn-white:      #FFFFFF;
    --sn-cream:      #FDFAF5;
    --sn-radius:     4px;
    --sn-shadow:     0 2px 16px rgba(26,22,18,.08);
    --sn-shadow-lg:  0 12px 48px rgba(26,22,18,.14);
    --sn-font:       'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sn-serif:      'Cormorant Garamond', Georgia, serif;
}

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

/* ── Wrapper ─────────────────────────────────── */
.sn-property-wrap,
.sn-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    font-family: var(--sn-font);
    color: var(--sn-text);
}

/* ── Breadcrumb ──────────────────────────────── */
.sn-breadcrumb {
    font-size: 13px;
    color: var(--sn-muted);
    margin-bottom: 20px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.sn-breadcrumb a { color: var(--sn-text); text-decoration: underline; }
.sn-breadcrumb a:hover { color: var(--sn-primary); }

/* ── Property Header ─────────────────────────── */
.sn-property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.sn-property-title-wrap { flex: 1; min-width: 0; }
.sn-property-title {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--sn-dark);
    margin: 0 0 4px;
    font-family: var(--sn-font);
    letter-spacing: -.01em;
}
.sn-property-location {
    font-size: 14px;
    color: var(--sn-muted);
    margin: 0;
    font-weight: 400;
}

/* Share / Save buttons */
.sn-property-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding-top: 4px;
}
.sn-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    color: var(--sn-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: background .15s, transform .15s;
    white-space: nowrap;
    font-family: var(--sn-font);
}
.sn-action-btn:hover { background: var(--sn-bg); }
.sn-save-btn { transition: background .15s, transform .2s; }

/* ── Share Modal ─────────────────────────────── */
.sn-share-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9000;
}
.sn-share-overlay.open { display: block; }

.sn-share-modal {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--sn-white);
    border-radius: 20px 20px 0 0;
    padding: 0 0 32px;
    z-index: 9001;
    box-shadow: 0 -4px 32px rgba(0,0,0,.15);
    max-width: 560px;
    margin: 0 auto;
    animation: sn-slide-up .25s ease;
}
@media (min-width: 560px) {
    .sn-share-modal {
        top: 50%; left: 50%;
        right: auto; bottom: auto;
        transform: translate(-50%, -50%);
        border-radius: 16px;
        width: 480px;
        animation: sn-fade-in .2s ease;
    }
}
.sn-share-modal.open { display: block; }
@keyframes sn-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sn-fade-in  { from { opacity:0; transform:translate(-50%,-48%); } to { opacity:1; transform:translate(-50%,-50%); } }

.sn-share-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--sn-border);
    position: relative;
}
.sn-share-modal-header strong { font-size: 16px; font-weight: 700; }
.sn-share-close {
    position: absolute; left: 16px;
    background: none; border: none;
    width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer;
    font-size: 16px; display: flex;
    align-items: center; justify-content: center;
    transition: background .15s;
}
.sn-share-close:hover { background: var(--sn-bg); }

.sn-share-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--sn-border);
}
.sn-share-preview img {
    width: 64px; height: 48px;
    object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.sn-share-preview strong { display: block; font-size: 14px; font-weight: 600; }
.sn-share-preview span { font-size: 13px; color: var(--sn-muted); }

.sn-share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 24px;
}
.sn-share-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--sn-border);
    border-radius: 12px;
    background: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--sn-dark);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--sn-font);
    transition: background .15s, border-color .15s;
}
.sn-share-option:hover { background: var(--sn-bg); border-color: #b0b0b0; }
.sn-share-option-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--sn-bg);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.sn-copy-confirm {
    text-align: center;
    font-size: 13px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 16px;
    margin: 0 24px;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.sn-copy-confirm.show { opacity: 1; }

/* ── Gallery — Airbnb style ──────────────────── */
.sn-gallery {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}
.sn-gallery-airbnb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 4px;
    height: 484px;
}

/* Large left image spans both rows */
.sn-gallery-main {
    grid-row: 1 / 3;
    grid-column: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.sn-gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.sn-gallery-main:hover img { transform: scale(1.04); }

/* 2×2 right grid */
.sn-gallery-grid4 {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}
.sn-gallery-thumb {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.sn-gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.sn-gallery-thumb:hover img { transform: scale(1.05); }

/* Dark overlay on hover */
.sn-gallery-main::after,
.sn-gallery-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    transition: background .25s;
    pointer-events: none;
}
.sn-gallery-main:hover::after,
.sn-gallery-thumb:hover::after { background: rgba(0,0,0,.08); }

/* Show all photos button — bottom-right of last thumb */
.sn-show-all-photos {
    position: absolute;
    bottom: 14px; right: 14px;
    background: var(--sn-white);
    border: 1.5px solid var(--sn-dark);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, transform .15s;
    z-index: 2;
    white-space: nowrap;
    color: var(--sn-dark);
}
.sn-show-all-photos:hover {
    background: var(--sn-bg);
    transform: scale(1.02);
}

/* ── Lightbox ────────────────────────────────── */
.sn-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9998;
}
.sn-lightbox-overlay.active { display: block; }
.sn-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.sn-lightbox.active { display: flex; }
.sn-lightbox-inner { max-width: 90vw; max-height: 90vh; position: relative; }
#sn-lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 8px; display: block; }
.sn-lightbox-counter {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
}
.sn-lightbox-close,
.sn-lightbox-prev,
.sn-lightbox-next {
    position: fixed;
    background: var(--sn-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sn-shadow);
    transition: transform .2s;
    z-index: 10000;
}
.sn-lightbox-close { top: 20px; right: 20px; font-size: 16px; }
.sn-lightbox-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.sn-lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.sn-lightbox-prev:hover,
.sn-lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ── Layout: main + sidebar ──────────────────── */
.sn-property-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: start;
}
.sn-property-main { min-width: 0; }
.sn-booking-sidebar { position: sticky; top: 100px; }

/* ── Property Stats ──────────────────────────── */
.sn-property-stats { padding-bottom: 32px; }
.sn-property-stats h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.sn-stats-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sn-muted);
    font-size: 14px;
    flex-wrap: wrap;
}

.sn-divider { border: none; border-top: 1px solid var(--sn-border); margin: 32px 0; }

/* ── Highlights ──────────────────────────────── */
.sn-highlights { display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }
.sn-highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.sn-highlight svg { flex-shrink: 0; margin-top: 2px; color: var(--sn-dark); }
.sn-highlight strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.sn-highlight span { font-size: 13px; color: var(--sn-muted); }

/* ── Description ─────────────────────────────── */
.sn-property-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--sn-text);
}
.sn-property-description p { margin-bottom: 12px; }

/* ── Things to Know ──────────────────────────── */
.sn-ttn-section h3 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.sn-ttn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--sn-border);
    padding-top: 20px;
}
.sn-ttn-col {
    padding-right: 32px;
}
.sn-ttn-col:not(:first-child) {
    padding-left: 32px;
    padding-right: 32px;
    border-left: 1px solid var(--sn-border);
}
.sn-ttn-col:last-child { padding-right: 0; }
.sn-ttn-icon {
    margin-bottom: 12px;
    color: var(--sn-dark);
}
.sn-ttn-col strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--sn-dark);
    margin-bottom: 10px;
}
.sn-ttn-col p {
    font-size: 13px;
    color: var(--sn-muted);
    margin: 0 0 6px;
    line-height: 1.5;
}
@media (max-width: 700px) {
    .sn-ttn-grid { grid-template-columns: 1fr; gap: 24px; }
    .sn-ttn-col, .sn-ttn-col:not(:first-child) { padding: 0; border-left: none; border-top: 1px solid var(--sn-border); padding-top: 20px; }
    .sn-ttn-col:first-child { border-top: none; padding-top: 0; }
}

/* ── Where You'll Sleep ──────────────────────── */
.sn-rooms-section h3 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.sn-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.sn-room-card {
    border: 1px solid var(--sn-border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.sn-room-card:hover { box-shadow: var(--sn-shadow); }
.sn-room-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.sn-room-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.sn-room-card:hover .sn-room-card-img img { transform: scale(1.04); }
.sn-room-no-img {
    background: var(--sn-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sn-muted);
}
.sn-room-card-body { padding: 14px 16px; }
.sn-room-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--sn-dark);
    margin-bottom: 4px;
}
.sn-room-desc {
    font-size: 13px;
    color: var(--sn-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Amenities ───────────────────────────────── */
.sn-amenities h3 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.sn-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 24px;
    border: 1px solid var(--sn-border);
    border-radius: 12px;
    overflow: hidden;
}
.sn-amenity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sn-border);
    border-right: 1px solid var(--sn-border);
    transition: background .15s;
    background: var(--sn-white);
}
.sn-amenity-item:hover { background: var(--sn-bg); }
/* Remove right border on even items */
.sn-amenity-item:nth-child(even) { border-right: none; }
/* Remove bottom border on last two items */
.sn-amenity-item:nth-last-child(-n+2) { border-bottom: none; }
/* If odd number of items, last item spans full width */
.sn-amenity-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
}
.sn-amenity-icon-wrap {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sn-dark);
}
.sn-amenity-label {
    font-size: 14px;
    color: var(--sn-text);
    font-weight: 400;
    line-height: 1.3;
}

/* ── Availability ────────────────────────────── */
.sn-availability-section h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.sn-availability-note { font-size: 14px; color: var(--sn-muted); margin-bottom: 20px; }

/* ── Reviews ─────────────────────────────────── */
.sn-reviews-section { padding-bottom: 8px; }

.sn-reviews-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--sn-dark);
    font-family: var(--sn-font);
}
.sn-reviews-title svg { color: var(--sn-dark); flex-shrink: 0; }

/* Breakdown: bars + sub-categories side by side */
.sn-reviews-breakdown {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 32px;
    align-items: start;
}

/* Overall rating bar chart */
.sn-rating-bars { display: flex; flex-direction: column; gap: 6px; }
.sn-rating-bars-label {
    font-size: 13px; font-weight: 600; color: var(--sn-dark);
    margin-bottom: 6px;
}
.sn-bar-row {
    display: flex; align-items: center; gap: 10px;
}
.sn-bar-num { font-size: 12px; color: var(--sn-dark); width: 8px; text-align: right; flex-shrink: 0; }
.sn-bar-track {
    flex: 1; height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden;
}
.sn-bar-fill {
    height: 100%; background: var(--sn-dark); border-radius: 2px;
    transition: width .4s ease;
}

/* Sub-category scores grid */
.sn-sub-ratings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 32px;
}
.sn-sub-rating-item { display: flex; flex-direction: column; gap: 6px; }
.sn-sub-rating-top {
    display: flex; justify-content: space-between; align-items: baseline;
}
.sn-sub-label { font-size: 13px; font-weight: 600; color: var(--sn-dark); }
.sn-sub-score { font-size: 13px; font-weight: 600; color: var(--sn-dark); }
.sn-sub-bar-track {
    height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden;
}
.sn-sub-bar-fill {
    height: 100%; background: var(--sn-dark); border-radius: 2px;
    transition: width .4s ease;
}
.sn-sub-icon { margin-top: 4px; color: var(--sn-dark); }
.sn-sub-icon svg { width: 20px; height: 20px; }

/* Review cards */
.sn-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
    margin-bottom: 24px;
}
.sn-review-card {}
.sn-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.sn-reviewer-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px;
    flex-shrink: 0;
    background: #E31C5F;
}
.sn-reviewer-meta { display: flex; flex-direction: column; gap: 2px; }
.sn-reviewer-name { font-size: 15px; font-weight: 600; color: var(--sn-dark); display: block; }
.sn-reviewer-since { font-size: 12px; color: var(--sn-muted); }

.sn-review-meta-row {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--sn-muted);
    margin-bottom: 10px; flex-wrap: wrap;
}
.sn-review-stars-sm { color: var(--sn-dark); font-size: 11px; letter-spacing: 1px; }
.sn-review-dot { color: var(--sn-muted); }
.sn-review-date { color: var(--sn-muted); }
.sn-review-stay { color: var(--sn-muted); }

.sn-review-text {
    font-size: 14px; color: var(--sn-text);
    line-height: 1.7; margin: 0;
}

/* Show all reviews button */
.sn-show-all-reviews { margin-top: 8px; padding: 12px 24px; font-size: 14px; }
.sn-no-reviews-yet { font-size: 14px; color: var(--sn-muted); font-style: italic; padding: 8px 0; }

/* ── Map Section ─────────────────────────────── */
.sn-map-section { padding-bottom: 8px; }
.sn-map-section h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; color: var(--sn-dark); }
.sn-map-address { font-size: 14px; color: var(--sn-muted); margin-bottom: 16px; }
.sn-map-wrap {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--sn-border);
    margin-bottom: 14px;
    background: #e8e4de;
    position: relative;
}
.sn-map-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
    min-height: 400px;
}
.sn-map-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; color: var(--sn-muted);
    text-align: center; padding: 32px;
    background: #f5f5f0;
}
.sn-map-placeholder svg { opacity: .35; }
.sn-map-placeholder strong { font-size: 15px; color: var(--sn-dark); }
.sn-map-placeholder p { font-size: 13px; margin: 0; max-width: 300px; line-height: 1.5; }
.sn-map-directions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sn-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .2s;
}
.sn-map-directions:hover { color: var(--sn-primary); }
.sn-host-section h3 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.sn-host-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.sn-host-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sn-primary), #FF7C6E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}
.sn-host-name { font-size: 16px; font-weight: 600; display: block; margin-bottom: 4px; }
.sn-host-bio { font-size: 14px; color: var(--sn-muted); line-height: 1.5; }

/* ── Booking Widget ──────────────────────────── */

/* "Prices include all fees" badge above the card */
.sn-fees-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sn-white);
    border: 1px solid #DDDDDD;
    border-radius: 32px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sn-dark);
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* Main card */
.sn-booking-widget {
    background: var(--sn-white);
    border: 1px solid #DDDDDD;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 32px rgba(0,0,0,.12);
}

/* Price header: "$10 for 2 nights" */
.sn-booking-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 20px;
}
.sn-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--sn-dark);
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.sn-price-label {
    font-size: 16px;
    color: var(--sn-dark);
    font-weight: 400;
    transition: color .2s;
}
/* Loading spinner */
.sn-price-loader {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
}
.sn-spinner {
    color: #b0b0b0;
    animation: sn-spin .75s linear infinite;
}
@keyframes sn-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.sn-widget-rating {
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    color: var(--sn-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.sn-widget-rating::before {
    content: '★';
    color: var(--sn-dark);
    font-size: 12px;
}
.sn-widget-rating .sn-underline {
    text-decoration: underline;
    cursor: pointer;
    color: var(--sn-muted);
}

/* Unified border box wrapping dates + guests */
.sn-booking-fields {
    border: 1px solid #B0B0B0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
/* Highlight guests trigger when open */
.sn-guests-field.is-open {
    outline: 2px solid var(--sn-dark);
    outline-offset: -2px;
    background: #F7F7F7;
}

/* Date row inside the box */
.sn-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: none;
    border-bottom: 1px solid #B0B0B0;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}
.sn-date-field {
    padding: 11px 14px;
    background: var(--sn-white);
    transition: background .15s;
    cursor: pointer;
    position: relative;
}
.sn-date-field:last-child { border-left: 1px solid #B0B0B0; }
.sn-date-field:hover { background: #f7f7f7; }
.sn-date-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sn-dark);
    margin-bottom: 3px;
    font-family: var(--sn-font);
    cursor: pointer;
    pointer-events: none;
}
.sn-date-display {
    font-size: 14px;
    font-weight: 400;
    color: var(--sn-dark);
    font-family: var(--sn-font);
    pointer-events: none;
}
/* hide native date inputs */
.sn-date-field input[type="date"],
.sn-date-field input[type="hidden"] { display: none; }
.sn-date-divider { display: none; }

/* Guests trigger row */
.sn-guests-field {
    border: none;
    border-radius: 0;
    padding: 11px 14px 13px;
    margin-bottom: 0;
    background: var(--sn-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.sn-guests-field:hover { background: #F7F7F7; }
.sn-guests-left {}
.sn-guests-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sn-dark);
    margin-bottom: 3px;
    font-family: var(--sn-font);
    cursor: pointer;
}
.sn-guests-value {
    font-size: 14px;
    color: var(--sn-dark);
    font-weight: 400;
}
.sn-guests-stepper { display: none; }
.sn-guests-chevron {
    color: var(--sn-dark);
    flex-shrink: 0;
    transition: transform .22s ease;
}

/* Dropdown panel — expands inline inside .sn-booking-fields */
.sn-guests-dropdown {
    display: none;
    background: var(--sn-white);
    border-top: 1px solid #B0B0B0;
    padding: 8px 14px 4px;
    box-shadow: none;
    border-radius: 0;
}
.sn-guests-dropdown.open { display: block; }

/* Each guest type row — force horizontal layout */
.sn-guest-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #F0F0F0;
    gap: 16px;
    width: 100%;
}
.sn-guest-row:last-of-type { border-bottom: none; }

.sn-guest-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px;
    flex: 1 !important;
    min-width: 0;
}
.sn-guest-type {
    display: block !important;
    font-size: 15px;
    font-weight: 500;
    color: var(--sn-dark);
    line-height: 1.4;
}
.sn-guest-sub {
    display: block !important;
    font-size: 13px;
    color: var(--sn-muted);
    line-height: 1.3;
}
.sn-guest-link {
    text-decoration: underline;
    cursor: pointer;
    color: var(--sn-dark);
}

/* Counter — always inline, never wraps */
.sn-guest-counter {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}
.sn-qty-val {
    display: inline-block !important;
    font-size: 15px;
    font-weight: 400;
    color: var(--sn-dark);
    min-width: 20px;
    text-align: center;
    line-height: 1;
}
.sn-qty-val {
    font-size: 15px;
    font-weight: 400;
    color: var(--sn-dark);
    min-width: 18px;
    text-align: center;
}

.sn-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #717171;
    background: none;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #717171;
    transition: border-color .15s, color .15s, background .15s;
    padding-bottom: 1px;
}
.sn-qty-btn:hover:not(.sn-qty-disabled) {
    border-color: var(--sn-dark);
    color: var(--sn-dark);
    background: #F7F7F7;
}
.sn-qty-btn.sn-qty-disabled {
    border-color: #DDDDDD;
    color: #DDDDDD;
    cursor: default;
}

/* Note text + close row */
.sn-guests-note {
    font-size: 13px;
    color: var(--sn-muted);
    line-height: 1.5;
    padding: 14px 0 8px;
    border-top: 1px solid #F0F0F0;
    margin-top: 4px;
    display: block !important;
}
.sn-guests-close-row {
    display: flex !important;
    justify-content: flex-end;
    padding-top: 4px;
}
.sn-guests-close-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--sn-dark);
    cursor: pointer;
    text-decoration: underline;
    padding: 6px 0;
    font-family: var(--sn-font);
    transition: color .15s;
    display: inline-block !important;
}
.sn-guests-close-btn:hover { color: var(--sn-muted); }

/* ── High-specificity scoped overrides (beats most themes) ── */
.sn-booking-widget .sn-guests-dropdown.open { display: block !important; }
.sn-booking-widget .sn-guest-row { display: flex !important; flex-direction: row !important; align-items: center !important; }
.sn-booking-widget .sn-guest-counter { display: flex !important; flex-direction: row !important; align-items: center !important; }
.sn-booking-widget .sn-guest-info { display: flex !important; flex-direction: column !important; }
.sn-booking-widget .sn-qty-btn { display: flex !important; align-items: center !important; justify-content: center !important; }

/* Cancellation badge */
.sn-cancel-badge {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--sn-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 400;
}
.sn-cancel-badge svg { color: var(--sn-muted); flex-shrink: 0; }

/* Price breakdown */
.sn-price-breakdown {
    padding-top: 4px;
    margin-bottom: 16px;
}
.sn-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    padding: 7px 0;
    color: var(--sn-dark);
    font-family: var(--sn-font);
    font-weight: 400;
}
.sn-price-row span:first-child {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.sn-price-row span:last-child { font-weight: 400; }
.sn-price-total {
    border-top: 1px solid var(--sn-border);
    margin-top: 8px;
    padding-top: 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--sn-dark) !important;
}
.sn-price-total strong { font-size: 16px; font-weight: 700; color: var(--sn-dark); }
.sn-price-total span:first-child,
.sn-price-total strong:first-child { text-decoration: none !important; }

/* Reserve button */
.sn-reserve-btn { margin-bottom: 12px; }
.sn-booking-note {
    text-align: center;
    font-size: 14px;
    color: var(--sn-dark);
    font-weight: 400;
}

/* Secure badge */
.sn-booking-widget .sn-payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--sn-border);
    font-size: 12px;
    color: var(--sn-muted);
}
.sn-booking-widget .sn-payment-secure svg { color: var(--sn-muted); }

/* ── Buttons ─────────────────────────────────── */
.sn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: var(--sn-font);
    transition: filter .18s, transform .15s;
}
.sn-btn:active { transform: scale(.98); }

/* Primary = Airbnb pink pill */
.sn-btn-primary {
    background: linear-gradient(to right, #E61E4D, #E31C5F, #D70466);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}
.sn-btn-primary:hover { filter: brightness(.92); }

/* Reserve button specifically: full pill shape */
.sn-reserve-btn.sn-btn-primary {
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
}

.sn-btn-outline {
    background: none;
    border: 1.5px solid var(--sn-dark);
    color: var(--sn-dark);
    border-radius: 8px;
}
.sn-btn-outline:hover { background: #F7F7F7; }
.sn-btn-block { width: 100%; }
.sn-btn-sm { padding: 8px 14px; font-size: 13px; }

/* ── Modal ───────────────────────────────────── */
.sn-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 8888;
}
.sn-modal-overlay.active { display: block; }
.sn-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--sn-white);
    border-radius: 20px;
    padding: 40px;
    width: 560px;
    max-width: 95vw;
    max-height: 92vh;
    overflow-y: auto;
    z-index: 8889;
    box-shadow: var(--sn-shadow-lg);
}
.sn-modal.active { display: block; }
body.sn-modal-open { overflow: hidden; }

.sn-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--sn-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.sn-modal-close:hover { background: var(--sn-bg); }

.sn-modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.sn-modal-summary {
    background: var(--sn-bg);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.sn-modal-prop-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.sn-modal-dates,
.sn-modal-price-sum { font-size: 14px; color: var(--sn-muted); }
.sn-modal-price-sum { font-weight: 600; color: var(--sn-text); margin-top: 2px; }

/* Form */
.sn-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.sn-form-full { grid-column: 1 / -1; }
.sn-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--sn-text);
}
.sn-form-group input,
.sn-form-group textarea {
    width: 100%;
    border: 1.5px solid var(--sn-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--sn-font);
    color: var(--sn-text);
    background: var(--sn-white);
    transition: border-color .2s;
    outline: none;
}
.sn-form-group input:focus,
.sn-form-group textarea:focus { border-color: var(--sn-dark); }
.sn-form-error { color: var(--sn-primary); font-size: 13px; margin-bottom: 12px; min-height: 20px; }

/* Payment tabs */
.sn-payment-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.sn-pay-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1.5px solid var(--sn-border);
    border-radius: 10px;
    background: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.sn-pay-tab.active { border-color: var(--sn-dark); background: var(--sn-bg); font-weight: 700; }
.sn-stripe-input {
    border: 1.5px solid var(--sn-border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    background: var(--sn-white);
}
.sn-pay-btn { width: 100%; margin-top: 4px; }
.sn-back-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--sn-text);
    text-decoration: underline;
    padding: 0;
    margin-bottom: 16px;
    display: block;
}
.sn-payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--sn-muted);
    margin-top: 16px;
}

/* Confirmation */
.sn-confirmation { text-align: center; padding: 20px 0; }
.sn-confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.sn-confirmation h2 { font-size: 24px; margin-bottom: 8px; }
.sn-confirmation p { color: var(--sn-muted); font-size: 14px; margin-bottom: 20px; }
.sn-confirmation-details {
    background: var(--sn-bg);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    font-size: 14px;
    margin-bottom: 24px;
}
.sn-confirmation-details p { padding: 4px 0; }
.sn-confirmation-details strong { color: var(--sn-text); }

/* ── Listings Grid ───────────────────────────── */
.sn-listings-grid {
    display: grid;
    gap: 24px;
}
.sn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sn-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sn-cols-1 { grid-template-columns: 1fr; }

/* ── Card ────────────────────────────────────── */
.sn-card {
    border-radius: var(--sn-radius);
    overflow: hidden;
    background: var(--sn-white);
    transition: transform .25s, box-shadow .25s;
}
.sn-card:hover { transform: translateY(-4px); box-shadow: var(--sn-shadow-lg); }
.sn-card-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    text-decoration: none;
}
.sn-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.sn-card:hover .sn-card-img-wrap img { transform: scale(1.05); }
.sn-card-no-img {
    width: 100%;
    height: 100%;
    background: var(--sn-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sn-muted);
    font-size: 13px;
}
.sn-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--sn-white);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
}
.sn-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.9);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
    transition: color .2s, transform .2s;
    padding: 4px;
}
.sn-wishlist-btn:hover { color: var(--sn-primary); transform: scale(1.15); }
.sn-card-body { padding: 14px 0 4px; }
.sn-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.sn-card-title { font-size: 15px; font-weight: 600; }
.sn-card-title a { color: var(--sn-text); text-decoration: none; }
.sn-card-title a:hover { text-decoration: underline; }
.sn-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    color: var(--sn-text);
}
.sn-card-rating svg { color: var(--sn-primary); }
.sn-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--sn-muted);
    margin-bottom: 4px;
}
.sn-card-location svg { flex-shrink: 0; }
.sn-card-meta { font-size: 13px; color: var(--sn-muted); margin-bottom: 10px; }
.sn-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sn-card-price { font-size: 14px; color: var(--sn-muted); }
.sn-card-price strong { color: var(--sn-text); font-size: 16px; }

/* ── Search Bar ──────────────────────────────── */
.sn-search-bar { margin-bottom: 24px; }
.sn-search-form {
    display: flex;
    align-items: flex-end;
    gap: 0;
    background: var(--sn-white);
    border-radius: 40px;
    box-shadow: var(--sn-shadow-lg);
    overflow: hidden;
    border: 1.5px solid var(--sn-border);
}
.sn-search-field {
    flex: 1;
    padding: 12px 16px;
    border-right: 1px solid var(--sn-border);
}
.sn-search-field:last-of-type { border-right: none; }
.sn-search-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 4px;
}
.sn-search-field input,
.sn-search-field select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--sn-font);
    background: transparent;
    color: var(--sn-text);
}
.sn-search-form .sn-btn-primary {
    border-radius: 0 40px 40px 0;
    padding: 16px 24px;
    flex-shrink: 0;
}

/* ── Archive ─────────────────────────────────── */
.sn-archive-header { text-align: center; margin-bottom: 40px; }
.sn-archive-header h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.sn-archive-header p { font-size: 16px; color: var(--sn-muted); }
.sn-filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.sn-pill {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1.5px solid var(--sn-border);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--sn-text);
    transition: border-color .2s, background .2s;
    background: var(--sn-white);
}
.sn-pill:hover,
.sn-pill.active {
    border-color: var(--sn-dark);
    background: var(--sn-dark);
    color: var(--sn-white);
}
.sn-results-count { font-size: 14px; color: var(--sn-muted); margin-bottom: 20px; }

/* ── Pagination ──────────────────────────────── */
.sn-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.sn-pagination .page-numbers {
    padding: 10px 16px;
    border: 1.5px solid var(--sn-border);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--sn-text);
    transition: border-color .2s, background .2s;
}
.sn-pagination .page-numbers.current,
.sn-pagination .page-numbers:hover {
    border-color: var(--sn-dark);
    background: var(--sn-dark);
    color: #fff;
}

.sn-no-results { grid-column: 1/-1; color: var(--sn-muted); font-size: 15px; padding: 40px 0; }

.sn-notice { padding: 14px 18px; border-radius: 10px; font-size: 14px; }
.sn-notice-warning { background: #fff8e1; border: 1.5px solid #ffcc02; color: #7a5f00; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
    .sn-property-content { grid-template-columns: 1fr; gap: 40px; }
    .sn-booking-sidebar { position: static; }
    .sn-gallery-grid { grid-template-rows: 200px 200px; }
    .sn-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .sn-reviews-grid { grid-template-columns: 1fr; }
    .sn-reviews-breakdown { grid-template-columns: 1fr; gap: 24px; }
    .sn-sub-ratings { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .sn-property-wrap, .sn-archive-wrap { padding: 16px 16px 60px; }
    .sn-property-header { flex-direction: column; }
    /* Mobile gallery: just show main image */
    .sn-gallery-airbnb { grid-template-columns: 1fr; grid-template-rows: 280px; height: 280px; }
    .sn-gallery-grid4 { display: none; }
    .sn-gallery-main { grid-column: 1; grid-row: 1; }
    .sn-cols-3, .sn-cols-2 { grid-template-columns: 1fr; }
    .sn-search-form { flex-direction: column; border-radius: 16px; }
    .sn-search-field { border-right: none; border-bottom: 1px solid var(--sn-border); }
    .sn-search-form .sn-btn-primary { border-radius: 0 0 16px 16px; }
    .sn-amenities-grid { grid-template-columns: 1fr; }
    .sn-form-grid { grid-template-columns: 1fr; }
    .sn-modal { padding: 28px 20px; }
    .sn-date-row { grid-template-columns: 1fr; }
    .sn-date-divider { border-left: none; border-top: 1.5px solid var(--sn-border); }
    .sn-property-title { font-size: 20px; }
    .sn-reviews-breakdown { grid-template-columns: 1fr; }
    .sn-sub-ratings { grid-template-columns: repeat(2,1fr); }
}
