/* GezinOpWeg - Playful Layout */

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 249, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--color-moss-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    z-index: var(--z-nav);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: var(--transition-bounce);
}

.header__logo:hover {
    transform: scale(1.05);
}

.header__logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
}

.header__logo:hover .header__logo-img {
    transform: rotate(15deg) scale(1.1);
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-forest);
}

.header__menu-btn {
    width: 44px;
    height: 44px;
    background: var(--color-moss-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.header__menu-btn:hover {
    background: var(--color-moss);
    transform: scale(1.05);
}

.header__menu-icon {
    width: 22px;
    height: 3px;
    background: var(--color-forest);
    position: relative;
    border-radius: 2px;
}

.header__menu-icon::before,
.header__menu-icon::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 3px;
    background: var(--color-forest);
    border-radius: 2px;
    left: 0;
}

.header__menu-icon::before { top: -7px; }
.header__menu-icon::after { bottom: -7px; }

/* ==================== MAIN LAYOUT ==================== */
.main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: var(--z-base);
}

/* ==================== SEARCH PANEL ==================== */
.search-panel {
    padding: var(--space-xl) var(--space-lg);
    background: white;
    border-bottom: 3px solid var(--color-moss-light);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.search-panel__title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 800;
    margin-bottom: var(--space-xl);
    color: var(--color-forest);
    line-height: 1.3;
}

/* ==================== MAP SECTION ==================== */
.map-section {
    flex: 1;
    position: relative;
    min-height: 400px;
    padding: var(--space-md);
}

.map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--color-moss-light);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.map-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 249, 240, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: var(--z-loader);
    border-radius: var(--radius-lg);
}

.map-loader p {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-forest);
}

/* ==================== DETAIL PANEL ==================== */
.detail-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 75vh;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: 3px solid var(--color-moss-light);
    border-bottom: none;
    box-shadow: 0 -8px 32px rgba(27, 67, 50, 0.2);
    z-index: var(--z-panel);
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
}

.detail-panel:not([hidden]) {
    transform: translateY(0);
}

.detail-panel__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    background: var(--color-moss-light);
    border-radius: 50%;
    font-size: var(--font-size-2xl);
    color: var(--color-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    z-index: 10;
}

.detail-panel__close:hover {
    background: var(--color-sunset);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.detail-panel__content {
    padding: var(--space-xl) var(--space-lg);
}

.detail-panel__image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--color-moss-light), var(--color-mint));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--color-moss-light);
}

.detail-panel__image-placeholder {
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
}

.detail-panel__image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-panel__name {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
    color: var(--color-forest);
}

.detail-panel__type {
    font-size: var(--font-size-sm);
    font-weight: 800;
    color: var(--color-sunset);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.detail-panel__location,
.detail-panel__distance {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-leaf);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.detail-panel__icon {
    font-size: 1.2rem;
}

.detail-panel__subtitle {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: var(--space-lg) 0 var(--space-md);
    color: var(--color-forest);
}

.detail-panel__facilities {
    margin-bottom: var(--space-xl);
}

.facilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.facilities-list li {
    background: linear-gradient(135deg, var(--color-mint), var(--color-moss-light));
    color: var(--color-forest);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
    border: 2px solid var(--color-moss-light);
    transition: var(--transition-bounce);
}

.facilities-list li:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: var(--shadow-sm);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    color: var(--color-cream);
    background: var(--color-bark);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.footer p {
    margin: 0;
}

/* Extended footer with province links */
.footer--extended {
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    text-align: left;
}

.footer__inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.footer__logo-text {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-cream);
}

.footer__tagline {
    color: rgba(255, 249, 240, 0.7);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    font-weight: 500;
    max-width: 320px;
}

.footer__section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-moss-light);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links a {
    color: rgba(255, 249, 240, 0.8);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer__links a:hover {
    color: var(--color-moss);
}

.footer__bottom {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 249, 240, 0.15);
    text-align: center;
    color: rgba(255, 249, 240, 0.5);
    font-size: var(--font-size-sm);
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
    .header {
        padding: 0 var(--space-2xl);
    }

    .search-panel {
        padding: var(--space-2xl) var(--space-xl);
    }

    .search-panel__title {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }

    .map-section {
        padding: var(--space-lg);
    }

    .detail-panel {
        left: auto;
        right: var(--space-lg);
        bottom: var(--space-lg);
        max-width: 400px;
        max-height: calc(100vh - var(--header-height) - var(--space-2xl));
        border-radius: var(--radius-xl);
        border: 3px solid var(--color-moss-light);
    }

    .detail-panel:not([hidden]) {
        transform: translateY(0);
    }
}

@media (min-width: 1024px) {
    .main {
        flex-direction: row;
    }

    .search-panel {
        width: var(--search-panel-width);
        border-bottom: none;
        border-right: 3px solid var(--color-moss-light);
        border-radius: 0 var(--radius-xl) 0 0;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .map-section {
        flex: 1;
    }
}
