/*
 * Haus Aurea - Custom Styles
 * Only structural/functional styles - colors and fonts come from the theme
 */

/* ===== Booking/Map Integrations ===== */
.booking-iframe-container {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.booking-iframe-container iframe {
    width: 100%;
    border: none;
    min-height: 800px;
}

contwise-maps {
    display: block;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

/* ===== Amenities List ===== */
.amenities-list {
    list-style: none;
    padding: 0;
}

.amenities-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.amenities-list li i,
.amenities-list li span.icon {
    color: #91765a;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ===== Stats Row ===== */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .value {
    font-size: 32px;
    font-weight: 700;
    color: #91765a;
    display: block;
}

.stat-item .label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
}

/* ===== Activity Cards ===== */
.activity-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 30px;
}

.activity-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.activity-card:hover img {
    transform: scale(1.05);
}

.activity-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(20,16,12,0.8));
}

.activity-card h5 {
    color: #fff;
    margin: 0;
}

/* ===== Benefits Grid ===== */
.benefit-card {
    text-align: center;
    padding: 30px 20px;
}

.benefit-card i {
    font-size: 40px;
    color: #91765a;
    margin-bottom: 15px;
    display: block;
}

.benefit-card h6 {
    font-size: 16px;
}

/* ===== Distance List ===== */
.distance-list {
    list-style: none;
    padding: 0;
}

.distance-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.distance-list li .value {
    color: #91765a;
    font-weight: 600;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-grid .gallery-item {
    overflow: hidden;
    border-radius: 4px;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== Highlights Grid ===== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-item i {
    color: #91765a;
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.highlight-item span {
    font-size: 14px;
}


/* ===== Mobile Bottom Navigation ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    /* Frosted glass – modern premium look */
    background: rgba(12, 9, 6, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(184, 166, 128, 0.18);
    display: flex;
    align-items: flex-start;
    /* Safe Area: Gesamthöhe = 68px Inhalt + Safe Area unten */
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    /* GPU-Layer: verhindert Jank/Jump auf iOS beim Scrollen */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

nav.mobile-bottom-nav a.mobile-bottom-nav__item {
    flex: 1;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px;
    padding: 8px 4px 10px;
    height: 68px;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

nav.mobile-bottom-nav a.mobile-bottom-nav__item i {
    font-size: 21px;
    line-height: 1;
    transition: transform 0.15s ease;
}

/* Goldener Strich oben bei aktivem Tab */
nav.mobile-bottom-nav a.mobile-bottom-nav__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 28px;
    height: 2px;
    background: #91765a;
    border-radius: 0 0 2px 2px;
    transition: transform 0.25s ease;
}

nav.mobile-bottom-nav a.mobile-bottom-nav__item.active::before {
    transform: translateX(-50%) scaleX(1);
}

nav.mobile-bottom-nav a.mobile-bottom-nav__item.active,
nav.mobile-bottom-nav a.mobile-bottom-nav__item:hover {
    color: #91765a;
    text-decoration: none !important;
}

/* Touch-Feedback */
nav.mobile-bottom-nav a.mobile-bottom-nav__item:active i {
    transform: scale(0.88);
}

/* Platzhalter für FAB-Slot (nimmt Platz im Flex-Flow) */
.mobile-bottom-nav__fab-slot {
    flex: 1;
}

/* FAB: absolut positioniert, top-basiert → kein Safe-Area-Problem */
nav.mobile-bottom-nav a.mobile-bottom-nav__fab {
    position: absolute;
    left: 50%;
    top: -18px;                  /* 18px oberhalb der Nav-Leiste */
    transform: translateX(-50%);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px;
    width: 72px;                 /* feste Breite verhindert Shifts */
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.mbn-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #c4aa84, #8a6e4e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(145, 118, 90, 0.5),
                0 0 0 3px rgba(12, 9, 6, 0.94); /* Rand = Nav-Hintergrund, trennt Kreis von Content */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.mbn-feature-icon i {
    font-size: 21px;
    color: #fff;
    line-height: 1;
}

nav.mobile-bottom-nav a.mobile-bottom-nav__fab:active .mbn-feature-icon {
    transform: scale(0.92);
}

nav.mobile-bottom-nav a.mobile-bottom-nav__fab:hover .mbn-feature-icon,
nav.mobile-bottom-nav a.mobile-bottom-nav__fab.active .mbn-feature-icon {
    box-shadow: 0 6px 20px rgba(184, 166, 128, 0.5),
                0 0 0 3px rgba(12, 9, 6, 0.94);
}

nav.mobile-bottom-nav a.mobile-bottom-nav__fab.active,
nav.mobile-bottom-nav a.mobile-bottom-nav__fab:hover {
    color: #fff;
    text-decoration: none !important;
}

/* ===== iOS Overflow Fix ===== */
/* body allein reicht auf iOS Safari nicht – html muss auch gesetzt werden */
html {
    overflow-x: hidden;
}

/* Navbar: GPU-Layer → verhindert Repaint-Jank beim Klassenwechsel auf iOS */
.navbar {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    /* Hero bg-fixed Fix für iOS (background-attachment: fixed bricht auf Safari/iOS) */
    .bg-fixed {
        background-attachment: scroll !important;
    }

    /* iOS Dynamic Viewport: URL-Bar beeinflusst 100vh → dvh verwenden */
    @supports (min-height: 100dvh) {
        .banner-header.full-height {
            min-height: 100dvh;
        }
    }

    /* Body Padding für Bottom-Navigation (Phone + Tablet) */
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    /* Back-to-top Button über Bottom-Navigation heben */
    .progress-wrap {
        bottom: 84px !important;
    }

    /* Logo kleiner wenn Bottom-Navigation sichtbar ist */
    .logo-img {
        width: 140px !important;
    }
}

@media (max-width: 767px) {
    /* Section Padding: 120px → 60px auf Mobile */
    .section-padding {
        padding: 60px 0;
    }

    /* Booking Iframe: Höhe reduzieren */
    .booking-iframe-container iframe {
        min-height: 600px;
    }

    /* Stats: Schriftgröße auf Mobile */
    .stat-item .value {
        font-size: 26px;
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    /* Activity Cards: Bilderhöhe auf Mobile */
    .activity-card img {
        height: 200px;
    }

    /* Gallery Grid: Single-Column auf Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid .gallery-item img {
        height: 220px;
    }

    /* Highlights Grid: Single-Column auf Mobile */
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}
