/* =========================================
   BASE SETTINGS & COLOR SCHEME (Emerald & Gold)
   ========================================= */
:root {
    --primary: #11784A;       /* Emerald Green */
    --primary-dark: #0A4F30;  /* Deep Emerald */
    --accent: #D4AF37;        /* Metallic Gold */
    --accent-hover: #b5952f;  /* Darker Gold */
    --dark: #1A251C;          /* Very dark green-tinted grey */
    --light: #F8FBF9;         /* Off-white with subtle green hint */
    --success: #27AE60;
    --error: #E74C3C;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* --- FIX MOBILE HORIZONTAL SCROLL --- */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: hidden; /* Kept ONLY on body to allow vertical scroll detection */
    -webkit-font-smoothing: antialiased;
}

*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* =========================================
   SCROLL REVEAL ANIMATIONS (DISABLED FOR MOBILE)
   ========================================= */
.reveal, .reveal.active {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
.section-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.2rem); color: var(--primary); margin-bottom: 40px; }
.left-align { text-align: left; }
.accent-text { color: var(--accent); }
.margin-top-25 { margin-top: 25px; }
.full-width { width: 100%; }
.section-description { margin-bottom: 30px; color: #555; font-size: 1.1rem; }

/* =========================================
   BUTTONS & FORMS
   ========================================= */
.cta-button, .submit-btn { display: inline-block; background: var(--accent); color: var(--dark); padding: 12px 25px; border-radius: 4px; text-decoration: none; font-weight: bold; border: none; cursor: pointer; transition: background var(--transition-speed) ease, transform 0.2s ease, box-shadow 0.2s ease; text-align: center; position: relative; }
.cta-button:hover, .submit-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3); }
.cta-button:active, .submit-btn:active { transform: translateY(0); box-shadow: none; }
.danger-btn { background: var(--error); color: white; padding: 8px 15px; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s ease; }
.danger-btn:hover { background: #c0392b; }
.nav-btn { padding: 8px 15px; font-size: 0.9rem; }
.hero-btn { font-size: 1.1rem; padding: 15px 40px; }

.btn-loading { color: transparent !important; pointer-events: none; }
.btn-loading::after { content: ""; position: absolute; width: 20px; height: 20px; top: calc(50% - 10px); left: calc(50% - 10px); border: 3px solid rgba(0, 0, 0, 0.2); border-top-color: var(--dark); border-radius: 50%; animation: spin 1s infinite linear; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   HERO & NAVIGATION
   ========================================= */
.hero { height: 75dvh; min-height: 500px; background-color: var(--primary-dark); position: relative; overflow: hidden; }
.hero-bg-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; -webkit-transform: translateZ(0); transform: translateZ(0); opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)); }
.hero-inner-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); }
.logo-link { text-decoration: none; display: flex; align-items: center; }
.logo { display: flex; align-items: center; }
.logo-image { max-height: 180px; max-width: 180px; width: auto; height: auto; display: block; object-fit: contain; -webkit-mask-size: cover; mask-size: cover; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-links a:not(.cta-button) { color: white; text-decoration: none; font-weight: 500; transition: color var(--transition-speed); }
.nav-links a:not(.cta-button):hover { color: var(--accent); }
.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; padding: 0 20px; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: clamp(1rem, 3vw, 1.3rem); margin-bottom: 20px; }

/* =========================================
   MAIN LAYOUT & SECTIONS
   ========================================= */
.listing-layout { display: flex; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 60px; }
.listing-main { flex: 1; min-width: 0; }
.content-section { margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid #ddd; }
.content-section:last-child { border-bottom: none; }

/* =========================================
   3D FLIP FEATURE CARDS (Scrollbar Fix Applied)
   ========================================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.feature-card { background-color: transparent; perspective: 1000px; width: 100%; height: 320px; cursor: pointer; transition: transform var(--transition-speed) ease; }
.feature-card:hover, .feature-card:focus-within { transform: translateY(-5px); }
.card-inner { position: relative; width: 100%; height: 100%; text-align: left; transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.feature-card:hover .card-inner { transform: rotateY(180deg); }

/* Remove shared padding here so we can give the front and back distinct paddings */
.card-front, .card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--border-radius); box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--primary); }

