/* ==========================================================
   SOBOXPERT PROPERTY CARDS & DETAIL PAGE
   style.css
   ========================================================== */

/* ==============================
   RESET
   ============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f6f8;
    color: #2b2b2b;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* ==============================
   CONTAINER / LAYOUT
   ============================== */

.container {
    width: min(1320px, 94%);
    margin: auto;
}

/* ==============================
   BREADCRUMB
   ============================== */

.breadcrumb-wrap {
    background: #fff;
    border-bottom: 1px solid #ececec;
    padding: 14px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7b7b7b;
}

.breadcrumb a {
    color: #7b7b7b;
    transition: .25s;
}

.breadcrumb a:hover {
    color: #c8a04d;
}

.breadcrumb .sep {
    color: #ccc;
    font-size: 14px;
}

.breadcrumb span:last-child {
    color: #2b2b2b;
    font-weight: 500;
}

/* ==============================
   PAGE HEADER
   ============================== */

.page-header {
    padding: 50px 0 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 38px;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    color: #7b7b7b;
    max-width: 600px;
    margin: auto;
}

/* ==============================
   PROPERTY LIST
   ============================== */

.property-page {
    padding-bottom: 70px;
}

.property-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 30px;
}

/* ==============================
   PROPERTY CARD
   ============================== */

.property-card {
    display: grid;
    grid-template-columns: 48% 52%;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
    transition: .35s ease;
    position: relative;
    animation: fadeUp .7s ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .12);
}

/* ==============================
   CARD IMAGE
   ============================== */

.property-image {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #ddd;
}

.mainImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
    animation: imageFade .45s ease;
}

.property-card:hover .mainImage {
    transform: scale(1.05);
}

/* ==============================
   CARD GALLERY ARROWS
   ============================== */

.galleryPrev,
.galleryNext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: .25s;
    z-index: 5;
}

.galleryPrev { left: 20px; }
.galleryNext { right: 20px; }

.galleryPrev:hover,
.galleryNext:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

.galleryPrev i,
.galleryNext i {
    color: #222;
    transition: .25s;
}

.galleryPrev:hover i,
.galleryNext:hover i {
    color: #000;
}

/* ==============================
   VIEW PHOTOS BUTTON
   ============================== */

.viewPhotos {
    position: absolute;
    bottom: 22px;
    left: 22px;
    background: rgba(255, 255, 255, .95);
    color: #222;
    padding: 13px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    transition: .30s;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.viewPhotos:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

/* ==============================
   CARD CONTENT
   ============================== */

.property-content {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.property-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.propertyTitle {
    font-size: 34px;
    font-weight: 700;
    color: #1d1d1d;
    line-height: 1.2;
}

.propertySubtitle {
    font-size: 15px;
    color: #c8a04d;
    font-weight: 500;
}

.propertyLocation {
    font-size: 15px;
    color: #7b7b7b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==============================
   CARD STATS
   ============================== */

.propertyStats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    text-align: center;
}

.statLabel {
    font-size: 13px;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.statValue {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

/* ==============================
   CARD FEATURES
   ============================== */

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

.propertyFeatures .feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: #f4f6f8;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: .30s;
    border: 1px solid #ececec;
}

.propertyFeatures .feature i {
    color: #c8a04d;
    font-size: 13px;
}

.propertyFeatures .feature:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-2px);
}

.propertyFeatures .feature:hover i {
    color: #f4c86b;
}

/* ==============================
   CARD DESCRIPTION
   ============================== */

.propertyDescription {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==============================
   CARD FOOTER
   ============================== */

.propertyFooter {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
}

.whatsappBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 24px;
    border-radius: 40px;
    background: #25D366;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: .30s;
}

.whatsappBtn:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .25);
}

.knowMore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 28px;
    border-radius: 40px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: .30s;
}

.knowMore i {
    transition: .30s;
}

