/* ========================================================================
   The Sahl Gate · Sapphire — Unit details page stylesheet
   --------------------------------------------------------------------
   Extends sahlgate-home.css. Reuses the same `.sg-` design tokens,
   typography, buttons, and unit-card components for a consistent
   premium look across the site.
   ======================================================================== */

/* ====================== NOT FOUND ============================ */
.sg-ud-notfound {
    padding: calc(var(--sg-nav-h, 3.5rem) + 6rem) 0 6rem;
    background: var(--sg-cream);
    text-align: center;
}
.sg-ud-notfound__inner {
    max-width: 34rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.sg-page .sg-ud-notfound__title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
    font-weight: 500;
    color: var(--sg-sapphire-ink);
}
.sg-page .sg-ud-notfound__text {
    color: #5a6478;
    line-height: 1.75;
}

/* ====================== HERO / GALLERY + PANEL ================ */
.sg-ud-hero {
    position: relative;
    padding: calc(var(--sg-nav-h, 3.5rem) + 2rem) 0 clamp(3rem, 6vw, 4.5rem);
    background: var(--sg-cream);
}
.sg-ud-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--sg-sand-dark);
}
.sg-page .sg-ud-breadcrumb a {
    color: var(--sg-sand-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}
.sg-page .sg-ud-breadcrumb a:hover {
    color: var(--sg-sapphire);
}
.sg-ud-breadcrumb span[aria-current] {
    color: var(--sg-sapphire-ink);
    font-weight: 600;
}
.sg-ud-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 2.5rem);
    align-items: start;
}
@media (min-width: 992px) {
    .sg-ud-hero__grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    }
}
.sg-ud-gallery.sg-unit__gallery {
    padding: 0;
}
.sg-ud-gallery .sg-unit__media,
.sg-ud-gallery .sg-unit__slides {
    height: clamp(18rem, 42vw, 30rem);
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 28px 60px rgba(6, 23, 62, 0.1),
        0 8px 24px rgba(6, 23, 62, 0.06);
}

/* Sticky info panel */
.sg-ud-panel {
    --sg-corp-emerald: #005b52;
    --sg-corp-emerald-deep: #004a44;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background: linear-gradient(165deg, #ffffff 0%, #f4fbfb 48%, #e8f6f6 100%);
    border: 1px solid rgba(184, 153, 104, 0.22);
    border-radius: 14px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 28px 60px rgba(6, 23, 62, 0.07),
        0 8px 24px rgba(6, 23, 62, 0.04);
}
@media (min-width: 992px) {
    .sg-ud-panel {
        position: sticky;
        top: calc(var(--sg-nav-h, 3.75rem) + 1.5rem);
    }
}
.sg-ud-panel__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--sg-sand-dark);
}
.sg-page h1.sg-ud-panel__title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.875rem, 2.4vw + 1rem, 2.625rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--sg-sapphire-ink);
}
.sg-page .sg-ud-panel__tagline {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--sg-sand-dark);
}
.sg-page .sg-ud-panel__text {
    margin: 0;
    font-size: 0.96875rem;
    line-height: 1.75;
    color: #5a6478;
}
.sg-ud-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
}
.sg-ud-panel__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    background: rgba(16, 62, 142, 0.06);
    border: 1px solid rgba(16, 62, 142, 0.12);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sg-sapphire-ink);
}
.sg-ud-panel__chip i {
    color: var(--sg-sand-dark);
}
.sg-ud-panel__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.sg-page .sg-ud-panel__btn.sg-btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
}
.sg-ud-panel .sg-btn.sg-btn--primary.sg-ud-panel__btn,
.sg-ud-panel .sg-btn.sg-btn--primary.sg-ud-panel__btn:visited {
    background: var(--sg-corp-emerald);
    border-color: var(--sg-corp-emerald);
    color: #fff;
}
.sg-ud-panel .sg-btn.sg-btn--primary.sg-ud-panel__btn:hover {
    background: var(--sg-corp-emerald-deep);
    border-color: var(--sg-corp-emerald-deep);
    color: #fff;
}
.sg-ud-panel .sg-btn.sg-btn--primary.sg-ud-panel__btn .sg-btn__arrow {
    stroke: #fff;
}
.sg-ud-panel .sg-btn.sg-btn--ghost.sg-ud-panel__btn,
.sg-ud-panel .sg-btn.sg-btn--ghost.sg-ud-panel__btn:visited {
    background: transparent;
    color: var(--sg-corp-emerald);
    border-color: var(--sg-corp-emerald);
}
.sg-ud-panel .sg-btn.sg-btn--ghost.sg-ud-panel__btn:hover {
    background: var(--sg-corp-emerald);
    border-color: var(--sg-corp-emerald);
    color: #fff;
}

