/* =========================================================
   Shunshig Luxury Website
   Bootstrap 5 + jQuery
   Custom styles are intentionally unminified for maintenance.
   ========================================================= */

/* ---------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------- */

:root {
    /* Official Shunshig blue */
    --blue-950: #000f2e;
    --blue-900: #001a4d;
    --blue-850: #00246b;
    --blue-800: #002e88;
    --blue-700: #0b45a8;
    --blue-600: #2866c0;

    /* Secondary blue accents */
    --accent-700: #245bb3;
    --accent-600: #3d73c7;
    --accent-500: #5e8ed6;
    --accent-400: #8fb2e6;
    --accent-300: #bdd0ef;

    /* Page surfaces */
    --surface-100: #fbfcff;
    --surface-200: #f4f7fc;
    --blue-soft-100: #eef3fb;
    --blue-soft-200: #e2eaf7;

    /* Text and borders */
    --ink-900: #152038;
    --ink-700: #3e4b63;
    --ink-500: #6a768b;
    --line-color: #dde5f1;

    --white: #ffffff;
    --danger: #c6454b;
    --warning: #d19627;
    --success: #24825f;

    --shadow-sm: 0 8px 24px rgba(0, 46, 136, 0.08);
    --shadow-md: 0 18px 46px rgba(0, 46, 136, 0.12);
    --shadow-lg: 0 28px 70px rgba(0, 29, 86, 0.18);

    --container-radius: 4px;
    --font-body: "Roboto", Arial, Helvetica, sans-serif;
    --font-heading: "Roboto", Arial, Helvetica, sans-serif;
    --bs-body-font-family: "Roboto", Arial, Helvetica, sans-serif;

    --transition: 220ms ease;
}

/* ---------------------------------------------------------
   2. Global base
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--white);
    color: var(--ink-900);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body.portal-body {
    background: #f3f6fb;
}

img {
    max-width: 100%;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--ink-900);
    font-family: var(--font-heading);
}

p {
    color: var(--ink-500);
    line-height: 1.8;
}

::selection {
    background: var(--accent-500);
    color: var(--blue-950);
}


/*
   Legacy utility class names such as .text-gold, .text-green,
   .btn-gold and .btn-green are retained to avoid changing every
   HTML template. They now use the official blue palette above.
*/

/* ---------------------------------------------------------
   3. Shared utility classes
   --------------------------------------------------------- */

.section-space {
    padding: 104px 0;
}

.section-space-small {
    padding: 72px 0;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 24px;
    font-size: clamp(2.1rem, 4.4vw, 3.8rem);
    line-height: 1.12;
}

.section-copy {
    max-width: 720px;
    color: var(--ink-500);
    font-size: 0.98rem;
    line-height: 1.9;
}

.text-gold {
    color: var(--accent-500) !important;
}

.text-green {
    color: var(--blue-800) !important;
}

.bg-cream {
    background: var(--surface-100);
}

.bg-sage {
    background: var(--blue-soft-100);
}

.bg-dark-green {
    background: var(--blue-950);
}

.gold-divider {
    width: 46px;
    height: 2px;
    margin: 18px auto 0;
    background: var(--accent-500);
}

.card-clean {
    background: var(--white);
    border: 1px solid var(--line-color);
    border-radius: var(--container-radius);
    box-shadow: var(--shadow-sm);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--blue-soft-100);
    color: var(--blue-800);
    font-size: 0.72rem;
    font-weight: 800;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
}

.status-available {
    background: var(--success);
}

.status-reserved {
    background: var(--warning);
}

.status-sold {
    background: var(--danger);
}

.bg-success-subtle {
    background: #ddf2e9 !important;
}

.bg-primary-subtle {
    background: #e8eff9 !important;
}

.bg-warning-subtle {
    background: #fff0d5 !important;
}

.bg-danger-subtle {
    background: #f9e2e4 !important;
}

.text-success {
    color: var(--success) !important;
}

.text-primary {
    color: var(--blue-800) !important;
}

.text-warning {
    color: #9b6b16 !important;
}

.text-danger {
    color: var(--danger) !important;
}

/* ---------------------------------------------------------
   4. Buttons and forms
   --------------------------------------------------------- */

.btn {
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.82rem 1.35rem;
    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.62rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.95rem 1.55rem;
    font-size: 0.9rem;
}

.btn-gold {
    background: var(--accent-500);
    border-color: var(--accent-500);
    color: var(--blue-950);
}

.btn-gold:hover,
.btn-gold:focus {
    background: var(--accent-400);
    border-color: var(--accent-400);
    color: var(--blue-950);
}

.btn-green,
.btn-brand {
    background: var(--blue-800);
    border-color: var(--blue-800);
    color: var(--white);
}

.btn-green:hover,
.btn-green:focus,
.btn-brand:hover,
.btn-brand:focus {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: var(--white);
}

.btn-copper {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: var(--blue-950);
}

.btn-copper:hover,
.btn-copper:focus {
    background: var(--accent-500);
    border-color: var(--accent-500);
    color: var(--blue-950);
}

.btn-outline-green,
.btn-outline-brand {
    background: transparent;
    border-color: var(--blue-800);
    color: var(--blue-800);
}

.btn-outline-green:hover,
.btn-outline-green:focus,
.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--blue-800);
    border-color: var(--blue-800);
    color: var(--white);
}

.form-control,
.form-select {
    min-height: 50px;
    border-color: #d7e0ee;
    border-radius: 2px;
    color: var(--ink-900);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-500);
    box-shadow: 0 0 0 0.2rem rgba(94, 142, 214, 0.14);
}

.form-control::placeholder {
    color: #8a96aa;
}

textarea.form-control {
    min-height: 130px;
}

/* ---------------------------------------------------------
   5. Public header and navigation
   --------------------------------------------------------- */

