/* --- CSS Variables & Reset --- */
:root {
    --primary: #d89a24;
    --primary-hover: #b97712;
    --accent: #d7af45;
    --accent-hover: #f0c75b;
    --warm-accent: #ed6a2c;
    --warm-accent-hover: #c94f1d;
    --text-main: #f7f5ef;
    --text-secondary: #bbb8af;
    --border: #353535;
    --bg-light: #171717;
    --surface: #111111;
    --surface-raised: #1d1d1d;
    --white: #ffffff;
    --font-family: "Segoe UI", Arial, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --shadow-card: 0 6px 16px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-wrap: break-word;
    overflow-x: clip;
}

/* Media and embeds never exceed their container */
img,
video,
iframe,
svg {
    max-width: 100%;
}

img,
video {
    height: auto;
}

/* Display font for headings (only weights 500 and 600 are loaded) */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Header / Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(17, 17, 17, 0.96);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px; /* Desktop padding */
    background-color: var(--surface);
}

.logo-container {
    display: flex;
    align-items: center;
    color: var(--accent-hover);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 12px rgba(215, 175, 69, 0.18);
}

.menu-container {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    color: var(--white);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    transition: box-shadow 0.2s;
}

.user-menu:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-menu:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.menu-icon {
    display: grid;
    gap: 4px;
    width: 18px;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1001;
    display: grid;
    gap: 4px;
    width: min(280px, calc(100vw - 32px));
    padding: 20px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.dropdown-menu[hidden] {
    display: none;
}

.dropdown-menu a {
    display: block;
    padding: 9px 10px;
    color: var(--text-main);
    overflow-wrap: anywhere;
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    color: var(--text-main);
    background: var(--bg-light);
}

.dropdown-menu .dropdown-book-link {
    margin-top: 4px;
    color: var(--white);
    background: var(--warm-accent);
    text-align: center;
    font-weight: 600;
}

.dropdown-menu .dropdown-book-link:hover {
    color: var(--white);
    background: var(--warm-accent-hover);
}

/* --- Layout Container --- */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px 40px;
}

.hero {
    display: flex;
    align-items: center;
    min-height: clamp(440px, 70vh, 680px);
    margin-top: 80px;
    padding: 72px 24px;
    color: var(--white);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.78)),
        url("images%20%26%20videos/800996102.jpg");
    background-position: center;
    background-size: cover;
}

.hero-content {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.08;
    text-wrap: balance;
    color: var(--accent-hover);
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.75);
}


.hero p {
    max-width: 680px;
    margin-top: 20px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.hero-button-primary {
    color: var(--white);
    background: var(--warm-accent);
    border-color: var(--warm-accent);
}

.hero-button-primary:hover {
    color: var(--white);
    background: var(--warm-accent-hover);
    border-color: var(--warm-accent-hover);
}

.hero-button-secondary {
    color: var(--white);
    border-color: var(--white);
    background: rgba(0, 0, 0, 0.2);
}

.hero-button-secondary:hover {
    color: var(--surface);
    background: var(--white);
}

.properties-section {
    margin-bottom: 48px;
    padding: clamp(22px, 4vw, 40px);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--accent-hover);
}

.section-heading p {
    margin: 0;
    color: var(--text-secondary);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 24px;
    align-items: stretch;
}

.property-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -4px 0 22px;
}

.property-filter {
    min-height: 42px;
    padding: 8px 16px;
    color: var(--text-main);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 700;
}

.property-filter.is-active,
.property-filter:hover {
    color: #111111;
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.property-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.property-card[hidden] {
    display: none;
}

.property-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(2, 120px);
    gap: 4px;
    overflow: hidden;
    background: var(--surface);
}

.property-photo {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    background: var(--bg-light);
}

.property-photo-featured {
    grid-row: 1 / -1;
}

.property-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.property-photo:hover img {
    transform: scale(1.04);
}

.property-photo:focus-visible {
    z-index: 1;
    outline: 3px solid var(--primary);
    outline-offset: -3px;
}

