header {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 26px 26px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.back {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 12px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.back:hover { color: var(--accent); border-color: rgba(123,242,196,0.6); }

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--glow);
}

main {
    width: 100%;
    /* Keep content from hiding behind fixed navbar but remove extra gap */
    margin: 64px auto 60px;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

.container{
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-row {
    display: block;
    margin-bottom: 16px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    background: radial-gradient(120% 80% at 10% 10%, rgba(124,58,237,0.08), transparent),
                radial-gradient(100% 70% at 90% 10%, rgba(59,130,246,0.08), transparent);
}
.hero-row-bleed{
    padding: 0;
}

.content-grid {
    display: block;
    max-width: 100%;
}

/* Make panels and content align to the hero width */
.hero,
.panel {
    width: 100%;
}

.hero {
    position: relative;
    border: 1px solid rgba(64,145,255,0.12);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0,0,0,0.08);
    padding: clamp(14px, 2vw, 18px);
}

.hero-split {
    overflow: hidden;
}

.hero.hero-full{
    padding: 12px 0 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.hero-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.hero-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-transform: none;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-0f1838);
}
.hero-price span {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: rgba(15,23,42,0.6);
    letter-spacing: 0.1em;
}
.hero-price strong {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    color: var(--color-0f57ff);
    font-weight: 800;
}

.hero-title h1 {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.hero-copy h1 {
    margin-bottom: 12px;
}
.hero-location-text {
    color: var(--text-muted-3);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}
.hero-price-block {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    background: var(--ink);
    color: var(--surface);
    padding: 16px 18px;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.25);
    align-self: flex-start;
    max-width: 420px;
}
.price-label {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .7;
}
.price-figure {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}
.price-row{
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-main{
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 800;
}
.price-unit{
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}
.price-subtext {
    margin-top: 6px;
    font-size: 13px;
    opacity: .75;
}
.price-subtext.strong{
    font-weight: 700;
    opacity: 0.9;
}

.hero-info-panel {
    background: var(--surface);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 16px 38px rgba(15,23,42,0.1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 460px;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-f3f7fb);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(64,145,255,0.18);
}
.pill-chip.accent {
    background: linear-gradient(135deg, rgba(64,145,255,0.18), rgba(70,201,137,0.18));
}
.pill-chip.light {
    background: var(--surface-1);
    color: var(--color-54657e);
}
.listing-hero-card {
    background: linear-gradient(145deg, var(--surface-7), var(--color-f1f6ff) 40%, var(--color-e7f4ff));
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(15,23,42,0.15);
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}
.hero-location {
    color: var(--text-muted-3);
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 18px;
}
.hero-card-text h1 {
    font-size: clamp(1.6rem, 2vw, 1.85rem);
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
    font-family: 'Inter', 'Poppins', sans-serif;
}
.listing-detail-page h1,
.listing-detail-page h2,
.listing-detail-page h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.listing-detail-page h1::after,
.listing-detail-page h2::after,
.listing-detail-page h3::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ink-strong), var(--accent));
}
.hero-keyline {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--ink-strong), var(--accent));
    margin-bottom: 18px;
    border-radius: 99px;
}
.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.listing-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 0;
}
.listing-detail-stack .detail-card {
    min-height: 200px;
}
.listing-overview-strip {
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    padding: 20px 28px;
    margin-top: 20px;
    box-shadow: 0 12px 28px rgba(15,23,42,0.12);
}
.listing-overview-strip h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.listing-overview-strip p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-2f3b4d);
}
.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}
.hero-price-box {
    background: var(--ink-strong);
    color: var(--surface);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.3);
    box-shadow: 0 16px 30px rgba(15,23,42,0.2);
}
.hero-price-box .price-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}
.hero-price-value {
    font-size: 2rem;
    display: block;
    margin: 10px 0;
}
.hero-price-meta,
.hero-price-meta-light {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}
.hero-price-meta-light {
    opacity: 0.8;
}
.hero-card-top {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.hero-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    margin-right: 8px;
    font-size: 0.85rem;
    color: var(--text-muted-4);
}
.hero-card-meta .muted {
    margin: 0;
}

.listing-page-footer {
    margin-top: 40px;
    padding: 32px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 20px 40px rgba(15,23,42,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.listing-page-footer .footer-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.listing-page-footer .footer-subtext {
    margin: 2px 0 0;
    color: var(--text-muted-4);
}

.gallery-overlay {
    display: none !important;
}
.listing-page-footer .footer-actions {
    display: flex;
    gap: 12px;
}
.hero-card-highlight {
    background: rgba(255,255,255,0.65);
    padding-bottom: 0;
    margin-bottom: 0;
    position: relative;
}
.hero-card-highlight::after {
    content: none;
}
.hero-card-text {
    flex: 1 1 520px;
}
.hero-subtext {
    display: block;
    background: rgba(15, 142, 217, 0.12);
    color: var(--ink-strong);
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 6px;
}
.hero-card-price {
    flex: 0 0 150px;
    margin: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(90deg, var(--accent-2), var(--ink-strong), var(--accent));
    box-shadow: 0 12px 24px rgba(15,23,42,0.16);
    text-align: right;
}
.hero-card-price.aligned-right{
    margin-left: auto;
}
.hero-card-price .price-gradient-border {
    background: var(--surface);
    border-radius: 16px;
    padding: 12px 16px;
}
.hero-card-price .price-label,
.hero-card-price .hero-price-value,
.hero-card-price .hero-price-meta {
    display: none;
}
.hero-card-price.compact .price-line {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: baseline;
    letter-spacing: 0;
    font-family: 'Inter', 'Poppins', sans-serif;
}
.hero-card-price.compact .price-line strong {
    font-size: 2.4rem;
    color: var(--accent-strong);
    font-weight: 900;
    white-space: nowrap;
}
.hero-card-price.compact .price-line strong {
    font-size: 2rem;
    color: var(--accent-strong);
    font-weight: 700;
    white-space: nowrap;
}
.hero-media-panel {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    position: relative;
    height: 460px;
    margin-top: -12px;
    max-width: var(--container-width);
    width: calc(100% + calc(var(--page-padding) * 2));
    margin-left: calc(var(--page-padding) * -1);
    margin-right: calc(var(--page-padding) * -1);
    background: linear-gradient(135deg, rgba(129,140,248,0.2), rgba(236,72,153,0.1));
}
.hero-media-panel .hero-slider {
    height: 100%;
    position: relative;
    width: 100%;
}
.hero-media-panel .hero-slider img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 460px;
    min-width: 100%;
    display: block;
    background: transparent;
}
.listing-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    margin-top: 0;
}
.detail-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 20px 45px rgba(15,23,42,0.1);
    border: 1px solid rgba(15,23,42,0.08);
}
.detail-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.2rem;
}
.property-card .detail-grid {
    display: grid;
    gap: 12px;
}
.detail-grid-compact {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    align-items: stretch;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.premium-panel {
    border-radius: 30px;
    padding: clamp(1.25rem, 1.8vw, 2.5rem);
    background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(229,243,255,0.6));
    border: 1px solid rgba(124,58,237,0.2);
    box-shadow: var(--shadow-soft), 0 15px 40px rgba(96,165,250,0.2);
    position: relative;
    overflow: hidden;
}

