/* ============================================
   Apartamenty Premium — Front Page Styles
   ============================================ */

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero slideshow layers */
.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity, transform;
}

.hero-slide.zooming {
    animation: heroZoom 10s linear forwards;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.4) 0%, rgba(10, 15, 26, 0.6) 50%, rgba(10, 15, 26, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1.2s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.2s ease-out 0.6s forwards;
}

.hero-line {
    width: 60px;
    height: 1px;
    margin: 1.5rem auto;
    background: var(--gradient-accent);
    opacity: 0;
    animation: heroFadeIn 1.2s ease-out 0.8s forwards;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease-out 1s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero CTA Button --- */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-surface, #0d131a);
    border: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: 60px;
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(200, 169, 110, 0.1);
    border-color: rgba(200, 169, 110, 0.4);
}

.hero-cta-left {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 24px;
}

.hero-cta-icon {
    font-size: 1.5rem;
    color: var(--color-accent, #c8a96e);
}

.hero-cta-texts {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero-cta-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.15em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-cta-subtitle {
    font-size: 0.75rem;
    color: var(--color-accent, #c8a96e);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-cta-right {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-accent, #c8a96e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.hero-cta-btn:hover .hero-cta-right {
    background-color: #d4b77f;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-cta-btn {
        padding: 6px 6px 6px 20px;
        margin-top: 2rem;
        flex-direction: row;
    }

    .hero-cta-left {
        gap: 12px;
        padding-right: 16px;
    }

    .hero-cta-icon {
        font-size: 1.2rem;
    }

    .hero-cta-title {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }

    .hero-cta-subtitle {
        font-size: 0.65rem;
    }

    .hero-cta-right {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 10;
    opacity: 0;
    animation: heroFadeIn 1.2s ease-out 1.5s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.scroll-indicator a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    text-decoration: none;
    pointer-events: auto;
}

.scroll-indicator i {
    animation: bounce 2s ease-in-out infinite;
    color: var(--color-accent);
    font-size: 1.5rem;
    display: block;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* --- Apartment Cards --- */
.apt-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.apt-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 169, 110, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 169, 110, 0.08);
}

.apt-card-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.apt-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.apt-card:hover .apt-card-img img {
    transform: scale(1.05);
}

.apt-card-img .gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 15, 26, 0.9), transparent);
}

.apt-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(200, 169, 110, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 169, 110, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.apt-card-location {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.apt-card-body {
    padding: 1.5rem;
}

.apt-card-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.apt-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.apt-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

.apt-card-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.apt-card-feature i {
    color: var(--color-accent);
    font-size: 0.85rem;
}

.apt-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apt-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-badge {
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.rating-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.rating-text strong {
    color: var(--color-text);
    font-weight: 500;
}

.apt-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.apt-card-cta:hover {
    gap: 12px;
    color: var(--color-accent-light);
}

/* --- Review Slider --- */
.review-slider {
    position: relative;
    overflow: hidden;
}

.review-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.review-card {
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.review-card::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-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.review-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.review-country {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--color-accent);
    background: rgba(200, 169, 110, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 0.5rem;
}

/* --- Amenity Items --- */
.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    transition: all 0.4s;
}

.amenity-item:hover {
    transform: scale(1.05);
    border-color: rgba(200, 169, 110, 0.3);
    box-shadow: 0 0 30px rgba(200, 169, 110, 0.1);
}

.amenity-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 169, 110, 0.1);
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(200, 169, 110, 0.2);
}

.amenity-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* --- Features & Reviews Section --- */
.fr-section {
    padding: 6rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-text);
}

.fr-container {
    max-width: 1000px;
    margin: 0 auto;
}

.fr-header {
    text-align: center;
    margin-bottom: 5rem;
}

.fr-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.fr-main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-text);
    letter-spacing: 0.05em;
    font-weight: 300;
}

.fr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
    position: relative;
}

.fr-row.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .fr-row {
        flex-direction: column !important;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }
}

.fr-text-block {
    flex: 1;
    max-width: 450px;
}

.fr-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(200, 169, 110, 0.1);
    color: var(--color-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(200, 169, 110, 0.2);
}

.fr-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.fr-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.fr-review-block {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.fr-review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 169, 110, 0.15);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.fr-stars {
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}

.fr-review-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    text-transform: uppercase;
}