.card-front { 
    background-color: #ffffff; 
    transform: rotateY(0deg); 
    z-index: 2; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 25px; /* Standard padding for the front */
}

.card-back { 
    background-color: #fdfaf2; 
    transform: rotateY(180deg) translateZ(1px); 
    overflow-y: auto; 
    overflow-x: hidden; 
    padding: 25px 15px 25px 25px; /* Reduced right padding to leave space for the scrollbar */
}

.feature-card:not(:hover) .card-back { pointer-events: none; }
.feature-card:hover .card-front { pointer-events: none; }

.card-back::-webkit-scrollbar { width: 6px; }
.card-back::-webkit-scrollbar-track { background: rgba(0,0,0,0.02); border-radius: 8px; margin: 10px 0; }
.card-back::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 8px; opacity: 0.8; }
.card-back::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
.feature-title { color: var(--primary); margin-bottom: 10px; }

/* =========================================
   FLOORPLAN
   ========================================= */
.floorplan-section { background: white; padding: 40px; border-radius: var(--border-radius); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.floorplan-container { position: relative; max-width: 800px; margin: 0 auto; }
.floorplan-container img { width: 100%; height: auto; border-radius: var(--border-radius); display: block; }
.hotspot { position: absolute; width: 28px; height: 28px; background: var(--accent); border: 3px solid white; border-radius: 50%; transform: translate(-50%, -50%); cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.3); animation: pulse 2s infinite; padding: 0; z-index: 5; transition: transform 0.2s; }
.hotspot:hover, .hotspot:focus { transform: translate(-50%, -50%) scale(1.2); animation: none; background: var(--primary); }
.hotspot-tooltip { position: absolute; background: var(--dark); color: white; padding: 8px 12px; border-radius: 4px; font-size: 0.85rem; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, -15px); transition: opacity var(--transition-speed), transform var(--transition-speed); z-index: 10; }
.hotspot:hover + .hotspot-tooltip, .hotspot:focus + .hotspot-tooltip { opacity: 1; transform: translate(-50%, -40px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }

/* =========================================
   GALLERIES
   ========================================= */
.scrolling-gallery { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: thin; scroll-behavior: auto; }
.scrolling-gallery::-webkit-scrollbar { height: 8px; }
.scrolling-gallery::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.scrolling-gallery .gallery-item { flex: 0 0 300px; height: 220px; cursor: pointer; transition: transform 0.2s ease; }
.scrolling-gallery .gallery-item:hover, .scrolling-gallery .gallery-item:focus-within { transform: scale(1.02); z-index: 2; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.scrolling-gallery .gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--border-radius); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }

/* =========================================
   SIDEBAR CALENDAR
   ========================================= */