.premium-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99,102,241,0.25), transparent 50%), radial-gradient(circle at bottom left, rgba(129,140,248,0.35), transparent 40%);
    pointer-events: none;
    opacity: 0.7;
}

.premium-panel h3 {
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.project-insight-card {
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 18px 30px rgba(15,23,42,0.06);
    position: relative;
    overflow: hidden;
}

.project-insight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14,165,233,0.1), transparent 65%);
    pointer-events: none;
}

.project-insight-card strong {
    font-size: 1.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.project-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-metrics .metric {
    flex: 1 1 180px;
    background: rgba(255,255,255,0.8);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(30,64,175,0.15);
    box-shadow: 0 12px 20px rgba(15,23,42,0.08);
}

.project-metrics .metric h4 {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted-4);
}

.project-metrics .metric span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.hero-media-panel .hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15,23,42,0.3), transparent 70%);
    pointer-events: none;
    mix-blend-mode: multiply;
}

.listing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(15,23,42,0.8);
    color: var(--surface);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
}

.project-content-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.content-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.content-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-content-panel p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.8;
}

.project-content-panel .cta {
    width: fit-content;
    align-self: flex-start;
    padding: 10px 22px;
}

.hero-media-panel .hero-slider .nav-btn {
    background: rgba(255,255,255,0.65);
    color: var(--accent);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 10px 25px rgba(15,23,42,0.2);
}

.project-inquiry-sticky {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    border-radius: 32px;
    padding: 32px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(79,70,229,0.25);
    box-shadow: var(--shadow-lift);
    min-width: 280px;
    width: clamp(280px, 18vw, 360px);
    margin-left: auto;
    margin-right: 0;
}

.project-inquiry-sticky h3 {
    margin: -32px -32px 18px;
    padding: 10px 16px;
    background: var(--detail-strip-bg);
    border: 1px solid var(--detail-strip-border);
    border-radius: 22px 22px 0 0;
    color: var(--detail-strip-text);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.95rem;
    width: calc(100% + 64px);
    box-sizing: border-box;
    max-width: none;
}

.project-inquiry-sticky h3::before,
.project-inquiry-sticky h3::after {
    display: none;
}

.project-inquiry-sticky input,
.project-inquiry-sticky textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,0.1);
    background: rgba(248,250,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.project-inquiry-sticky textarea {
    min-height: 120px;
    resize: vertical;
}

.project-inquiry-sticky .config-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 14px;
}

.project-inquiry-sticky .config-list button {
    border: 1px solid rgba(15,23,42,0.2);
    background: rgba(59,130,246,0.08);
    color: var(--text);
    border-radius: 14px;
    padding: 6px 14px;
    font-weight: 700;
    cursor: pointer;
}

.project-inquiry-sticky .config-list button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--surface);
    border-color: transparent;
}

.project-inquiry-sticky .submit-btn {
    width: 100%;
    border: none;
    border-radius: 20px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--surface);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 35px rgba(30,64,175,0.4);
    cursor: pointer;
}

.project-inquiry-sticky .submit-btn:hover {
    opacity: 0.95;
}

@media (max-width: 1150px) {
    .project-inquiry-sticky {
        position: relative;
        top: 0;
        width: 100%;
        margin: 0;
        box-shadow: var(--shadow-soft);
    }
}

@media (max-width: 850px) {
    .hero {
        padding: 24px;
    }
    .hero-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-media-panel {
        min-height: 300px;
        margin-top: 16px;
    }
    .project-insight-grid,
    .project-metrics {
        grid-template-columns: 1fr;
    }
    .project-inquiry-sticky {
        width: 100%;
    }
}

@media (max-width: 520px) {
    main {
        padding: 0 1rem 40px;
    }
    .hero-media-panel .hero-slider .nav-btn {
        width: 38px;
        height: 38px;
    }
    .project-inquiry-sticky input,
    .project-inquiry-sticky textarea {
        padding: 12px 14px;
    }
    .project-inquiry-sticky {
        padding: 24px;
    }
}
.detail-row strong {
    font-weight: 700;
}
.property-card .detail-row {
    background: var(--surface-3);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    flex-direction: column;
    align-items: flex-start;
}
.property-card .detail-row span {
    font-size: 0.65rem;
    color: var(--color-7c8596);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 6px;
}
.property-card .detail-row strong {
    font-size: 1rem;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.project-card .project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 12px;
    align-items: stretch;
}
.project-pill {
    display: flex;
    flex-direction: column;
    background: var(--surface-3);
    border-radius: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}
.project-pill span {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted-4);
    margin-bottom: 6px;
}
.project-pill strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-4);
    letter-spacing: 0;
}

@media (max-width: 1080px) {
    .property-card .detail-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 1200px) {
    .project-card .project-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 960px) {
    .project-card .project-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}
.overview-card .overview-text {
    line-height: 1.6;
    color: var(--color-354155);
}
.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.amenity-pill {
    background: var(--surface-3);
    border-radius: 18px;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(64,145,255,0.2);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.amenity-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(15,23,42,0.15);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.amenity-icon-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--ink-strong));
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
}
}
.pricing-card .detail-row {
    font-weight: 600;
}
.meta-card .meta-line {
    margin: 0 0 8px;
    line-height: 1.5;
}
.meta-card .meta-line strong {
    font-weight: 700;
    margin-right: 6px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.hero-media {
    margin-top: 14px;
}
.stat-card {
    border: 1px solid rgba(55, 190, 171, 0.35);
    border-radius: 18px;
    padding: 16px 18px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-card .stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--color-4a4f5a);
    text-transform: uppercase;
    font-weight: 600;
}
.stat-card strong {
    font-size: 1.4rem;
    color: var(--ink-3);
}
@media (max-width: 960px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
}
.stat-pill {
    border: 1px solid rgba(64,145,255,0.14);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--surface-2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.stat-pill .label {
    display: block;
    color: var(--text-muted-7);
    font-weight: 600;
    font-size: 0.85rem;
}
.stat-pill .value {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    color: var(--ink);
}

.hero-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    margin-top: 0;
}
.hero-overlay-title {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    pointer-events: none;
}
.hero-overlay-title h1 {
    margin: 0;
    color: var(--surface);
    text-shadow: 0 6px 18px rgba(0,0,0,0.35);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}
