/* Variables & Reset */
:root {
    --bg-parchment: #F7F2E9;
    --bg-card: #FFFEFB;
    --text-ink: #272825;
    --btn-olive: #3E5140;
    --btn-olive-hover: #314032;
    --accent-terracotta: #A56B51;
    --border-light: rgba(39,40,37,0.1);
    
    --font-heading: 'Lora', serif;
    --font-body: 'Source Sans 3', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-parchment);
    color: var(--text-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wordmark, .footer-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-ink);
    letter-spacing: -0.01em;
}

.desktop-nav ul {
    display: flex;
    gap: 32px;
}

.desktop-nav a, .footer-nav a {
    font-size: 0.9375rem;
    color: var(--text-ink);
    transition: color 0.2s ease;
}

.desktop-nav a:hover, .footer-nav a:hover {
    color: var(--accent-terracotta);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-ink);
    padding: 8px;
}

.mobile-nav {
    display: none;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero */
.hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(39,40,37,0.3), rgba(39,40,37,0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 24px;
    color: #FFF;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Main Container */
.container {
    max-width: 1148px; /* 1100 + 48 padding */
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Controls */
.controls-section {
    margin-bottom: 32px;
}

.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.search-group {
    position: relative;
    flex: 0 1 400px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: transparent;
    transition: border-color 0.2s;
}

.search-group input:focus {
    outline: none;
    border-color: var(--accent-terracotta);
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-label {
    font-size: 0.9375rem;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--btn-olive);
}

input:focus-visible + .slider {
    outline: 2px solid var(--text-ink);
    outline-offset: 2px;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Listings */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-ink);
}

.hotel-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hotel Card */
.hotel-card {
    display: flex;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.hotel-card:hover {
    box-shadow: 0 4px 12px rgba(39,40,37,0.05);
}

.card-image-wrapper {
    position: relative;
    flex: 0 0 42%;
    min-height: 280px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.save-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-ink);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, color 0.2s ease;
}

.save-btn:hover {
    transform: scale(1.05);
}

.save-btn:focus-visible {
    outline: 2px solid var(--accent-terracotta);
    outline-offset: 2px;
}

.save-btn.saved {
    color: var(--accent-terracotta);
}

.save-btn.saved .heart-icon {
    fill: var(--accent-terracotta);
    stroke: var(--accent-terracotta);
}

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

.card-header {
    margin-bottom: 12px;
}

.location {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 6px;
    display: block;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
}

.card-header h3 a {
    color: var(--text-ink);
}

.card-header h3 a:hover {
    color: var(--accent-terracotta);
}

.editorial-headline {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-style: italic;
    font-weight: 400;
    color: var(--accent-terracotta);
    margin-bottom: 12px;
}

.description {
    font-size: 0.9375rem;
    color: #4a4a48;
    margin-bottom: 20px;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.features li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #555;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.relationship-badge .badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--bg-parchment);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-ink);
}

.booking-action {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.support-line {
    font-size: 0.75rem;
    color: #666;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--btn-olive);
    color: #FFF;
}

.btn-primary:hover {
    background-color: var(--btn-olive-hover);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--text-ink);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-ink);
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 48px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: #666;
    max-width: 600px;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #999;
}

/* Static Pages Content */
.static-content {
    background-color: var(--bg-card);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.static-content h1 {
    font-family: var(--font-heading);
    margin-bottom: 24px;
}

.static-content p {
    margin-bottom: 16px;
}

/* Cookie Consent */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 12px rgba(39, 40, 37, 0.1);
    z-index: 1000;
    padding: 24px;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease, visibility 0.3s;
}

.cookie-banner.show {
    visibility: visible;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    font-size: 0.9375rem;
    color: var(--text-ink);
}

.cookie-content a {
    color: var(--accent-terracotta);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive */
@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .cookie-buttons {
        flex-wrap: nowrap;
    }
}

@media (max-width: 900px) {
    .card-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: 220px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .controls-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .search-group {
        flex: 1 1 auto;
    }

    .hotel-card {
        flex-direction: column;
    }

    .card-image-wrapper {
        flex: 0 0 240px;
        min-height: 240px;
    }

    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .booking-action {
        align-items: stretch;
        text-align: center;
    }
    
    .relationship-badge {
        text-align: center;
    }
}

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