/* ====================== OVERVIEW =============================== */
.sg-ud-overview {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #fff;
}
.sg-ud-overview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 992px) {
    .sg-ud-overview__grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    }
}
.sg-page .sg-ud-overview__title {
    margin: 0 0 1.25rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.625rem, 2vw + 0.9rem, 2.125rem);
    font-weight: 500;
    color: var(--sg-sapphire-ink);
}
.sg-page .sg-ud-overview__text {
    margin: 0 0 clamp(2rem, 4vw, 2.75rem);
    font-size: clamp(0.96875rem, 0.3vw + 0.9rem, 1.0625rem);
    line-height: 1.85;
    color: #5a6478;
    max-width: 44rem;
}
.sg-page .sg-ud-highlights__title {
    margin: 0 0 1.25rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--sg-sapphire-ink);
}
.sg-ud-highlights {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) {
    .sg-ud-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.sg-ud-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--sg-sapphire-ink);
}
.sg-ud-highlight i {
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 1.375rem;
    height: 1.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sg-sand);
    color: #fff;
    font-size: 0.6875rem;
}

.sg-ud-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-content: start;
}
.sg-ud-spec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: clamp(1.25rem, 2.5vw, 1.5rem);
    background: var(--sg-bone);
    border: 1px solid rgba(184, 153, 104, 0.22);
    border-radius: 12px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.sg-ud-spec:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 153, 104, 0.38);
    box-shadow: 0 12px 28px rgba(6, 23, 62, 0.07);
}
.sg-ud-spec__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(101, 215, 215, 0.18);
    color: var(--sg-sand-dark);
    font-size: 1.0625rem;
}
.sg-page .sg-ud-spec__value {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.1875rem;
    font-weight: 500;
    color: var(--sg-sapphire-ink);
}
.sg-page .sg-ud-spec__label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sg-sand-dark);
}

/* ====================== AMENITIES STRIP ======================== */
.sg-ud-amenities {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    background: var(--sg-bone);
}
.sg-ud-amenities .sg-container {
    text-align: center;
}
.sg-ud-amenities .sg-section-eyebrow {
    margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}
.sg-ud-amenities__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) {
    .sg-ud-amenities__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .sg-ud-amenities__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.sg-ud-amenity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    background: #fff;
    border: 1px solid rgba(184, 153, 104, 0.22);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sg-sapphire-ink);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.sg-ud-amenity:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 153, 104, 0.4);
    box-shadow: 0 14px 32px rgba(6, 23, 62, 0.08);
}
.sg-ud-amenity__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(101, 215, 215, 0.18);
    color: var(--sg-sand-dark);
    font-size: 0.9375rem;
}

/* ====================== FLOOR PLANS =========================== */
.sg-ud-layout {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: linear-gradient(180deg, #fff 0%, var(--sg-cream) 100%);
}
.sg-ud-layout__intro {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.sg-ud-layout__intro .sg-section-eyebrow {
    margin: 0 0 0.75rem;
}
.sg-ud-layout__lead {
    margin: 0 auto;
    max-width: 32rem;
    font-size: 0.96875rem;
    line-height: 1.7;
    color: #5a6478;
}
.sg-ud-layout .sg-ushow-wrap {
    padding-top: 0;
}
.sg-ud-layout .sg-ushow-commercial__wrap {
    padding-top: 0;
}
.sg-ud-layout .sg-ushow-commercial__panel {
    border: 1px solid rgba(184, 153, 104, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 24px 52px rgba(6, 23, 62, 0.08);
}

/* ====================== PAYMENT (extends .sg-offers) ============ */
.sg-ud-payment {
    background: var(--sg-cream);
}