.knowMore:hover {
    background: #c8a04d;
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.knowMore:hover i {
    transform: translateX(6px);
}

/* ==============================
   ==============================
   DETAIL PAGE
   ==============================
   ============================== */

.detail-page {
    padding-bottom: 80px;
}

/* ==============================
   DETAIL HERO GALLERY
   ============================== */

.detail-hero {
    padding: 30px 0 0;
}

.hero-gallery {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    max-height: 600px;
    background: #ddd;
}

.hero-gallery img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: opacity .4s ease;
}

.heroPrev,
.heroNext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: .3s;
    z-index: 5;
}

.heroPrev { left: 24px; }
.heroNext { right: 24px; }

.heroPrev:hover,
.heroNext:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.heroViewAll {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, .92);
    color: #222;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.heroViewAll:hover {
    background: #111;
    color: #fff;
}

/* ==============================
   DETAIL TITLE
   ============================== */

.detail-title-section {
    padding: 35px 0 25px;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

#detailTitle {
    font-size: 38px;
    font-weight: 700;
    color: #1d1d1d;
    line-height: 1.15;
    margin-bottom: 6px;
}

.detail-subtitle {
    font-size: 16px;
    color: #c8a04d;
    font-weight: 500;
    margin-bottom: 4px;
}

.detail-location {
    font-size: 15px;
    color: #7b7b7b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-price {
    font-size: 24px;
    font-weight: 700;
    color: #c8a04d;
    white-space: nowrap;
}

/* ==============================
   DETAIL DESCRIPTION
   ============================== */

.detail-description {
    margin-bottom: 18px;
}

.desc-text {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    max-height: 80px;
    overflow: hidden;
    transition: max-height .4s ease;
}

.desc-text.expanded {
    max-height: none;
}

.desc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #c8a04d;
    background: none;
    padding: 0;
    transition: .25s;
}

.desc-toggle:hover {
    color: #a8832e;
}

.detail-rera {
    font-size: 13px;
    color: #999;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 8px;
    display: inline-block;
}

/* ==============================
   DETAIL SPECS
   ============================== */

.detail-specs {
    padding: 50px 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 24px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.spec-item {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: .3s;
}

.spec-item:hover {
    border-color: #c8a04d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.spec-label {
    display: block;
    font-size: 12px;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 8px;
}

.spec-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

/* ==============================
   DETAIL FEATURES
   ============================== */

.detail-features {
    padding: 50px 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.features-grid .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border: 1px solid #f0f0f0;
    transition: .3s;
}

.features-grid .feature-item:hover {
    border-color: #c8a04d;
    background: #fdfaf3;
}

.features-grid .feature-item i {
    color: #c8a04d;
    font-size: 16px;
}

/* ==============================
   DETAIL LOCATION
   ============================== */

.detail-location-section {
    padding: 50px 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.location-intro {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.location-point {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
    color: #444;
    border: 1px solid #f0f0f0;
}

.location-point i {
    color: #c8a04d;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* ==============================
   SIMILAR PROPERTIES
   ============================== */

.similar-section {
    padding: 50px 0;
    background: #f5f6f8;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.similar-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
    transition: .35s ease;
    cursor: pointer;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
}

.similar-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.similar-card-body {
    padding: 20px;
}

.similar-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1d;
    margin-bottom: 4px;
}

.similar-card-body p {
    font-size: 13px;
    color: #7b7b7b;
}

/* ==============================
   PHOTO MODAL
   ============================== */

.photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .30s;
    z-index: 9999;
}

.photo-modal.active {
    opacity: 1;
    visibility: visible;
}

#modalImage {
    max-width: 90%;
    max-height: 88vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .4);
}