.site-header .navbar {
    min-height: 82px;
    padding: 10px 0;
    border-bottom: 1px solid transparent;
    transition:
        min-height var(--transition),
        padding var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.site-header-home .navbar {
    background: linear-gradient(
        180deg,
        rgba(0, 26, 77, 0.82) 0%,
        rgba(0, 26, 77, 0) 100%
    );
}

.site-header-inner .navbar,
.site-header .navbar.navigation-scrolled {
    min-height: 72px;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--line-color);
    box-shadow: 0 10px 34px rgba(0, 46, 136, 0.08);
    backdrop-filter: blur(12px);
}

.brand-logo {
    width: 166px;
    height: 56px;
    object-fit: contain;
}



/* Official logo variants */

.brand-logo-dark {
    display: none;
}

.site-header-inner .brand-logo-light,
.site-header .navbar.navigation-scrolled .brand-logo-light {
    display: none;
}

.site-header-inner .brand-logo-dark,
.site-header .navbar.navigation-scrolled .brand-logo-dark {
    display: block;
}

.site-header-home .navbar:not(.navigation-scrolled) .nav-link,
.site-header-home .navbar:not(.navigation-scrolled) .header-phone,
.site-header-home .navbar:not(.navigation-scrolled) .language-switch {
    color: rgba(255, 255, 255, 0.88);
}

.site-header-home .navbar:not(.navigation-scrolled) .navbar-toggler {
    color: var(--white);
}

.navbar .nav-link {
    padding: 0.7rem 0.75rem !important;
    color: var(--ink-900);
    font-size: 0.83rem;
    font-weight: 700;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--accent-600);
}

.dropdown-menu {
    min-width: 230px;
    padding: 0.65rem;
    border-radius: 2px;
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    padding: 0.72rem 0.85rem;
    border-radius: 2px;
    color: var(--ink-700);
    font-size: 0.83rem;
}

.dropdown-item:hover {
    background: var(--blue-soft-100);
    color: var(--blue-800);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-700);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-900);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.header-phone i {
    color: var(--accent-500);
}

.navbar-toggler {
    color: var(--blue-800);
    font-size: 1.4rem;
}

.offcanvas {
    background: var(--surface-100);
}

.offcanvas-logo {
    width: 160px;
    height: 58px;
    object-fit: contain;
}

.mobile-navigation {
    display: grid;
}

.mobile-navigation a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-color);
    color: var(--ink-900);
    font-weight: 700;
}

.mobile-navigation-actions {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.mobile-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--blue-800);
    font-weight: 800;
}

/* ---------------------------------------------------------
   6. Public footer
   --------------------------------------------------------- */

.site-footer {
    padding: 78px 0 0;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(94, 142, 214, 0.08),
            transparent 28%
        ),
        var(--blue-950);
    color: rgba(255, 255, 255, 0.63);
}

.footer-logo {
    width: 180px;
    height: 78px;
    object-fit: contain;
}

.footer-description {
    max-width: 350px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.8rem;
    line-height: 1.8;
}

.site-footer h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer .col-lg-2 > a,
.site-footer .col-lg-3 > a {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
}

.site-footer a:hover {
    color: var(--accent-400);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: var(--white);
}

.footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 13px;
    font-size: 0.78rem;
    line-height: 1.55;
}

.footer-contact-list i {
    margin-top: 3px;
    color: var(--accent-500);
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.66);
}

.footer-subscribe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 54px;
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-subscribe strong {
    display: block;
    margin-bottom: 5px;
    color: var(--white);
}

.footer-subscribe span {
    font-size: 0.76rem;
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    min-width: 430px;
}

.subscribe-form .form-control {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    border: 0;
    border-radius: 2px 0 0 2px;
}

.subscribe-form .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 0 2px 2px 0;
}

.subscribe-feedback {
    order: -1;
    flex: 0 0 100%;
    margin-bottom: 8px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.84);
}

.subscribe-feedback.is-error {
    color: #ffd0d0;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.68rem;
}

/* ---------------------------------------------------------
   7. Home hero
   --------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    min-height: 850px;
    align-items: center;
    padding-top: 85px;
    background:
        url("../images/hero-building.webp")
        center center / cover
        no-repeat;
    color: var(--white);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(0, 15, 46, 0.94) 0%,
            rgba(0, 15, 46, 0.72) 38%,
            rgba(0, 15, 46, 0.18) 72%
        ),
        linear-gradient(
            0deg,
            rgba(0, 15, 46, 0.72) 0%,
            rgba(0, 15, 46, 0) 48%
        );
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--white);
    font-size: clamp(4rem, 7.6vw, 7.8rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
}

.hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.03rem;
    line-height: 1.85;
}

.hero-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-feature-strip {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    background: rgba(0, 26, 77, 0.9);
    border-top: 1px solid rgba(94, 142, 214, 0.23);
    backdrop-filter: blur(10px);
}

.hero-feature {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 20px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    line-height: 1.5;
}

.hero-feature:last-child {
    border-right: 0;
}

.hero-feature i {
    color: var(--accent-500);
    font-size: 1.35rem;
}

/* ---------------------------------------------------------
   8. Home sections
   --------------------------------------------------------- */

.about-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--container-radius);
    box-shadow: var(--shadow-md);
}

.about-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1.3;
    object-fit: cover;
}

.about-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        180deg,
        transparent 52%,
        rgba(0, 36, 107, 0.62)
    );
}

.media-play-button {
    position: absolute;
    top: 50%;
    left: 10%;
    z-index: 3;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue-800);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%);
}

.media-play-label {
    position: absolute;
    top: 50%;
    left: calc(10% + 78px);
    z-index: 3;
    color: var(--white);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
    transform: translateY(-50%);
}

.stat-grid {
    margin-top: 32px;
}

.stat-item i {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-600);
    font-size: 1.45rem;
}