.hero-overlay-single {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 1025px) {
    .hero-media {
        max-height: 640px;
    }
}
@media (max-width: 640px) {
    .hero-media { height: 420px; min-height: 420px; }
    .hero-slider { height: 420px; }
}
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .hero {
        padding: 18px;
    }
    .hero-price-block {
        max-width: 100%;
    }
    .hero-inquiry {
        position: static;
        width: 100%;
    }
    .hero-info-panel {
        flex-direction: column;
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: clamp(320px, 48vw, 560px);
}
.hero-slider.single{
    height: clamp(320px, 48vw, 560px);
}
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.18) 100%);
    pointer-events: none;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none; /* prevent banner image click */
}
.hero-slide.active {
    opacity: 1;
    pointer-events: none;
}

.hero-placeholder{
    width: 100%;
    height: clamp(320px, 48vw, 560px);
    background: var(--color-f1f1f1);
    border-radius: 14px;
}

.hero-image-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(64,145,255,0.9), rgba(70,201,137,0.9));
    color: var(--surface);
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    cursor: pointer;
    pointer-events: auto;
}

.panel {
    margin-top: 16px;
    border: var(--section-border);
    border-radius: 18px;
    padding: 18px 18px 14px;
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(15,23,42,0.12);
    width: 100%;
}

.project-detail-page {
    --detail-strip-bg: linear-gradient(135deg, var(--accent), var(--accent-2));
    --detail-strip-border: rgba(124, 58, 237, 0.6);
    --detail-strip-text: #f8fafc;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.project-detail-page .panel > .panel-head {
    margin: -18px -18px 16px;
    padding: 10px 16px;
    background: var(--detail-strip-bg);
    border: 1px solid var(--detail-strip-border);
    border-radius: 16px 16px 0 0;
    color: var(--detail-strip-text);
    width: calc(100% + 36px);
    box-sizing: border-box;
}

.project-detail-page .emi-main .panel-head {
    margin: -14px -14px 16px;
    padding: 10px 14px;
    background: var(--detail-strip-bg);
    border: 1px solid var(--detail-strip-border);
    border-radius: 14px 14px 0 0;
    color: var(--detail-strip-text);
    width: calc(100% + 28px);
    box-sizing: border-box;
}

.project-detail-page .choose-panel .panel-head,
.project-detail-page .approved-panel .panel-head {
    margin: -12px -12px 14px;
    padding: 8px 12px;
    background: var(--detail-strip-bg);
    border: 1px solid var(--detail-strip-border);
    border-radius: 14px 14px 0 0;
    color: var(--detail-strip-text);
    width: calc(100% + 24px);
    box-sizing: border-box;
}

.project-detail-page .panel > .panel-head h3,
.project-detail-page .panel > .panel-head h4,
.project-detail-page .emi-main .panel-head h3,
.project-detail-page .emi-main .panel-head h4,
.project-detail-page .choose-panel .panel-head h3,
.project-detail-page .approved-panel .panel-head h3 {
    margin: 0;
    color: var(--detail-strip-text);
}

.project-detail-page .panel > .panel-head .muted,
.project-detail-page .panel > .panel-head .emi-note,
.project-detail-page .emi-main .panel-head .muted,
.project-detail-page .emi-main .panel-head .emi-note,
.project-detail-page .choose-panel .panel-head .muted,
.project-detail-page .approved-panel .panel-head .muted {
    color: rgba(248, 250, 252, 0.85);
}

.project-detail-page .panel > .panel-head h3::before,
.project-detail-page .panel > .panel-head h3::after,
.project-detail-page .panel > .panel-head h4::before,
.project-detail-page .panel > .panel-head h4::after,
.project-detail-page .emi-main .panel-head h3::before,
.project-detail-page .emi-main .panel-head h3::after,
.project-detail-page .choose-panel .panel-head h3::before,
.project-detail-page .choose-panel .panel-head h3::after,
.project-detail-page .approved-panel .panel-head h3::before,
.project-detail-page .approved-panel .panel-head h3::after {
    display: none;
}

.project-detail-page .panel > h3 {
    margin: -18px -18px 16px;
    padding: 10px 16px;
    background: var(--detail-strip-bg);
    border: 1px solid var(--detail-strip-border);
    border-radius: 16px 16px 0 0;
    color: var(--detail-strip-text);
    display: block;
    width: calc(100% + 36px);
    box-sizing: border-box;
    max-width: none;
}

.project-detail-page .panel > h3::before,
.project-detail-page .panel > h3::after {
    display: none;
}
.panel-head .muted {
    margin: 4px 0 0;
}

.emi-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr);
    gap: 16px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}