.closeModal {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: .3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.closeModal:hover {
    background: #fff;
    color: #111;
    transform: rotate(90deg);
}

.modalPrev,
.modalNext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: .3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modalPrev { left: 40px; }
.modalNext { right: 40px; }

.modalPrev:hover,
.modalNext:hover {
    background: #fff;
    color: #111;
    transform: translateY(-50%) scale(1.08);
}

/* ==============================
   ANIMATIONS
   ============================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes imageFade {
    from { opacity: .4; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .4); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* Section entrance */
.detail-map,
.detail-faq,
.detail-gallery3d,
.cta-strip,
.cta-grid-section,
.cta-banner,
.cta-bottom {
    animation: slideUp .6s ease both;
}

.detail-map { animation-delay: .1s; }
.detail-faq { animation-delay: .15s; }
.detail-gallery3d { animation-delay: .2s; }
.cta-strip { animation-delay: .05s; }
.cta-grid-section { animation-delay: .1s; }
.cta-banner { animation-delay: .15s; }
.cta-bottom { animation-delay: .2s; }

/* ==============================
   LOADING PLACEHOLDER
   ============================== */

.image-loading {
    background: linear-gradient(90deg, #ececec 25%, #f7f7f7 50%, #ececec 75%);
    background-size: 300% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==============================
   UTILITY
   ============================== */

.hidden { display: none !important; }
.text-center { text-align: center; }

/* ==============================
   SCROLLBAR
   ============================== */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c5c5c5; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #8d8d8d; }

/* ==============================
   FOCUS STATES
   ============================== */

button:focus-visible,
a:focus-visible {
    outline: 3px solid #c8a04d;
    outline-offset: 3px;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 1100px) {
    .property-card {
        grid-template-columns: 1fr;
    }
    .property-image {
        min-height: 420px;
    }
    .property-content {
        padding: 35px;
    }
    .propertyTitle {
        font-size: 30px;
    }
    .propertyStats {
        gap: 8px;
    }
    .propertyFooter {
        justify-content: flex-start;
    }
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .property-page { padding: 0 0 40px; }
    .container { width: 95%; }
    .property-list { gap: 28px; padding-top: 20px; }
    .property-card { border-radius: 18px; }
    .property-image { min-height: 260px; }
    .mainImage { height: 260px; }
    .property-content { padding: 22px; gap: 16px; }
    .propertyTitle { font-size: 24px; line-height: 1.3; }
    .propertySubtitle { font-size: 14px; }
    .propertyLocation { font-size: 14px; }
    .propertyStats { gap: 6px; padding: 18px 0; }
    .statLabel { font-size: 12px; }
    .statValue { font-size: 17px; }
    .propertyFeatures { gap: 8px; }
    .propertyFeatures .feature { font-size: 11px; padding: 6px 11px; }
    .propertyDescription { font-size: 14px; line-height: 1.7; }
    .propertyFooter { flex-direction: row; }
    .whatsappBtn, .knowMore { width: auto; padding: 12px 18px; font-size: 13px; }
    .whatsappBtn { margin-right: auto; }
    .knowMore { margin-left: auto; }
    .galleryPrev, .galleryNext { width: 42px; height: 42px; font-size: 15px; }
    .galleryPrev { left: 12px; }
    .galleryNext { right: 12px; }
    .viewPhotos { left: 15px; bottom: 15px; font-size: 12px; padding: 10px 18px; }

    .page-header { padding: 30px 0 20px; }
    .page-header h1 { font-size: 28px; }
    .page-header p { font-size: 14px; }

    #detailTitle { font-size: 28px; }
    .detail-title-row { flex-direction: column; }
    .detail-price { font-size: 20px; }
    .hero-gallery img { height: 320px; }
    .heroPrev, .heroNext { width: 42px; height: 42px; font-size: 16px; }
    .heroPrev { left: 14px; }
    .heroNext { right: 14px; }
    .heroViewAll { font-size: 12px; padding: 10px 16px; }

    .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .spec-item { padding: 18px; }
    .spec-value { font-size: 17px; }

    .features-grid { grid-template-columns: 1fr; }
    .similar-grid { grid-template-columns: 1fr; }
    .location-details { grid-template-columns: 1fr; }

    #modalImage { max-width: 95%; max-height: 75vh; }
    .modalPrev, .modalNext { width: 48px; height: 48px; font-size: 18px; }
    .modalPrev { left: 12px; }
    .modalNext { right: 12px; }
    .closeModal { width: 42px; height: 42px; top: 15px; right: 15px; font-size: 24px; }
}

@media (max-width: 480px) {
    .property-image { min-height: 220px; }
    .mainImage { height: 220px; }
    .propertyTitle { font-size: 21px; }
    .propertyLocation { font-size: 13px; }
    .propertyDescription { font-size: 13px; }
    .propertyFeatures { gap: 6px; }
    .propertyFeatures .feature { font-size: 10px; padding: 5px 8px; gap: 5px; }
    .propertyFeatures .feature i { font-size: 10px; }
    .whatsappBtn, .knowMore { font-size: 12px; padding: 10px 14px; }
    .galleryPrev, .galleryNext { width: 38px; height: 38px; }
    .viewPhotos { width: calc(100% - 30px); text-align: center; left: 15px; }

    .page-header h1 { font-size: 24px; }
    #detailTitle { font-size: 24px; }
    .hero-gallery img { height: 240px; }
    .specs-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 20px; }
}

/* ==============================
   MAP SECTION
   ============================== */

.detail-map {
    padding: 50px 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.map-container {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.map-container iframe {
    display: block;
}

/* ==============================
   FAQ SECTION
   ============================== */

.detail-faq {
    padding: 50px 0;
    background: #f5f6f8;
    border-bottom: 1px solid #ececec;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: .3s;
}

.faq-item:hover {
    border-color: #c8a04d;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1d;
    text-align: left;
    transition: .3s;
    font-family: inherit;
}

.faq-question i {
    font-size: 14px;
    color: #c8a04d;
    transition: transform .3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    padding: 0 22px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    padding-bottom: 20px;
}

/* ==============================
   3D GALLERY SECTION
   ============================== */

.detail-gallery3d {
    padding: 50px 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.gallery3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery3d-item {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 16/9;
    background: #ddd;
    transition: .3s;
}

.gallery3d-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.gallery3d-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery3d-item::after {
    content: '\f360';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    background: rgba(0,0,0,.25);
    opacity: 0;
    transition: .3s;
}

.gallery3d-item:hover::after {
    opacity: 1;
}

/* ==============================
   LEAD FORM MODAL
   ============================== */

.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.lead-modal.active {
    opacity: 1;
    visibility: visible;
}

.lead-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lead-modal-box {
    position: relative;
    background: #fff;
    border-radius: 22px;
    width: min(500px, 94%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    transform: translateY(30px) scale(.96);
    transition: transform .35s ease, opacity .35s ease;
    opacity: 0;
}

.lead-modal.active .lead-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.lead-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: .3s;
    border: none;
    z-index: 5;
}

.lead-modal-close:hover {
    background: #111;
    color: #fff;
    transform: rotate(90deg);
}

.lead-modal-header {
    padding: 35px 35px 0;
    text-align: center;
}

.lead-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 6px;
}

.lead-modal-header p {
    font-size: 14px;
    color: #7b7b7b;
}

#leadForm {
    padding: 25px 35px 20px;
}

.lead-field {
    margin-bottom: 18px;
}

.lead-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.lead-field input[type="text"],
.lead-field input[type="tel"],
.lead-field input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: .2s;
}

.lead-field input:focus {
    border-color: #c8a04d;
    box-shadow: 0 0 0 3px rgba(200,160,77,.12);
}

.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group select {
    width: 120px;
    padding: 12px 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    background: #fff;
    transition: .2s;
    flex-shrink: 0;
}

.phone-group select:focus {
    border-color: #c8a04d;
    box-shadow: 0 0 0 3px rgba(200,160,77,.12);
}

.phone-group input {
    flex: 1;
}

.lead-submit-btn {
    width: 100%;
    padding: 15px;
    border-radius: 40px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.lead-submit-btn:hover {
    background: #c8a04d;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.lead-footer-text {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding: 0 35px 30px;
}

/* ==============================
   CTA BUTTONS
   ============================== */

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 40px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .3s;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.cta-btn:hover {
    background: #c8a04d;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.cta-btn i {
    font-size: 14px;
}

/* CTA Inline */
.cta-inline {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-title-row {
    padding-top: 16px;
    border-top: 1px solid #ececec;
}

/* CTA Strip */
.cta-strip {
    padding: 40px 0;
    background: #111;
    text-align: center;
    border-bottom: 1px solid #ececec;
}

.cta-strip-btn {
    background: #c8a04d;
    color: #111;
    font-size: 16px;
    padding: 16px 36px;
}

.cta-strip-btn:hover {
    background: #fff;
    color: #111;
    box-shadow: 0 12px 35px rgba(200,160,77,.3);
}

/* CTA Grid */
.cta-grid-section {
    padding: 30px 0;
    background: #f5f6f8;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cta-grid-item {
    justify-content: center;
    padding: 18px 14px;
    background: #fff;
    color: #333;
    border: 1px solid #ececec;
    font-size: 13px;
    white-space: normal;
    text-align: center;
}

.cta-grid-item:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* CTA Row */
.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}

/* CTA Pair */
.cta-pair {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}

.cta-pair .cta-btn {
    flex: 1;
    justify-content: center;
    min-width: 200px;
}

/* CTA Triplet */
.cta-triplet {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}

.cta-triplet .cta-btn {
    flex: 1;
    justify-content: center;
    min-width: 160px;
}

/* CTA Banner */
.cta-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, #111 0%, #1d1d1d 100%);
    text-align: center;
    border-bottom: 1px solid #ececec;
}

.cta-banner h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.cta-banner p {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    margin-bottom: 24px;
}

.cta-banner-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner-btn {
    background: #c8a04d;
    color: #111;
    font-size: 15px;
    padding: 16px 32px;
}

.cta-banner-btn:hover {
    background: #fff;
    color: #111;
}

.cta-banner-btn-secondary {
    background: #25D366;
    color: #fff;
    font-size: 15px;
    padding: 16px 32px;
}

.cta-banner-btn-secondary:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .3);
}

