/* ==========================================================================
   Nanas Dea Estate - Modern Public Interface Stylesheet
   ========================================================================== */

:root {
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --primary-accent: #2563eb;
    --gold: #b38f4d;
    --gold-hover: #997a35;
    --gold-light: #c5a869;
    --gold-bg: #faf6ee;
    --gold-border: #e8dcbe;
    --surface: #ffffff;
    --background: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #15803d;
    --success-bg: #dcfce7;
    --warning: #b45309;
    --warning-bg: #fef3c7;
    --danger: #b91c1c;
    --danger-bg: #fee2e2;
    --info: #0369a1;
    --info-bg: #e0f2fe;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.public-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

button, input, select, textarea {
    font: inherit;
}

/* ==========================================================================
   Public Header & Navigation
   ========================================================================== */

.public-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 500;
    backdrop-filter: blur(14px);
}

.public-header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.public-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.public-brand-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.public-nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    padding: 10px 0;
    position: relative;
}

.public-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 5px;
    height: 1px;
    background: var(--gold);
    transition: right 200ms ease;
}

.public-nav-link:hover::after,
.public-nav-link:focus-visible::after {
    right: 0;
}

.public-nav-link:hover {
    color: var(--gold);
}

.public-nav-cta {
    font-size: 15px;
    font-weight: 600;
    padding: 8px 19px;
    border-radius: var(--radius-sm);
}

.public-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.public-mobile-toggle .hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.public-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.public-content-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 24px 72px;
    width: 100%;
}

.public-section {
    margin-bottom: 56px;
}

.public-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
}