.fr-review-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.fr-author-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fr-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(200, 169, 110, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.fr-author-info {
    display: flex;
    flex-direction: column;
}

.fr-author-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fr-author-badge {
    font-size: 0.65rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* Dashed arrow connector */
.fr-connector {
    position: absolute;
    top: 50%;
    width: 100px;
    height: 40px;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

.fr-connector.right {
    left: 50%;
    transform: translate(-50%, -50%);
}

.fr-connector.left {
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .fr-connector {
        display: none;
    }
}

.fr-cta-container {
    text-align: center;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.fr-cta-arrow {
    position: absolute;
    top: -55px;
    right: calc(50% - 200px);
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0) rotate(20deg);
    }

    50% {
        transform: translateY(6px) rotate(20deg);
    }
}

@media (max-width: 768px) {
    .fr-cta-arrow {
        right: calc(50% - 140px);
        top: -50px;
    }

    .fr-cta-arrow svg {
        width: 40px;
        height: 50px;
    }
}

.btn-fr-cta {
    background: rgba(200, 169, 110, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(200, 169, 110, 0.3);
    padding: 18px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 60px;
    text-decoration: none;
    display: inline-flex;
    transition: all 0.3s ease;
}

.btn-fr-cta:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
}

.fr-cta-badges {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.fr-cta-badge {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fr-cta-badge i {
    color: var(--color-accent);
}

.fr-booking-rating {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.fr-booking-rating img {
    height: 16px;
    vertical-align: middle;
    margin-left: 6px;
    margin-top: -3px;
}

/* --- Comparison Section --- */
.cs-section {
    background-color: var(--color-bg);
}

.cs-comparison-box {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-col-left {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.cs-col-right {
    flex: 1;
    background: var(--color-primary-light);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
}

.cs-col-right::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--color-accent);
}

.cs-col-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.right-header {
    justify-content: flex-start;
    padding-right: 0;
}

.cs-hotel-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cs-apt-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cs-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.cs-item-line {
    color: var(--color-text-dark);
    font-weight: 300;
    margin-top: 2px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.cs-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.2);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    margin: 2px 13px 0 13px;
    flex-shrink: 0;
}

.cs-item-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.accent-title {
    color: var(--color-accent);
}

.cs-item-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.right-desc {
    color: #bdc5d1;
}

.active-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin: -1.5rem;
}

@media (max-width: 768px) {
    .cs-comparison-box {
        flex-direction: column;
    }

    .cs-col-right::before {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 4px;
    }

    .right-header {
        justify-content: flex-start;
        padding-right: 0;
    }

    .cs-col-left,
    .cs-col-right {
        padding: 2.5rem 1.5rem;
    }

    .active-item {
        margin: -1rem;
        padding: 1rem;
    }
}

/* --- Social Proof Section --- */
.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.social-proof-card {
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.social-proof-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 169, 110, 0.3);
}

.social-proof-img-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-accent);
}

.social-proof-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Masonry Gallery --- */
.masonry-gallery {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-gallery {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-icon {
    color: var(--color-accent);
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.masonry-item:hover .masonry-icon {
    transform: scale(1);
}

/* Masonry Flex Columns */
.masonry-wrap {
    display: flex;
    gap: 0.75rem;
    height: 800px;
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.masonry-col .m-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.masonry-col .m-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.masonry-col .m-item:hover img {
    transform: scale(1.05);
}

.masonry-col .m-item .masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-col .m-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-col .m-item .masonry-icon {
    color: #fff;
    font-size: 1.4rem;
}

/* Flex proportions per column */
.masonry-col:nth-child(1) .m-item:nth-child(1) {
    flex: 3;
}

.masonry-col:nth-child(1) .m-item:nth-child(2) {
    flex: 5;
}

.masonry-col:nth-child(1) .m-item:nth-child(3) {
    flex: 2;
}

.masonry-col:nth-child(2) .m-item:nth-child(1) {
    flex: 4;
}

.masonry-col:nth-child(2) .m-item:nth-child(2) {
    flex: 3;
}

.masonry-col:nth-child(2) .m-item:nth-child(3) {
    flex: 3;
}

.masonry-col:nth-child(3) .m-item:nth-child(1) {
    flex: 3;
}

.masonry-col:nth-child(3) .m-item:nth-child(2) {
    flex: 5;
}

.masonry-col:nth-child(3) .m-item:nth-child(3) {
    flex: 2;
}

/* +X tile */
.m-item-more {
    background: rgba(200, 169, 110, 0.08);
    border: 1px solid rgba(200, 169, 110, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.m-item-more:hover {
    background: rgba(200, 169, 110, 0.15);
    border-color: rgba(200, 169, 110, 0.4);
}

.m-item-more .more-count {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-accent);
    line-height: 1;
}

.m-item-more .more-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* --- Gallery Viewer (fullscreen) --- */
.gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-viewer.visible {
    opacity: 1;
    visibility: visible;
}

.gallery-viewer-img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

.gallery-viewer-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
    background: none;
    border: none;
}

.gallery-viewer-close:hover {
    color: var(--color-accent);
}

.gallery-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.gallery-viewer-nav:hover {
    background: rgba(200, 169, 110, 0.3);
    color: var(--color-accent);
}

.gallery-viewer-prev {
    left: 1.5rem;
}

.gallery-viewer-next {
    right: 1.5rem;
}

.gallery-viewer-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .masonry-wrap {
        height: 600px;
    }

    .gallery-viewer-nav {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .apt-card-img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .masonry-wrap {
        flex-direction: column;
        height: auto;
    }

    .masonry-col {
        height: 500px;
    }
}

/* --- Why Us Split Layout --- */
.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .why-us-layout {
        grid-template-columns: 1fr;
    }
}

.why-us-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.why-us-tile {
    background: rgba(200, 169, 110, 0.06);
    border: 1px solid rgba(200, 169, 110, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.why-us-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 169, 110, 0.35);
}

.why-us-tile .tile-icon {
    font-size: 1.6rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.why-us-tile .tile-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.why-us-img {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.why-us-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    min-height: 350px;
}

/* --- Location Card --- */
.location-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 2.5rem;
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.1);
    transition: all 0.4s ease;
}

.location-card:hover {
    border-color: rgba(200, 169, 110, 0.3);
    transform: translateY(-5px);
}

/* --- Mobile Sticky Banner --- */
.mobile-sticky-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    background: transparent;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

.msb-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background-color 0.3s ease, border 0.3s ease;
}

.msb-call {
    background: #151e2b;
    color: var(--color-accent, #c8a96e);
}

.msb-call:active {
    background: #0f1520;
}

.msb-book {
    background: var(--color-accent, #c8a96e);
    color: #000;
}

.msb-book:active {
    background: #b0935d;
}

@media (max-width: 768px) {
    .mobile-sticky-banner {
        display: flex;
    }

    /* Dodaj padding margin do glownego body/main na mobile aby banner nie zasłaniał footera */
    main {
        padding-bottom: 60px;
    }
}