.gallery-photo-extra {
    display: none;
}

.photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.68);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.property-video-wrap {
    padding: 14px 18px 0;
}

.property-video-label {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.property-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: var(--radius-sm);
}

.property-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.property-location {
    color: var(--warm-accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.property-card-content h3 {
    margin-top: 4px;
    font-size: 1.35rem;
    color: var(--accent);
}

.property-facts {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.property-description {
    margin-top: 16px;
    color: var(--text-secondary);
}

.property-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
}

.property-price {
    font-size: 0.95rem;
}

.property-price strong {
    font-size: 1.4rem;
    color: var(--accent-hover);
}

.property-price span {
    color: var(--text-secondary);
}

.property-book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--warm-accent);
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 0;
}

.property-book-button:hover {
    background: var(--warm-accent-hover);
}

.property-book-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.photo-viewer {
    position: fixed;
    width: min(920px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 52px 60px 24px;
    overflow: visible;
    color: var(--white);
    background: #171717;
    border: 0;
    border-radius: var(--radius-md);
}

.photo-viewer[open] {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.photo-viewer::backdrop {
    background: rgba(0, 0, 0, 0.82);
}

.photo-viewer-image {
    display: block;
    max-width: 100%;
    max-height: min(72vh, 720px);
    object-fit: contain;
}

.photo-viewer-video {
    display: block;
    width: min(800px, 100%);
    max-height: min(72vh, 720px);
    border-radius: var(--radius-sm);
    background: #000;
}

.photo-viewer-image[hidden],
.photo-viewer-video[hidden] {
    display: none;
}

.photo-viewer-caption {
    text-align: center;
}

.photo-viewer-close,
.photo-viewer-nav {
    position: absolute;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
}

.photo-viewer-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
}

.photo-viewer-nav {
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    font-size: 2rem;
}

.photo-viewer-previous {
    left: 10px;
}

.photo-viewer-next {
    right: 10px;
}

.photo-viewer-close:hover,
.photo-viewer-nav:hover {
    background: var(--primary);
}

.photo-viewer button:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.information-section {
    margin-top: 48px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface-raised);
}

.information-section h2 {
    margin-bottom: 12px;
    color: var(--accent-hover);
}