.emi-split {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(180px, 230px) minmax(360px, 1fr);
    gap: 20px;
    align-items: stretch;
}
.emi-split.no-choose {
    grid-template-columns: minmax(180px, 230px) minmax(360px, 1fr);
}
.emi-split.no-choose .emi-main {
    grid-column: 2 / -1;
}
.emi-main {
    min-width: 0;
}
.emi-approved-panel {
    align-self: stretch;
    padding: 0;
}
.emi-approved-panel .emi-approved-label {
    display: block;
    margin-bottom: 12px;
}
.emi-approved-panel .emi-bank-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.emi-approved-panel .emi-bank-chip {
    width: 100%;
    height: 96px;
    border-radius: 16px;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.emi-approved-panel .emi-bank-logo {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.emi-approved-panel .emi-bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}
.emi-bank-chip.is-hidden {
    display: none;
}
.emi-bank-toggle {
    margin-top: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.emi-bank-toggle:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.emi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.emi-approved {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.emi-approved-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted-6);
    font-weight: 700;
}
.emi-bank-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.emi-bank-chip {
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    background: var(--surface);
    cursor: pointer;
    width: 44px;
    height: 44px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.emi-bank-chip:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}
.emi-bank-chip.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    background: rgba(59, 130, 246, 0.08);
}
.emi-bank-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 32px;
}
.emi-bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.emi-bank-logo .logo-fallback {
    font-weight: 800;
    color: var(--ink);
}
.choose-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch;
}
.choose-panel .panel-head {
    justify-content: center;
    text-align: center;
}
.choose-panel .panel-head h3 {
    width: 100%;
}
.choose-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
}
.choose-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.choose-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}
.choose-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
    background: rgba(59, 130, 246, 0.08);
}
.choose-pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.choose-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink);
    text-transform: lowercase;
}
.choose-pill.choose-size {
    color: var(--text-muted-7);
}
.approved-panel .panel-head {
    justify-content: center;
    text-align: center;
}
.approved-panel .panel-head h3 {
    width: 100%;
}
.approved-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    height: 100%;
}
.emi-main {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.emi-main .panel-head {
    justify-content: center;
    text-align: center;
}
.emi-main .panel-head .emi-note {
    width: 100%;
    text-align: center;
}

@media (max-width: 960px) {
    .emi-split {
        grid-template-columns: 1fr;
    }
    .emi-approved {
        align-items: flex-start;
    }
    .choose-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}
.emi-form label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted-8);
    margin: 12px 0 6px;
}
.emi-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    background: var(--surface-2);
}
.emi-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-content: stretch;
    grid-auto-rows: 1fr;
}
.emi-card {
    background: linear-gradient(180deg, var(--surface), var(--surface-5));
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}
.emi-card .label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.65rem;
    color: var(--text-muted-6);
}
.emi-card strong {
    display: block;
    font-size: 1.2rem;
    color: var(--accent-strong);
    margin-top: 6px;
}
.emi-note {
    font-size: 0.85rem;
    color: var(--text-muted-3);
}

.trend-wrap {
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, var(--surface), var(--surface-5));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}
.trend-canvas {
    width: 100%;
    height: 260px;
    display: block;
}
.trend-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted-8);
}
.trend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}
.map-card {
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-3);
    min-height: 320px;
    position: relative;
    z-index: 0;
}
.map-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: rgba(247, 250, 252, 0.85);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 5;
    color: var(--ink);
    font-weight: 700;
}
.map-loader.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.map-loader__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(47, 99, 214, 0.25);
    border-top-color: var(--color-2f63d6);
    animation: g3-spin 0.8s linear infinite;
}
@keyframes g3-spin {
    to {
        transform: rotate(360deg);
    }
}
.map-embed,
.map-canvas {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}
.leaflet-container {
    font-family: inherit;
    background: var(--surface-3);
    z-index: 0;
}
.g3-marker {
    background: transparent;
    border: 0;
    overflow: visible;
}
.g3-map-label {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    max-width: 220px;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.45);
}
.g3-map-label::before,
.g3-map-label.leaflet-tooltip-top::before,
.g3-map-label.leaflet-tooltip-bottom::before {
    border: 0;
}
.g3-pin {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.05rem;
    color: #ffffff;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 24px rgba(47, 99, 214, 0.35);
    position: relative;
    text-transform: uppercase;
}
.g3-pin-title {
    font-size: 1.1rem;
    line-height: 1.1;
    letter-spacing: 0.12em;
    text-align: center;
    width: 100%;
}
.g3-pin-sub {
    margin-top: 2px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}
.g3-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid var(--accent);
    filter: drop-shadow(0 6px 8px rgba(47, 99, 214, 0.35));
}
.g3-pin.is-primary {
    background: linear-gradient(140deg, var(--ink), var(--accent));
}
.g3-pin.is-primary::after {
    border-top-color: var(--ink);
}
.g3-pin.is-office {
    width: 120px;
    height: 120px;
    border-radius: 36px;
    font-size: 1.6rem;
    box-shadow: 0 16px 30px rgba(47, 99, 214, 0.4);
}
.g3-pin.is-office .g3-pin-title {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.g3-pin.is-office::after {
    bottom: -28px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 28px solid var(--accent);
    filter: drop-shadow(0 10px 12px rgba(47, 99, 214, 0.45));
}
.g3-tooltip {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(15,23,42,0.12);
}
.g3-tooltip::before {
    border-top-color: var(--surface);
}
.g3-tooltip.leaflet-tooltip-top::before {
    border-top-color: var(--surface);
}
.g3-tooltip.leaflet-tooltip-bottom::before {
    border-bottom-color: var(--surface);
}
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.nearby-card {
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--surface);
    box-shadow: 0 8px 18px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nearby-card.is-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nearby-card.is-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 99, 214, 0.45);
    box-shadow: 0 14px 24px rgba(47, 99, 214, 0.18);
}
.nearby-card.is-clickable:focus-visible {
    outline: 2px solid rgba(47, 99, 214, 0.45);
    outline-offset: 2px;
}
.nearby-card.is-active {
    border-color: rgba(47, 99, 214, 0.55);
    background: var(--color-f5f9ff);
    box-shadow: 0 16px 28px rgba(47, 99, 214, 0.22);
}
.nearby-card.nearby-user {
    background: var(--surface-3);
}
.location-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}
.location-action {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(47, 99, 214, 0.35);
    background: rgba(47, 99, 214, 0.08);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}
.location-action:hover {
    background: rgba(47, 99, 214, 0.15);
}
.nearby-label {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted-6);
    font-weight: 700;
}
.nearby-meta {
    font-size: 0.85rem;
    color: var(--text-muted-7);
}
.nearby-meta .distance-line {
    display: block;
}
.distance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(47, 99, 214, 0.14);
    color: var(--accent);
    font-weight: 700;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.like-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.1);
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.like-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--surface);
    cursor: pointer;
}
.like-btn.active {
    background: var(--ink-strong);
}
.like-count {
    font-weight: 700;
    color: var(--ink);
}
.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-follow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
}
.share-follow-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted-1);
    font-weight: 700;
}
.share-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: var(--section-border);
    background: rgba(15,23,42,0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}
