/* Custom Properties for Classic Premium Theme */
:root {
    --bg-page: #F6F3ED;
    --bg-card: #FFFFFF;
    --text-main: #202B28;
    --btn-primary: #173F35;
    --btn-primary-hover: #0f2a23;
    --btn-text: #FFFFFF;
    --accent: #B79B70;
    --accent-hover: #9e8560;
    --border-soft: rgba(32, 43, 40, 0.1);
    --shadow-soft: 0 4px 24px rgba(32, 43, 40, 0.04);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --radius: 16px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    lang: "en-CA";
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--text-main);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

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

button {
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

button:focus-visible, a:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.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;
}

/* Layout Classes */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text-main);
    min-width: 44px;
    min-height: 44px;
}

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

.hero-image {
    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-color: rgba(32, 43, 40, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--bg-card);
    max-width: 800px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--bg-card);
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 18px;
    font-weight: 400;
}

/* Filtering Section */
.controls-section {
    padding: 32px 0 16px;
}

.controls-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background-color: var(--bg-card);
    padding: 16px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

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

.filter-label {
    font-size: 14px;
    font-weight: 500;
}

.destination-select {
    padding: 10px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-main);
    background-color: var(--bg-page);
    min-height: 44px;
}

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

/* Custom Checkbox for Saved Hotels */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.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: .4s;
    border-radius: 24px;
}

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

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

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

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

/* Listings */
.listings-section {
    padding: 24px 0 64px;
}

.section-heading {
    font-size: 32px;
    margin-bottom: 24px;
}

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

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

.hotel-card:hover {
    box-shadow: 0 12px 32px rgba(32, 43, 40, 0.08);
    transform: translateY(-2px);
}

.card-image-wrapper {
    width: 38%;
    position: relative;
    flex-shrink: 0;
}

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

.save-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background-color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--text-main);
    z-index: 10;
}

.save-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: var(--transition);
}

.save-btn.saved svg {
    fill: var(--accent);
    stroke: var(--accent);
}

.card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    width: 62%;
    position: relative;
}

.location {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.hotel-name {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.editorial-headline {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-main);
}

.description {
    font-size: 15px;
    color: #4A5552;
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.feature-tag {
    font-size: 13px;
    background-color: var(--bg-page);
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.relationship-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--btn-primary);
    background-color: rgba(23, 63, 53, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 24px;
    align-self: flex-start;
}

.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.btn-primary {
    background-color: var(--btn-primary);
    color: var(--btn-text);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    text-align: center;
}

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

.booking-support {
    font-size: 12px;
    color: #6C7A76;
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 64px 24px;
    background-color: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
}

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

.btn-reset {
    color: var(--accent);
    font-weight: 500;
    text-decoration: underline;
    min-height: 44px;
    padding: 8px 16px;
}

/* Footer */
.site-footer {
    background-color: var(--bg-card);
    padding: 48px 0;
    border-top: 1px solid var(--border-soft);
    text-align: center;
}

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

.footer-nav a {
    font-size: 14px;
}

.footer-copy {
    font-size: 13px;
    color: #6C7A76;
    max-width: 600px;
    margin: 0 auto 12px;
}

/* Generic Pages (About, Terms, etc) */
.page-content {
    padding: 64px 0;
    background-color: var(--bg-card);
    min-height: 60vh;
}

.page-content h1 {
    font-size: 40px;
    margin-bottom: 32px;
    text-align: center;
}

.page-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
}

.page-content p {
    margin-bottom: 16px;
    font-size: 16px;
    color: #4A5552;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-main);
    color: var(--bg-card);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    visibility: hidden;
}

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

.cookie-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    font-size: 14px;
    color: #E2E8E6;
    margin: 0;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner .btn-secondary {
    background-color: transparent;
    color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    min-width: 44px;
    min-height: 44px;
    transition: var(--transition);
}

.cookie-banner .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-banner .btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
}

.cookie-banner .btn-primary:hover {
    background-color: var(--accent-hover);
}

.cookie-banner .btn-text {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 8px;
}

.cookie-banner .btn-text:hover {
    color: var(--accent-hover);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hotel-card {
        flex-direction: column;
    }
    
    .card-image-wrapper {
        width: 100%;
        height: 240px;
    }
    
    .card-content {
        width: 100%;
        padding: 24px;
    }
    
    .card-actions {
        align-items: stretch;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .booking-support {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 60px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-soft);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        gap: 16px;
    }
    
    .main-nav.is-open {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 240px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .controls-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .destination-select {
        width: 100%;
    }
    
    .toggle-group {
        justify-content: space-between;
    }
    
    .cookie-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px;
    }
    
    .cookie-actions {
        justify-content: stretch;
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-actions button {
        width: 100%;
    }
    
    .cookie-banner .btn-text {
        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;
    }
}