:root {
    /* Brand Colors */
    --color-primary: #0052cc;
    /* Deep Blue */
    --color-primary-hover: #0043a8;
    --color-secondary: #0ea5e9;
    /* Sky Blue */

    /* UI Colors */
    --color-bg-body: #f4f5f7;
    --color-bg-white: #ffffff;
    --color-text-main: #172b4d;
    --color-text-secondary: #5e6c84;
    --color-border: #dfe1e6;
    --color-divider: #ebecf0;

    /* Status Colors */
    --color-success-bg: #e3fcef;
    --color-success-text: #006644;
    --color-warning-bg: #fff0b3;
    --color-warning-text: #172b4d;
    --color-danger-bg: #ffebe6;
    --color-danger-text: #de350b;

    /* Spacing & Layout */
    --header-height: 60px;
    --header-height: 60px;
    --sidebar-width: 380px;
    /* Base desktop width */
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.08);
    --shadow-md: 0 4px 8px rgba(9, 30, 66, 0.12);
    --shadow-lg: 0 8px 16px rgba(9, 30, 66, 0.12);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ===== Shared Button Styles (UIKit) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    /* Base padding for Medium */
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    /* 4px usually, or 6px */
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: normal;
    gap: 8px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    height: 48px;
}

.btn-md {
    padding: 10px 16px;
    font-size: 14px;
    height: 40px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    height: 32px;
}

/* Primary Button (Solid Blue) */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

.btn-primary:active {
    background-color: #00388b;
    /* Darker */
}

.btn-primary:disabled {
    background-color: #dfe1e6;
    color: #a5adba;
    cursor: not-allowed;
}

/* Secondary Button (Outline Blue) */
.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(9, 30, 66, 0.04);
}

.btn-secondary:active,
.btn-secondary.active {
    background-color: rgba(0, 82, 204, 0.1);
}

/* Ghost / Icon Button */
.btn-ghost {
    background-color: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    background-color: rgba(9, 30, 66, 0.08);
    /* Light gray */
    color: var(--color-text-main);
}

.btn-icon {
    padding: 8px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

/* Utilities */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.flex-fill {
    flex: 1;
    min-width: 0;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.w-100 {
    width: 100%;
}

input,
select {
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ===== Cookie Notice ===== */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #111;
    color: #fff;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content {
    flex: 1;
}

.cookie-content p {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    color: #fff;
}

.cookie-content a {
    color: #ff5a2f;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #ff7b59;
}

.btn-cookie {
    background: #ff5a2f;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.btn-cookie:hover {
    background: #ff7049;
}

@media (max-width: 900px) {
    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px;
        gap: 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-content p {
        font-size: 15px;
        line-height: 1.5;
    }

    .btn-cookie {
        width: 100%;
        padding: 12px;
    }
}

/* ===== Header ===== */
.app-header {
    height: var(--header-height);
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 30;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.header-btn:hover {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
}

.icon-solar {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* ===== Layout ===== */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    /* Wider sidebar as per design */
    background-color: var(--color-bg-white);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    z-index: 20;
    flex-shrink: 0;
    position: relative;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Search Bar */
.search-container {
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    color: var(--color-text-main);
    transition: all 0.2s;
}

.search-input:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 12px;
    color: #94a3b8;
    pointer-events: none;
}

/* Filter Sections & Accordion */
.filter-section {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 0;
}

.filter-section:first-child {
    padding-top: 0;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 16px;
}

.accordion-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-main);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--color-text-main);
}

.accordion-header.collapsed .accordion-icon {
    transform: rotate(-90deg);
}

.accordion-content {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.accordion-content.hidden {
    display: none;
}

/* Custom Checkbox List */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-main);
    user-select: none;
}