.stat-item strong {
    display: block;
    color: var(--blue-800);
    font-size: 1.3rem;
}

.stat-item span {
    display: block;
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 0.68rem;
    line-height: 1.4;
}

.home-project-card {
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line-color);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.home-project-card.project-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-project-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.home-project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.home-project-card .body {
    padding: 22px;
}

.home-project-card h3 {
    margin: 14px 0 8px;
    font-size: 1.25rem;
}

.home-project-card p {
    margin-bottom: 0;
    font-size: 0.78rem;
    line-height: 1.65;
}

.home-project-card .meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line-color);
}

.home-project-card .meta strong {
    display: block;
    color: var(--ink-900);
    font-size: 0.84rem;
}

.home-project-card .meta span {
    display: block;
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 0.64rem;
}

.masterplan-band {
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(94, 142, 214, 0.1),
            transparent 28%
        ),
        var(--blue-950);
    color: var(--white);
}

.masterplan-band h2 {
    color: var(--white);
}

.masterplan-band p {
    color: rgba(255, 255, 255, 0.62);
}

.masterplan-band img {
    width: 100%;
    filter: drop-shadow(
        0 30px 45px rgba(0, 0, 0, 0.5)
    );
}

.why-section {
    background:
        radial-gradient(
            circle at 12% 50%,
            rgba(94, 142, 214, 0.1),
            transparent 30%
        ),
        var(--blue-soft-100);
}

.why-card {
    display: flex;
    height: 100%;
    gap: 16px;
    padding: 20px;
}

.why-card-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid rgba(94, 142, 214, 0.45);
    border-radius: 50%;
    color: var(--blue-800);
    font-size: 1.2rem;
}

.why-card h3 {
    margin-bottom: 6px;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
}

.why-card p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.6;
}

.featured-apartment {
    overflow: hidden;
    border: 1px solid var(--line-color);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.featured-apartment-image {
    min-height: 100%;
    padding: 28px;
    background:
        linear-gradient(
            135deg,
            #002e88,
            #001a4d
        );
}

.featured-apartment-image img {
    display: block;
    max-height: 600px;
    margin: 0 auto;
}

.featured-apartment-content {
    padding: clamp(28px, 5vw, 58px);
}

.featured-price {
    margin-bottom: 18px;
    color: var(--blue-800);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 700;
}

.featured-spec-list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.featured-spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-color);
    font-size: 0.82rem;
}

.material-preview-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
}

.material-preview-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.material-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(0, 36, 107, 0.82)
    );
}

.material-preview-overlay h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.25rem;
}

.booking-step {
    position: relative;
    height: 100%;
    padding: 30px 20px 24px;
    background: var(--white);
    border: 1px solid var(--line-color);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/*
 * The connector arrow is positioned relative to the Bootstrap column,
 * not the card. The column boundary is the exact center of the 24px
 * gutter between two cards, so the arrow remains visually centered.
 */
.booking-step-column {
    position: relative;
}

.booking-step::after {
    display: none;
}

.booking-step-column:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 3;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    content: "\f061";
    color: var(--accent-500);
    font-family: "Font Awesome 6 Free";
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    transform: translate(50%, -50%);
}

.booking-step-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: -58px auto 16px;
    place-items: center;
    border: 1px solid var(--accent-300);
    border-radius: 50%;
    background: var(--white);
    color: var(--accent-700);
    font-size: 1.35rem;
}

.booking-step strong {
    display: block;
    color: var(--blue-800);
    font-size: 1.05rem;
}

.booking-step h3 {
    margin: 10px 0 8px;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
}

.booking-step p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.6;
}

.construction-preview {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line-color);
    box-shadow: var(--shadow-sm);
}

.construction-preview img {
    width: 100%;
    height: 390px;
    object-fit: cover;
}

.construction-preview-content {
    padding: 32px;
}

.progress-line {
    height: 8px;
    overflow: hidden;
    background: #e7edf7;
    border-radius: 999px;
}

.progress-line span {
    display: block;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--blue-700),
            var(--accent-500)
        );
}

.home-faq .accordion-item {
    border-color: var(--line-color);
}

.inquiry-panel {
    overflow: hidden;
    background: var(--blue-800);
    box-shadow: var(--shadow-md);
}

.inquiry-content {
    padding: clamp(30px, 5vw, 58px);
}

.inquiry-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.inquiry-content p {
    color: rgba(255, 255, 255, 0.66);
}

.inquiry-content .form-control,
.inquiry-content .form-select {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.inquiry-content .form-control::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.inquiry-content .form-select option {
    color: var(--ink-900);
}

.inquiry-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

/* ---------------------------------------------------------
   9. Inner page hero
   --------------------------------------------------------- */

.page-hero {
    position: relative;
    padding: 166px 0 84px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(94, 142, 214, 0.14),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            var(--blue-950),
            var(--blue-800)
        );
    color: var(--white);
}

.page-hero > .container {
    position: relative;
    z-index: 2;
}

.page-hero::after {
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(94, 142, 214, 0.14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.page-hero h1 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.page-hero p {
    /*max-width: 760px;*/
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.breadcrumb {
    --bs-breadcrumb-divider: "/";
}

.breadcrumb a,
.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.66);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.35);
}

/* ---------------------------------------------------------
   10. Project details
   --------------------------------------------------------- */

.project-hero-image {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.info-stat {
    height: 100%;
    padding: 22px;
    border-left: 3px solid var(--accent-500);
    background: var(--surface-100);
}

.info-stat strong {
    display: block;
    color: var(--blue-800);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 1.75rem;
}

.info-stat span {
    color: var(--ink-500);
    font-size: 0.72rem;
}

.download-card {
    padding: 32px;
    background:
        linear-gradient(
            135deg,
            var(--blue-soft-100),
            var(--surface-100)
        );
    border: 1px solid var(--line-color);
}

.feature-detail {
    display: flex;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line-color);
}

