/* =========================================
   Home Page - Premium Locations Section
   ========================================= */

.locations-section {
    padding: var(--section-pad) 0;
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.locations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.locations-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: var(--space-4xl);
}

/* --- Premium Location Card --- */
.lp-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-4xl);
    align-items: center;
}

.lp-card.lp-reversed {
    grid-template-columns: 0.8fr 1.2fr;
}

.lp-card.lp-reversed .lp-gallery {
    order: 2;
}

.lp-card.lp-reversed .lp-content {
    order: 1;
}

/* --- Gallery Layout --- */
.lp-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    height: 540px;
}

.lp-img-main {
    grid-column: 1 / 9;
    grid-row: 2 / 12;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    transform: scale(1.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 1;
    transition: transform 0.6s var(--ease-out-expo);
}

.lp-img-sub-1 {
    grid-column: 8 / 13;
    grid-row: 3 / 7;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-xl);
    z-index: 2;
    transition: transform 0.6s var(--ease-out-expo) 0.1s;
}

.lp-img-sub-2 {
    grid-column: 8 / 13;
    grid-row: 8 / 12;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-xl);
    z-index: 3;
    transition: transform 0.6s var(--ease-out-expo) 0.2s;
}

.lp-card:hover .lp-img-main {
    transform: scale(1.12) translateY(-3px) rotate(-0.5deg);
}

.lp-card:hover .lp-img-sub-1 {
    transform: scale(1.08) translate(15px, -15px) rotate(-4deg);
}

.lp-card:hover .lp-img-sub-2 {
    transform: scale(1.08) translate(15px, 15px) rotate(4deg);
}

.lp-card.lp-reversed .lp-img-main {
    grid-column: 5 / 13;
    object-position: 35% center;
}

.lp-card.lp-reversed .lp-img-sub-1 {
    grid-column: 1 / 6;
}

.lp-card.lp-reversed .lp-img-sub-2 {
    grid-column: 1 / 6;
}

.lp-card.lp-reversed:hover .lp-img-sub-1 {
    transform: scale(1.08) translate(-15px, -15px) rotate(-4deg);
}

.lp-card.lp-reversed:hover .lp-img-sub-2 {
    transform: scale(1.08) translate(-15px, 15px) rotate(4deg);
}

.lp-card.lp-reversed:hover .lp-img-main {
    transform: scale(1.01) translateY(-3px) rotate(0.5deg);
}

.lp-gallery {
    cursor: pointer;
}



/* --- Content Layout --- */
.lp-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--primary-blue-10);
    color: var(--primary-blue);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.lp-content h3 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.lp-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-sm) 0;
}

.lp-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.5;
}

.lp-info-item i, .lp-info-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.lp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lp-tag {
    padding: 6px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.lp-card:hover .lp-tag {
    background: var(--bg-white);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.lp-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-md);
}

.btn-lp-text {
    font-weight: 700;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base);
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-lp-text:hover {
    transform: translateX(5px);
}

.btn-lp-text i, .btn-lp-text svg {
    width: 18px;
    height: 18px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .lp-card, .lp-card.lp-reversed {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .lp-gallery {
        height: 400px;
    }
    
    .lp-card.lp-reversed .lp-gallery {
        order: 0;
    }
    
    .lp-card.lp-reversed .lp-content {
        order: 1;
    }
    
    .lp-content {
        text-align: center;
        align-items: center;
    }
    
    .lp-info-item {
        justify-content: center;
        text-align: center;
    }
    
    .lp-actions {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }
    
    .btn-lp-text {
        order: 2;
    }
}

@media (max-width: 768px) {
    .locations-grid {
        gap: 80px;
    }
    
    .lp-gallery {
        height: 320px;
    }
    
    .lp-content h3 {
        font-size: var(--text-3xl);
    }
}

/* --- Lightbox Modal --- */
.lp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 40px 20px;
}

.lp-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lp-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lp-lightbox-close:hover {
    background: var(--primary-blue);
    transform: rotate(90deg);
}

.lp-lightbox-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.lp-lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}

.lp-lightbox-image-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.lp-lightbox-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s var(--ease-out-expo);
}

.lp-lightbox.active #lp-lightbox-img {
    opacity: 1;
    transform: scale(1);
}

.lp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.lp-lightbox-nav:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.lp-lightbox-nav--prev { left: -80px; }
.lp-lightbox-nav--next { right: -80px; }

@media (max-width: 1400px) {
    .lp-lightbox-nav--prev { left: 20px; }
    .lp-lightbox-nav--next { right: 20px; }
}

.lp-lightbox-thumbs-container {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-lightbox-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 10px;
}

.lp-lightbox-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lp-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-lightbox-thumb:hover {
    opacity: 0.7;
}

.lp-lightbox-thumb.active {
    opacity: 1;
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}