.location-map {
    height: 320px;
    margin: 18px 0 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.rules-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rules-grid article,
.testimonials-grid blockquote {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.rules-grid h3 {
    margin-bottom: 6px;
    color: var(--accent);
}

.testimonials-grid blockquote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.testimonials-grid blockquote footer {
    margin-top: 16px;
    padding: 0;
    color: var(--warm-accent);
    background: none;
    border: 0;
    text-align: left;
    font-weight: 800;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.faq-list summary {
    cursor: pointer;
    color: var(--text-main);
    font-weight: 800;
}

.faq-list details[open] summary {
    color: var(--accent-hover);
}

.faq-list details p {
    margin-top: 10px;
    color: var(--text-secondary);
}

.information-section > a {
    display: inline-block;
    margin-top: 8px;
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-list {
    display: grid;
    gap: 12px;
    max-width: 360px;
    margin-top: 20px;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.contact-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
}

.contact-icon-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.contact-icon-link svg {
    display: block;
    width: 25px;
    height: 25px;
}

.whatsapp-link svg {
    width: 30px;
    height: 30px;
}

.whatsapp-link svg circle {
    fill: #25d366;
}

.whatsapp-link svg path {
    fill: var(--white);
}

.gmail-link svg {
    fill: #ea4335;
}

h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.amenities-section {
    margin-top: 48px;
    padding: clamp(22px, 4vw, 40px);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.amenities-grid p {
    padding: 16px;
    color: var(--text-main);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.amenities-grid span {
    color: var(--warm-accent);
    margin-right: 6px;
}

.booking-modal {
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    color: var(--text-main);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.booking-modal::backdrop {
    background: rgba(0, 0, 0, 0.82);
}

.booking-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.5rem;
}

.booking-form {
    padding: 32px;
}

.booking-eyebrow {
    color: var(--warm-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.booking-form h2 {
    margin-top: 4px;
    color: var(--accent-hover);
}

.booking-property-name {
    margin: 6px 0 20px;
    color: var(--text-secondary);
}

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.booking-form-grid label {
    display: grid;
    gap: 7px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
}

.booking-form-grid input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text-main);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color-scheme: dark;
}

.availability-status {
    min-height: 24px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-weight: 700;
}

.availability-status.success {
    color: #78c879;
}

.availability-status.error {
    color: #ff8a65;
}

.availability-status.loading {
    color: var(--accent-hover);
}

.booking-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    color: var(--white);
    background: var(--warm-accent);
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.booking-submit:hover {
    background: var(--warm-accent-hover);
}

.booking-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 10px;
    color: var(--white);
    background: #168d43;
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.booking-whatsapp:hover {
    background: #117236;
}

.booking-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--white);
    background: #25d366;
    border: 3px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
    font-size: 0.78rem;
    font-weight: 800;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- Footer --- */
footer {
    background-color: #0a0a0a;
    padding: 48px 0;
    margin-top: 60px;
    border-top: 2px solid var(--accent);
}

.footer-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    color: var(--white);
    font-size: 0.9rem;
}

.footer-content p + p {
    margin-top: 10px;
}

.footer-content a {
    color: var(--accent-hover);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header {
        padding: 0 24px;
    }
    
    .property-gallery {
        grid-template-rows: repeat(2, 100px);
    }

    .property-card-content {
        padding: 18px;
    }

    .property-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .property-book-button {
        width: 100%;
    }

    .photo-viewer {
        padding: 52px 46px 20px;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-form {
        padding: 26px 18px 20px;
    }

    .booking-form-grid {
        grid-template-columns: 1fr;
    }

    .rules-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .location-map {
        height: 260px;
    }

    /* Readable text: nothing below 16px on phones */
    .property-location,
    .property-facts,
    .property-price,
    .photo-count,
    .property-video-label,
    .booking-form-grid label,
    .booking-eyebrow,
    .footer-content {
        font-size: 1rem;
    }

    /* 16px form fields also stop iOS from zooming in on focus */
    .booking-form-grid input {
        font-size: 1rem;
    }

    /* Tap targets at least 44 x 44px */
    .dropdown-menu a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .dropdown-menu .dropdown-book-link {
        justify-content: center;
    }

    .property-filter {
        min-height: 44px;
        min-width: 44px;
    }

    .contact-icon-link {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .contact-row > a:first-child {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .information-section > a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .faq-list details {
        padding: 0 16px;
    }

    .faq-list summary {
        display: list-item;
        min-height: 44px;
        padding: 12px 0;
    }

    .faq-list details p {
        margin-top: 0;
        padding-bottom: 14px;
    }

    .footer-content a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 4px;
    }

    .booking-modal-close,
    .photo-viewer-close,
    .photo-viewer-nav {
        width: 44px;
        height: 44px;
    }

    /* Photo viewer: let the photo use the full width, buttons overlay it */
    .photo-viewer {
        padding: 64px 12px 16px;
    }

    .photo-viewer-previous {
        left: 16px;
    }

    .photo-viewer-next {
        right: 16px;
    }

    .photo-viewer-image,
    .photo-viewer-video {
        max-height: min(65vh, 720px);
        max-height: min(65dvh, 720px);
    }

    /* Keep the hero comfortable on short phone screens */
    .hero {
        min-height: auto;
        padding: 56px 20px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        font-size: 1rem;
    }

    .container {
        padding: 32px 16px 32px;
    }

    .information-section {
        padding: 22px 18px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 16px;
    }

    .logo-container {
        font-size: 1.3rem;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-button {
        width: 100%;
    }

    .property-gallery {
        grid-template-rows: repeat(2, 90px);
    }
}