.feature-detail i {
    width: 34px;
    color: var(--accent-600);
    font-size: 1.5rem;
}

.feature-detail h3 {
    margin-bottom: 7px;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
}

.feature-detail p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.65;
}

/* ---------------------------------------------------------
   11. Apartment listing and detail
   --------------------------------------------------------- */

.filter-panel {
    position: sticky;
    top: 94px;
    padding: 26px;
}

.apartment-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line-color);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.apartment-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    background: #002e88;
}

.apartment-card .body {
    padding: 22px;
}

.apartment-card h3 {
    font-size: 1.15rem;
}

.apartment-card .price {
    color: var(--blue-800);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
}

.apartment-card .specs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0 20px;
    color: var(--ink-500);
    font-size: 0.72rem;
}

.apartment-card .specs i {
    color: var(--accent-600);
}

.apartment-status {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 0.45rem 0.7rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: 0.68rem;
    font-weight: 800;
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--ink-500);
    font-size: 0.72rem;
}

.floorplan-wrap {
    padding: 30px;
    background:
        radial-gradient(
            circle at 65% 20%,
            rgba(255, 255, 255, 0.1),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0b45a8,
            #001a4d
        );
}

.floorplan-wrap img {
    display: block;
    max-height: 640px;
    margin: 0 auto;
}

.plan-tabs .nav-link {
    border-radius: 0;
    color: var(--ink-500);
    font-weight: 700;
}

.plan-tabs .nav-link.active {
    background: transparent;
    border-bottom: 2px solid var(--accent-500);
    color: var(--blue-800);
}

.price-panel {
    position: sticky;
    top: 96px;
    padding: 30px;
}

.price-panel .price {
    margin-bottom: 16px;
    color: var(--blue-800);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-color);
    font-size: 0.82rem;
}

/* ---------------------------------------------------------
   12. Materials, news and contact cards
   --------------------------------------------------------- */

.news-card {
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line-color);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.news-card .body {
    padding: 22px;
}

.news-card time {
    color: var(--accent-700);
    font-size: 0.68rem;
    font-weight: 800;
}

.news-card h3 {
    margin: 10px 0;
    font-size: 1.16rem;
}

.news-card p {
    font-size: 0.78rem;
    line-height: 1.7;
}

.contact-card {
    height: 100%;
    padding: 28px;
}

.contact-card i {
    color: var(--accent-600);
    font-size: 1.5rem;
}

.contact-card h3 {
    margin: 16px 0 8px;
    font-size: 1rem;
}

.contact-card p,
.contact-card a {
    color: var(--ink-500);
    font-size: 0.8rem;
}

.map-placeholder {
    position: relative;
    display: grid;
    height: 430px;
    overflow: hidden;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            #eaf0f8,
            #cfdbef
        );
}

.map-placeholder::before,
.map-placeholder::after {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    content: "";
}

.map-placeholder::before {
    width: 135%;
    height: 28px;
    transform: rotate(18deg);
}

.map-placeholder::after {
    width: 28px;
    height: 135%;
    transform: rotate(-22deg);
}

.map-pin {
    position: relative;
    z-index: 2;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-800);
    color: var(--accent-400);
    font-size: 1.8rem;
    box-shadow: var(--shadow-md);
}

/* ---------------------------------------------------------
   13. Calculator and FAQ
   --------------------------------------------------------- */

.calculator-card {
    padding: 32px;
}

.result-card {
    height: 100%;
    padding: 34px;
    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(94, 142, 214, 0.15),
            transparent 30%
        ),
        var(--blue-800);
    color: var(--white);
}

.result-card h3 {
    color: var(--white);
}

.result-number {
    color: var(--accent-400);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 2.45rem;
    font-weight: 700;
}

.result-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.result-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 0.8rem;
}

.schedule-table th {
    color: var(--ink-500);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.schedule-table td {
    font-size: 0.78rem;
}

.faq-search {
    max-width: 720px;
    margin: 0 auto 36px;
}

.faq-category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.faq-category button {
    padding: 0.58rem 1rem;
    border: 1px solid var(--line-color);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink-500);
    font-size: 0.76rem;
    font-weight: 700;
}

.faq-category button.active {
    background: var(--blue-800);
    border-color: var(--blue-800);
    color: var(--white);
}

.accordion-button {
    padding: 1.25rem;
    color: var(--ink-900);
    font-weight: 700;
}

.accordion-button:not(.collapsed) {
    background: var(--blue-soft-100);
    color: var(--blue-800);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    color: var(--ink-500);
    font-size: 0.86rem;
    line-height: 1.75;
}

/* ---------------------------------------------------------
   14. Authentication pages
   --------------------------------------------------------- */

.auth-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--surface-100);
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 58px;
    background:
        url("../images/hero-building.webp")
        center / cover
        no-repeat;
    color: var(--white);
}

.auth-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            135deg,
            rgba(0, 26, 77, 0.96),
            rgba(0, 46, 136, 0.66)
        );
}

.auth-visual > * {
    position: relative;
    z-index: 2;
}

.auth-logo {
    width: 190px;
    height: 78px;
    object-fit: contain;
    filter: none;
}

.auth-visual h1 {
    max-width: 600px;
    color: var(--white);
    font-size: 3.25rem;
}

.auth-form-wrap {
    display: grid;
    padding: 34px;
    place-items: center;
}

.auth-card {
    width: min(100%, 480px);
    padding: 38px;
    background: var(--white);
    border: 1px solid var(--line-color);
    box-shadow: var(--shadow-md);
}

.auth-card h2 {
    font-size: 2rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 26px 0;
}

.auth-tabs button {
    padding: 12px;
    border: 0;
    border-bottom: 2px solid var(--line-color);
    background: transparent;
    color: var(--ink-500);
    font-weight: 800;
}

