/* ============================================
   Apartamenty Premium — Apartment Page Styles
   ============================================ */

/* --- Hero Apartment --- */
.hero-apt {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-apt-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-apt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.3) 0%, rgba(10, 15, 26, 0.7) 60%, rgba(10, 15, 26, 1) 100%);
}

.hero-apt-content {
    position: relative;
    z-index: 10;
    padding: 3rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-title-apt {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 0.3s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-grid .gallery-item:first-child {
    grid-column: 1/3;
    grid-row: 1/3;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0);
    transition: background 0.3s;
}

.gallery-item:hover::after {
    background: rgba(10, 15, 26, 0.2);
}

.gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 26, 0.6);
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 500;
    pointer-events: none;
}

@media(max-width:768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 150px 150px;
    }

    .gallery-grid .gallery-item:first-child {
        grid-column: 1/3;
        grid-row: 1/2;
    }
}

/* --- Lightbox (apartment specific override) --- */
.lightbox {
    z-index: 2000;
    background: rgba(5, 8, 15, 0.97);
    display: none;
    opacity: 0;
    transition: opacity 0.4s;
    visibility: visible;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.4s;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(200, 169, 110, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(200, 169, 110, 0.15);
    border: 1px solid rgba(200, 169, 110, 0.3);
    color: var(--color-text);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: rgba(200, 169, 110, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- Amenity Grid --- */
.amenity-grid-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.08);
    border-radius: 10px;
    transition: all 0.3s;
}

.amenity-grid-item:hover {
    border-color: rgba(200, 169, 110, 0.25);
    transform: translateY(-2px);
}

.amenity-grid-item i {
    color: var(--color-accent);
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.amenity-grid-item span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- Review Card (sub-page) --- */
.review-card-sub {
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.review-card-sub::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
}

/* --- Review Slider (sub-page) --- */
.review-slider-sub {
    position: relative;
    overflow: hidden;
}

.review-track-sub {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-slide-sub {
    min-width: 100%;
    padding: 0 0.5rem;
}

/* --- Rating Bar --- */
.rating-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--color-surface-light);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-accent);
    transition: width 1.5s ease-out;
}

/* --- Info Card --- */
.info-card {
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

/* --- FAQ Accordion --- */
.faq-item {
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(200, 169, 110, 0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    color: var(--color-accent);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: rgba(10, 15, 26, 0.3);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Sticky Booking Bar --- */
body.has-sticky-bar {
    padding-bottom: 80px;
}

.sticky-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(200, 169, 110, 0.2);
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.sticky-booking-bar .bar-text {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sticky-booking-bar .bar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: var(--color-text);
}

.sticky-booking-bar .bar-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: none;
}

@media (min-width: 1024px) {
    .sticky-booking-bar .bar-subtitle {
        display: block;
    }
}

.sticky-booking-bar .actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 640px) {
    body.has-sticky-bar {
        padding-bottom: 80px;
    }

    .sticky-booking-bar {
        padding: 0.75rem 1rem;
        justify-content: space-between;
    }

    .sticky-booking-bar .bar-text {
        display: none;
    }

    .sticky-booking-bar .actions {
        width: 100%;
    }

    .sticky-booking-bar .actions a {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}