/* Property Detail Page */

/* Hero */
.prop-hero {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.prop-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
}

.prop-hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: white;
    letter-spacing: -1px;
    z-index: 2;
    text-align: center;
    margin: 0;
}

.prop-hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 64px;
}

.prop-hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.93);
    padding: 10px 20px;
    border-radius: 24px;
    backdrop-filter: blur(8px);
}

.prop-hero-tag span {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    color: #8295A6;
}

/* Unit Selector Bar */
.unit-selector-wrapper {
    background: white;
    border-bottom: 1px solid #EDF2F7;
    z-index: 50;
}

.unit-selector-wrapper.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Hide navbar and logo when unit selector is sticky */
body.selector-sticky .navbar,
body.selector-sticky .floating-logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body .navbar,
body .floating-logo {
    transition: opacity 0.3s ease;
}

.unit-selector {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

.unit-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
    position: relative;
    overflow: hidden;
}

.unit-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(130,149,166,0.06), transparent);
    animation: tabShimmer 4s ease-in-out infinite;
}

.unit-tab:nth-child(2)::after {
    animation-delay: 1.3s;
}

.unit-tab:nth-child(3)::after {
    animation-delay: 2.6s;
}

.unit-tab.active::after {
    display: none;
}

@keyframes tabShimmer {
    0% { left: -100%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

.unit-tab:hover {
    background: #FAFAFE;
}

.unit-tab.active {
    border-bottom-color: #8295A6;
    background: #FAFAFE;
}

.unit-tab-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #EDF2F7;
    font-size: 1.1rem;
    font-weight: 600;
    color: #8295A6;
    transition: all 0.3s ease;
}

.unit-tab.active .unit-tab-letter {
    background: #8295A6;
    color: white;
}

.unit-tab-name {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.unit-tab-size {
    font-size: 13px;
    color: #A0AEC0;
    margin-left: auto;
}

/* Unit Content Panels */
.unit-content {
    display: none;
}

.unit-content.active {
    display: block;
}

/* Single floorplan (centered) */
.prop-floorplans-single {
    grid-template-columns: 1fr !important;
    max-width: 500px;
}

/* Content Layout */
.prop-content-wrapper {
    display: flex;
    gap: 40px;
    padding: 24px 64px 56px;
    max-width: 1440px;
    margin: 0 auto;
    background: #F5F5FF;
}

.prop-main {
    flex: 1;
    max-width: 860px;
}

/* Property Header */
.prop-header {
    margin-bottom: 48px;
}

.prop-title {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.prop-location {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    color: #718096;
    margin-bottom: 16px;
}

.prop-price-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.prop-price-label {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    color: #A0AEC0;
}

.prop-price-value {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -1px;
    color: #1a1a1a;
}

/* Stats Grid */
.prop-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.prop-stat-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #EDF2F7;
}

.prop-stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #8295A6;
    margin-bottom: 8px;
}

.prop-stat-label {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    color: #718096;
}

/* Section Heading */
.prop-section-heading {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

/* Description */
.prop-description {
    margin-bottom: 48px;
}

.prop-description p {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

/* Floor Plans */
.prop-floorplans {
    margin-bottom: 48px;
}

.prop-floorplans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.prop-floorplan-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #EDF2F7;
}

.prop-floorplan-label {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.prop-floorplan-placeholder {
    background: #F5F5FF;
    border-radius: 12px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A0AEC0;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
}

.prop-floorplan-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prop-floorplan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.prop-floorplan-img {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    background: #F5F5FF;
}

/* Floorplan Lightbox */
.floorplan-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.floorplan-lightbox.active {
    display: flex;
}

.floorplan-lightbox-content {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
}

.floorplan-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.floorplan-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    color: #1a1a1a;
}

.floorplan-lightbox-close:hover {
    background: #f0f0f0;
}

/* Gallery Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-img-wrap {
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s ease;
}

.gallery-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.gallery-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gallery-lightbox-arrow:hover {
    background: rgba(255,255,255,0.25);
}

.gallery-arrow-left {
    left: 32px;
}

.gallery-arrow-right {
    right: 32px;
}

.gallery-lightbox-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.1em;
}

/* Gallery */
.prop-gallery {
    margin-bottom: 48px;
}

.prop-gallery-grid {
    display: grid;
    gap: 12px;
}

.prop-gallery-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.prop-gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
}

/* Amenities */
.prop-amenities {
    margin-bottom: 48px;
}

.prop-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.prop-amenities-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.prop-amenity-icon {
    width: 20px;
    height: 20px;
    color: #8295A6;
    flex-shrink: 0;
}

.prop-amenity-text {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    color: #555;
}

/* Location */
.prop-location-section {
    margin-bottom: 48px;
}

.prop-map-placeholder {
    background: #F5F5FF;
    border: 1px solid #EDF2F7;
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A0AEC0;
    font-family: 'Syne', sans-serif;
    margin-bottom: 24px;
}

.prop-map-embed {
    width: 100%;
    height: 400px !important;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #EDF2F7;
    margin-bottom: 24px;
}

.prop-map-embed .mapboxgl-canvas {
    border-radius: 20px;
}

.prop-nearby {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.prop-nearby-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prop-nearby-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    color: #555;
}

/* Sidebar */
.prop-sidebar {
    width: 340px;
    background: white;
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid #EDF2F7;
    height: fit-content;
    position: sticky;
    top: 100px;
}

body.selector-sticky .prop-sidebar {
    top: 110px;
}

.prop-sidebar-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.prop-details-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.prop-detail-item {
    padding-bottom: 10px;
    border-bottom: 1px solid #EDF2F7;
}

.prop-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.prop-detail-label {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #8295A6;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.prop-detail-value {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
}

.prop-cta-button {
    width: 100%;
    padding: 12px 24px;
    background: #8295A6;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prop-cta-button:hover {
    background: #6b7f8f;
    transform: translateY(-2px);
}

/* Contact Section */
.prop-contact-section {
    background: white;
    padding: 72px 64px;
    text-align: center;
}

.prop-contact-title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.prop-contact-subtitle {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    color: #718096;
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.prop-contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.prop-btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: #8295A6;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prop-btn-primary:hover {
    background: #6b7f8f;
    transform: translateY(-2px);
}

.prop-btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    background: transparent;
    color: #8295A6;
    text-decoration: none;
    border: 1.5px solid #8295A6;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prop-btn-secondary:hover {
    background: #8295A6;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .unit-selector {
        padding: 0 40px;
    }

    .prop-content-wrapper {
        flex-direction: column;
        padding: 40px;
    }

    .prop-sidebar {
        width: 100%;
        position: static;
    }

    .prop-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prop-floorplans-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .unit-selector {
        padding: 0 20px;
    }

    .unit-tab {
        padding: 14px 12px;
        gap: 10px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .unit-tab-size {
        margin-left: 0;
    }

    .unit-tab-name {
        font-size: 13px;
    }

    .prop-hero {
        height: 400px;
    }

    .prop-hero-bottom {
        padding: 24px;
    }

    .prop-content-wrapper {
        padding: 32px 20px;
    }

    .prop-title {
        font-size: 2rem;
    }

    .prop-price-value {
        font-size: 1.6rem;
    }

    .prop-stats-grid {
        grid-template-columns: 1fr;
    }

    .prop-amenities-grid,
    .prop-nearby {
        grid-template-columns: 1fr;
    }

    .prop-contact-section {
        padding: 48px 20px;
    }

    .prop-contact-buttons {
        flex-direction: column;
    }

    .prop-btn-primary,
    .prop-btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Hero Carousel */
.prop-hero-carousel {
    position: relative;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.carousel-dot.active {
    background: white;
    border-color: white;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .carousel-arrow-left {
        left: 12px;
    }

    .carousel-arrow-right {
        right: 12px;
    }

    .carousel-dots {
        bottom: 14px;
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

/* Hero Nav Links */
.hero-nav-link {
    position: absolute;
    bottom: 50px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
    cursor: pointer;
}

.hero-nav-link:hover {
    color: white;
}

.hero-nav-left {
    left: 32px;
}

.hero-nav-right {
    right: 32px;
}

.hero-nav-label {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-nav-arrow {
    font-size: 28px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.hero-nav-left:hover .hero-nav-arrow {
    transform: translateX(-4px);
}

.hero-nav-right:hover .hero-nav-arrow {
    transform: translateX(4px);
}

/* Slide-out transition */
body.slide-out-left {
    animation: slideOutLeft 0.5s ease forwards;
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100px);
        opacity: 0;
    }
}

body.slide-out-right {
    animation: slideOutRight 0.5s ease forwards;
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100px);
        opacity: 0;
    }
}