.auth-tabs button.active {
    border-color: var(--accent-500);
    color: var(--blue-800);
}

.otp-inputs {
    display: flex;
    gap: 8px;
}

.otp-inputs input {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
}

/* ---------------------------------------------------------
   15. Customer portal
   --------------------------------------------------------- */

.portal-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    width: 274px;
    flex-direction: column;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(94, 142, 214, 0.08),
            transparent 26%
        ),
        var(--blue-950);
    color: var(--white);
    transition: transform 260ms ease;
}

.portal-brand {
    display: flex;
    height: 88px;
    align-items: center;
    padding: 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-brand img {
    width: 150px;
    height: 64px;
    object-fit: contain;
}

.portal-navigation {
    display: grid;
    gap: 5px;
    padding: 22px 14px;
}

.portal-navigation a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 10px;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.portal-navigation a:hover,
.portal-navigation a.active {
    background: rgba(94, 142, 214, 0.12);
    color: var(--accent-400);
}

.portal-navigation i {
    width: 18px;
    font-size: 1rem;
}

.navigation-count {
    display: grid;
    width: 22px;
    height: 22px;
    margin-left: auto;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-500);
    color: var(--blue-950);
    font-size: 0.63rem;
}

.portal-manager {
    margin: auto 14px 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(94, 142, 214, 0.12);
}

.portal-manager small,
.portal-manager strong,
.portal-manager > a {
    display: block;
}

.portal-manager small {
    color: rgba(255, 255, 255, 0.44);
}

.portal-manager strong {
    margin: 6px 0 10px;
}

.portal-manager > a {
    color: var(--white);
    font-size: 0.77rem;
}

.portal-manager-channels {
    display: flex;
    gap: 9px;
    margin-top: 14px;
}

.portal-manager-channels a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-400);
}

.portal-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 274px;
    z-index: 1030;
    display: flex;
    height: 88px;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line-color);
}

.portal-topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-menu-button {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue-800);
    font-size: 1.4rem;
}

.portal-title span {
    display: block;
    color: var(--ink-500);
    font-size: 0.66rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.portal-title strong {
    font-size: 1rem;
}

.portal-user-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portal-notification-button {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-500);
    font-size: 1.2rem;
}

.portal-notification-button b {
    position: absolute;
    top: -7px;
    right: -8px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    font-size: 0.55rem;
}

.portal-user-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.portal-user-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-800);
    color: var(--accent-400);
    font-size: 0.76rem;
    font-weight: 800;
}

.portal-user-copy strong,
.portal-user-copy small {
    display: block;
}

.portal-user-copy small {
    color: var(--ink-500);
    font-size: 0.64rem;
}

.portal-main {
    min-height: 100vh;
    margin-left: 274px;
    padding: 118px 28px 40px;
}

.portal-grid {
    display: grid;
    gap: 22px;
}

.portal-card,
.portal-stat {
    background: var(--white);
    border: 1px solid var(--line-color);
    box-shadow: var(--shadow-sm);
}

.portal-stat {
    height: 100%;
    padding: 24px;
}

.portal-stat .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-stat .icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-soft-100);
    color: var(--blue-800);
}

.portal-stat strong {
    display: block;
    margin-top: 18px;
    color: var(--blue-800);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 1.65rem;
}

.portal-stat span {
    color: var(--ink-500);
    font-size: 0.7rem;
}

.portal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 19px 22px;
    border-bottom: 1px solid var(--line-color);
}

.portal-card-header h2 {
    margin: 0;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
}

.portal-card-body {
    padding: 22px;
}

.payment-alert {
    padding: 28px;
    background:
        radial-gradient(
            circle at 88% 0%,
            rgba(94, 142, 214, 0.2),
            transparent 28%
        ),
        var(--blue-800);
    color: var(--white);
}

.payment-alert h2 {
    color: var(--white);
    font-size: 1.55rem;
}

.payment-alert .amount {
    color: var(--accent-400);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
}

.progress-ring {
    position: relative;
    display: grid;
    width: 130px;
    height: 130px;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            var(--accent-500) 0 37.5%,
            #e4eaf4 37.5% 100%
        );
}

.progress-ring::after {
    position: absolute;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: var(--white);
    content: "";
}

.progress-ring span {
    position: relative;
    z-index: 2;
    color: var(--blue-800);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.payment-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6ecf6;
}

.payment-progress span {
    display: block;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--blue-700),
            var(--accent-500)
        );
}

.contract-card {
    height: 100%;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line-color);
}

.contract-card .contract-no {
    color: var(--ink-500);
    font-size: 0.7rem;
}

.contract-card h3 {
    margin: 8px 0;
    font-size: 1.18rem;
}

.contract-card .rows {
    margin: 18px 0;
}

.contract-card .rows div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-color);
    font-size: 0.76rem;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-color);
}

.notification-item .n-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
}

.notification-item h3 {
    margin: 0 0 5px;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
}

.notification-item p {
    margin: 0;
    font-size: 0.74rem;
}

.notification-item time {
    color: #8a96aa;
    font-size: 0.64rem;
}

.timeline {
    position: relative;
    padding-left: 25px;
}

.timeline::before {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: 2px;
    background: var(--line-color);
    content: "";
}

.timeline-item {
    position: relative;
    padding: 0 0 25px 15px;
}

.timeline-item::before {
    position: absolute;
    top: 4px;
    left: -24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-500);
    box-shadow: 0 0 0 4px var(--blue-soft-100);
    content: "";
}

.timeline-item time {
    color: var(--accent-700);
    font-size: 0.66rem;
    font-weight: 800;
}

.timeline-item h3 {
    margin: 5px 0;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
}

.timeline-item p {
    margin: 0;
    font-size: 0.73rem;
}

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

.manager-card {
    padding: 30px;
    text-align: center;
}