.public-section-title {
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.public-section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   Buttons System
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-gold {
    background-color: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #ffffff;
}

.btn-secondary {
    background-color: #334155;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #1e293b;
    color: #ffffff;
}

.btn-light {
    background-color: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

.btn-light:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-large {
    min-height: 48px;
    padding: 0 26px;
    font-size: 15px;
}

.btn-small {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Homepage Split Hero
   ========================================================================== */

.hero-split {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: stretch;
    gap: 28px;
    margin-bottom: 76px;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 28px 42px 10px;
    animation: public-fade-up 520ms ease both;
}

.hero-content::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 46px;
    bottom: 46px;
    width: 1px;
    background: linear-gradient(transparent, var(--gold), transparent);
}

.hero-eyebrow-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-gold-line {
    width: 38px;
    height: 2px;
    background: var(--gold);
}

.hero-eyebrow {
    color: var(--gold-hover);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.hero-headline {
    max-width: 570px;
    margin-bottom: 20px;
    color: #111827;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: clamp(46px, 4.1vw, 58px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.hero-description {
    max-width: 510px;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.hero-btn-primary {
    min-height: 46px;
    padding-inline: 22px;
}

.hero-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 0;
    border-bottom: 1px solid #cbd5e1;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    transition: color 200ms ease, border-color 200ms ease, gap 200ms ease;
}

.hero-link-secondary:hover {
    gap: 10px;
    border-color: var(--gold);
    color: var(--gold-hover);
}

.hero-media-wrapper {
    min-width: 0;
    animation: public-image-in 600ms 80ms ease both;
}

.hero-image-frame {
    position: relative;
    height: 430px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #e2e8f0;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.hero-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 58%, rgba(15, 23, 42, 0.14));
}

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

.hero-floating-badge {
    position: absolute;
    z-index: 2;
    left: 20px;
    bottom: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 9px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
}

.hero-badge-dot,
.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}

.hero-badge-title {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.hero-badge-loc {
    grid-column: 2;
    color: var(--text-muted);
    font-size: 11px;
}

@keyframes public-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes public-image-in {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Property Cards & 3-Column Grid
   ========================================================================== */

.public-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.public-property-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    animation: public-fade-up 480ms ease both;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.public-property-card:nth-child(2) { animation-delay: 70ms; }
.public-property-card:nth-child(3) { animation-delay: 140ms; }
.public-property-card:nth-child(4) { animation-delay: 210ms; }
.public-property-card:nth-child(5) { animation-delay: 280ms; }
.public-property-card:nth-child(6) { animation-delay: 350ms; }

.public-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
    border-color: #d7dee7;
}

.public-property-media-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.public-property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.public-property-card:hover .public-property-img {
    transform: scale(1.03);
}

.public-card-availability-pill {
    position: absolute;
    top: 13px;
    left: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(8px);
}

.pill-text {
    line-height: 1;
}

.public-property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.public-property-card-body {
    padding: 19px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.public-property-card-header {
    margin-bottom: 16px;
}

.public-property-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 6px;
}

.public-property-name a:hover {
    color: var(--gold);
}

.public-property-location {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.public-property-address {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 14px;
}

.public-amenities-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    margin-bottom: 18px;
}

.public-amenity-chip {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.public-amenity-more {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.public-amenity-divider {
    color: var(--gold-light);
}

.public-property-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-property-price {
    display: flex;
    flex-direction: column;
}

.price-from {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.price-period {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
}

.price-contact {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-hover);
}

.public-card-btn {
    min-height: 39px;
    padding: 0 15px;
    font-size: 13px;
}

.public-card-arrow {
    transition: transform 200ms ease;
}

.public-card-btn:hover .public-card-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Property & Unit Detail Pages
   ========================================================================== */

.public-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.public-back-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-hover);
    margin-bottom: 8px;
}

.public-back-link:hover {
    text-decoration: underline;
}

.public-detail-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.public-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-location-pill, .detail-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.detail-address-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* Gallery component overrides */
.property-detail-gallery {
    margin-bottom: 36px;
}

.public-gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0f172a;
    height: clamp(360px, 40vw, 480px);
    box-shadow: var(--shadow-md);
}

.public-gallery-main > img,
.public-gallery-main > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 14px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
    color: #ffffff;
    font-size: 14px;
}

.public-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.gallery-thumbnail {
    width: 100px;
    height: 68px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #e2e8f0;
}

.gallery-thumbnail.is-active {
    border-color: var(--gold);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details Section Grid */
.public-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.public-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.public-card-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.public-card-text {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}

.public-amenity-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.public-amenity-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* Unit Cards in Property Detail */
.public-unit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.public-unit-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.public-unit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.public-unit-media-link {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #e2e8f0;
    display: block;
    overflow: hidden;
}

.public-unit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-unit-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #15803d;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.public-unit-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.public-unit-header {
    margin-bottom: 8px;
}

.public-unit-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.public-unit-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.public-unit-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.public-unit-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.unit-price-amount {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.unit-price-period {
    font-size: 12px;
    color: var(--text-muted);
}

.unit-price-contact {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-hover);
}

.public-unit-actions {
    display: flex;
    gap: 6px;
}

/* Unit Detail Specs Strip */
.public-unit-specs-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.public-spec-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.spec-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.spec-gold {
    color: var(--gold-hover);
}

.public-detail-cta-bar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    box-shadow: var(--shadow-sm);
}

.public-cta-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.public-cta-text p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   Multi-step Progress Bar
   ========================================================================== */

.public-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 36px;
    padding: 0 16px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    flex-shrink: 0;
}

.progress-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.step-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-step.is-active .step-badge {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12);
}

.progress-step.is-active .step-title {
    color: var(--text);
    font-weight: 700;
}

.progress-step.is-complete .step-badge {
    background: #dcfce7;
    border-color: #15803d;
    color: #15803d;
}

.progress-step.is-complete .step-title {
    color: #15803d;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: -20px 12px 0;
}

.progress-line.is-complete {
    background: #15803d;
}

/* ==========================================================================
   Public Forms & Apply Flow
   ========================================================================== */

.public-page-header {
    margin-bottom: 28px;
}

.public-page-header.text-center {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.public-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.public-page-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

.public-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.public-selection-banner {
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.selection-banner-pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--gold-hover);
    display: block;
    margin-bottom: 2px;
}