/* WhatsApp CTA utility */
.whatsapp-cta {
    background: #25D366 !important;
    color: #fff !important;
}

.whatsapp-cta:hover {
    background: #128C7E !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .25) !important;
}

/* CTA Bottom */
.cta-bottom {
    padding: 50px 0 80px;
    text-align: center;
}

.cta-bottom-btn {
    font-size: 17px;
    padding: 18px 40px;
    background: #c8a04d;
    color: #111;
}

.cta-bottom-btn:hover {
    background: #111;
    color: #fff;
}

/* Hero CTA Overlay */
.hero-cta-overlay {
    position: absolute;
    bottom: 22px;
    right: 22px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-cta-btn {
    background: #c8a04d;
    color: #111;
    padding: 13px 24px;
    font-size: 13px;
    letter-spacing: .3px;
}

.hero-cta-btn:hover {
    background: #fff;
    color: #111;
}

.hero-cta-btn-secondary {
    background: rgba(255,255,255,.92);
    color: #222;
    padding: 13px 24px;
    font-size: 13px;
    letter-spacing: .3px;
}

.hero-cta-btn-secondary:hover {
    background: #111;
    color: #fff;
}

/* ==============================
   FLOATING CTA
   ============================== */

.floating-cta {
    position: fixed;
    right: 24px;
    bottom: 120px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #c8a04d;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(200,160,77,.35);
    padding: 0;
    line-height: 1;
    animation: pulse 2.5s ease-in-out infinite;
}

.floating-cta i {
    font-size: 18px;
    margin-bottom: 2px;
}

.floating-cta span {
    letter-spacing: 0;
}

.floating-cta:hover {
    transform: scale(1.1);
    background: #111;
    color: #fff;
    box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

/* ==============================
   STICKY BOTTOM BAR
   ============================== */

.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    z-index: 998;
    padding: 12px 20px;
    transform: translateY(100%);
    transition: transform .35s ease;
}

.sticky-bar.visible {
    transform: translateY(0);
}

.sticky-bar-inner {
    max-width: 1320px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-bar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sticky-bar-info strong {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1d;
}

.sticky-bar-info span {
    font-size: 13px;
    color: #c8a04d;
    font-weight: 600;
}

.sticky-bar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sticky-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 40px;
    background: #25D366;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
    animation: waPulse 2s ease-in-out infinite;
}

.sticky-wa:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    animation: none;
}