.manager-avatar {
    display: grid;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-soft-100);
    color: var(--blue-800);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
}

.manager-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------------------------------------------------------
   16. Electronic contract
   --------------------------------------------------------- */

.contract-shell {
    min-height: 100vh;
    padding: 30px;
    background: #edf2fa;
}

.contract-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--line-color);
    box-shadow: var(--shadow-sm);
}

.contract-document {
    width: min(100%, 900px);
    margin: 26px auto;
    padding: 70px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.contract-document h1 {
    text-align: center;
    font-size: 1.55rem;
    text-transform: uppercase;
}

.contract-document p {
    color: var(--ink-700);
    font-size: 0.86rem;
    line-height: 1.9;
    text-align: justify;
}

.signature-area {
    padding: 15px;
    background: var(--surface-100);
    border: 2px dashed #cad5e7;
}

#signatureCanvas {
    width: 100%;
    height: 190px;
    background: var(--white);
    border: 1px solid var(--line-color);
    touch-action: none;
}

/* ---------------------------------------------------------
   17. Responsive breakpoints
   --------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .header-phone {
        display: none;
    }

    .booking-step-column::after {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .section-space {
        padding: 78px 0;
    }

    .hero {
        min-height: 760px;
    }

    .hero-feature-strip {
        position: relative;
    }

    .hero-feature {
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-subscribe {
        display: block;
    }

    .subscribe-form {
        min-width: 0;
        margin-top: 16px;
    }

    .filter-panel,
    .price-panel {
        position: static;
    }

    .project-hero-image {
        height: 430px;
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 330px;
        padding: 36px;
    }

    .auth-visual h1 {
        font-size: 2.4rem;
    }

    .portal-sidebar {
        transform: translateX(-100%);
    }

    .portal-sidebar.open {
        transform: translateX(0);
    }

    .portal-topbar {
        left: 0;
    }

    .portal-menu-button {
        display: inline-flex;
    }

    .portal-main {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .section-space {
        padding: 60px 0;
    }

    .page-hero {
        padding: 128px 0 58px;
    }

    .hero {
        min-height: 650px;
        background-position: 62% center;
    }

    .hero h1 {
        font-size: clamp(3.7rem, 17vw, 5.4rem);
    }

    .hero p {
        font-size: 0.92rem;
    }

    .hero-feature {
        min-height: 90px;
        padding: 14px 10px;
        font-size: 0.66rem;
    }

    .home-project-card img,
    .news-card img {
        height: 230px;
    }

    .footer-subscribe .subscribe-form {
        display: flex;
    }

    .subscribe-form .form-control,
    .subscribe-form .btn {
        border-radius: 2px;
    }

    .listing-toolbar {
        display: block;
    }

    .legend {
        margin-top: 12px;
    }

    .project-hero-image {
        height: 310px;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-wrap {
        min-height: 100vh;
        padding: 20px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .portal-main {
        padding: 106px 15px 30px;
    }

    .portal-topbar {
        padding: 0 15px;
    }

    .portal-user-copy,
    .portal-user-button > .fa-chevron-down {
        display: none !important;
    }

    .contract-shell {
        padding: 0;
    }

    .contract-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .contract-document {
        margin: 0;
        padding: 36px 20px;
    }

    .inquiry-image {
        min-height: 350px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo {
        width: 145px;
    }

    .hero-action-row .btn {
        width: 100%;
    }

    .hero-feature {
        gap: 9px;
    }

    .hero-feature i {
        font-size: 1.15rem;
    }

    .stat-item span {
        max-width: 110px;
    }

    .booking-step-icon {
        margin-top: 0;
    }

    .booking-step {
        padding-top: 24px;
    }

    .inquiry-content {
        padding: 30px 20px;
    }

    .featured-apartment-content {
        padding: 30px 22px;
    }
}


/* ---------------------------------------------------------
   18. Compatibility aliases used by inner-page templates
   --------------------------------------------------------- */

.text-brand {
    color: var(--blue-800) !important;
}

.bg-brand-soft {
    background: var(--blue-soft-100) !important;
}


/* =========================================================
   Additional public sections
   ========================================================= */

/* Project feature section */

.project-feature-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(94, 142, 214, 0.14),
            transparent 28%
        ),
        var(--blue-950);
}

.project-feature-section .section-title,
.project-feature-section h3 {
    color: var(--white);
}

.project-feature-section .section-copy {
    color: rgba(255, 255, 255, 0.64);
}

.project-scale-card {
    height: 100%;
    padding: 28px;
    border: 1px solid rgba(94, 142, 214, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.project-scale-value {
    display: block;
    color: var(--accent-400);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: clamp(2.4rem, 4vw, 4.1rem);
    font-weight: 700;
    line-height: 1;
}

.project-scale-label {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    line-height: 1.6;
}

.project-feature-card {
    height: 100%;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    transition:
        transform var(--transition),
        background-color var(--transition);
}

.project-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
}

.project-feature-card i {
    color: var(--accent-500);
    font-size: 1.6rem;
}

.project-feature-card h3 {
    margin: 18px 0 8px;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
}

.project-feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    line-height: 1.7;
}

/* Layout cards */

.layout-section {
    background: var(--surface-100);
}

.layout-card {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line-color);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.layout-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.layout-card-image {
    position: relative;
    overflow: hidden;
    background: #00246b;
}

.layout-card-image img {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: cover;
    transition: transform 500ms ease;
}

.layout-card:hover .layout-card-image img {
    transform: scale(1.025);
}

.layout-card-play {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue-800);
    box-shadow: var(--shadow-sm);
}

.layout-card-body {
    padding: 22px;
}

.layout-card-number {
    display: block;
    color: var(--accent-700);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.layout-card h3 {
    margin: 10px 0 6px;
    font-size: 1.18rem;
}

.layout-card p {
    min-height: 50px;
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.65;
}

.layout-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-color);
    font-size: 0.76rem;
}

