/**
 * Casanita Property Page Styles
 *
 * Scoped under .cn-property-page to avoid conflicts with CozyStay theme CSS.
 * Converted from prototype-property-page.html.
 */

/* Hero Gallery */
.cn-property-page .gallery { display: grid; grid-template-columns: 1fr 280px; gap: 4px; max-height: 570px; overflow: hidden; margin-bottom: 0; border-radius: 40px; }
.cn-property-page .gallery-main { position: relative; height: 570px; overflow: hidden; border-radius: 40px 0 0 40px; }
.cn-property-page .gallery-main img { width: 100%; height: 100%; object-fit: cover; display: none; border-radius: 0; }
.cn-property-page .gallery-main img.active { display: block; }
.cn-property-page .gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.7); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.1); transition: background 0.2s, box-shadow 0.2s; }
.cn-property-page .gallery-arrow:hover { background: rgba(255,255,255,0.95); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.cn-property-page .gallery-arrow svg { width: 18px; height: 18px; stroke: #374151; stroke-width: 2; fill: none; }
.cn-property-page .gallery-arrow.prev { left: 12px; }
.cn-property-page .gallery-arrow.next { right: 12px; }
.cn-property-page .gallery-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.cn-property-page .gallery-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.cn-property-page .gallery-dots span.active { background: #fff; }
.cn-property-page .gallery-thumbs { display: flex; flex-direction: column; gap: 4px; }
.cn-property-page .gallery-thumbs img { width: 280px; height: calc(190px - 2px); object-fit: cover; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; border-radius: 0; }
.cn-property-page .gallery-thumbs img:first-child { border-radius: 0 40px 0 0; }
.cn-property-page .gallery-thumbs img:last-child { border-radius: 0 0 40px 0; }
.cn-property-page .gallery-thumbs img:hover,
.cn-property-page .gallery-thumbs img.active { opacity: 1; }

/* Layout */
.cn-property-page .cn-container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.cn-property-page .cn-content { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }

/* Left Column */
.cn-property-page .cn-breadcrumb { font-size: 14px; color: #6b7280; margin-bottom: 12px; }
.cn-property-page .cn-breadcrumb a { color: #000; }
.cn-property-page .cn-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cn-property-page .cn-stars { font-size: 20px; display: flex; align-items: center; gap: 2px; }
.cn-property-page .cn-review-count { font-size: 14px; color: #6b7280; }
.cn-property-page h1.cn-title { font-family: 'Marcellus', serif; font-size: 30px; font-weight: 400; color: #000; margin-bottom: 20px; line-height: 1.2; }
.cn-property-page h2.cn-heading { font-family: 'Marcellus', serif; font-size: 20px; font-weight: 400; color: #000; margin-bottom: 12px; }
.cn-property-page .cn-summary { font-family: 'Marcellus', serif; font-size: 15px; line-height: 1.66; color: #1a1b1a; margin-bottom: 24px; }
.cn-property-page .cn-summary p { margin: 0 0 8px; }
.cn-property-page .cn-summary p:last-child { margin-bottom: 0; }
.cn-property-page .cn-desc-list { list-style: none; padding: 0; margin: 0 0 12px; }
.cn-property-page .cn-desc-list li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.cn-property-page .cn-desc-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #0775B6; }
.cn-property-page .cn-section-body-inner .cn-desc-list { margin-bottom: 8px; }
.cn-property-page .cn-section-body-inner p { margin: 0 0 8px; }

/* Collapsible Sections */
.cn-property-page .cn-section { border-top: 1px solid #e5e7eb; padding: 14px 0; }
.cn-property-page .cn-section-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.cn-property-page .cn-section-header h3 { font-family: 'Marcellus', serif; font-size: 16px; font-weight: 700; color: #242428; }
.cn-property-page .cn-section-toggle { color: #9ca3af; transition: transform 0.2s; display: flex; align-items: center; }
.cn-property-page .cn-section-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.cn-property-page .cn-section.open .cn-section-toggle { transform: rotate(180deg); }
.cn-property-page .cn-section-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.cn-property-page .cn-section.open .cn-section-body { max-height: 2000px; }
.cn-property-page .cn-section-body-inner { padding-top: 10px; font-size: 14px; line-height: 20px; color: #1f2937; }

/* Check-in/out */
.cn-property-page .cn-checkin-info { display: flex; gap: 32px; padding: 20px 0; border-top: 1px solid #e5e7eb; }
.cn-property-page .cn-checkin-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #1f2937; }
.cn-property-page .cn-checkin-item svg { width: 20px; height: 20px; color: #6b7280; }

/* Property Features */
.cn-property-page .cn-features-section { padding: 20px 0; border-top: 1px solid #e5e7eb; }
.cn-property-page .cn-features-section h3 { font-family: 'Marcellus', serif; font-size: 18px; font-weight: 600; color: #242428; margin-bottom: 16px; }
.cn-property-page .cn-features { display: flex; gap: 32px; flex-wrap: wrap; }
.cn-property-page .cn-feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 14px; color: #242428; }
.cn-property-page .cn-feature-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.cn-property-page .cn-feature-icon svg { width: 40px; height: 40px; }
.cn-property-page .cn-feature-label { font-weight: 700; font-size: 14px; }
.cn-property-page .cn-feature-text { font-weight: 400; font-size: 14px; }

/* Amenities */
.cn-property-page .cn-amenities-section { padding: 20px 0; border-top: 1px solid #e5e7eb; }
.cn-property-page .cn-amenities-section h2 { font-family: 'Marcellus', serif; font-size: 18px; font-weight: 600; color: #242428; }
.cn-property-page .cn-amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.cn-property-page .cn-amenity { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0; gap: 6px; font-size: 14px; color: #242428; }
.cn-property-page .cn-amenity svg { width: 32px; height: 32px; color: #6b7280; flex-shrink: 0; }
.cn-property-page .cn-amenity.hidden { display: none; }
.cn-property-page .cn-show-all-btn { margin-top: 16px; background: none; border: none; padding: 0; color: #0775B6; font-size: 14px; font-weight: 500; cursor: pointer; }
.cn-property-page .cn-show-all-btn:hover { text-decoration: underline; }

/* Map */
.cn-property-page .cn-map-section { padding: 20px 0; border-top: 1px solid #e5e7eb; }
.cn-property-page .cn-map-section h2 { font-family: 'Marcellus', serif; font-size: 18px; font-weight: 600; color: #242428; }
.cn-property-page .cn-map-container { width: 100%; height: 400px; border-radius: 12px; overflow: hidden; margin-top: 12px; border: none; position: relative; }
.cn-property-page .cn-map-container iframe { width: 100%; height: 100%; border: 0; }
#cn-leaflet-map { width: 100%; height: 100%; }
.cn-property-page .cn-map-container .leaflet-control-attribution { font-size: 9px; background: rgba(255,255,255,0.4) !important; padding: 1px 5px !important; color: #c8ccd0 !important; }
.cn-property-page .cn-map-container .leaflet-control-attribution a { color: #c8ccd0 !important; text-decoration: none !important; }
.cn-property-page .cn-map-container .leaflet-control-zoom a { width: 32px !important; height: 32px !important; line-height: 32px !important; font-size: 16px !important; border-radius: 8px !important; background: #fff !important; color: #374151 !important; border: 1px solid #e5e7eb !important; box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important; }
.cn-property-page .cn-map-container .leaflet-control-zoom { border: none !important; }
.cn-property-page .cn-map-container .leaflet-control-zoom a + a { margin-top: 4px !important; }
.cn-map-label { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; font-weight: 600; color: #0a4d7a; background: rgba(7, 117, 182, 0.2); border: 1px solid rgba(7, 117, 182, 0.3); box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-radius: 6px; padding: 4px 10px; white-space: nowrap; }
.cn-map-label::before { border-top-color: rgba(7, 117, 182, 0.2); }

/* Sidebar */
.cn-property-page .cn-sidebar { position: sticky; top: 80px; background: #f9fafb; border: 1px solid #e8eaed; border-radius: 16px; padding: 24px; box-shadow: none; }
.cn-property-page .cn-sidebar h3 { font-family: 'Marcellus', serif; font-size: 20px; font-weight: 400; color: #000; margin-bottom: 16px; }

/* Booking Widget — Search State */
.cn-property-page .cn-date-range-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 1px solid #e8eaed; border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; height: 40px; color: #9ca3af; transition: border-color 0.2s; }
.cn-property-page .cn-date-range-btn:hover { border-color: #0775B6; }
.cn-property-page .cn-date-range-btn.has-dates { color: #242428; }
.cn-property-page .cn-date-range-btn svg { flex-shrink: 0; }
.cn-property-page .cn-date-range-btn .dr-text { flex: 1; text-align: left; }
.cn-property-page .cn-guest-input-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid #e8eaed; border-radius: 6px; height: 40px; margin-top: 12px; background: #fff; padding: 0 12px; }
.cn-property-page .cn-guest-input-wrap svg { flex-shrink: 0; }
.cn-property-page .cn-guest-input { flex: 1; padding: 0; border: none; font-size: 14px; background: transparent; outline: none; height: 100%; cursor: pointer; }
.cn-property-page select.cn-guest-input { -webkit-appearance: none; appearance: none; }
.cn-property-page .cn-search-btn { width: 100%; height: 46px; border: none; border-radius: 999px; font-family: 'Marcellus', serif; font-size: 14px; font-weight: 400; cursor: default; margin-top: 12px; transition: background 0.2s, opacity 0.2s; }
.cn-property-page .cn-search-btn.disabled { background: #999; color: #fff; pointer-events: none; }
.cn-property-page .cn-search-btn.enabled { background: #0775B6; color: #fff; cursor: pointer; }
.cn-property-page .cn-search-btn.enabled:hover { background: #065d94; }

/* Calendar Overlay */
.cn-property-page .cn-cal-overlay { display: none; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 300; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 24px; width: 620px; }
.cn-property-page .cn-cal-overlay.open { display: block; }
.cn-property-page .cn-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cn-property-page .cn-cal-header button { background: none; border: 1px solid #d1d5db; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.cn-property-page .cn-cal-header button:hover { background: #f3f4f6; }
.cn-property-page .cn-cal-months { display: flex; gap: 24px; }
.cn-property-page .cn-cal-month { flex: 1; }
.cn-property-page .cn-cal-month-title { text-align: center; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.cn-property-page .cn-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cn-property-page .cn-cal-grid .cal-dow { font-size: 11px; color: #9ca3af; font-weight: 500; padding: 4px 0; }
.cn-property-page .cn-cal-grid .cal-day { padding: 8px 0; font-size: 14px; border-radius: 50%; cursor: pointer; position: relative; transition: background 0.15s, color 0.15s; }
.cn-property-page .cn-cal-grid .cal-day:hover:not(.disabled):not(.empty) { background: #e0edff; }
.cn-property-page .cn-cal-grid .cal-day.disabled { color: #d1d5db; cursor: default; pointer-events: none; }
.cn-property-page .cn-cal-grid .cal-day.checkout-day { color: #0775B6; cursor: pointer; pointer-events: auto; background: repeating-linear-gradient(-45deg, transparent, transparent 2px, #f0f7ff 2px, #f0f7ff 4px); }
.cn-property-page .cn-cal-grid .cal-day.checkout-day:hover { background: #e0edff; }
.cn-property-page .cn-cal-grid .cal-day.empty { cursor: default; }
.cn-property-page .cn-cal-grid .cal-day.today { box-shadow: inset 0 0 0 2px #0775B6; }
.cn-property-page .cn-cal-grid .cal-day.selected { background: #0775B6; color: #fff; }
.cn-property-page .cn-cal-grid .cal-day.in-range { background: #dbeafe; color: #242428; border-radius: 0; }
.cn-property-page .cn-cal-grid .cal-day.range-start { border-radius: 50% 0 0 50%; }
.cn-property-page .cn-cal-grid .cal-day.range-end { border-radius: 0 50% 50% 0; }
.cn-property-page .cn-cal-min-note { text-align: center; font-size: 13px; color: #6b7280; margin-top: 12px; }
.cn-property-page .cn-cal-close-btn { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 22px; cursor: pointer; color: #6b7280; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.cn-property-page .cn-cal-close-btn:hover { background: #f3f4f6; }

/* Booking Widget — Pricing State */
.cn-property-page .cn-pricing-state { display: none; }
.cn-property-page .cn-pricing-state.active { display: block; }
.cn-property-page .cn-search-state { display: block; }
.cn-property-page .cn-search-state.hidden { display: none; }
.cn-property-page .cn-pricing-prop-name { font-size: 15px; font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.cn-property-page .cn-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 16px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.cn-property-page .cn-summary-cell { padding: 10px 12px; background: #f9fafb; }
.cn-property-page .cn-summary-cell .label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.cn-property-page .cn-summary-cell .value { font-size: 15px; font-weight: 600; margin-top: 2px; }
.cn-property-page .cn-refund-policy { font-size: 14px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid #e5e7eb; margin-bottom: 12px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.cn-property-page .cn-price-breakdown { margin-top: 8px; }
.cn-property-page .cn-price-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: #374151; }
.cn-property-page .cn-price-row .collapsible-toggle { cursor: pointer; user-select: none; }
.cn-property-page .cn-price-row .collapsible-toggle::after { content: ' \25BE'; font-size: 11px; }
.cn-property-page .cn-price-row-subtotal { border-bottom: 1px solid #e5e7eb; }
.cn-property-page .cn-price-row-pretax { border-bottom: 1px solid #e5e7eb; padding-bottom: 8px; margin-bottom: 4px; }
.cn-property-page .cn-price-row.total { font-weight: 700; font-size: 17px; padding-top: 10px; border-top: 2px solid #242428; color: #242428; }
.cn-property-page .cn-new-price-label { font-size: 12px; color: #0775B6; font-weight: 600; }
.cn-property-page .cn-pricing-buttons { display: flex; gap: 12px; margin-top: 20px; }
.cn-property-page .cn-back-btn { flex: 1; padding: 14px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 500; cursor: pointer; text-align: center; transition: background 0.2s; }
.cn-property-page .cn-back-btn:hover { background: #f3f4f6; }
.cn-property-page .cn-booknow-btn { flex: 2; padding: 14px; background: #0775B6; color: #fff; border: none; border-radius: 999px; font-family: 'Marcellus', serif; font-size: 15px; font-weight: 400; cursor: pointer; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.cn-property-page .cn-booknow-btn:hover { background: #065d94; text-decoration: none; }

/* Featured Listings */
.cn-property-page .cn-featured { padding: 48px 24px; max-width: 1200px; margin: 0 auto; border-top: 1px solid #e5e7eb; }
.cn-property-page .cn-featured > h2 { font-family: 'Marcellus', serif; font-size: 24px; font-weight: 500; color: #000; margin-bottom: 24px; }
.cn-property-page .cn-listings-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; }
.cn-property-page a.cn-listing-card { min-width: 340px; max-width: 380px; border: none; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); flex-shrink: 0; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: inherit; display: block; background: #fff; }
.cn-property-page a.cn-listing-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.14); transform: translateY(-2px); text-decoration: none; color: inherit; }
.cn-property-page .cn-listing-card-photo { width: 100%; height: 200px; object-fit: cover; display: block; }
.cn-property-page .cn-listing-card-body { padding: 16px 20px; }
.cn-property-page .cn-listing-card-body h4 { font-family: 'Marcellus', serif; font-size: 18px; font-weight: 500; color: #000; margin-bottom: 6px; line-height: 1.3; }
.cn-property-page .cn-listing-card-body .details { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.cn-property-page .cn-listing-card-body .view-deal { display: inline-block; font-size: 14px; font-weight: 600; color: #0775b6; transition: color 0.2s; }
.cn-property-page a.cn-listing-card:hover .view-deal { color: #065d94; }

/* Fallback hero when no gallery photos */
.cn-property-page .cn-hero-fallback {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #1a2a3a 0%, #0775b6 50%, #1a2a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 0;
}
.cn-property-page .cn-hero-overlay {
    text-align: center;
    color: #fff;
    padding: 40px;
}
.cn-property-page .cn-hero-overlay h2 {
    font-family: 'Marcellus', Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}
.cn-property-page .cn-hero-overlay p {
    font-size: 16px;
    opacity: 0.85;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ── Property Page Header Override ──────────────────────────────────
 * CozyStay's overlap-header makes the header transparent + absolute,
 * which is invisible against light gallery photos. On property pages
 * we force a solid white header with dark blue nav, sitting above the
 * gallery instead of overlapping it. Scoped to body.cn-property-page-body
 * so no other pages are affected.
 *
 * The header is an Elementor custom header (post 54), NOT the default
 * CozyStay template. Structure:
 *   #masthead.site-header.overlap-header
 *     > .elementor (elementor-54)
 *       > section (desktop, hidden on tablet/mobile)
 *         > col 25%: hamburger + .cs-menu nav
 *         > col 50%: .elementor-widget-image (logo)
 *         > col 25%: phone text + .cs-btn-color-white (Book Now)
 *       > section (mobile, hidden on desktop)
 */

/* Remove absolute positioning — header sits in normal flow */
body.cn-property-page-body .site-header.overlap-header {
    position: relative;
}

/* White background on header sections (override transparent for overlap) */
body.cn-property-page-body .site-header.overlap-header:not(.is-sticky):not(.sticky) > * {
    background: #fff;
}
body.cn-property-page-body .site-header .elementor-section {
    background: #fff !important;
}
body.cn-property-page-body .site-header .elementor-background-overlay {
    display: none;
}
body.cn-property-page-body .site-header .elementor-section {
    border: none !important;
}
body.cn-property-page-body .site-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Dark blue nav links (Elementor cs-menu widget) */
body.cn-property-page-body .site-header .cs-menu .primary-menu > li > a {
    color: #1b3a4b !important;
}
body.cn-property-page-body .site-header .cs-menu .primary-menu > li > a:hover {
    color: #0775B6 !important;
}
body.cn-property-page-body .site-header .cs-menu .primary-menu .sub-menu a {
    color: #fff !important;
}
body.cn-property-page-body .site-header .cs-menu .primary-menu .sub-menu a:hover {
    color: rgba(255,255,255,0.7) !important;
}

/* Dark blue phone number */
body.cn-property-page-body .site-header .elementor-widget-text-editor a {
    color: #1b3a4b !important;
}
body.cn-property-page-body .site-header .elementor-widget-text-editor p {
    color: #1b3a4b !important;
}

/* Book Now button — dark blue outline pill (match homepage shape) */
body.cn-property-page-body .site-header .cs-btn-color-white {
    border-color: #1b3a4b !important;
    color: #1b3a4b !important;
    border-radius: 999px !important;
}
body.cn-property-page-body .site-header .cs-btn-color-white:hover {
    background: #1b3a4b !important;
    color: #fff !important;
}

/* Dark blue hamburger icon */
body.cn-property-page-body .site-header .menu-toggle-icon,
body.cn-property-page-body .site-header .menu-toggle-icon::before,
body.cn-property-page-body .site-header .menu-toggle-icon::after {
    background-color: #1b3a4b !important;
}

/* Dark blue dropdown arrows */
body.cn-property-page-body .site-header .dropdown-toggle {
    color: #1b3a4b !important;
}

/* Swap white logo to blue version (CSS content property on img) */
body.cn-property-page-body .site-header .elementor-widget-image img {
    max-width: 200px;
    height: auto;
    content: url('https://www.casanitaproperties.com/wp-content/uploads/2025/10/Casanita_TopDown_MidBlue.png');
}

/* Hide CozyStay theme copyright bar (duplicate of Elementor footer) */
body.cn-property-page-body .site-footer > .site-footer-bottom {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .cn-property-page .gallery { grid-template-columns: 1fr; max-height: 400px; }
    .cn-property-page .gallery-main { height: 400px; }
    .cn-property-page .gallery-thumbs { display: none; }
    .cn-property-page .cn-hero-fallback { height: 280px; border-radius: 0; }
    .cn-property-page .cn-hero-overlay h2 { font-size: 26px; }
    .cn-property-page .cn-content { grid-template-columns: 1fr; gap: 24px; }
    .cn-property-page .cn-sidebar { position: static; }
    .cn-property-page .cn-amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .cn-property-page a.cn-listing-card { min-width: 260px; }
    .cn-property-page h1.cn-title { font-size: 22px; }
    .cn-property-page .cn-cal-overlay { width: 95vw; left: 50%; transform: translate(-50%, 0); padding: 16px; position: fixed; top: 50%; transform: translate(-50%, -50%); }
    .cn-property-page .cn-cal-months { flex-direction: column; gap: 16px; }
    .cn-property-page .cn-form-row { flex-direction: column; }
}

/* ===== Inline Checkout ===== */
.cn-property-page .cn-checkout-state { display: none; }
.cn-property-page .cn-checkout-state.active { display: block; }

.cn-property-page .cn-checkout-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cn-property-page .cn-checkout-header h3 { margin: 0; font-size: 18px; font-weight: 600; }

.cn-property-page .cn-checkout-summary { background: #f8fafc; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
.cn-property-page .cn-ck-row { display: flex; justify-content: space-between; padding: 4px 0; }
.cn-property-page .cn-ck-total { font-weight: 700; border-top: 1px solid #e2e8f0; padding-top: 8px; margin-top: 4px; }

.cn-property-page .cn-checkout-section { margin-bottom: 20px; }
.cn-property-page .cn-checkout-section h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: #374151; }
.cn-property-page .cn-checkout-hint { font-size: 12px; color: #6b7280; margin: 0 0 10px; }

.cn-property-page .cn-checkout-section input,
.cn-property-page .cn-checkout-section select {
  display: block; width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 14px; margin-bottom: 8px; box-sizing: border-box; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.cn-property-page .cn-checkout-section select {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding-right: 32px; cursor: pointer;
}
.cn-property-page .cn-checkout-section input:focus,
.cn-property-page .cn-checkout-section select:focus {
  outline: none; border-color: #0e4a3a; box-shadow: 0 0 0 2px rgba(14, 74, 58, 0.15);
}

.cn-property-page .cn-form-row { display: flex; gap: 8px; }
.cn-property-page .cn-form-row input { flex: 1; min-width: 0; }

.cn-property-page .cn-guesty-pay-container { min-height: 120px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #f9fafb; }
.cn-property-page .cn-guesty-pay-container iframe { width: 100% !important; border: none; min-height: 100px; }
.cn-property-page .cn-guesty-pay-status { font-size: 13px; text-align: center; margin-top: 4px; min-height: 16px; color: #6b7280; }

.cn-property-page .cn-checkout-total { text-align: center; padding: 12px; font-size: 16px; color: #0e4a3a; }

.cn-property-page .cn-confirm-booking-btn {
  display: block; width: 100%; padding: 14px; background: #0e4a3a; color: #fff;
  border: none; border-radius: 8px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.cn-property-page .cn-confirm-booking-btn:hover { background: #0b3d30; }
.cn-property-page .cn-confirm-booking-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.cn-property-page .cn-checkout-status { text-align: center; padding: 8px; font-size: 13px; min-height: 20px; }
.cn-property-page .cn-checkout-status.loading { color: #0e4a3a; }
.cn-property-page .cn-checkout-status.error { color: #b91c1c; }
.cn-property-page .cn-checkout-status.success { color: #0e4a3a; }

/* Coupon row */
.cn-property-page .cn-checkout-opt { font-size: 12px; color: #9ca3af; font-weight: 400; }
.cn-property-page .cn-coupon-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
}
.cn-property-page .cn-coupon-row input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cn-property-page .cn-coupon-row input:focus {
    outline: none;
    border-color: #0775B6;
    box-shadow: 0 0 0 3px rgba(7, 117, 182, 0.12);
}
.cn-property-page .cn-coupon-apply {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cn-property-page .cn-coupon-apply:hover:not(:disabled) {
    border-color: #0775B6;
    color: #0775B6;
}
.cn-property-page .cn-coupon-apply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.cn-property-page .cn-ck-row.cn-ck-coupon-applied { color: #0e4a3a; font-weight: 500; }

.cn-property-page .cn-checkout-legal { font-size: 11px; color: #9ca3af; text-align: center; margin-top: 12px; line-height: 1.4; }

/* Booking confirmed */
.cn-property-page .cn-booking-confirmed { display: none; text-align: center; padding: 24px 16px; }
.cn-property-page .cn-booking-confirmed.active { display: block; }
.cn-property-page .cn-confirmed-icon { font-size: 48px; color: #0e4a3a; margin-bottom: 12px; }
.cn-property-page .cn-booking-confirmed h3 { color: #0e4a3a; margin: 0 0 8px; }
.cn-property-page .cn-confirmation-code { font-size: 18px; font-weight: 700; color: #1f2937; margin: 8px 0 16px; }

.cn-property-page .cn-confirmed-details { background: #f8fafc; border-radius: 8px; padding: 12px 16px; margin: 16px 0; text-align: left; font-size: 14px; }
.cn-property-page .cn-confirmed-row { display: flex; justify-content: space-between; padding: 5px 0; }
.cn-property-page .cn-confirmed-row span:first-child { color: #6b7280; }
.cn-property-page .cn-confirmed-row span:last-child { font-weight: 600; color: #1f2937; }
.cn-property-page .cn-confirmed-total { border-top: 1px solid #e2e8f0; padding-top: 8px; margin-top: 4px; }
.cn-property-page .cn-confirmed-total span:last-child { color: #0e4a3a; font-size: 16px; }

.cn-property-page .cn-confirmed-email-notice { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 14px 16px; margin: 16px 0; text-align: left; font-size: 13px; line-height: 1.5; color: #374151; }
.cn-property-page .cn-confirmed-email-notice p { margin: 0 0 8px; }
.cn-property-page .cn-confirmed-email-notice p:last-child { margin: 0; }
.cn-property-page .cn-confirmed-tip { font-size: 12px; color: #6b7280; }
.cn-property-page .cn-confirmed-tip a { color: #0e4a3a; }

.cn-property-page .cn-return-home-btn {
  display: inline-block; padding: 10px 24px; background: #0e4a3a; color: #fff;
  border-radius: 6px; text-decoration: none; font-weight: 500; margin-top: 8px;
}
