/* --- Variables & Reset --- */
:root {
    --primary: #eebc63;
    --primary-hover: #dca84e;
    --text: #1f1f1f;
    --text-light: #555;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --bg-soft-warm: #fdfbf7;
    --radius: 16px;
    --radius-sm: 8px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', sans-serif;
    --ease-premium: cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.04);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.03);
    --shadow-premium: 0 30px 60px rgba(0,0,0,0.06); 
    --transition: 0.5s var(--ease-premium);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--text); line-height: 1.6; background-color: var(--bg-white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; margin-bottom: 1rem; color: var(--text); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; object-fit: cover; }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 30px; }
.section-pad { padding: 120px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-soft-warm { background-color: var(--bg-soft-warm); }
.text-center { text-align: center; }
.overline { display: block; text-transform: uppercase; font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; letter-spacing: 1.5px; font-family: var(--font-sans); }
.overline-white { display: block; text-transform: uppercase; font-size: 0.8rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 1.5px; font-family: var(--font-sans); }
.section-title { font-size: 2.8rem; margin-bottom: 1rem; position: relative; }
.section-subtitle { margin-bottom: 4rem; color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.lead-text { font-size: 1.2rem; color: var(--text); margin-bottom: 1.5rem; font-weight: 400; font-family: var(--font-serif); }
.center-icon-wrapper { display: flex; justify-content: center; margin-bottom: 15px; }
.deco-icon-center { width: 30px; height: 30px; color: var(--primary); opacity: 0.7; }

/* Press Badge */
.press-badge { background: #fcfcfc; border: 1px solid rgba(0,0,0,0.06); padding: 20px 24px; margin-bottom: 30px; border-radius: 16px; display: flex; align-items: flex-start; gap: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.press-badge p { font-size: 0.95rem; color: var(--text-light); margin: 0; line-height: 1.5; }
.press-badge a { color: var(--text); text-decoration: underline; text-decoration-color: var(--primary); font-weight: 500; }
.press-icon-svg { flex-shrink: 0; color: var(--text); opacity: 0.8; width: 24px; height: 24px; margin-top: 2px; }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 14px 32px; border-radius: 50px; font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: all 0.4s var(--ease-premium); border: none; font-family: var(--font-sans); }
.btn:active { transform: scale(0.98); }
.btn-primary { background-color: var(--primary); color: #000; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(238, 188, 99, 0.4); }
.btn-secondary { background-color: transparent; border: 1px solid #ddd; color: var(--text); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-outline-white { background-color: transparent; border: 1px solid #fff; color: #fff; }
.btn-outline-white:hover { background-color: #fff; color: #000; transform: translateY(-3px); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* Nav */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 24px 0; transition: 0.5s var(--ease-premium); }
.navbar.scrolled { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); padding: 16px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.04); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.2); transition: color 0.4s; }
.navbar.scrolled .logo { color: var(--text); text-shadow: none; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: #fff; opacity: 0.9; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--primary); }
.navbar.scrolled .nav-links a { color: var(--text); opacity: 0.8; }
.navbar.scrolled .nav-links a:hover { opacity: 1; color: var(--primary); }
.btn-nav { padding: 10px 24px; border-radius: 50px; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: #fff !important; backdrop-filter: blur(4px); }
.btn-nav:hover { background: #fff !important; color: #000 !important; }
.navbar.scrolled .btn-nav { background: var(--text); border-color: transparent; }
.navbar.scrolled .btn-nav:hover { background: var(--primary); }

/* Hero */
.hero { position: relative; width: 100%; height: 100vh; min-height: 700px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.hero-bg-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 120%; will-change: transform; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.85) 100%); }
.hero-content-wrapper { z-index: 2; width: 100%; padding: 0 30px 15vh 30px; display: flex; justify-content: center; }
.hero-text-container { text-align: center; max-width: 900px; color: #fff; }
.hero-super-title { display: inline-block; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); background: rgba(0,0,0,0.4); padding: 8px 16px; border-radius: 50px; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero-title { font-size: 4.5rem; color: #fff; margin-bottom: 15px; text-shadow: 0 4px 20px rgba(0,0,0,0.3); font-weight: 400; letter-spacing: -1px; }
.hero-tagline { font-family: var(--font-serif); font-size: 1.4rem; font-style: italic; font-weight: 400; color: rgba(255, 255, 255, 0.95); margin-bottom: 30px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-subline { font-family: var(--font-sans); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* The House */
.split-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 24px; margin-top: 30px; }
.feature-item h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; font-family: var(--font-sans); }
.feature-item p { font-size: 1.05rem; color: var(--text-light); line-height: 1.6; margin-bottom: 0; }
.divider-line { height: 1px; background: #e0e0e0; width: 0; margin: 50px 0; transition: width 1.2s var(--ease-premium); }
.divider-line.in-view { width: 100%; }
.image-block { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.parallax-img-container { overflow: hidden; height: 100%; }
.parallax-img { width: 100%; height: 110%; object-fit: cover; transition: transform 0.1s linear; }

/* Booking & Rates */
.booking-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.subsection-heading { font-size: 2.2rem; font-family: var(--font-serif); margin-bottom: 30px; color: var(--text); }
.rates-column .subsection-heading { font-size: 2.2rem; color: var(--text); opacity: 1; }
.rates-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 40px 30px; position: relative; text-align: center; }
.azulejo-hint-corner { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; color: var(--primary); opacity: 0.3; }
.rates-split { display: flex; justify-content: center; margin-bottom: 30px; align-items: stretch; }
.rate-season { flex: 1; text-align: center; padding: 0 15px; display: flex; flex-direction: column; justify-content: space-between; }
.rate-vertical-divider { width: 1px; background-color: #eee; margin: 0 10px; }
.rate-season h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }
.rate-dates { font-size: 0.9rem; color: #666; margin-bottom: 12px; }
.rate-price { font-size: 1.8rem; font-weight: 700; color: var(--primary); font-family: var(--font-serif); margin-top: auto; }
.rate-unit { font-size: 1rem; font-weight: 400; color: #888; }
.rates-footer { background: #fafafa; border-radius: 8px; padding: 20px; margin-top: 20px; }
.min-stay { font-size: 0.9rem; color: #666; margin-bottom: 20px; }
.rates-terms { margin-top: 20px; padding: 20px; background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius-sm); }
.rates-terms p { font-size: 0.9rem; color: #666; line-height: 1.5; margin-bottom: 5px; }
.calendar-wrapper { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); height: 600px; border: 1px solid rgba(0,0,0,0.03); }

/* Features & Amenities */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; width: 100%; margin-top: 20px; }
.feature-card, .amenity-card { background: #fff; border-radius: var(--radius); transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium); }
.feature-card { box-shadow: var(--shadow-premium); overflow: hidden; display: flex; flex-direction: column; }
.amenity-card { padding: 40px 30px; border: 1px solid rgba(0,0,0,0.04); display: flex; flex-direction: column; align-items: flex-start; height: 100%; text-align: left; }
.feature-card:hover, .amenity-card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0,0,0,0.06); }
.feature-img { height: 350px; overflow: hidden; position: relative; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.feature-card:hover .feature-img img { transform: scale(1.03); }
.feature-content { padding: 30px; text-align: left; background: #fff; position: relative; z-index: 2; flex-grow: 1; border-top: 1px solid rgba(0,0,0,0.03); }
.feature-content h3, .amenity-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--text); font-family: var(--font-serif); }
.feature-content p { font-size: 1rem; color: var(--text-light); line-height: 1.7; font-weight: 300; }
.amenity-icon { width: 32px; height: 32px; color: var(--primary); margin-bottom: 20px; flex-shrink: 0; }
.amenity-icon svg { width: 100%; height: 100%; display: block; }
.amenity-card ul { list-style: none; padding: 0; margin: 0; width: 100%; }
.amenity-card li { font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-light); margin-bottom: 8px; line-height: 1.5; }

/* Carousel */
.carousel-section { position: relative; height: 700px; overflow: hidden; margin: 80px 0; display: flex; align-items: center; justify-content: center; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 0; }
.carousel-slide.active { opacity: 1; z-index: 1; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-attachment: fixed; }
@media (pointer: coarse) { .slide-bg { background-attachment: scroll; } }
.lifestyle-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 2; pointer-events: none; }
.carousel-content-wrapper { position: relative; z-index: 3; width: 100%; pointer-events: none; display: flex; justify-content: center; }
.lifestyle-text-box { max-width: 600px; width: 100%; background: rgba(0,0,0,0.6); padding: 50px 40px; border-radius: var(--radius); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); pointer-events: auto; transition: opacity 0.5s ease, transform 0.5s ease; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lifestyle-text-box.fade-out { opacity: 0; transform: translateY(10px); }
.lifestyle-text-box.fade-in { opacity: 1; transform: translateY(0); }
.lifestyle-text-box h2 { color: #fff; font-size: 2.5rem; margin-bottom: 15px; }
.lifestyle-text-box p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 25px; opacity: 0.9; }
.carousel-intro { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 20px; font-weight: 300; font-family: var(--font-sans); }
.carousel-indicators { display: flex; gap: 10px; margin-top: 25px; justify-content: center; width: 100%; }
.indicator-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.indicator-dot.active { background: #fff; transform: scale(1.2); border-color: #fff; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.faq-header { position: sticky; top: 120px; }
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-card { background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,0.03); overflow: hidden; transition: box-shadow 0.3s ease; }
.faq-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.04); }
.faq-card summary { padding: 25px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: 300; transition: transform 0.3s; }
.faq-card[open] summary::after { content: '-'; transform: rotate(180deg); }
.faq-answer { padding: 0 25px 25px 25px; color: var(--text-light); font-size: 0.95rem; line-height: 1.6; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* FAQ Button Spacing */
.faq-header .btn { margin-top: 30px; }

/* Gallery */
/* FIX: Force padding top on the grid to ensure separation from text */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.gallery-item { overflow: hidden; border-radius: 12px; cursor: pointer; position: relative; height: 320px; background: #f0f0f0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-premium); }
.gallery-item:hover img { transform: scale(1.05); }
.hidden-gallery { display: none; }
.gallery-grid.expanded .hidden-gallery { display: block; animation: fadeIn 0.8s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Contact */
.contact-card { background: #fff; border-radius: 30px; box-shadow: var(--shadow-soft); padding: 60px; border: 1px solid #f5f5f5; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; align-items: start; }
.host-visual { display: flex; flex-direction: column; align-items: center; }
.image-frame { width: 312px; height: 408px; padding: 12px 12px 60px 12px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: rotate(-2deg); transition: transform 0.6s var(--ease-premium); position: relative; max-width: 90vw; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame:hover { transform: rotate(0deg) scale(1.02); }
.caption-handwritten { position: absolute; bottom: 15px; left: 0; width: 100%; text-align: center; font-family: 'Dancing Script', cursive; font-size: 1.4rem; color: #333; }
.contact-intro { text-align: left; }
.host-meta-clean { margin-top: 30px; text-align: left; }
.host-meta-clean h3 { font-size: 1.4rem; margin-bottom: 20px; }
.host-meta-clean p { font-size: 1.1rem; color: var(--text); margin-bottom: 10px; }
.host-meta-clean a { color: var(--text); border-bottom: 1px solid rgba(0,0,0,0.1); }
.host-meta-clean a:hover { color: var(--primary); border-color: var(--primary); }
.host-meta-clean .address { color: var(--text-light); margin-top: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 16px; border: 1px solid #e0e0e0; border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; transition: 0.3s; background: #fdfdfd; margin-bottom: 20px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(238, 188, 99, 0.1); }
.footer-identity { margin-top: 10px; color: #888; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.96); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { opacity: 1; }
.lightbox-wrapper { position: relative; max-width: 90%; max-height: 90vh; }
.lightbox-content { max-height: 90vh; max-width: 100%; border-radius: 4px; }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 40px; cursor: pointer; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 3rem; cursor: pointer; padding: 20px; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 30px; height: 2px; background: #fff; margin-bottom: 6px; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* --- RESPONSIVE / MOBILE FIXES --- */
@media (max-width: 900px) {
    .section-pad { padding: 60px 0; } 
    .hero-title { font-size: 3rem; }
    
    .divider-line { margin: 25px 0; }
    .lead-text { margin-bottom: 10px; }
    
    #booking.section-pad { padding-top: 40px; }
    .availability-column .subsection-heading { display: none; }

    #gallery.bg-light { background-color: var(--bg-soft-warm); }
    #gallery .text-center { margin-bottom: 40px; }
    
    /* Mobile Gallery Spacing Fix */
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 40px; } 

    .gallery-item { height: 280px; }
    .features-grid { grid-template-columns: 1fr; gap: 30px; }
    .feature-img { height: 280px; }
    .split-layout { grid-template-columns: 1fr; gap: 50px; }
    .amenities-grid { grid-template-columns: 1fr; gap: 24px; }
    .amenity-card { padding: 30px 24px; align-items: flex-start; }
    .amenity-icon { width: 36px; height: 36px; margin-bottom: 18px; }
    
    .faq-layout { grid-template-columns: 1fr; gap: 40px; }
    .faq-header { position: static; text-align: center; }
    
    .faq-header .btn { margin-top: 30px; }

    .booking-layout { grid-template-columns: 1fr; gap: 40px; }
    .calendar-wrapper { height: 850px; }
    .rates-column { order: 2; } 
    .availability-column { order: 1; }

    .contact-layout { display: flex; flex-direction: column; text-align: center; gap: 50px; }
    .host-visual { display: flex; justify-content: center; width: 100%; margin-bottom: 20px; }
    .image-frame { margin: 0 auto; }
    .contact-intro, .host-meta-clean { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; } 
    .contact-card { padding: 40px 20px; }
    .form-wrapper { width: 100%; }
    .form-group input, .form-group textarea { font-size: 16px; }
    textarea { resize: none; }

    .carousel-section { height: auto; min-height: 550px; padding: 40px 0; }
    .lifestyle-text-box { margin: 0 20px; padding: 30px 20px; width: auto; max-width: 100%; }
    .lifestyle-text-box h2 { font-size: 1.8rem; }
    .lifestyle-text-box p { font-size: 1rem; }
    
    .navbar .logo { color: var(--text); }
    .navbar .mobile-toggle span { background: var(--text); }
    .navbar { background: #fff; padding: 15px 0; }
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 30px 0; border-top: 1px solid #eee; display: none; }
    .nav-links.mobile-active { display: flex; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
    .nav-links a { color: var(--text); }
    .mobile-toggle { display: block; }
}