.layout-card-meta strong {
    color: var(--blue-800);
}

/* Partner logos */

.partner-section {
    padding: 70px 0;
    background: var(--white);
}

.partner-logo-card {
    display: grid;
    min-height: 112px;
    place-items: center;
    padding: 18px;
    border: 1px solid var(--line-color);
    background: var(--white);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.partner-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.partner-logo-card img {
    width: 100%;
    max-width: 210px;
    max-height: 85px;
    object-fit: contain;
    filter: grayscale(0.25);
}

/* Layout detail */

.layout-detail-hero {
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(94, 142, 214, 0.18),
            transparent 30%
        ),
        var(--blue-950);
}

.layout-detail-image {
    padding: 28px;
    background:
        linear-gradient(
            135deg,
            #0b45a8,
            #001a4d
        );
}

.layout-detail-image img {
    display: block;
    width: 100%;
    max-height: 760px;
    margin: 0 auto;
    object-fit: contain;
}

.layout-detail-summary {
    height: 100%;
    padding: clamp(30px, 5vw, 55px);
    background: var(--white);
}

.layout-detail-price {
    color: var(--blue-800);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
}

.layout-detail-video {
    overflow: hidden;
    background: var(--blue-950);
    box-shadow: var(--shadow-md);
}

.layout-detail-video video {
    display: block;
    width: 100%;
    max-height: 640px;
    background: #000000;
}

.layout-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 25px;
}

/* Property gallery */

.property-gallery {
    padding: 24px 0 0;
    background: var(--blue-950);
}

.property-gallery-main {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    cursor: zoom-in;
}

.property-gallery-main img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

.property-gallery-video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue-800);
    font-size: 1.6rem;
    box-shadow: var(--shadow-md);
    transform: translate(-50%, -50%);
}

.property-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.property-gallery-thumbnail {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
}

.property-gallery-thumbnail.active {
    border-color: var(--accent-500);
}

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

.property-gallery-thumbnail.video-thumbnail::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 26, 77, 0.56);
    color: var(--white);
    content: "\f04b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.property-overview-panel {
    padding: 30px;
}

.property-overview-price {
    margin-bottom: 20px;
    color: var(--blue-800);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
}

.property-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.property-quick-spec {
    padding: 15px;
    background: var(--blue-soft-100);
}

.property-quick-spec i {
    color: var(--accent-700);
}

.property-quick-spec strong,
.property-quick-spec span {
    display: block;
}

.property-quick-spec strong {
    margin-top: 8px;
    font-size: 0.84rem;
}

.property-quick-spec span {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 0.67rem;
}

.project-layout-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.project-layout-slider .layout-card {
    min-width: min(330px, 82vw);
    scroll-snap-align: start;
}

.project-information-form {
    padding: clamp(28px, 5vw, 52px);
    background: var(--blue-800);
}

.project-information-form h2 {
    color: var(--white);
}

.project-information-form p {
    color: rgba(255, 255, 255, 0.62);
}

.project-information-form .form-control,
.project-information-form .form-select {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
}

.project-information-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.project-information-form .form-select option {
    color: var(--ink-900);
}

/* News detail */

.news-detail-cover {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.news-detail-content {
    max-width: 850px;
    margin: 0 auto;
}

.news-detail-content p {
    color: var(--ink-700);
    font-size: 0.96rem;
    line-height: 1.95;
}

.news-detail-content h2 {
    margin-top: 40px;
    font-size: 1.75rem;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
    color: var(--ink-500);
    font-size: 0.76rem;
}

/* Login role selector */

.login-role-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.login-role-option {
    position: relative;
}

.login-role-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-role-option label {
    display: block;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--line-color);
    cursor: pointer;
    text-align: center;
    transition:
        border-color var(--transition),
        background-color var(--transition);
}

.login-role-option label i {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-700);
    font-size: 1.4rem;
}

.login-role-option input:checked + label {
    border-color: var(--accent-500);
    background: var(--blue-soft-100);
    color: var(--blue-800);
}

/* Gallery modal */

.gallery-modal-image {
    display: block;
    width: 100%;
    max-height: 84vh;
    object-fit: contain;
    background: #001a4d;
}

/* Responsive additions */

@media (max-width: 991.98px) {
    .property-gallery-main,
    .property-gallery-main img {
        min-height: 430px;
        height: 430px;
    }

    .property-gallery-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .layout-card-image img {
        height: 350px;
    }
}

@media (max-width: 767.98px) {
    .property-gallery {
        padding-top: 0;
    }

    .property-gallery-main,
    .property-gallery-main img {
        min-height: 320px;
        height: 320px;
    }

    .property-gallery-thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-gallery-thumbnail img {
        height: 90px;
    }

    .project-scale-card {
        padding: 22px;
    }

    .layout-card-image img {
        height: 410px;
    }

    .login-role-card {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Share actions, embedded maps, rich media galleries,
   and material detail pages
   ========================================================= */

/* Social share icon buttons */

.share-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.share-actions-label {
    margin-right: 5px;
    color: var(--ink-500);
    font-size: 0.72rem;
    font-weight: 700;
}

.share-icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-color);
    border-radius: 50%;
    background: var(--white);
    color: var(--blue-800);
    font-size: 0.92rem;
    transition:
        transform var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        color var(--transition);
}

.share-icon-button:hover,
.share-icon-button:focus {
    transform: translateY(-2px);
    border-color: var(--accent-500);
    background: var(--blue-800);
    color: var(--accent-400);
}

.share-icon-button.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--white);
}

.share-icon-button.x-twitter:hover {
    background: #111111;
    border-color: #111111;
    color: var(--white);
}

.share-icon-button.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: var(--white);
}