.selection-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.selection-banner-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.public-form-container {
    max-width: 860px;
    margin: 0 auto;
}

.public-form-section {
    margin-bottom: 24px;
}

.public-form-section-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.public-form-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.public-form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.public-subheading {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin: 18px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.public-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

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

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
    height: auto;
    min-height: 90px;
    padding: 10px 14px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(179, 143, 77, 0.18);
}

.form-input-large {
    height: 50px;
    font-size: 16px;
    padding: 0 18px;
}

.select-wrapper {
    position: relative;
}

.file-upload-box {
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: #f8fafc;
}

.file-upload-box input[type="file"] {
    display: block;
    width: 100%;
    font-size: 13px;
    color: var(--text);
}

.file-upload-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.field-error {
    font-size: 12px;
    color: var(--danger);
    font-weight: 500;
}

.field-help {
    font-size: 12px;
    color: var(--text-muted);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #fecaca;
}

/* Terms Review Card */
.terms-review-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
}

.terms-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.terms-version {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.terms-status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
}

.terms-status-badge.is-accepted {
    background: #dcfce7;
    color: #15803d;
}

.terms-link-wrap {
    margin-bottom: 14px;
}

.terms-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-hover);
    text-decoration: underline;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.public-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

/* Location Selection Cards */
.public-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.public-location-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.public-location-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-light);
    box-shadow: var(--shadow-md);
}

.location-card-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gold-bg);
    color: var(--gold-hover);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.location-card-info {
    flex: 1;
    min-width: 0;
}

.location-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.location-card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.location-card-arrow {
    color: #94a3b8;
    font-size: 18px;
    font-weight: 700;
}

/* Unit Selection Grid in Apply Flow */
.public-unit-selector-card {
    margin-top: 36px;
}

.unit-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.unit-select-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.unit-select-option:hover {
    border-color: var(--gold-light);
    box-shadow: var(--shadow-sm);
}

.unit-select-cover {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 6px;
}

.unit-select-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.unit-select-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.unit-select-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-hover);
    margin: 2px 0 6px;
}

.unit-preview-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
}

.unit-inline-thumbnails {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.unit-inline-thumbnail {
    width: 44px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0;
    background: #e2e8f0;
}

.unit-inline-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Application Status & Tracking
   ========================================================================== */

.public-track-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 30px;
}

.public-track-actions {
    margin-top: 20px;
}

.public-status-result-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.public-card-header {
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
}

.status-result-code {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.status-result-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.public-status-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-available, .badge-approved {
    background: #dcfce7;
    color: #15803d;
}

.badge-pending {
    background: #fef3c7;
    color: #b45309;
}

.badge-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.public-status-details-grid {
    padding: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.status-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-item-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-item-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.public-status-notes-box {
    margin: 0 26px 26px;
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
}

.notes-box-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-hover);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notes-box-content {
    font-size: 14px;
    color: #334155;
    margin-top: 4px;
}

.public-card-footer {
    padding: 18px 26px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

/* Success Card */
.public-success-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 36px;
}

.public-success-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 32px;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
}

.public-success-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.public-success-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 28px;
}

.public-reference-container {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 24px;
}

.reference-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: block;
}

.reference-code-box {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-hover);
    letter-spacing: 0.08em;
    font-family: monospace;
    margin: 8px 0;
}

.reference-hint {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.public-success-meta {
    font-size: 13px;
    color: #475569;
    margin-bottom: 32px;
}

.public-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Empty State Card */
.public-empty-card {
    background: #ffffff;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.public-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: #94a3b8;
}

.public-empty-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.public-empty-card p {
    font-size: 14px;
    max-width: 440px;
    margin: 0 auto 20px;
}

/* ==========================================================================
   Public Footer
   ========================================================================== */

.public-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.public-footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 24px 36px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
}

.public-footer-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.public-footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 320px;
}

