:root {
    --bg: #F8F3EA;
    --sage-dark: #4e5d42;
    --sage: #68745e;
    --sage-light: #8fa07a;
    --ink: #3a3a34;
    --card-bg: #ffffff;
    --border: rgba(104, 116, 94, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    background-color: #F8F3EA;
    margin: 0;
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--sage-dark);
    margin: 0 0 0.4em;
}

a {
    color: var(--sage-dark);
    text-decoration: none;
}

a:hover {
    color: var(--sage-light);
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 6vw, 5rem);
    padding: 0.6rem 2rem;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-nav {
    display: flex;
    align-items: center;
    flex: 1;
}

.site-nav:first-child {
    justify-content: flex-end;
}

.site-nav:last-child {
    justify-content: flex-start;
}

.site-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage);
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--sage-dark);
    border-bottom-color: var(--sage-light);
}

.brand {
    display: block;
    flex-shrink: 0;
    padding: 0.5rem 0;
}

.brand-logo {
    height: 108px;
    width: auto;
    display: block;
}

/* Countdown */
.countdown {
    max-width: 700px;
    margin: 2.5rem auto 0;
    padding: 0 2rem;
    text-align: center;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: clamp(0.8rem, 4vw, 2.2rem);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 1rem 0.6rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--sage-dark);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    margin-top: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage-light);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}

.hero-image {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
}

.hero-image picture {
    display: contents;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--sage-light);
    margin: 0 0 0.6em;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--sage);
    margin: 0.2em 0 1em;
}

.hero-copy {
    max-width: 46ch;
    color: var(--ink);
}

/* Info strip */
.info-strip {
    max-width: 1100px;
    margin: 1rem auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.6rem;
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card h3 {
    font-size: 1.3rem;
}

.info-card p {
    margin: 0;
    color: var(--sage);
}

.location-meta {
    margin: 0 0 0.2rem !important;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* Elegant map toggle (used on index and alojamientos) */
.location-toggle {
    margin-top: 1rem;
}

.info-card .location-toggle {
    width: 100%;
}

.location-toggle summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage-dark);
    padding-bottom: 3px;
    border-bottom: 1px solid var(--sage-dark);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.location-toggle summary::-webkit-details-marker {
    display: none;
}

.location-toggle summary::marker {
    content: "";
}

.location-toggle summary::after {
    content: "+";
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.location-toggle[open] summary::after {
    transform: rotate(45deg);
}

.location-toggle summary:hover {
    color: var(--sage-light);
    border-color: var(--sage-dark);
}

.location-map {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.location-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: sepia(18%) saturate(75%) hue-rotate(50deg) brightness(97%) contrast(96%);
    transition: filter 0.3s ease;
}

.location-map:hover iframe {
    filter: none;
}

.map-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    transition: opacity 0.25s ease;
}

.map-spinner::after {
    content: "";
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--sage-dark);
    animation: map-spin 0.8s linear infinite;
}

.location-map.is-loaded .map-spinner {
    opacity: 0;
    pointer-events: none;
}

@keyframes map-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Page header (subpages) */
.page-header {
    max-width: 700px;
    margin: 3rem auto 1rem;
    padding: 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.6rem;
}

.page-header .hero-copy {
    margin: 0 auto;
}

/* Hotels grid */
.hotels-grid {
    max-width: 1000px;
    margin: 2.5rem auto 5rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.8rem;
    align-items: start;
}

.hotel-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
}

.hotel-card h2 {
    font-size: 1.6rem;
}

.hotel-desc {
    color: var(--sage);
    margin: 0 0 0.6rem;
}

.hotel-address,
.hotel-fechas {
    margin: 0 0 0.3rem;
    font-size: 0.9rem;
    color: var(--ink);
}

.hotel-rates {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.88rem;
}

.hotel-rates td {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.hotel-rate-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
    color: var(--sage-dark);
}

.hotel-booking {
    background-color: var(--bg);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin: 0.4rem 0 0.4rem;
}

.hotel-booking-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sage-light);
    margin: 0.8rem 0 0.3rem;
}

.hotel-booking-label:first-child {
    margin-top: 0;
}

.hotel-code {
    display: inline-block;
    background-color: var(--card-bg);
    border: 1px dashed var(--sage-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin: 0;
}

.hotel-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.hotel-note {
    margin: 0.8rem 0 0;
    font-size: 0.82rem;
    color: var(--sage);
    line-height: 1.5;
}

.hotel-actions {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem 1.2rem;
}

.hotel-actions .location-toggle[open] {
    flex: 1 1 100%;
}

.hotel-actions .location-toggle {
    margin-top: 0;
}

.hotel-link {
    flex-shrink: 0;
    background-color: var(--sage-dark);
    color: #fff;
    padding: 0.55rem 1.3rem;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.hotel-link:hover {
    background-color: var(--sage-light);
    color: #fff;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--sage);
    border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        margin: 0 auto;
    }

    .info-strip {
        grid-template-columns: 1fr;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 0.2rem 1.6rem;
        padding: 0.8rem 1rem;
    }

    .site-nav {
        flex: none;
    }

    .brand {
        order: -1;
        flex-basis: 100%;
        padding: 0.3rem 0;
    }

    .brand-logo {
        height: 118px;
        margin: 0 auto;
    }
}
