/* Villa L'Incanto - Luxury Redesign "Sea Soul" Style */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Montserrat:wght@200;300;400;500&display=swap');

:root {
    /* Palette: Organic Luxury */
    --color-bg: #F9F8F6;
    /* Warm off-white */
    --color-text-main: #2C2C2C;
    --color-text-light: #666666;
    --color-accent: #9A8C73;
    /* Bronze/Sand */
    --color-accent-hover: #7E705A;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.25);

    /* Spacing */
    --container-width: 1400px;
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 8rem;

    /* Typography */
    /* Elegant Serif for headings */
    --font-heading: 'Cormorant Garamond', serif;
    /* Clean Sans for body */
    --font-body: 'Montserrat', sans-serif;

    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    /* Standardized reduced margin */
}

h2 {
    margin-bottom: 1.5rem;
    /* Specific check, can be overridden */
}



h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    letter-spacing: 0.02em;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    display: block;
    width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Reduced from 8rem to 5rem for tighter layout */
.section-padding {
    padding: 5rem 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn:hover {
    background: var(--color-text-main);
    color: var(--color-white);
}

.btn-primary {
    background: var(--color-text-main);
    color: var(--color-white);
    border: 1px solid var(--color-text-main);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-text-main);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: background 0.4s ease, padding 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

/* Elegant Ghost Button for Scrolled Header */
header.scrolled .nav-link.btn-primary {
    background: transparent !important;
    border: 1px solid var(--color-text-main) !important;
    color: var(--color-text-main) !important;
}

header.scrolled .nav-link.btn-primary:hover {
    background: var(--color-text-main) !important;
    color: white !important;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 70vh;
    /* Reduced from 100vh to reduce pixelation */
    min-height: 500px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Very light overlay */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards 0.5s;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 2.5rem;
    color: white;
    font-style: italic;
}

.hero .btn {
    border-color: white;
    color: white;
}

.hero .btn:hover {
    background: white;
    color: black;
}

/* Sections */
.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
    /* Reduced from 8rem (spacing-lg) to eliminate excess white space */
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* Grid Layouts - Asymmetrical */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-md);
}

.grid-2.reverse .img-wrapper {
    order: 2;
}

.grid-2.reverse .text-content {
    order: 1;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

.text-content {
    padding: 4rem;
}

/* Amenities Grid (Clean) */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding-top: 3rem;
}

.amenity-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.amenity-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.amenity-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* Gallery (Masonry-ish) */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.9;
}

/* Location Map */
.map-full {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    filter: grayscale(20%);
    /* Elegant muted map */
}

/* Contact Form */
.contact-section {
    background-color: var(--color-bg);
    padding: var(--spacing-lg) 0;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    /* More visible border */
    border-radius: 4px;
    /* Slight rounded corners */
    background: #fdfdfd;
    /* Slight off-white background to stand out */
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-main);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #ccc;
    opacity: 1;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-text-main);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 6rem 0 2rem;
    text-align: center;
}

footer h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav a:hover {
    color: white;
}

.copyright {
    margin-top: 4rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
    background: rgba(255, 255, 255, 0.98);
    /* White lightbox for gallery feel */
}

.lightbox-close {
    color: black;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 5rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 101;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 100;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.2rem;
        font-weight: 400;
    }

    .grid-2,
    .grid-2.reverse {
        grid-template-columns: 1fr;
    }

    .grid-2.reverse .img-wrapper {
        order: -1;
    }

    /* Image always top on mobile */
    .img-wrapper {
        min-height: 300px;
    }

    .text-content {
        padding: 3rem 1.5rem;
    }

    .form-wrapper {
        padding: 2rem;
    }
}