.share-social-link:hover {
    transform: translateY(-1px);
    border-color: rgba(47,99,214,0.35);
    box-shadow: 0 10px 20px rgba(15,23,42,0.12);
}
.share-social-link .social-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--surface);
    background: var(--ink);
}
.share-social-link .social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.share-social-link.platform-facebook .social-icon {
    background: #1877f2;
}
.share-social-link.platform-instagram .social-icon {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976 45%, #962fbf 65%, #4f5bd5 85%);
}
.share-social-link.platform-linkedin .social-icon {
    background: #0a66c2;
}
.share-social-link.platform-twitter .social-icon {
    background: #0f172a;
}
.share-social-link.platform-youtube .social-icon {
    background: #ff0033;
}
.share-social-link.platform-whatsapp .social-icon {
    background: var(--brand-whatsapp);
}
.share-social-link.has-image .social-icon {
    background: transparent;
}
.share-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}
.share-btn.icon-only {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.share-btn .share-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.share-btn .share-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.share-btn .share-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}
.share-btn.whatsapp.icon-only {
    width: 50px;
    height: 50px;
}
.share-btn.whatsapp.icon-only .share-icon,
.share-btn.whatsapp.icon-only .share-icon img {
    width: 26px;
    height: 26px;
}
.share-btn.whatsapp {
    color: var(--brand-whatsapp);
    border-color: rgba(37, 211, 102, 0.5);
}
.share-btn.whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.85);
    color: var(--brand-whatsapp);
}
.share-btn:hover {
    border-color: rgba(47,99,214,0.35);
    color: var(--accent);
}
.share-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--surface);
    border-color: transparent;
}
.share-btn.primary:hover {
    color: var(--surface);
    box-shadow: 0 8px 18px rgba(29,78,216,0.35);
}
.share-btn.ghost {
    background: var(--color-f1f5f9);
}
.content-main .panel:first-child {
    margin-top: 0;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(340px, 1fr);
    gap: clamp(22px, 2.6vw, 34px);
    align-items: start;
    margin: clamp(18px, 2.4vw, 32px) auto 0;
    width: min(var(--container-width), calc(100% - (var(--page-padding) * 2)));
}
@media (max-width: 960px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .side.inquiry-sticky {
        position: static;
    }
    .inquiry-sticky .panel {
        height: auto;
        min-height: 0;
    }
    .emi-grid {
        grid-template-columns: 1fr;
    }
    .location-grid {
        grid-template-columns: 1fr;
    }
    .social-row {
        justify-content: flex-start;
    }
}
.content-main {
    width: 100%;
    min-width: 0;
}
.side.inquiry-sticky {
    position: sticky;
    top: 80px;
    align-self: start;
    margin-top: 0;
    width: 100%;
    z-index: 2;
    height: fit-content;
}
.inquiry-sticky .panel {
    margin-top: 0;
    padding: 24px 22px;
    border-radius: 28px;
    min-height: 0;
    height: auto;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), var(--color-f7f8ff));
}
.inquiry-sticky form{
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.inquiry-sticky .panel h3 {
    margin: -24px -22px 16px;
    padding: 10px 16px;
    background: var(--detail-strip-bg);
    border: 1px solid var(--detail-strip-border);
    border-radius: 20px 20px 0 0;
    color: var(--detail-strip-text);
    letter-spacing: 0.12em;
    text-align: left;
    font-size: 1.1rem;
    width: calc(100% + 44px);
    box-sizing: border-box;
    max-width: none;
}

.inquiry-sticky .panel h3::before,
.inquiry-sticky .panel h3::after {
    display: none;
}
.inquiry-sticky label {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--color-5c6c96);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: inline-block;
}
.inquiry-sticky input,
.inquiry-sticky textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}
.inquiry-sticky input:focus,
.inquiry-sticky textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25);
    outline: none;
}
.inquiry-sticky textarea {
    min-height: 120px;
    resize: vertical;
}
.inquiry-sticky .btn.primary {
    width: 100%;
    margin-top: 16px;
    padding: 14px 0;
    border-radius: 18px;
    font-size: 1rem;
    box-shadow: 0 18px 40px rgba(29, 78, 216, 0.3);
}
.price-table-public {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
#price-table-public-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
 }
.price-table-public th,
.price-table-public td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    background: var(--surface-1);
}
.price-table-public th {
    background: var(--color-eef3f9);
    font-weight: 800;
}

.faq-public {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.faq-item {
    background: var(--color-f6f8fc);
    border: 1px solid var(--surface-13);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.faq-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.faq-q {
    font-weight: 800;
    color: var(--color-0d1a35); /* darker for question */
    font-size: 1rem;
    text-align: left;
}
.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink-strong);
    color: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}
.faq-header[aria-expanded="true"] .faq-toggle {
    background: var(--accent);
    transform: rotate(180deg);
}
.faq-toggle.rotating {
    animation: spin 1s ease-in-out forwards;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.faq-body {
    color: var(--color-0b4d7a); /* distinct color for answers */
    line-height: 1.5;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--color-eef6ff);
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}
.faq-body.open {
    display: block;
    max-height: 300px;
    opacity: 1;
}
.faq-divider {
    height: 1px;
    background: var(--surface-13);
    margin: 10px 0 6px;
}

.panel.form {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(64,145,255,0.05), rgba(70,201,137,0.05)), var(--surface);
    box-shadow: 0 18px 42px rgba(15,23,42,0.14);
    border: 1px solid rgba(64,145,255,0.16);
}

.panel.form h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.form input,
.form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form textarea {
    min-height: 80px;
}

.inquiry-configs {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.inquiry-configs .config-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted-2);
}

.inquiry-configs .config-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inquiry-configs .config-chip {
    border: 1px solid var(--color-dbe2ef);
    border-radius: 999px;
    background: var(--surface-1);
    color: var(--ink);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.inquiry-configs .config-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
}

.inquiry-configs .config-chip.selected {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.5);
    color: var(--accent);
}

.form .btn {
    width: 100%;
    justify-content: center;
}

.side {
    position: relative;
    display: grid;
    gap: 14px;
    max-width: 360px;
    align-self: start;
}
@media (max-width: 820px) {
    .side { max-width: 100%; }
}

.price-box { text-align: right; min-width: 180px; }
.price-main { font-weight: 800; font-size: 1.25rem; color: var(--accent-strong); }

.panel h3, .panel h4 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: left;
}
.panel h4 {
    font-size: 1.3rem;
}
.panel-head {
    text-align: left;
}
.project-detail-page .panel-head .muted {
    display: none;
}

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

.highlight-grid .stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.maps-media {
    min-height: 520px;
    display: flex;
    flex-direction: column;
}
.maps-media .grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
    gap: 16px;
    grid-auto-rows: 1fr;
    flex: 1;
}
.maps-media .grid > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, var(--surface), var(--surface-4));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 12px 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}
.maps-media strong {
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.maps-media .thumb {
    flex: 1;
    min-height: 260px;
    height: 100%;
    display: flex;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-9);
}
.maps-media .thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.maps-media .media-card {
    flex: 1;
    min-height: 260px;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    background: linear-gradient(180deg, var(--surface-2), var(--surface-10));
    display: flex;
    align-items: center;
    justify-content: center;
}