.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    /* Gray border */
    border-radius: 6px;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.custom-checkbox:checked {
    background-color: var(--color-primary);
    /* #0B4E94 from image */
    border-color: var(--color-primary);
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox:hover {
    border-color: var(--color-primary);
}

/* Formats Selection Widget */
.formats-widget {
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.formats-widget:hover {
    background: #f1f5f9;
}

.formats-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
}

.formats-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-tag {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tag-close {
    color: #94a3b8;
    cursor: pointer;
    display: flex;
}

.tag-close:hover {
    color: #ef4444;
}

/* Slide-out Formats Panel */
.formats-panel {
    position: absolute;
    left: 100%;
    top: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    border-left: 1px solid var(--color-border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    z-index: 25;
    display: flex;
    flex-direction: column;
    transform: translateX(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.formats-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.panel-header-row {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-weight: 700;
    font-size: 18px;
}

/* Sides Buttons */
.sides-group {
    display: flex;
    gap: 8px;
}

.side-btn {
    width: 48px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.side-btn.active {
    background: #0B4E94;
    /* Deep Blue from image */
    color: white;
    border-color: #0B4E94;
}

/* Reset Button */
.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--color-border);
}

.btn-reset {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: rgba(0, 82, 204, 0.04);
}


/* ===== Main Content Area ===== */
.content-area {
    flex: 1;
    position: relative;
    background-color: var(--color-bg-body);
    overflow: hidden;
}

/* Map View */
#map-container {
    width: 100%;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
}

/* List View */
#list-container {
    position: absolute;
    inset: 0;
    background-color: var(--color-bg-body);
    overflow-y: auto;
    padding: 20px;
    display: none;
    /* Hidden by default */
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.card-img-wrapper {
    height: 200px;
    background-color: #f0f2f5;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-free {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.badge-reserved {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}

.badge-sold {
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--color-text-main);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-pill {
    font-size: 12px;
    color: var(--color-text-secondary);
    background: var(--color-bg-body);
    padding: 4px 8px;
    border-radius: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-divider);
    padding-top: 12px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-book {
    background-color: var(--color-primary);
    color: white;
    padding: 0 16px;
    height: 32px;
    /* Small button */
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-book:hover {
    background-color: #00388b;
}

/* Map Controls Override */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--color-text-secondary);
}

.control-btn:hover {
    color: var(--color-primary);
}

/* Details Panel (Floating Card) */
.details-overlay {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%) translateX(20px);
    width: 500px;
    background: white;
    z-index: 50;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

.details-overlay.open {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    visibility: visible;
}

.popup-content {
    padding: 30px;
}

.popup-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.popup-img-wrapper {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-title-area {
    flex: 1;
}

.popup-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--color-text-main);
}

.popup-gid {
    font-size: 13px;
    color: #94a3b8;
    display: block;
}

.popup-props {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.prop-row {
    display: flex;
    align-items: baseline;
    font-size: 14px;
    color: var(--color-text-main);
}

.prop-label {
    color: var(--color-text-main);
}

.prop-dots {
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 6px;
    position: relative;
    top: -4px;
}

.prop-value {
    font-weight: 500;
    text-align: right;
}

.popup-footer {
    padding-top: 0;
}

.btn-book-large {
    width: 100%;
    height: 48px;
    /* Large button */
    background: var(--color-primary);
    color: white;
    padding: 0 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-book-large:hover {
    background: var(--color-primary-hover);
}

.close-btn-abs {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #94a3b8;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
}

.close-btn-abs:hover {
    color: var(--color-danger-text);
}

.hidden {
    display: none !important;
}

/* =========================================
   FAQ Section Styles
   ========================================= */
#faq-container {
    position: absolute;
    inset: 0;
    top: 0;
    /* Cover header? No, usually content-area is below header. */
    /* Check layout: .content-area seems to be the right container */
    background-color: #f8fafc;
    /* Very light slate bg */
    overflow-y: auto;
    padding: 32px;
    z-index: 50;
    /* Above map */
    display: none;
    /* Toggled via JS */
}

/* Fade in animation */
#faq-container[style*="block"] {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
}

.faq-page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--color-text-main);
    text-align: center;
    letter-spacing: -0.02em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 1px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    border-color: rgba(0, 82, 204, 0.1);
    /* Slight primary tint */
}

.faq-question {
    padding: 24px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
    flex-shrink: 0;
}

/* Active State */
.faq-item.active {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: var(--color-primary);
}

.faq-item.active .faq-question {
    color: var(--color-primary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    /* Slate 600 */
    font-size: 16px;
    line-height: 1.6;
    background: #f8fafc;
    /* Very subtle contrast for answer */
}

.faq-item.active .faq-answer {
    padding-top: 24px;
    padding-bottom: 24px;
    max-height: 300px;
    /* Adjust if content is very long */
    border-top: 1px solid #f1f5f9;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #faq-container {
        padding: 16px;
        z-index: 1000;
        /* Ensure on top of mobile inputs */
    }

    .faq-page-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .faq-question {
        font-size: 16px;
        padding: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }
}

/* Logo Responsive Styles */
.brand-logo-img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}




@media (max-width: 768px) {
    .brand-logo-img {
        max-height: 35px;
    }


}

/* Header Mobile Adjustments */
@media (max-width: 768px) {
    .app-header {
        padding: 0 12px;
    }

    .header-actions {
        gap: 8px;
        /* Reduced from 16px */
    }

    .header-btn {
        padding: 8px;
        /* Reduced from 8px 12px */
    }

    .btn-text {
        display: none;
        /* Hide text, show only icons */
    }
}