.sticky-cta {
    padding: 11px 22px;
    font-size: 13px;
}

/* ==============================
   RESPONSIVE for new sections
   ============================== */

@media (max-width: 768px) {
    .cta-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner h3 { font-size: 22px; }
    .cta-banner { padding: 40px 0; }
    .hero-cta-overlay { position: relative; bottom: auto; right: auto; margin-top: -50px; padding: 10px 15px; background: linear-gradient(transparent, rgba(0,0,0,.5)); justify-content: center; }
    .hero-cta-btn, .hero-cta-btn-secondary { font-size: 12px; padding: 10px 16px; }
    .floating-cta { right: 16px; bottom: 100px; width: 48px; height: 48px; font-size: 9px; }
    .floating-cta i { font-size: 16px; }
    .sticky-bar { padding: 10px 16px; }
    .sticky-bar-info strong { font-size: 13px; }
    .sticky-bar-info span { font-size: 12px; }
    .sticky-wa { padding: 9px 14px; font-size: 12px; }
    .sticky-cta { padding: 9px 16px; font-size: 12px; }
    .sticky-bar-actions { gap: 8px; }
    .lead-modal-header { padding: 28px 24px 0; }
    #leadForm { padding: 20px 24px 16px; }
    .lead-footer-text { padding: 0 24px 24px; }
    .phone-group select { width: 100px; }
    .faq-question { font-size: 14px; padding: 16px 18px; }
    .faq-answer { font-size: 13px; padding: 0 18px; }
    .gallery3d-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-pair .cta-btn, .cta-triplet .cta-btn { min-width: 140px; }
}