.maps-media .video-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.maps-media .video-thumb {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    min-height: 220px;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(29, 78, 216, 0.15), rgba(124, 58, 237, 0.18));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.maps-media .video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.maps-media .video-card.has-thumb .video-thumb-img {
    display: block;
}

.maps-media .video-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(241, 245, 255, 0.9));
}

.maps-media .video-card.has-thumb .video-thumb-fallback {
    opacity: 0;
}

.maps-media .video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

.maps-media .video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.7);
}

.maps-media .video-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.maps-media .video-title {
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.maps-media .video-channel,
.maps-media .video-stats {
    font-size: 0.85rem;
    color: var(--text-muted-6);
}

.media-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: var(--color-f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.full-btn {
    width: 100%;
    justify-content: center;
}

.floor-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.floor-cards .floor-card {
    min-width: 0;
}
.floor-cards.scroll-3,
.floor-cards.scroll-2 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 3);
    overflow-x: scroll;
    scrollbar-gutter: stable both-edges;
    scrollbar-color: var(--accent) var(--surface-3);
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}
.floor-cards.scroll-2 {
    grid-auto-columns: calc((100% - 12px) / 2);
}
.floor-cards.scroll-3 .floor-card,
.floor-cards.scroll-2 .floor-card {
    scroll-snap-align: start;
}
@media (max-width: 1200px) {
    .floor-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .floor-cards.scroll-3 { grid-auto-columns: calc((100% - 12px) / 2); }
}
@media (max-width: 900px) {
    .floor-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .floor-cards.scroll-3,
    .floor-cards.scroll-2 { grid-auto-columns: 85%; }
}
@media (max-width: 900px) {
    body.project-detail-page {
        overflow-x: hidden;
    }
    .project-detail-page main {
        margin-top: calc(var(--nav-height) + 8px);
        padding: 0;
    }
    .project-detail-page .container,
    .project-detail-page .headbar-container,
    .project-detail-page .content-layout {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    .project-detail-page .hero-row,
    .project-detail-page .hero-row-bleed {
        padding: 0;
    }
    .project-detail-page .project-headbar {
        padding: 16px 0 10px;
    }
    .project-detail-page .headbar-row {
        padding: 16px;
        border-radius: 18px;
    }
    .project-detail-page .hero-media-panel {
        width: 100%;
        max-width: 100%;
        margin: 0;
        height: clamp(240px, 60vw, 360px);
    }
    .project-detail-page .hero-media-panel .hero-slider img {
        min-height: 100%;
    }
    .project-detail-page .panel {
        border-radius: 22px;
    }
    body.project-detail-page .nav-panel,
    body.project-detail-page .nav-overlay {
        inset: var(--nav-height) 0 0 0;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
        position: fixed;
    }
    body.project-detail-page .nav-panel-main,
    body.project-detail-page .nav-panel-sub {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
    }
}
@media (max-width: 600px) {
    .floor-cards { grid-template-columns: 1fr; }
    .floor-inputs { grid-template-columns: 1fr; }
}
.villa-row {
    margin-top: 14px;
}
.villa-row-header {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0 0 6px 2px;
}
.villa-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.villa-cards.scroll-2 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 14px) / 2);
    overflow-x: scroll;
    scrollbar-gutter: stable both-edges;
    scrollbar-color: var(--accent) var(--surface-3);
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}
.villa-cards.scroll-2 .villa-wrap {
    scroll-snap-align: start;
}
.floor-cards.scroll-3::-webkit-scrollbar,
.floor-cards.scroll-2::-webkit-scrollbar,
.villa-cards.scroll-2::-webkit-scrollbar {
    height: 10px;
}
.floor-cards.scroll-3::-webkit-scrollbar-track,
.floor-cards.scroll-2::-webkit-scrollbar-track,
.villa-cards.scroll-2::-webkit-scrollbar-track {
    background: var(--surface-3);
    border-radius: 999px;
}
.floor-cards.scroll-3::-webkit-scrollbar-thumb,
.floor-cards.scroll-2::-webkit-scrollbar-thumb,
.villa-cards.scroll-2::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-radius: 999px;
    border: 2px solid var(--surface-3);
}
.villa-wrap {
    border: 1px solid rgba(64,145,255,0.25);
    border-radius: 14px;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, rgba(64,145,255,0.28), rgba(70,201,137,0.28)) border-box;
    padding: 8px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.villa-wrap .floor-inputs { margin-top: 6px; }
/* Flat wrap with double gradient feel */
.unit-wrap {
    border-radius: 16px;
    padding: 12px;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, rgba(64,145,255,0.28), rgba(70,201,137,0.28)) border-box;
    box-shadow:
        0 8px 18px rgba(0,0,0,0.06),
        0 0 0 3px rgba(64,145,255,0.12),
        0 0 0 6px rgba(70,201,137,0.12);
    margin-bottom: 12px;
}
.unit-header {
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--ink);
    margin: 0 0 10px 2px;
}
.flat-wrap {}
.penthouse-wrap {}
.penthouse-outer { padding: 14px; }
.villa-outer { padding: 14px; }
@media (max-width: 1100px) {
    .villa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .villa-cards { grid-template-columns: 1fr; }
    .villa-cards.scroll-2 {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-auto-columns: unset;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }
    .villa-cards.scroll-2 .villa-wrap {
        width: 100%;
    }
    .villa-gallery .gallery-item {
        width: clamp(120px, 42vw, 180px);
        height: clamp(90px, 28vw, 130px);
    }
}
 
.floor-card {
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 12px;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, rgba(10,142,217,0.25), rgba(15,157,88,0.25)) border-box;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    max-width: 100%;
    box-sizing: border-box;
}
.villa-gallery {
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, rgba(64,145,255,0.25), rgba(70,201,137,0.25)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.floor-image {
    padding: 6px;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, rgba(10,142,217,0.3), rgba(15,157,88,0.3)) border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    margin: 8px;
}

.floor-image img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
    background: var(--color-f2f2f2);
    border-radius: 6px;
    cursor: zoom-in;
}
.collage-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 8px 12px 4px;
}
.collage-count {
    background: var(--surface-11);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}
.villa-gallery .gallery-grid {
    display:flex;
    gap: 10px;
    padding: 8px 10px 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.08);
    background: var(--surface-8);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    cursor: pointer;
    width: 220px;
    height: 160px;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}
