/* ─────────────────────────────────────────────────────────────
   DETAILS PAGE  –  Project detail page styles
   ───────────────────────────────────────────────────────────── */

/* ── Detail Hero ─────────────────────────────────────────────── */
.detail-hero {
    position: relative;
    min-height: 62vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    margin-top: calc(-1 * var(--header-h));
}

.detail-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3, 38, 79, 0.30) 0%,
        rgba(3, 38, 79, 0.60) 55%,
        rgba(3, 38, 79, 0.88) 100%
    );
}

.detail-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 140px;
    padding-bottom: 32px;
}

.detail-hero__badge {
    display: inline-block;
    background: var(--color-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.detail-hero__inner h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 10px;
}

.detail-hero__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: rgba(255,255,255,.82);
    margin: 0;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.detail-breadcrumb a {
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: color .2s;
}

.detail-breadcrumb a:hover {
    color: var(--color-gold);
}

.detail-breadcrumb span {
    color: rgba(255,255,255,.45);
}

.detail-breadcrumb span:last-child {
    color: #fff;
}

/* ── Stats Bar ───────────────────────────────────────────────── */
.detail-stats-bar {
    position: relative;
    z-index: 2;
    background: #fff;
    box-shadow: 0 -4px 40px rgba(3,38,79,.18), 0 2px 20px rgba(3,38,79,.08);
}

.detail-stats-bar__inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    overflow-x: auto;
}

.detail-stat {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border-right: 1px solid #eef0f5;
}

.detail-stat:last-of-type {
    border-right: 0;
}

.detail-stat__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #8a94a6;
}

.detail-stat__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    white-space: nowrap;
}

.detail-stats-bar__cta {
    margin: 14px 20px 14px auto;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .detail-stats-bar__inner {
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .detail-stat {
        flex: 1 1 calc(50% - 1px);
        min-width: 0;
        border-bottom: 1px solid #eef0f5;
    }

    .detail-stats-bar__cta {
        width: calc(100% - 40px);
        margin: 8px 20px 16px;
        text-align: center;
    }
}

/* ── Project Overview + Map ──────────────────────────────────── */
.project-overview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.project-overview__text .section-kicker {
    margin-bottom: 8px;
}

.project-overview__text .section-heading {
    margin-bottom: 16px;
}

.project-overview__desc {
    color: #4a5568;
    line-height: 1.75;
    font-size: 15.5px;
    margin-bottom: 28px;
}

.about-subheading {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    margin: 22px 0 8px;
    padding-left: 12px;
    border-left: 3px solid var(--color-gold);
    line-height: 1.3;
}

.about-subheading:first-child {
    margin-top: 0;
}

.about-para {
    color: #4a5568;
    line-height: 1.8;
    font-size: 15px;
    margin: 0 0 14px;
}

.about-para:last-child {
    margin-bottom: 0;
}

.project-map-card {
    position: sticky;
    top: 100px;
}

.project-map-card iframe {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 32px rgba(3,38,79,.12);
}

/* ── Key Attractions below map ───────────────────────────── */
.map-attractions {
    margin-top: 20px;
    background: var(--color-navy);
    border-radius: 16px;
    padding: 18px 20px;
}

.map-attractions__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 14px;
}

.map-attractions__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.map-att-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 10px 12px;
    transition: background .2s;
}

.map-att-row:hover {
    background: rgba(255,255,255,.13);
}

.map-att-row__mins {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
    flex-shrink: 0;
    min-width: 44px;
}

.map-att-row__mins small {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    letter-spacing: .04em;
}

.map-att-row__label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    line-height: 1.35;
}

@media (max-width: 900px) {
    .project-overview__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-map-card {
        position: static;
    }
}

/* ── Bed Tags ────────────────────────────────────────────────── */
.project-beds__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a94a6;
    margin-bottom: 10px;
}

.project-beds__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-beds__tags span {
    background: #f0f4f9;
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #dce4ef;
    transition: background .2s, border-color .2s;
}

.project-beds__tags span:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #fff;
}

/* ── Gallery Section ─────────────────────────────────────────── */
.gallery-section--surface {
    background: #f7f9fc;
}

.detail-gallery-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.detail-tab {
    background: transparent;
    border: 2px solid #dce4ef;
    color: #8a94a6;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .04em;
}

.detail-tab:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.detail-tab.is-active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #fff;
}

.detail-gallery-panel {
    display: none;
}

.detail-gallery-panel.is-active {
    display: block;
}

.gallery-grid--detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-card {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e0e7f0;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid--detail {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid--detail {
        grid-template-columns: 1fr;
    }
}

/* ── Attractions ─────────────────────────────────────────────── */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.attraction-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-navy);
    padding: 32px 20px 24px;
    box-shadow: 0 4px 20px rgba(3,38,79,.14);
    transition: transform .35s ease, box-shadow .35s ease;
}

.attraction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(3,38,79,.24);
}

.attraction-card__icon {
    color: var(--color-gold);
    margin-bottom: 20px;
}