.public-footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.public-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.public-footer-links a {
    font-size: 14px;
    color: #cbd5e1;
    transition: color 0.15s ease;
}

.public-footer-links a:hover {
    color: var(--gold-light);
}

.public-footer-contact-item {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.public-footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 24px;
}

.public-footer-bottom-container {
    max-width: 1240px;
    margin: 0 auto;
    font-size: 13px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Lightbox Dialog */
.unit-media-dialog {
    border: none;
    border-radius: var(--radius-md);
    padding: 24px;
    background: #0f172a;
    color: #ffffff;
    max-width: 900px;
    width: calc(100vw - 32px);
    margin: auto;
    box-shadow: var(--shadow-lg);
}

.unit-media-dialog::backdrop {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.unit-media-dialog img,
.unit-media-dialog video {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-split {
        min-height: 400px;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 22px;
        margin-bottom: 60px;
    }

    .hero-content {
        padding-right: 16px;
    }

    .hero-headline {
        font-size: clamp(40px, 5vw, 48px);
    }

    .hero-image-frame {
        height: 400px;
    }

    .public-properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-unit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-unit-specs-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .public-header-container {
        height: 68px;
    }

    .public-brand-logo {
        height: 44px;
    }

    .public-mobile-toggle {
        display: flex;
    }

    .public-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        padding: 16px 24px 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        box-shadow: var(--shadow-md);
    }

    .public-nav.is-open {
        display: flex;
    }

    .public-nav-link {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .public-nav-cta {
        width: 100%;
        text-align: center;
    }

    .public-mobile-toggle.is-active .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .public-mobile-toggle.is-active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .public-mobile-toggle.is-active .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-split {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 54px;
    }

    .hero-content {
        padding: 28px 10px 4px;
    }

    .hero-content::before {
        display: none;
    }

    .hero-headline {
        max-width: 620px;
        font-size: clamp(38px, 7vw, 44px);
    }

    .hero-description {
        margin-bottom: 24px;
    }

    .hero-image-frame {
        height: 330px;
        border-radius: 18px;
    }

    .public-details-grid {
        grid-template-columns: 1fr;
    }

    .public-footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .public-form-grid {
        grid-template-columns: 1fr;
    }

    .public-status-details-grid {
        grid-template-columns: 1fr;
    }

    .public-detail-cta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 650px) {
    .public-content-container {
        padding: 20px 16px 48px;
    }

    .public-properties-grid {
        grid-template-columns: 1fr;
    }

    .public-section-title {
        font-size: 28px;
    }

    .hero-content {
        padding-top: 16px;
    }

    .hero-headline {
        font-size: clamp(32px, 9vw, 38px);
        line-height: 1.06;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-image-frame {
        height: 280px;
    }

    .hero-floating-badge {
        left: 14px;
        bottom: 14px;
    }

    .public-property-footer {
        align-items: flex-end;
    }

    .public-unit-grid {
        grid-template-columns: 1fr;
    }

    .public-location-grid {
        grid-template-columns: 1fr;
    }

    .public-unit-specs-strip {
        grid-template-columns: 1fr;
    }

    .public-amenity-badges-grid {
        grid-template-columns: 1fr;
    }

    .public-detail-header {
        flex-direction: column;
        gap: 16px;
    }

    .public-selection-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-form-actions {
        flex-direction: column-reverse;
    }

    .public-form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .public-header-container {
        padding-inline: 16px;
    }

    .public-brand-logo {
        height: 41px;
    }

    .hero-eyebrow-wrap {
        margin-bottom: 14px;
    }

    .hero-gold-line {
        width: 28px;
    }

    .hero-actions {
        gap: 16px;
    }

    .hero-btn-primary {
        padding-inline: 18px;
    }

    .hero-image-frame {
        height: 245px;
        border-radius: 15px;
    }

    .public-property-card-body {
        padding: 18px;
    }

    .public-property-footer {
        gap: 10px;
    }

    .price-amount {
        font-size: 16px;
    }

    .public-card-btn {
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