.gallery-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.gallery-overlay {
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:6px;
    padding:10px;
    background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,0.45));
    color:var(--surface);
    font-weight:700;
    pointer-events: none;
}
.overlay-tag {
    align-self:flex-start;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.88rem;
}
.overlay-note {
    background: rgba(0,0,0,0.35);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.85rem;
    display:inline-flex;
    width:max-content;
}
.villa-gallery .compact-inputs {
    border-top: 1px solid rgba(15,23,42,0.08);
    margin-top: 6px;
    padding-top: 10px;
}

.floor-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px 0;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10,142,217,0.12);
    font-weight: 700;
    font-size: 0.85rem;
}

.chip.light {
    background: var(--surface-11);
    color: var(--muted);
}

.floor-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 12px 10px;
}

.input-pill {
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 12px;
    padding: 8px 10px;
    background: var(--surface-8);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.input-pill .value {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    background: var(--surface);
    padding: 3px 6px;
    border-radius: 8px;
}

/* Floor plan modal */
.floor-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.floor-modal.active { display: flex; }
.floor-modal-content {
    position: relative;
    background: var(--ink);
    padding: 52px 20px 16px;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    display: grid;
    gap: 8px;
}
.floor-modal-body {
    width: 85vw;
    height: 75vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floor-modal img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: none;
}
.floor-modal .controls {
    position: fixed;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 6px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.9);
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.ctrl-btn {
    padding: 8px 10px;
    border: 1px solid var(--color-e5e9f2);
    background: rgba(255,255,255,0.12);
    color: var(--surface);
    border-radius: 8px;
    cursor: pointer;
}

/* Inquiry modal */
.inquiry-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 16px;
}
.inquiry-modal.active { display: flex; }
.inquiry-modal-content {
    position: relative;
    width: min(520px, 92vw);
    max-height: 90vh;
    overflow: auto;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    padding: 18px;
}
.inquiry-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}
.inquiry-modal .panel.form {
    box-shadow: none;
    border: 0;
    padding: 0;
}
.inquiry-modal-open {
    overflow: hidden;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.details-grid > div {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 12px 14px;
    background:
        linear-gradient(180deg, var(--surface) 0%, var(--surface-4) 100%) padding-box,
        linear-gradient(135deg, rgba(10,142,217,0.35), rgba(15,157,88,0.35)) border-box;
    box-shadow: 0 10px 22px rgba(0,0,0,0.04);
}

.details-grid .label {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.stat {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 12px;
    background:
        linear-gradient(var(--surface-7), var(--surface-2)) padding-box,
        linear-gradient(135deg, rgba(10,142,217,0.35), rgba(15,157,88,0.35)) border-box;
    box-shadow: 0 10px 22px rgba(0,0,0,0.04);
}

.amen-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 1100px) {
    .amen-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}
@media (max-width: 640px) {
    .amen-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
.amen {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background:
        linear-gradient(180deg, var(--surface), var(--surface-4)) padding-box,
        linear-gradient(135deg, rgba(10,142,217,0.35), rgba(15,157,88,0.35)) border-box;
    box-shadow: 0 12px 26px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.amen:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.06);
    border-color: transparent;
}
.amen img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: var(--color-f0f6ff);
    border-radius: 12px;
    padding: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.thumbs, .related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.related-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.08);
}
.related-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10,142,217,0.12), rgba(15,157,88,0.12));
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.related-img .img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--ink-soft);
}
.related-img .pill {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0,0,0,0.75);
    color: var(--surface);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}
.related-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.related-body .pill.meta {
    align-self: flex-start;
    background: var(--color-eef3ff);
    color: var(--ink-soft);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(10,142,217,0.25);
    font-weight: 700;
    font-size: 0.85rem;
}
.related-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
}
.related-loc {
    color: var(--color-42526e);
    font-weight: 600;
    font-size: 0.95rem;
}
.related-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.stat-chip {
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--surface-5);
    border: 1px solid var(--surface-12);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.btn.full-width {
    width: 100%;
    text-align: center;
    margin-top: 6px;
}
.thumb {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-1);
}
.thumb img { width: 100%; height: 130px; object-fit: cover; display: block; }

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
th, td {
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    color: var(--text);
}
thead { background: rgba(255,255,255,0.04); }
tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }

.related .card {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 18px 46px rgba(15,23,42,0.12);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.related .card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,0.4); }
.card-body { padding: 12px; display: grid; gap: 6px; }

.side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form input, .form textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    padding: 12px;
    margin-bottom: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 1px solid transparent;
    color: var(--color-050712);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--glow);
}

.muted { color: var(--muted); }

@media (max-width: 960px) {
    main { grid-template-columns: 1fr; }
    header { flex-direction: column; align-items: flex-start; }
}
.floor-plan-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
    margin-top: 18px;
}
.floor-plan-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 14px 32px rgba(15,23,42,0.15);
    background: var(--color-f9fafc);
    cursor: pointer;
}
.floor-plan-media img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.zoom-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.zoom-controls button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.2);
    background: rgba(255,255,255,0.9);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-strong);
    cursor: pointer;
}
.floor-plan-details {
    background: var(--surface);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 14px 32px rgba(15,23,42,0.08);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.floor-plan-details .detail-row span {
    color: var(--color-5b6476);
}
.floor-plan-details .detail-row strong {
    font-weight: 700;
}
.floor-plan-details .detail-row-box {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05);
    position: relative;
}
.floor-plan-details .detail-row-box::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(90deg, var(--accent), var(--ink-strong), var(--accent));
    -webkit-mask:
        linear-gradient(var(--ink-6) 0 0) content-box, 
        linear-gradient(var(--ink-6) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.floor-plan-details .detail-row-box span,
.floor-plan-details .detail-row-box strong {
    position: relative;
    z-index: 1;
}

.detail-footer {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted-4);
    font-size: 0.9rem;
    justify-content: space-between;
}
.detail-footer .muted {
    margin-right: 16px;
}

.floor-plan-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}
.floor-plan-actions {
    display: flex;
    gap: 12px;
}
.icon-btn {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    border: none;
    background: var(--ink-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(15,23,42,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    padding: 0;
}
.icon-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15,23,42,0.3);
}
.icon-btn.whatsapp {
    background: linear-gradient(135deg, var(--color-1fd256), var(--color-0b9f42));
}
.icon-btn.inquiry {
    background: linear-gradient(135deg, var(--color-0c1228), var(--color-1d2b54));
}