.attraction-card__icon svg {
    width: 52px;
    height: 52px;
}

.attraction-card__mins {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.attraction-card__num {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.02em;
}

.attraction-card__unit {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    letter-spacing: .04em;
}

.attraction-card__label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    margin: 0;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .attractions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .attractions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Amenities ───────────────────────────────────────────────── */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.amenity-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    padding: 22px 20px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}

/* gold left accent line */
.amenity-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 3px;
    background: var(--color-gold);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: scaleY(.4);
    transition: opacity .3s, transform .3s;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(3,38,79,.13);
    border-color: rgba(227,135,10,.3);
}

.amenity-card:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.amenity-card__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    align-self: flex-start;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--color-navy) 0%, #0a3d6b 100%);
    border-radius: 14px;
    color: var(--color-gold);
    box-shadow: 0 6px 20px rgba(3,38,79,.26);
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
}

.amenity-card:hover .amenity-card__icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 10px 28px rgba(3,38,79,.30);
}

.amenity-card__icon svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: block;
    stroke-width: 2;
}

.amenity-card h3 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.4;
    letter-spacing: .01em;
    min-width: 0;
    align-self: center;
}

@media (max-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .amenity-card {
        padding: 20px 18px;
    }
}

/* ── Floor Plans ─────────────────────────────────────────────── */
.floorplans-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    margin-top: 40px;
    align-items: start;
}

/* Unit type sidebar */
.unit-types-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 100px;
}

.unit-type {
    background: #f4f7fb;
    border: 2px solid transparent;
    color: #4a5568;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all .22s ease;
}

.unit-type:hover {
    background: #e8edf5;
    color: var(--color-navy);
}

.unit-type.is-active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #fff;
}

.unit-type__name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.unit-type__area {
    font-size: 12px;
    font-weight: 500;
    opacity: .65;
}

.unit-type.is-active .unit-type__area {
    opacity: .8;
    color: var(--color-gold);
}

/* Viewer area */
.floorplan-viewer {
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(3,38,79,.08);
}

.floorplan-panel {
    display: none;
    flex-direction: column;
}

.floorplan-panel.is-active {
    display: flex;
}

/* Meta bar inside viewer */
.floorplan-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
    border-bottom: 1px solid #eef0f5;
    background: #f8fafd;
    flex-wrap: wrap;
}

.floorplan-meta__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 600;
}

.floorplan-meta__item svg {
    color: var(--color-gold);
    flex-shrink: 0;
}

.floorplan-meta__cta {
    margin-left: auto;
    font-size: 13px;
    min-height: 40px;
    padding: 0 18px;
    flex-shrink: 0;
}

/* Image area */
.floorplan-img-wrap {
    margin: 0;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    background: #fff;
}

.floorplan-img-wrap img {
    max-width: 100%;
    max-height: 440px;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .floorplans-layout {
        grid-template-columns: 1fr;
    }

    .unit-types-list {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
    }

    .unit-type {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
    }

    .unit-type__area::before { content: '·'; margin-right: 4px; }

    .floorplan-meta__cta { margin-left: 0; }
}

@media (max-width: 560px) {
    .floorplan-img-wrap {
        padding: 20px;
        min-height: 240px;
    }
}

/* ── Inquiry Section ─────────────────────────────────────────── */
.detail-inquiry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.detail-inquiry__text .section-heading {
    margin-bottom: 16px;
}

.detail-inquiry__text p:last-child {
    color: #4a5568;
    line-height: 1.75;
    font-size: 15px;
}

.contact-form-card--premium {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 40px rgba(3,38,79,.12);
    border: 1px solid #e8edf5;
}

.contact-form-card__grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy);
    letter-spacing: .03em;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1.5px solid #dce4ef;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-navy);
    background: #f8fafd;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(227,135,10,.12);
    background: #fff;
}

.form-field textarea {
    resize: vertical;
    min-height: 88px;
}

.form-field--split {
    flex-direction: row;
    gap: 14px;
}

.form-field--split > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field--split label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy);
}

/* Phone prefix */
.phone-input-group {
    display: flex;
    border: 1.5px solid #dce4ef;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafd;
    transition: border-color .2s, box-shadow .2s;
}

.phone-input-group:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(227,135,10,.12);
    background: #fff;
}

.phone-input-group__prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #eef2f9;
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 700;
    border-right: 1.5px solid #dce4ef;
    white-space: nowrap;
    flex-shrink: 0;
}

.phone-input-group__input {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1;
    padding: 11px 12px;
}

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

@media (max-width: 900px) {
    .detail-inquiry {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 560px) {
    .contact-form-card--premium {
        padding: 24px 18px;
    }

    .form-field--split {
        flex-direction: column;
    }
}

/* ── Section block spacing ───────────────────────────────────── */
.section-block {
    padding: 72px 0;
}

@media (max-width: 768px) {
    .section-block {
        padding: 48px 0;
    }
}