.listing-sidebar { width: 380px; flex-shrink: 0; position: sticky; top: 30px; z-index: 100; }
.calendar-wrapper { background: white; color: var(--dark); padding: 25px; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); border: 1px solid #eaeaea; }
.calendar-title { margin-bottom: 5px; color: var(--dark); font-size: 1.3rem; font-weight: 600; }
.calendar-subtitle { color: #666; font-size: 0.9rem; margin-bottom: 20px; }
.calendar-legend-new { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; font-size: 0.85rem; color: #555; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-box { width: 16px; height: 16px; border-radius: 2px; display: inline-block; }
.box-unavail { background: #e16b61; }
.box-avail { background: #dcecdb; }
.box-checkin { background: #dcecdb; border: 2px solid #8ab58a; }
.calendar-header-controls-new { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.calendar-header-controls-new h4 { font-size: 1.2rem; margin: 0; color: var(--dark); font-weight: 600;}
.cal-nav-buttons { display: flex; gap: 6px; }
.cal-nav-buttons button { background: #334155; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: background 0.2s; }
.cal-nav-buttons button:hover, .cal-nav-buttons button:focus { background: #1e293b; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days-header { background: white; margin-bottom: 5px; }
.calendar-day-header { font-weight: bold; color: var(--dark); padding: 5px 0; font-size: 0.85rem; text-align: center; }

.calendar-day { 
    min-height: 55px; border-radius: 6px; padding: 5px; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; font-size: 0.95rem; cursor: pointer; 
    background: linear-gradient(to bottom right, var(--bg-morning, #f4f4f4) 50%, var(--bg-afternoon, #f4f4f4) 50%); transition: filter 0.2s, transform 0.1s; 
}
.calendar-day:hover:not(.disabled), .calendar-day:focus:not(.disabled) { box-shadow: inset 0 0 0 2px #8ab58a; outline: none; filter: brightness(0.95); transform: scale(1.05); }
.calendar-day.selected-checkin, .calendar-day.selected-checkout { box-shadow: inset 0 0 0 3px #8ab58a; }
.calendar-day.disabled { cursor: default; }
.calendar-day.split-day { background: linear-gradient(to bottom right, var(--bg-morning, #f4f4f4) 47%, #ffffff 47%, #ffffff 53%, var(--bg-afternoon, #f4f4f4) 53%); }
.calendar-day .day-num { font-weight: 600; margin-top: 5px; z-index: 2; color: var(--dark); text-shadow: 0 0 3px rgba(255,255,255,0.8); }

.booking-summary-box { margin-top: 25px; padding-top: 20px; border-top: 2px solid #eee; animation: slideUpFade 0.3s ease forwards; display: none; }
.booking-summary-box h4 { margin-bottom: 15px; font-size: 1.2rem; color: var(--primary); }
.booking-summary-box p { font-size: 0.95rem; margin-bottom: 8px; }
.booking-summary-box .deposit-text { margin-bottom: 10px; color: #555; }
.booking-summary-box .price-text { font-size: 1.2rem; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.price-display { color: var(--success); font-weight: bold; transition: color 0.3s ease; }

@keyframes slideUpFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 951px) {
    .calendar-wrapper { position: relative; }
    .booking-summary-box { position: absolute !important; top: 20px; right: calc(100% + 20px); width: 320px; background: white; padding: 25px; border-radius: 12px; box-shadow: -8px 10px 30px rgba(0,0,0,0.15); border: 1px solid #eaeaea; border-right: 6px solid var(--primary); margin-top: 0; border-top: none; z-index: 200; }
    .booking-summary-box::after { content: ''; position: absolute; top: 30px; right: -12px; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 12px solid var(--primary); }
}

/* =========================================
   SOCIAL MEDIA LINKS
   ========================================= */
.social-media-links { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #eaeaea; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: var(--border-radius); color: white !important; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease; width: 100%; box-sizing: border-box; }
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.facebook-btn { background: #1877F2; }
.instagram-btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.email-btn { background: #334155; }
.whatsapp-color-btn { background: #25D366; }

/* =========================================
   SPECIAL EVENTS CARDS
   ========================================= */
.special-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.special-event-card { background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2); border: 2px solid var(--accent); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, opacity 0.3s ease; cursor: pointer; position: relative; display: flex; flex-direction: column; }
.special-event-card.hidden { display: none; }
.special-event-card:hover, .special-event-card:focus-within { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4); }
.special-event-img { width: 100%; height: 180px; object-fit: cover; border-bottom: 2px solid var(--accent); transition: height var(--transition-speed) ease; }
.special-event-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.special-event-title { color: var(--primary-dark); font-size: 1.3rem; margin-bottom: 10px; font-weight: bold; }
.special-event-dates { font-size: 0.95rem; color: #555; flex: 1; }
.special-event-blurb-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition-speed) ease; }
.special-event-blurb { overflow: hidden; color: #444; font-size: 0.95rem; line-height: 1.5; opacity: 0; transition: opacity var(--transition-speed) ease, margin var(--transition-speed) ease; }

/* =========================================
   SPECIAL EVENTS (POP-OUT MODAL)
   ========================================= */
.special-event-card.expanded { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) !important; width: 90vw; height: 85vh; z-index: 2500; cursor: default; overflow: visible; display: flex; flex-direction: column; }
@media (min-width: 768px) { .special-event-card.expanded { width: 75vw; height: 75vh; max-width: 1200px; } }
.special-event-card.expanded::before { content: ''; position: fixed; top: -100vmax; left: -100vmax; right: -100vmax; bottom: -100vmax; background: rgba(0, 0, 0, 0.8); z-index: -1; cursor: pointer; }
.special-event-card.expanded::after { content: '×'; position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; background: white; color: var(--dark); font-size: 24px; font-weight: bold; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.3); cursor: pointer; z-index: 10; }
.special-event-card.expanded .special-event-img { height: 50%; min-height: 250px; border-radius: var(--border-radius) var(--border-radius) 0 0; object-fit: contain; background-color: #f4f7f6; }
.special-event-card.expanded .special-event-content { overflow-y: auto; padding: 35px; background: white; border-radius: 0 0 var(--border-radius) var(--border-radius); }
.special-event-card.expanded .special-event-blurb-wrapper { grid-template-rows: 1fr; }
.special-event-card.expanded .special-event-blurb { opacity: 1; margin-top: 15px; margin-bottom: 15px; }
.special-event-card.expanded .event-badge { display: none; }
.special-event-price { font-size: 1.4rem; color: var(--success); font-weight: bold; border-top: 1px solid #eee; padding-top: 15px; margin-top: 15px; display: flex; justify-content: space-between; align-items: center; }
.event-badge { position: absolute; top: 15px; right: 15px; background: var(--accent); color: var(--dark); padding: 5px 12px; border-radius: 4px; font-weight: bold; font-size: 0.85rem; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.event-select-btn { display: none; margin-top: 10px; text-align: center; }
.special-event-card.expanded .event-select-btn { display: block; animation: slideUpFade 0.3s ease forwards 0.2s; opacity: 0; }

/* =========================================
   MODALS, LIGHTBOX, TOASTS
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity var(--transition-speed) ease; overflow-y: auto; padding: 20px 0; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: white; padding: 40px; border-radius: var(--border-radius); width: 90%; max-width: 650px; position: relative; margin: auto; color: var(--dark); box-shadow: 0 15px 50px rgba(0,0,0,0.5); transform: translateY(-20px); transition: transform var(--transition-speed) ease; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 25px; font-size: 30px; cursor: pointer; color: #888; line-height: 1; background: none; border: none; transition: color 0.2s, transform 0.2s; }
.modal-close:hover, .modal-close:focus { color: var(--error); outline: none; transform: scale(1.1); }
.modal-header { color: var(--primary); border-bottom: 2px solid #eee; padding-bottom: 10px; }

.form-label { font-weight: bold; display: block; margin-bottom: 8px; }
.form-select, textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.form-select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(17, 120, 74, 0.15); }
textarea { resize: vertical; }

.discount-success-pulse { animation: pulseGreen 1.5s ease; }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); } }

.modal-disclaimer { margin-top: 25px; font-size: 0.9rem; color: #666; text-align: center; }
.modal-actions { display: flex; gap: 15px; margin-top: 15px; }

.lightbox { display: none; position: fixed; z-index: 4000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; background: none; border: none; }
.lightbox-nav { position: absolute; top: 50%; color: white; font-size: 50px; font-weight: bold; cursor: pointer; transform: translateY(-50%); user-select: none; padding: 20px; background: none; border: none; transition: color 0.2s; }
.lightbox-nav:hover { color: var(--accent); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--dark); color: white; padding: 15px 25px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); animation: slideIn 0.3s ease forwards; }
.toast.success { border-left: 5px solid var(--success); }
.toast.error { border-left: 5px solid var(--error); }

.success-icon-bounce { display: inline-block; animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; transform-origin: bottom center; }
@keyframes bounceIn { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); opacity: 1; } 70% { transform: scale(0.9); } 100% { transform: scale(1); opacity: 1; } }

/* =========================================
   REVIEWS SECTION
   ========================================= */
.review-card { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #eaeaea; display: flex; flex-direction: column; gap: 15px; }
.review-stars { color: #fbbf24; font-size: 1.3rem; letter-spacing: 2px; }
.review-text { font-size: 0.95rem; color: #444; line-height: 1.5; font-style: italic; }
.review-author { font-weight: bold; color: var(--primary-dark, #333); font-size: 0.95rem; border-top: 1px solid #eee; padding-top: 15px; margin-top: auto; }
.review-date { font-size: 0.8rem; color: #888; font-weight: normal; margin-left: 10px; }
.star-rating-input { display: flex; justify-content: center; gap: 12px; font-size: 2.8rem; color: #ddd; cursor: pointer; user-select: none; margin-bottom: 10px; }
.star-rating-input span { transition: color 0.2s, transform 0.2s; }
.star-rating-input span:hover { transform: scale(1.15); }
.star-rating-input span.active { color: #fbbf24; }
.star-bounce-anim { display: inline-block; animation: starBounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; transform-origin: center; }
@keyframes starBounce { 0% { transform: scale(0) rotate(-45deg); opacity: 0; } 50% { transform: scale(1.3) rotate(15deg); opacity: 1; } 70% { transform: scale(0.9) rotate(0deg); } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }

/* =========================================
   USER & ADMIN DASHBOARD UI
   ========================================= */
.user-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.user-table th, .user-table td { padding: 12px 15px; border-bottom: 1px solid #eee; text-align: left; }
.user-table th { background: #f9f9f9; color: var(--dark); font-weight: bold; }
.pay-badge { padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; display: inline-block; }
.pay-unpaid { background: #fee2e2; color: #b91c1c; }
.pay-partial { background: #fef08a; color: #b45309; }
.pay-paid { background: #dcfce7; color: #15803d; }

.admin-container-full { width: 100%; min-height: 100vh; padding: 40px 5%; background: #f4f7f6; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.dashboard-card { background: white; padding: 30px 25px; border-radius: var(--border-radius); box-shadow: 0 4px 15px rgba(0,0,0,0.05); cursor: pointer; transition: transform var(--transition-speed), box-shadow var(--transition-speed); border-top: 5px solid var(--primary); text-align: left; }
.dashboard-card:hover, .dashboard-card:focus-within { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.dashboard-card h3 { color: var(--dark); margin-bottom: 10px; font-size: 1.3rem; }
.dashboard-card p { color: #666; font-size: 0.95rem; line-height: 1.4; }

.admin-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: flex-start; padding-top: 40px; padding-bottom: 40px; z-index: 3000; opacity: 0; pointer-events: none; transition: opacity var(--transition-speed) ease; overflow-y: auto; }
.admin-modal-overlay.active { opacity: 1; pointer-events: all; }
.admin-modal-content { background: white; padding: 40px; border-radius: var(--border-radius); width: 95%; max-width: 900px; position: relative; margin: auto; color: var(--dark); box-shadow: 0 15px 50px rgba(0,0,0,0.5); transform: translateY(-20px); transition: transform var(--transition-speed) ease; }
.admin-modal-overlay.active .admin-modal-content { transform: translateY(0); }
.admin-modal-close { position: absolute; top: 20px; right: 25px; font-size: 35px; cursor: pointer; color: #888; line-height: 1; background: none; border: none; z-index: 10; transition: color 0.2s; }
.admin-modal-close:hover, .admin-modal-close:focus { color: var(--error); outline: none; }

.form-row { display: flex; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: var(--light); }

#auth-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: var(--primary); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.auth-card { background: white; padding: 40px; border-radius: var(--border-radius); box-shadow: 0 15px 40px rgba(0,0,0,0.2); width: 90%; max-width: 400px; text-align: center; }

.emoji-toolbar { display: flex; gap: 5px; padding: 8px 12px; background: #fdfdfd; border: 1px solid #ccc; border-bottom: none; border-radius: 4px 4px 0 0; flex-wrap: wrap; }
.emoji-btn { background: none; border: 1px solid transparent; font-size: 1.3rem; cursor: pointer; padding: 5px 8px; border-radius: 4px; transition: background 0.2s, border-color 0.2s; }
.emoji-btn:hover, .emoji-btn:focus { background: #eee; border-color: #ddd; outline: none; }
#feature-bullets { border-radius: 0 0 4px 4px; }

.collage-workspace { margin-top: 20px; padding: 15px; background: #f9f9f9; border: 1px dashed #ccc; border-radius: 4px; }
.collage-preview { width: 100%; max-width: 800px; height: 400px; background: #eee; margin: 15px auto; position: relative; border-radius: 4px; overflow: hidden; display: none; }
.collage-preview canvas { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { transform: none !important; transition: none !important; opacity: 1 !important; }
}

/* =========================================
   MOBILE RESPONSIVENESS & FIXES
   ========================================= */
img, video { max-width: 100%; height: auto; }
.admin-section .card, .admin-modal-content { max-width: 100vw; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gallery-grid, #public-gallery, #public-park-gallery, .scrolling-gallery { scroll-behavior: auto !important; overflow-x: auto; }

.mobile-sticky-cta { display: none; }

@media (max-width: 950px) {
    .listing-layout { flex-direction: column; }
    .listing-sidebar { width: 100%; position: relative; top: 0; }
    .calendar-wrapper { max-width: 500px; margin: 0 auto; }
    .calendar-day { min-height: 70px; }
    
    .mobile-sticky-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 15px 20px; box-shadow: 0 -4px 15px rgba(0,0,0,0.15); justify-content: space-between; align-items: center; z-index: 9900; border-top: 1px solid #eee; }
    body { padding-bottom: 80px; }
    .footer { padding-bottom: 100px !important; }
}

@media (max-width: 768px) {
    .hero { height: 85dvh; min-height: 450px; }
    .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .navbar { flex-direction: column; gap: 15px; }
    .nav-links { display: flex; overflow-x: auto; width: 100%; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
    .nav-links a:not(.cta-button) { white-space: nowrap; font-size: 0.9rem; }
    .scrolling-gallery .gallery-item { flex: 0 0 85vw; height: 250px; }
    .feature-grid { grid-template-columns: 1fr; }
    
    @media (hover: none) {
        .feature-card { -webkit-tap-highlight-color: transparent; }
    }
}
/* =========================================
   CALENDAR HOVER & RANGE SELECTION
   ========================================= */
.calendar-day.hover-highlight {
    background: #dcecdb !important; /* Light green for days in between */
}
.calendar-day.hover-checkout {
    /* Half green (morning), half original color (afternoon) for the hover end-date */
    background: linear-gradient(to bottom right, #dcecdb 47%, #ffffff 47%, #ffffff 53%, var(--bg-afternoon, #f4f4f4) 53%) !important;
    box-shadow: inset 0 0 0 2px #8ab58a;
}

/* =========================================
   ADMIN DASHBOARD LAYOUT (WITH SIDEBAR)
   ========================================= */
.dashboard-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}
.dashboard-main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
}
.dashboard-sidebar {
    width: 100%;
}

/* On Desktop screens, shift the sidebar to the right side and make it sticky */
@media (min-width: 1150px) {
    .dashboard-layout-wrapper {
        flex-direction: row;
    }
    .dashboard-sidebar {
        width: 450px;
        flex-shrink: 0;
        position: sticky;
        top: 30px;
        height: calc(100vh - 60px); 
    }
}

/* Force modals to strictly cover the entire screen and all sidebars */
.modal-overlay {
    z-index: 999999 !important;
}

.footer {
    position: relative;
    z-index: 1 !important;
    width: 100%;
    clear: both;
}
/* =========================================
   MASTER MODAL & FOOTER OVERRIDES
   ========================================= */

/* 1. Bulletproof Dark Overlay */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    z-index: 999999 !important; /* Forces it over absolutely everything */
    display: none; /* Hidden by default */
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* 2. Perfect Centering when Active */
.modal-overlay.active {
    display: flex !important;
}

/* 3. Modal Content Box */
.modal-content {
    position: relative !important;
    background: #fff !important;
    margin: auto !important;
    padding: 30px !important;
    border-radius: 8px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
}

/* 4. Fix the Unclickable Close Button (X) */
.modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: #555 !important;
    cursor: pointer !important;
    z-index: 9999999 !important; /* Ensure it stays above all modal text */
}

.modal-close:hover {
    color: #e16b61 !important; /* Red hover effect */
}

/* 5. Force Footer to the Bottom Center */
.footer {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    clear: both !important;
    display: block !important;
    text-align: center !important;
}