@media (max-width: 480px) {
    .cta-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cta-grid-item { padding: 14px 10px; font-size: 12px; }
    .cta-row .cta-btn, .cta-pair .cta-btn, .cta-triplet .cta-btn { width: 100%; }
    .cta-strip-btn { font-size: 14px; padding: 14px 24px; width: 100%; }
    .cta-banner-btn, .cta-banner-btn-secondary { width: 100%; }
    .gallery3d-grid { grid-template-columns: 1fr; }
    .floating-cta { right: 12px; bottom: 90px; width: 44px; height: 44px; }
    .floating-cta i { font-size: 14px; }
}

/* ==============================
   PRINT
   ============================== */

@media print {
    .galleryPrev, .galleryNext, .viewPhotos,
    .knowMore, .modalPrev, .modalNext, .closeModal,
    .heroPrev, .heroNext, .heroViewAll,
    .desc-toggle, .similar-section,
    .cta-btn, .cta-strip, .cta-grid-section, .cta-row,
    .cta-pair, .cta-triplet, .cta-banner, .cta-bottom,
    .cta-inline, .hero-cta-overlay, .floating-cta, .sticky-bar,
    .lead-modal { display: none !important; }

    .property-card, .detail-hero, .detail-title-section,
    .detail-specs, .detail-features, .detail-location-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    body { background: #fff; }
}