/* Container helper */
.container{
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Top bar */
.project-headbar{
  padding: 26px 0 18px;
}
.headbar-container{
  width: min(var(--container-width), calc(100% - (var(--page-padding) * 2)));
  max-width: var(--container-width);
  margin: 0 auto;
}
.headbar-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(64,145,255,0.14);
  border-radius: 22px;
  box-shadow: 0 22px 44px rgba(15,23,42,0.1);
  padding: 22px 28px;
}
.project-title{
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.project-subtitle{
  margin-top: 6px;
  opacity: .75;
  font-size: 14px;
}
.project-detail-page .project-subtitle{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-weight: 600;
  opacity: 1;
}
.project-detail-page .headbar-left{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.project-detail-page .project-title{
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}
.project-detail-page .project-subtitle{
  margin-top: 8px;
}
.headbar-right{
  text-align: left;
  min-width: 280px;
  background: linear-gradient(140deg, var(--ink), var(--color-0c1c36) 55%, var(--ink-2));
  color: var(--surface);
  padding: 18px 22px;
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.2);
  display: grid;
  gap: 8px;
}
.price-label{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 1;
  font-weight: 800;
  color: var(--ink-5);
  background: linear-gradient(135deg, var(--color-a6d4ff) 0%, var(--color-d7e7ff) 100%);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  align-self: start;
  width: auto;
  box-shadow: 0 4px 12px rgba(13, 27, 54, 0.14);
}
.price-figure{
  margin-top: 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}
.price-row{
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price-main{
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  color: var(--color-2a7bff);
}
.price-unit{
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.price-subtext{
  margin-top: 6px;
  font-size: 13px;
  opacity: .78;
  color: var(--color-c9d0df);
}
.price-subtext.strong{
  font-weight: 700;
  opacity: 0.95;
  color: var(--surface);
}
.muted{ opacity: .75; font-weight: 600; font-size: .85em; }

/* Hero full-width */
.hero.hero-full{
  padding: 12px 0 0;
}
.hero-full-bleed{
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0;
}
.hero-wrap{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.hero-media{
  position: relative;
  width: 100%;
  min-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 22px 48px rgba(15,23,42,0.18);
  background: var(--text);
}
.hero-full-bleed .hero-media{
  width: 100vw;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}
.hero-slider{
  position: relative;
  width: 100%;
  height: clamp(360px, 52vw, 620px);
}
.hero-slider.single{
  height: clamp(360px, 52vw, 620px);
}
.hero-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
  filter: saturate(1.04);
}
.hero-slide.active{
  opacity: 1;
}

.hero-placeholder{
  width: 100%;
  height: clamp(360px, 52vw, 620px);
  background: var(--surface-9);
  border-radius: 18px;
}

.hero-image-nav{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none;
}
.nav-btn{
  pointer-events: auto;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: rgba(15,23,42,0.16);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  color: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.18);
  transition: transform .2s ease, background .2s ease;
}
.nav-btn:hover{
  transform: translateY(-2px);
  background: rgba(15,23,42,0.28);
}
.hero-dots{
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: width .2s ease, background .2s ease, box-shadow .2s ease;
}
.hero-dot.active{
  width: 28px;
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(15,23,42,0.25);
}

@media (max-width: 820px){
  .headbar-row{
    flex-direction: column;
    align-items: flex-start;
  }
  .headbar-right{
    text-align: left;
    min-width: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .project-title{ font-size: 28px; }
  .price-figure{ font-size: 22px; }
}

@media (max-width: 900px){
  html, body{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  body.project-detail-page{
    --page-padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  }
  body.project-detail-page main{
    width: 100%;
    max-width: 100%;
    margin: calc(var(--nav-height) + 8px) 0 0;
    padding: 0;
    overflow-x: hidden;
  }
  body.project-detail-page .container,
  body.project-detail-page .headbar-container,
  body.project-detail-page .content-layout{
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body.project-detail-page .hero-row,
  body.project-detail-page .hero-row-bleed{
    padding: 0;
  }
  body.project-detail-page .project-headbar{
    padding: 16px 0 10px;
  }
  body.project-detail-page .headbar-row{
    width: 100%;
    padding: 16px;
    border-radius: 18px;
  }
  body.project-detail-page .hero-media-panel{
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: clamp(220px, 56vw, 320px);
    border-radius: 18px;
  }
  body.project-detail-page .hero-media-panel .hero-slider img{
    min-height: 100%;
  }
  body.project-detail-page .panel{
    border-radius: 22px;
  }
  body.project-detail-page .panel,
  body.project-detail-page .hero-media-panel,
  body.project-detail-page .project-headbar,
  body.project-detail-page .headbar-row{
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  body.project-detail-page .panel > h3,
  body.project-detail-page .panel > .panel-head,
  body.project-detail-page .emi-main .panel-head,
  body.project-detail-page .choose-panel .panel-head,
  body.project-detail-page .approved-panel .panel-head,
  .inquiry-sticky .panel h3,
  .project-inquiry-sticky h3{
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    box-sizing: border-box;
  }
  body.project-detail-page .emi-split{
    grid-template-columns: 1fr;
    grid-template-areas:
      "approved"
      "choose"
      "emi";
    gap: 16px;
  }
  body.project-detail-page .emi-split.no-choose{
    grid-template-areas:
      "approved"
      "emi";
  }
  body.project-detail-page .emi-split.no-choose .emi-main{
    grid-column: auto;
  }
  body.project-detail-page .emi-approved-panel{
    grid-area: approved;
  }
  body.project-detail-page .choose-panel{
    grid-area: choose;
  }
  body.project-detail-page .emi-main{
    grid-area: emi;
  }
  body.project-detail-page .emi-approved-panel .emi-bank-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.project-detail-page .emi-approved-panel .emi-bank-chip{
    height: 84px;
  }
  body.project-detail-page .price-table-public th,
  body.project-detail-page .price-table-public td{
    font-size: 0.85rem;
    padding: 8px 10px;
    white-space: nowrap;
  }
}

@media (max-width: 640px){
  body.project-detail-page .headbar-row{
    padding: 14px;
    gap: 16px;
  }
  body.project-detail-page .headbar-right{
    padding: 14px 16px;
  }
  body.project-detail-page .project-title{
    font-size: 24px;
  }
  body.project-detail-page .price-row{
    flex-wrap: wrap;
    row-gap: 6px;
  }
  body.project-detail-page .price-unit{
    width: 100%;
    font-size: 14px;
  }
  body.project-detail-page .price-main{
    font-size: 24px;
  }
  body.project-detail-page .hero-card-price.compact .price-line{
    flex-wrap: wrap;
    white-space: normal;
  }
  body.project-detail-page .hero-card-price.compact .price-line strong{
    font-size: 1.8rem;
  }
  body.project-detail-page .highlight-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.project-detail-page .highlight-grid .stat{
    padding: 10px;
  }
}
