/* =========================================
   STYLE STRONY APARTAMENTU (AIRBNB LOOK)
   ========================================= */

/* --- 1. NAGŁÓWEK APARTAMENTU --- */
.air-header { padding: 32px 0 24px 0; }
.air-header h1 {
    font-family: var(--Montserrat, sans-serif);
    font-weight: 700;
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 8px;
}
.air-header-meta {
    font-size: 1rem;
    color: #222;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.air-header-meta a {
    font-size: 1rem;
    color: #222;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}
.air-header-meta a:hover { color: var(--primary, #ff8c42); }

/* --- 2. GALERIA (WYMUSZONA PEŁNA SZEROKOŚĆ Z PHOTOSWIPE) --- */
.air-gallery-breakout {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 5vw; 
    box-sizing: border-box;
    margin-bottom: 40px;
}
.air-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 60vh;
    min-height: 450px;
    max-height: 650px;
    border-radius: 16px;
    overflow: hidden;
}
.air-gallery-item {
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.air-gallery-item:hover { filter: brightness(0.9); }
.air-gallery-item.big {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* --- 3. GŁÓWNY UKŁAD (TREŚĆ / SIDEBAR) --- */
.air-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 0 80px 0;
}

/* --- 4. SEKCJE TREŚCI (LEWA STRONA) --- */
.air-content-section {
    border-bottom: 1px solid #ddd;
    padding: 32px 0;
}
.air-content-section:first-child { padding-top: 0; }
.air-content-section:last-child { border-bottom: none; }

.air-section-title {
    font-family: var(--Montserrat, sans-serif);
    font-weight: 700;
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 24px;
}
.host-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.host-intro-text h2 {
    font-family: var(--Montserrat, sans-serif);
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: #222;
}
.host-intro-text p { color: #222; font-size: 1rem; }
.description-text { line-height: 1.8; color: #222; font-size: 1rem; }
.description-text p { margin-bottom: 16px; }

/* Liniowe, spójne ikony SVG */
.amenity-item {
    display: flex;
    align-items: flex-start; 
    gap: 18px; 
    font-size: 1rem;
    color: #222;
    margin-bottom: 24px; 
}
.amenity-item svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0; 
    color: #222;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 2px; 
}

.sleeping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.sleeping-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
}
.sleeping-card svg {
    width: 32px;
    height: 32px;
    color: #222;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 16px;
}
.sleeping-card h4 {
    margin-bottom: 8px;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    font-size: 0.95rem;
}
.sleeping-card p {
    color: #717171;
    font-size: 0.95rem;
    line-height: 1.5;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

/* Styl dla rozwijanej listy udogodnień */
.full-amenities-list h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
}
.full-amenities-list ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.full-amenities-list li {
    color: #222;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.full-amenities-list li::before {
    content: "•";
    color: #717171;
}

/* --- 5. SIDEBAR REZERWACJI --- */
.booking-sidebar-wrapper { position: relative; }
.booking-sidebar-wrapper .booking-widget {
    position: static;
    margin-top: 0;
    border: 1px solid #ddd;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    background: #fff;
}
.booking-sidebar-wrapper .input-group {
    width: 100%;
    margin-bottom: 16px;
}
.booking-sidebar-wrapper label {
    color: #222;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.booking-sidebar-wrapper input,
.booking-sidebar-wrapper select {
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    padding: 14px;
    width: 100%;
}
.booking-sidebar-wrapper .btn-book {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 8px;
    background: var(--primary, #ff8c42);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.booking-sidebar-wrapper .btn-book:hover { opacity: 0.9; }

/* --- 6. RESPONSZYWNOŚĆ --- */
@media (min-width: 992px) {
    .air-main-layout {
        grid-template-columns: 1fr 380px;
        gap: 80px;
    }
    .booking-sidebar-wrapper .booking-widget {
        position: sticky;
        top: 120px;
    }
}

@media (max-width: 768px) {
    .air-header h1 { font-size: 1.6rem; }
    .air-gallery-breakout { padding: 0; }
    .air-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        height: 350px;
        min-height: 350px;
        border-radius: 0;
        gap: 0;
        margin-bottom: 20px;
    }
    .air-gallery-item:not(.big) { display: none; }
    .air-gallery-item.big { grid-column: 1/-1; grid-row: 1/-1; }
    .full-amenities-list ul { grid-template-columns: 1fr; }
    .sleeping-grid { grid-template-columns: 1fr; }
}