/* Slideshow Control */
.hero-control {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.hero-control:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

/* Slideshow Container - Increased Size */
/* Slideshow Container - Increased Size */
.layout-constrained {
    max-width: 900px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-visual-centered {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    /* max-width handled by .layout-constrained */
}

.hero-visual-centered .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* New Split Hero Styles */
.hero.hero-split {
    height: auto;
    min-height: 80vh;
    display: block;
    padding: 140px 0 60px;
    /* Space for fixed header */
    background-color: var(--color-bg);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text .hero-title {
    color: var(--color-text-main);
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-text .hero-subtitle {
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    /* Controlled height for sharpness */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Remove previous overlay for this layout */
.hero-split .hero-overlay {
    display: none;
}

/* Adjust slideshow BG to fit visual container */
.hero-visual .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* Responsive Split */
@media (max-width: 968px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-visual {
        height: 350px;
    }

    .hero-text .hero-title {
        font-size: 3.5rem;
    }
}

/* Centered Hero Layout */
.hero-centered {
    padding: 160px 0 80px;
    background-color: var(--color-bg);
    text-align: center;
}

.hero-header {
    margin-bottom: 3rem;
}

.hero-header .hero-title {
    font-size: 5rem;
    margin: 1rem 0;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-style: italic;
}

.hero-header .hero-desc {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}



.hero-visual-centered .hero-bg {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Flatpickr Customization (Airbnb Style) */
/* Flatpickr Customization (Luxury/Sea Soul Style) */
.flatpickr-calendar {
    background: transparent;
    box-shadow: none;
    font-family: var(--font-body);
    width: 100% !important;
    max-width: 800px;
    margin: 0 auto;
}

.flatpickr-innerContainer {
    justify-content: center;
}

.flatpickr-rContainer {
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
    border-radius: 16px;
    /* Smoother corners */
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.flatpickr-months {
    background: transparent;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    align-items: center;
}

/* Desktop two-month spacing (showMonths: 2) */
.flatpickr-calendar.multiMonth .flatpickr-months {
    gap: 4rem;
}

.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer,
.flatpickr-calendar.multiMonth .flatpickr-weekdaycontainer {
    margin: 0 2rem;
}

.flatpickr-calendar.multiMonth .flatpickr-month {
    padding: 0 2rem;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: var(--color-text-main);
    padding: 10px;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--color-accent);
}

.flatpickr-current-month {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text-main);
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-family: var(--font-heading);
    font-weight: 400;
}

.flatpickr-weekdays {
    margin-bottom: 0.5rem;
}

span.flatpickr-weekday {
    color: var(--color-text-light);
    /* Softer gray */
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.flatpickr-day {
    color: var(--color-text-main);
    font-weight: 400;
    border-radius: 5px;
    /* Slight rounding, not circle */
    transition: all 0.2s ease;
    height: 44px;
    line-height: 44px;
    margin-top: 4px;
}

.flatpickr-day.today {
    border: 1px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: rgba(154, 140, 115, 0.1);
    /* Subtle hover */
    border-color: transparent;
}

/* Range Selected Styling */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    box-shadow: 0 4px 10px rgba(154, 140, 115, 0.3);
}

.flatpickr-day.inRange {
    background: rgba(154, 140, 115, 0.1);
    /* Very light accent */
    border-color: transparent;
    box-shadow: none !important;
    /* Remove connecting shadow default */
    color: var(--color-accent-hover);
}

.flatpickr-day.disabled,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #e0e0e0;
    /* Very light gray for disabled */
    background: transparent;
    cursor: not-allowed;
    text-decoration: line-through;
    /* Optional: adds clarity */
}

/* Adjust Responsive */
@media (max-width: 768px) {
    .flatpickr-rContainer {
        padding: 1rem;
    }

    .flatpickr-current-month {
        font-size: 1.2rem;
    }

    .flatpickr-day {
        height: 36px;
        line-height: 36px;
    }
}

@media (max-width: 768px) {
    .hero-header .hero-title {
        font-size: 3.5rem;
    }

    .hero-visual-centered {
        height: 400px;
    }
}

/* Custom Language Selector */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: auto;
    min-width: 60px;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select__trigger:hover {
    color: var(--color-accent);
}

/* Fix for transparent header contrast */
header.nav--white .custom-select__trigger {
    color: white;
}

header.nav--white .custom-select__trigger .arrow::before {
    border-color: white;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 80px;
    border: none;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 200;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    /* Sharp for modern feel, or 2px */
    padding: 10px 0;
    transform: translateY(10px);
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: right;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}

.custom-option:hover {
    color: var(--color-text-main);
    background: #f9f9f9;
}

.custom-option.selected {
    color: var(--color-text-main);
    font-weight: 400;
}

.arrow {
    position: relative;
    height: 6px;
    width: 6px;
    margin-left: 8px;
    margin-top: -2px;
}

.arrow::before {
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.custom-select.open .arrow::before {
    transform: rotate(225deg);
    margin-bottom: -4px;
}

.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid white;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Pause Button Position Fix */
.pause-btn {
    right: auto;
    left: 30px;
    /* Moves pause button to left corner */
}

/* Focus styles for Accessibility */
.hero-visual-centered:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.hero-visual-centered:focus:not(:focus-visible) {
    outline: none;
    /* Hide if mouse focus */
}

.hero-control:focus,
.hero-arrow:focus,
.indicator:focus {
    outline: 2px solid white;
    background: rgba(255, 255, 255, 0.4);
}

.hero-control .icon {
    display: block;
    line-height: 1;
}

/* Ensure buttons look like buttons */
.indicator {
    border: 1px solid white;
    background: transparent;
    padding: 0;
}

/* ====================================
   GALLERY SECTION - Premium Redesign
   ==================================== */

/* Gallery Grid - Responsive */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Gallery Card */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

/* Hover Effects */
.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.gallery-card::after {
    content: 'View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card:hover::before,
.gallery-card:hover::after {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s ease;
    border-radius: 4px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Counter */
.lightbox-counter {
    color: var(--color-white);
    margin-top: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 0.8rem 1.2rem;
    }

    .lightbox-close {
        font-size: 2.5rem;
        top: 1rem;
        right: 1rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }


}

/* ====================================
   VILLA DESCRIPTION & MAP BUTTON
   ==================================== */

.villa-description p.intro-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

.villa-description p {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Optimized Mobile Description */
.villa-description-container {
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text-main);
}

.villa-desc-grid {
    margin: 0;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .section-padding#villa {
        padding-top: 2rem !important;
        padding-bottom: 0 !important;
    }

    .villa-description p.intro-text {
        font-size: 1.1rem !important;
        /* Significantly reduced */
        line-height: 1.5;
        margin-bottom: 0.5rem !important;
    }

    .villa-description p {
        font-size: 0.95rem !important;
        /* Significantly reduced */
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }

    .villa-desc-grid {
        gap: 1rem;
    }
}

.btn-map-large {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-map-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ====================================
   LANDING HERO SECTION
   ==================================== */

.landing-hero {
    height: 100vh;
    width: 100%;
    background-image: url('../assets/Evening.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-white);
    text-align: center;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* Darker overlay for better contrast */
}





/* ====================================
   SCROLL-BASED NAVBAR STYLES
   ==================================== */

/* Base Transition */
header {
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

header .logo,
header .nav-link,
header .mobile-toggle {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* WHITE MODE (Default/Top) */
header.nav--white {
    background: transparent;
    box-shadow: none;
    padding: 2rem 0;
}

header.nav--white .logo,
header.nav--white .nav-link,
header.nav--white .mobile-toggle {
    color: var(--color-white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Shadow for readability on hero */
}

header.nav--white .nav-link.active::after {
    background: var(--color-white);
}

/* DARK MODE (Scrolled > 0) */
header.nav--dark {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    padding: 1rem 0;
    /* Compact */
}

header.nav--dark .logo,
header.nav--dark .nav-link,
header.nav--dark .mobile-toggle {
    color: var(--color-text-main) !important;
    /* Dark text */
    text-shadow: none;
}

/* CRITICAL FIX: Keep button text WHITE even in dark mode */
header.nav--dark .nav-link.btn-primary,
header.nav--dark .btn-primary {
    color: #ffffff !important;
    /* FORCE WHITE TEXT */
    background: var(--color-accent) !important;
    /* Contrasting background */
    border-color: var(--color-accent) !important;
}

/* UNIVERSAL FIX: Header Buttons in Dark Mode */
/* Force ALL buttons (Language & Contact) to be Black Background + White Text */
header.nav--dark .custom-select__trigger,
header.nav--dark .btn,
header.nav--dark .contact-btn {
    background-color: #000000 !important;
    /* Solid Black */
    color: #ffffff !important;
    /* Solid White Text */
    border: 1px solid #000000 !important;
}

/* Ensure child elements (like spans or icons) are also white */
header.nav--dark .custom-select__trigger span,
header.nav--dark .custom-select__trigger .arrow,
header.nav--dark .btn *,
header.nav--dark .contact-btn * {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

header.nav--dark .nav-link.active::after {
    background: var(--color-accent);
}

/* Legacy override clean up if needed - ensuring strict precedence */


.landing-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    animation: fadeIn 1.5s ease-out;
}

.landing-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--color-white) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    /* Strong shadow */
}

.landing-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-white) !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    /* Strong shadow */
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.9;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ====================================
   LOCATION SECTION
   ==================================== */
.location-box {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 4px;
    margin: 0 auto;
    max-width: 900px;
    /* Consistently constrained */
}

.location-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.location-desc {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .location-box {
        padding: 1.5rem !important;
    }

    .location-title {
        font-size: 1.5rem !important;
    }

    .location-desc {
        font-size: 1rem !important;
        line-height: 1.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .landing-title {
        font-size: 3rem;
    }

    .landing-subtitle {
        font-size: 1.4rem;
    }
}

/* ====================================
   AMENITIES SECTION - Premium Redesign
   ==================================== */

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.amenity-card {
    background: var(--color-white);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.amenity-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
    letter-spacing: 0.02em;
}

.amenity-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.amenity-card li {
    position: relative;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
    padding-left: 0;
    display: flex;
    align-items: center;
}

.amenity-card li::before {
    content: '';
    display: block;
    width: 6px;
    height: 1px;
    background: var(--color-accent);
    margin-right: 12px;
}

/* Responsive Amenities */
@media (max-width: 900px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .amenity-card {
        padding: 2rem;
    }
}

/* Location Distance Items - Symmetrical */
.distance-item {
    width: 220px;
    position: relative;
    padding: 0 0.5rem;
    text-align: center;
}

/* ====================================
   Custom International Phone Input
   ==================================== */

/* Row container — flag + prefix + number */
.phone-input-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fdfdfd;
    overflow: visible;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.phone-input-row:focus-within {
    border-color: var(--color-text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: #fff;
}

/* A) Flag button + dropdown */
.phone-country-select {
    position: relative;
    flex-shrink: 0;
}

.phone-flag-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    height: 100%;
    border: none;
    border-right: 1px solid #e0e0e0;
    background: transparent;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background 0.2s ease;
    min-height: 48px;
}

.phone-flag-btn:hover {
    background: #f5f5f5;
}

.phone-arrow {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-left: 2px;
}

/* Dropdown panel */
.phone-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: min(280px, calc(100vw - 2rem));
    max-height: 300px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
    animation: phoneDropdownFadeIn 0.2s ease;
}

.phone-dropdown.open {
    display: flex;
}

@keyframes phoneDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search input inside dropdown */
.phone-search {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.phone-search:focus {
    border-color: var(--color-text-main);
}

/* Country list */
.phone-country-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.phone-country-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-main);
    transition: background 0.15s ease;
}

.phone-country-list li:hover {
    background: #f5f5f5;
}

.phone-country-list li.active {
    background: var(--color-accent);
    color: #fff;
}

.phone-country-list li .country-flag {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.phone-country-list li .country-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-country-list li .country-dial {
    color: var(--color-text-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.phone-country-list li.active .country-dial {
    color: rgba(255, 255, 255, 0.8);
}

/* B) Prefix input */
.phone-prefix-input {
    width: 60px;
    flex-shrink: 0;
    border: none;
    border-right: 1px solid #e0e0e0;
    background: transparent;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 400;
    outline: none;
    padding: 0 6px;
}

/* C) Phone number input */
.phone-number-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    outline: none;
    min-width: 0;
}

.phone-number-input::placeholder {
    color: #aaa;
}

/* Error state */
.phone-input-row.error {
    border-color: #d32f2f;
    background: #ffebee;
}

/* ====================================
   Form Row Desktop Styles
   ==================================== */
.form-row-half {
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    margin-bottom: 2rem;
}

.form-row-dates {
    margin-bottom: 0;
}

/* Rental Notice (Desktop) */
.rental-notice {
    background: #fff9e6;
    border-left: 3px solid #f39c12;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: #856404;
    display: flex;
    align-items: center;
    line-height: 1.4;
    margin-top: 1.55rem;
    border-radius: 4px;
    word-break: break-word;
}

/* ====================================
   Mobile Form Redesign (≤768px)
   ==================================== */
@media (max-width: 768px) {

    /* --- Form wrapper --- */
    .contact-section {
        padding: 1.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .contact-section .form-wrapper {
        padding: 1.2rem;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .contact-section .form-wrapper h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    /* --- Terms notice box at top --- */
    .contact-section .form-wrapper>div[style*="text-align: center"] {
        padding: 0.8rem;
        margin: 1rem 0;
    }

    .contact-section .form-wrapper>div[style*="text-align: center"] p {
        font-size: 0.82rem;
    }

    .contact-section .form-wrapper>div[style*="text-align: center"] .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.7rem;
    }

    /* --- Grid rows: Force single-column on mobile --- */
    .form-row-half {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        margin-bottom: 1.2rem !important;
    }

    .form-row-half .form-group {
        margin-bottom: 0 !important;
    }

    /* --- Form labels refined --- */
    .form-label {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.6rem;
    }

    /* --- Form inputs: larger touch targets --- */
    .form-input,
    .form-textarea {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    /* --- Rental Notice (Mobile) --- */
    .rental-notice {
        margin-top: 0;
        border-left: none;
        border-radius: 8px;
        padding: 1rem 1.2rem;
        font-size: 0.82rem;
        text-align: center;
        justify-content: center;
        background: linear-gradient(135deg, #fffbf0, #fff9e6);
        border: 1px solid rgba(243, 156, 18, 0.2);
    }

    /* --- Phone Input (Mobile) --- */
    .phone-input-row {
        border-radius: 6px;
    }

    .phone-flag-btn {
        padding: 0 8px;
    }

    .phone-prefix-input {
        width: 50px;
        font-size: 0.9rem;
        padding: 0 4px;
    }

    .phone-number-input {
        padding: 0.85rem 0.6rem;
        font-size: 0.95rem;
    }

    /* Phone Dropdown: Full-screen overlay on mobile */
    .phone-dropdown.open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        min-width: unset;
        border-radius: 0;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        box-shadow: none;
        border: none;
        background: #fff;
    }

    .phone-dropdown .phone-search {
        padding: 1rem;
        font-size: 1.05rem;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }

    .phone-country-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .phone-country-list li {
        padding: 0.9rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* --- Check-in/Check-out dates row: keep 2-col on mobile --- */
    .form-row-dates {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* --- Flatpickr Calendar (Mobile) --- */
    .flatpickr-calendar {
        width: calc(100vw - 2rem) !important;
        max-width: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        font-size: 0.9rem;
        overflow: visible;
        z-index: 99999 !important;
    }

    /* Safety net: if multiMonth somehow renders on mobile, stack vertically */
    .flatpickr-calendar.multiMonth {
        width: calc(100vw - 1rem) !important;
    }

    .flatpickr-calendar.multiMonth .flatpickr-months {
        gap: 0;
    }

    .flatpickr-calendar.multiMonth .flatpickr-days {
        flex-wrap: wrap !important;
    }

    .flatpickr-calendar.multiMonth .flatpickr-days .dayContainer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0;
    }

    .flatpickr-calendar.multiMonth .flatpickr-month {
        padding: 0;
    }

    .flatpickr-months {
        padding: 0.5rem 0;
    }

    .flatpickr-month {
        height: 40px;
    }

    /* Force all 7 columns to always fit — percentage-based */
    .flatpickr-days {
        width: 100% !important;
    }

    .dayContainer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .flatpickr-day {
        max-width: calc(100% / 7) !important;
        width: calc(100% / 7) !important;
        flex-basis: calc(100% / 7) !important;
        height: 36px;
        line-height: 36px;
        border-radius: 50%;
        font-size: 0.85rem;
        margin: 1px 0;
    }

    span.flatpickr-weekday {
        flex: 1;
        font-size: 0.7rem;
    }

    .flatpickr-weekdays {
        width: 100% !important;
    }

    .flatpickr-weekdaycontainer {
        width: 100% !important;
        display: flex !important;
    }

    .flatpickr-innerContainer {
        padding: 0;
        width: 100% !important;
    }

    .flatpickr-rContainer {
        padding: 0.8rem 0.5rem;
        border-radius: 12px;
        width: 100% !important;
    }

    .flatpickr-current-month {
        font-size: 1.1rem;
    }

    /* --- Date range display --- */
    #date-range-display {
        font-size: 0.85rem !important;
        padding: 0.5rem 0;
        line-height: 1.5;
    }

    /* --- Checkbox rows --- */
    .form-group:has(#no-dates),
    .form-group:has(#privacy) {
        padding: 0.3rem 0;
    }

    /* --- Submit button --- */
    .contact-section .btn-primary[type="submit"] {
        padding: 1rem 2rem;
        font-size: 0.85rem;
        border-radius: 6px;
        letter-spacing: 0.12em;
    }

    /* --- Footer spacing after contact form --- */
    .contact-section+footer {
        margin-top: 0;
    }
}

/* ====================================
   Extra Small Devices (≤360px)
   ==================================== */
@media (max-width: 360px) {

    .container {
        padding: 0 0.75rem;
    }

    .contact-section .form-wrapper {
        padding: 1rem 0.8rem;
    }

    h1 {
        font-size: 2.2rem !important;
    }

    .contact-section .form-wrapper h3 {
        font-size: 1.1rem;
    }

    /* Stack dates vertically on very small screens */
    .form-row-dates {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    /* Phone Input: Extreme Compression */
    .phone-prefix-input {
        width: 40px;
        font-size: 0.85rem;
        padding: 0 2px;
    }

    .phone-flag-btn {
        padding: 0 4px;
        min-width: 36px;
    }

    .phone-arrow {
        display: none;
        /* Hide arrow to save space */
    }

    .phone-number-input {
        padding: 0.85rem 0.4rem;
        font-size: 0.9rem;
    }

    /* Note box full width */
    .rental-notice {
        font-size: 0.75rem;
        padding: 0.8rem;
    }
}

/* ====================================
   Tiny Devices (≤280px) - Fold/Watch
   ==================================== */
@media (max-width: 280px) {
    html {
        font-size: 14px;
    }

    .phone-input-row {
        flex-wrap: wrap;
    }

    .phone-country-select,
    .phone-prefix-input {
        flex: 1;
        border-bottom: 1px solid #eee;
    }

    .phone-number-input {
        width: 100%;
        flex: 100%;
    }
}

/* ====================================
   Success Modal Styling
   ==================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 13, 21, 0.85);
    /* Deep backdrop */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 4rem 3rem;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(207, 170, 94, 0.2);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 100%;
    height: 100%;
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    font-style: italic;
}

.modal-message {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-warning-box {
    background: #fbf9f4;
    /* Very soft parchment */
    border: 1px solid rgba(207, 170, 94, 0.3);
    border-left: 4px solid #cfaa5e;
    /* Luxury Gold */
    padding: 1.5rem;
    border-radius: 4px;
    text-align: left;
    margin: 2rem 0;
}

.spam-highlight {
    font-weight: bold;
    font-size: 1.1em;
}

.modal-warning-title {
    color: #8a6d3b;
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.modal-warning-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    font-family: var(--font-body);
}

/* --- Flatpickr Calendar Customization --- */

/* 1. Container & Width Fixes */
.flatpickr-calendar {
    font-family: var(--font-heading) !important;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 4px;
    padding: 10px;
    width: auto !important;
    max-width: 95vw;
}

/* Ensure two months sit side-by-side properly */
.flatpickr-days {
    display: flex !important;
    align-items: flex-start;
    width: auto !important;
    gap: 20px;
    /* Space between the two months */
    border: none !important;
}

/* Each month container */
.dayContainer {
    min-width: 300px !important;
    max-width: 320px !important;
    width: 307.875px !important;
    /* Airbnb theme alignment */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* 2. Grid & Day Alignment (Critical Fix) */
.flatpickr-day {
    max-width: 14.2857% !important;
    /* 1/7th */
    flex-basis: 14.2857% !important;
    width: 14.2857% !important;
    height: 39px !important;
    line-height: 39px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 1px solid transparent;
    box-sizing: border-box;
}

/* Weekdays Header Alignment */
.flatpickr-weekdays {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.flatpickr-weekdaycontainer {
    display: flex;
    flex: 1;
}

span.flatpickr-weekday {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.8rem;
}

/* 3. Unavailable Dates (Striped styling) */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #ccc !important;
    background: repeating-linear-gradient(45deg,
            #f5f5f5,
            #f5f5f5 5px,
            #e0e0e0 5px,
            #e0e0e0 10px) !important;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
    border: none;
}

/* 4. Selected Range Styling */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: white !important;
}

.flatpickr-day.inRange {
    box-shadow: -5px 0 0 #f3e5c9, 5px 0 0 #f3e5c9 !important;
    background: #f3e5c9 !important;
    border-color: #f3e5c9 !important;
    color: var(--color-text-main) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .flatpickr-days {
        flex-direction: column;
        gap: 0;
    }

    .flatpickr-calendar {
        width: 320px !important;
    }

    .dayContainer {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}