.share-actions-on-dark .share-actions-label {
    color: rgba(255, 255, 255, 0.65);
}

.share-actions-on-dark .share-icon-button {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.share-copy-feedback {
    min-height: 20px;
    margin-top: 9px;
    color: var(--accent-600);
    font-size: 0.7rem;
}

/* Real Google Maps embeds */

.google-map-embed {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: var(--blue-soft-100);
    border: 1px solid var(--line-color);
    box-shadow: var(--shadow-sm);
}

.google-map-embed iframe {
    display: block;
    width: 100%;
    height: 430px;
    border: 0;
}

.google-map-embed.compact,
.google-map-embed.compact iframe {
    min-height: 360px;
    height: 360px;
}

/* Layout detail multi-image and multi-video gallery */

.layout-media-gallery {
    position: relative;
    background: #00246b;
}

.layout-media-main {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    cursor: zoom-in;
}

.layout-media-main img {
    display: block;
    width: 100%;
    height: 640px;
    object-fit: contain;
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(255, 255, 255, 0.1),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #0b45a8,
            #000f2e
        );
}

.layout-media-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
    background: var(--blue-950);
}

.layout-media-thumbnail {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
}

.layout-media-thumbnail.active {
    border-color: var(--accent-500);
}

.layout-media-thumbnail img {
    display: block;
    width: 100%;
    height: 95px;
    object-fit: cover;
}

.layout-media-thumbnail[data-media-type="video"]::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 26, 77, 0.52);
    color: var(--white);
    content: "\f04b";
    font-family: "Font Awesome 6 Free";
    font-size: 1.05rem;
    font-weight: 900;
}

.layout-video-grid video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    object-fit: contain;
}

.media-caption {
    padding: 14px 16px;
    background: var(--blue-950);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
}

/* Material detail page */

.material-detail-hero {
    overflow: hidden;
    background:
        radial-gradient(
            circle at 88% 10%,
            rgba(94, 142, 214, 0.15),
            transparent 28%
        ),
        var(--blue-950);
}

.material-detail-main-image {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.material-detail-summary {
    height: 100%;
    padding: clamp(30px, 5vw, 58px);
    background: var(--white);
}

.material-detail-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.material-specification-table {
    margin-bottom: 0;
}

.material-specification-table th {
    width: 34%;
    padding: 14px 16px;
    background: var(--blue-soft-100);
    color: var(--ink-700);
    font-size: 0.74rem;
}

.material-specification-table td {
    padding: 14px 16px;
    color: var(--ink-500);
    font-size: 0.78rem;
}

.material-gallery-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 12px;
}

.material-gallery-grid img {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.material-gallery-grid img:first-child {
    grid-row: span 2;
    height: 552px;
}

.material-benefit-card {
    height: 100%;
    padding: 26px;
    border: 1px solid var(--line-color);
    background: var(--white);
}

.material-benefit-card i {
    color: var(--accent-600);
    font-size: 1.45rem;
}

.material-benefit-card h3 {
    margin: 16px 0 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 800;
}

.material-benefit-card p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.7;
}

.material-navigation-card {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line-color);
    background: var(--white);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.material-navigation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.material-navigation-card img {
    width: 90px;
    height: 76px;
    object-fit: cover;
}

.material-navigation-card strong,
.material-navigation-card span {
    display: block;
}

.material-navigation-card span {
    margin-bottom: 4px;
    color: var(--accent-700);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Share toast */

.share-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1090;
    max-width: 330px;
    padding: 14px 18px;
    background: var(--blue-950);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    font-size: 0.78rem;
    transform: translateY(25px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 220ms ease,
        opacity 220ms ease;
}

.share-toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 991.98px) {
    .layout-media-main,
    .layout-media-main img {
        min-height: 520px;
        height: 520px;
    }

    .layout-media-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .material-detail-main-image {
        height: 460px;
    }
}

@media (max-width: 767.98px) {
    .layout-media-main,
    .layout-media-main img {
        min-height: 390px;
        height: 390px;
    }

    .layout-media-thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .layout-media-thumbnail img {
        height: 86px;
    }

    .material-detail-main-image {
        height: 350px;
    }

    .material-gallery-grid {
        grid-template-columns: 1fr;
    }

    .material-gallery-grid img,
    .material-gallery-grid img:first-child {
        grid-row: auto;
        height: 260px;
    }
}


.share-actions-on-dark {
    justify-content: flex-end;
}


/* =========================================================
   V1.18 forgot-password modal
   ========================================================= */

.auth-reset-modal {
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 30px 90px rgba(0, 18, 70, 0.28);
}

.auth-reset-modal .modal-header {
    padding: 22px 22px 14px;
}

.auth-reset-modal .modal-body {
    padding: 8px 22px 24px;
}

.auth-reset-success-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--blue-soft-100);
    color: var(--accent-700);
    font-size: 1.15rem;
    place-items: center;
}


/* =========================================================
   V1.19 forgot-password CAPTCHA
   ========================================================= */

.auth-captcha-display {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: stretch;
}

#forgotCaptchaImage {
    display: block;
    width: 100%;
    height: 68px;
    border: 1px solid rgba(0, 46, 136, 0.18);
    background: #f3f6fb;
    object-fit: fill;
}

.auth-captcha-refresh {
    min-width: 42px;
    padding: 0;
}

#forgotCaptchaError:not(.d-none) {
    display: block;
    margin-top: 5px;
    color: #b42318;
    font-size: 0.68rem;
}

.auth-reset-modal {
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 30px 90px rgba(0, 18, 70, 0.28);
}

.auth-reset-modal .modal-header {
    padding: 22px 22px 14px;
}

.auth-reset-modal .modal-body {
    padding: 8px 22px 24px;
}

.auth-reset-success-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--blue-soft-100);
    color: var(--accent-700);
    font-size: 1.15rem;
    place-items: center;
}
