:root {
    --app-primary: #537A67;
    --app-primary-dark: #3F6251;

    --app-bg: #F7F8F6;
    --app-surface: #FFFFFF;

    --app-text: #192721;
    --app-muted: #66736C;

    --app-border: #E1E7E2;

    --app-success-bg: #ecfdf3;
    --app-success-text: #166534;

    --app-warning-bg: #fffbeb;
    --app-warning-text: #92400e;

    --app-danger-bg: #fef2f2;
    --app-danger-text: #991b1b;

    --app-info-bg: #EEF4F0;
    --app-info-text: #3F6251;

    --app-radius: 10px;
    --app-radius-sm: 7px;

    --app-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    --app-shadow-hover: 0 5px 16px rgba(15, 23, 42, 0.09);

    --app-container: 1200px;
}

/* Global base */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--app-bg);
    color: var(--app-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

a {
    color: var(--app-primary);
}

a:hover {
    color: var(--app-primary-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Shared page container */

.app-container {
    width: min(
        calc(100% - 32px),
        var(--app-container)
    );
    margin: 0 auto;
    padding: 32px 0 48px;
}

/* Shared page header */

.app-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.app-page-header h1,
.app-page-header h2 {
    margin: 0;
    color: var(--app-text);
}

.app-page-header h1 {
    font-size: 26px;
    line-height: 1.25;
}

.app-page-header h2 {
    font-size: 21px;
    line-height: 1.3;
}

.app-page-header p {
    margin: 5px 0 0;
    color: var(--app-muted);
    font-size: 14px;
}

/* Cards */

.app-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
}

.app-card:hover {
    box-shadow: var(--app-shadow-hover);
}

/* Buttons */

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: var(--app-radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.app-btn:hover {
    text-decoration: none;
}

.app-btn-primary {
    background: var(--app-primary);
    color: #ffffff;
}

.app-btn-primary:hover {
    background: var(--app-primary-dark);
    color: #ffffff;
}

.app-btn-secondary {
    background: #ffffff;
    border-color: var(--app-border);
    color: #334155;
}

.app-btn-secondary:hover {
    background: #f8fafc;
    color: var(--app-text);
}

.app-btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.app-btn-danger:hover {
    background: #b91c1c;
    color: #ffffff;
}

.app-btn-small {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
}


/* Forms */

.app-form-group {
    margin-bottom: 16px;
}

.app-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.app-input,
.app-select,
.app-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: var(--app-radius-sm);
    background: #ffffff;
    color: var(--app-text);
    padding: 10px 12px;
    outline: none;
}

.app-input,
.app-select {
    min-height: 42px;
}

.app-textarea {
    min-height: 110px;
    resize: vertical;
}

.app-input:focus,
.app-select:focus,
.app-textarea:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.app-help-text {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 12px;
}

/* Flash / feedback messages */

.app-alert {
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: var(--app-radius-sm);
    font-size: 14px;
}

.app-alert-success {
    background: var(--app-success-bg);
    border-color: #bbf7d0;
    color: var(--app-success-text);
}

.app-alert-warning {
    background: var(--app-warning-bg);
    border-color: #fde68a;
    color: var(--app-warning-text);
}

.app-alert-danger {
    background: var(--app-danger-bg);
    border-color: #fecaca;
    color: var(--app-danger-text);
}

.app-alert-info {
    background: var(--app-info-bg);
    border-color: #bfdbfe;
    color: var(--app-info-text);
}

/* Status badges */

.app-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.app-status-success {
    background: var(--app-success-bg);
    color: var(--app-success-text);
}

.app-status-warning {
    background: var(--app-warning-bg);
    color: var(--app-warning-text);
}

.app-status-danger {
    background: var(--app-danger-bg);
    color: var(--app-danger-text);
}

.app-status-muted {
    background: #f1f5f9;
    color: #475569;
}

.app-status-info {
    background: var(--app-info-bg);
    color: var(--app-info-text);
}

/* Empty states */

.app-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--app-muted);
}

.app-empty h2,
.app-empty h3 {
    margin: 0 0 7px;
    color: var(--app-text);
}

.app-empty p {
    margin: 0 0 18px;
}

/* Responsive */

@media (max-width: 700px) {
    .app-container {
        width: min(
            calc(100% - 24px),
            var(--app-container)
        );
    }

    .app-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .app-page-header h1 {
        font-size: 22px;
    }

    .app-page-header h2 {
        font-size: 19px;
    }

    .app-btn {
        min-height: 42px;
    }
}

@media (max-width: 480px) {
    .app-container {
        width: calc(100% - 20px);
    }

    .app-card {
        border-radius: 8px;
    }

    .app-page-header {
        margin-bottom: 16px;
    }
}
/* =========================================================
   Shared Application Header
   ========================================================= */

.app-header {
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
}

.app-header-inner {
    width: min(
        calc(100% - 32px),
        var(--app-container)
    );
    min-height: 72px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Brand */

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    min-width: 0;

    color: var(--app-text);
    text-decoration: none;
}

.app-brand:hover {
    color: var(--app-text);
    text-decoration: none;
}

.app-brand-logo {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    overflow: hidden;
    border-radius: 9px;

    background: var(--app-primary);
    color: #ffffff;
}

.app-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-brand-mark {
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.app-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-brand-text strong {
    color: var(--app-text);
    font-size: 17px;
    line-height: 1.2;
    white-space: nowrap;
}

.app-brand-text small {
    margin-top: 2px;

    color: var(--app-muted);
    font-size: 11px;
    line-height: 1.3;

    white-space: nowrap;
}

/* Logged-in user */

.app-header-user {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
    flex-shrink: 1;
}

.app-user-details {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;
}

.app-user-email {
    max-width: 200px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #475569;
    font-size: 13px;
}

.app-user-role {
    display: inline-flex;
    align-items: center;

    padding: 4px 9px;

    border-radius: 999px;

    background: var(--app-info-bg);
    color: var(--app-info-text);

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.app-logout {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 7px 12px;

    border: 1px solid #fecaca;
    border-radius: var(--app-radius-sm);

    background: #ffffff;
    color: #b91c1c;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.app-logout:hover {
    background: var(--app-danger-bg);
    color: #991b1b;
    text-decoration: none;
}

/* Mobile */

@media (max-width: 700px) {
    .app-header-inner {
        width: calc(100% - 24px);
        min-height: 64px;
        gap: 12px;
    }

    .app-brand-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 8px;
    }

    .app-brand-mark {
        font-size: 19px;
    }

    .app-brand-text strong {
        font-size: 15px;
    }

    .app-brand-text small {
        display: none;
    }

    .app-header-user {
        gap: 8px;
    }

    .app-user-details {
        display: none;
    }

    .app-logout {
        min-height: 38px;
        padding: 7px 10px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .app-header-inner {
        width: calc(100% - 20px);
    }

    .app-brand-text strong {
        font-size: 14px;
    }

    .app-logout {
        padding-left: 9px;
        padding-right: 9px;
    }
}

/* ============================================================
   Buyer desktop navigation
   ============================================================ */

@media (min-width: 701px) {
    .app-nav.app-buyer-nav {
        display: block;
        background: var(--app-surface);
        border-bottom: 1px solid var(--app-border);
    }

    .app-buyer-nav .app-nav-inner {
        width: min(
            calc(100% - 32px),
            var(--app-container)
        );
        min-height: 48px;
        margin: 0 auto;
        display: flex;
        align-items: center;
    }

    .app-buyer-nav .app-nav-links {
        display: flex;
        align-items: stretch;
        gap: 4px;
    }

    .app-buyer-nav .app-nav-links a {
        display: inline-flex;
        align-items: center;
        min-height: 48px;
        padding: 0 14px;
        border-bottom: 2px solid transparent;
        color: #475569;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .app-buyer-nav .app-nav-links a:hover {
        color: var(--app-primary);
        text-decoration: none;
    }

    .app-buyer-nav .app-nav-links a.active {
        border-bottom-color: var(--app-primary);
        color: var(--app-primary);
    }
}
/* ============================================================
   Admin desktop navigation
   ============================================================ */

@media (min-width: 701px) {
    .app-nav.app-admin-nav {
        display: block;
        background: var(--app-surface);
        border-bottom: 1px solid var(--app-border);
    }

    .app-admin-nav .app-nav-inner {
        width: min(
            calc(100% - 32px),
            var(--app-container)
        );
        min-height: 48px;
        margin: 0 auto;
        display: flex;
        align-items: center;
    }

    .app-admin-nav .app-nav-links {
        display: flex;
        align-items: stretch;
        gap: 4px;
    }

    .app-admin-nav .app-nav-links a {
        display: inline-flex;
        align-items: center;
        min-height: 48px;
        padding: 0 14px;
        border-bottom: 2px solid transparent;
        color: #475569;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .app-admin-nav .app-nav-links a:hover {
        color: var(--app-primary);
        text-decoration: none;
    }

    .app-admin-nav .app-nav-links a.active {
        border-bottom-color: var(--app-primary);
        color: var(--app-primary);
    }
}

/* ============================================================
   Responsive Application Navigation
   ============================================================ */

.app-menu-toggle {
    display: none;

    width: 40px;
    height: 40px;
    padding: 8px;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    background: #ffffff;
    color: var(--app-text);

    cursor: pointer;
}

.app-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;

    border-radius: 2px;

    background: currentColor;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.app-menu-toggle:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.app-menu-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

/* Mobile navigation container */

.app-mobile-nav {
    display: none;
}

/* Desktop navigation inside the shared component is intentionally hidden.
   Existing role-specific desktop navigation remains in place. */

.app-nav {
    display: none;
}

/* Mobile drawer */

@media (max-width: 700px) {

    .app-menu-toggle {
        display: inline-flex;
        flex: 0 0 40px;
    }

    .app-header-user {
        margin-left: auto;
    }

    .app-mobile-nav {
        position: fixed;
        inset: 0;

        z-index: 2000;

        display: block;

        width: 100%;
        max-width: 100%;
        overflow: hidden;

        visibility: hidden;
        pointer-events: none;
    }

    .app-mobile-nav.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .app-mobile-nav-overlay {
        position: absolute;
        inset: 0;

        background: rgba(15, 23, 42, 0.42);

        opacity: 0;

        transition: opacity 0.22s ease;
    }

    .app-mobile-nav.is-open .app-mobile-nav-overlay {
        opacity: 1;
    }

    .app-mobile-nav-panel {
        position: absolute;
        top: 0;
        right: 0;

        width: min(88vw, 360px);
        height: 100%;

        display: flex;
        flex-direction: column;

        background: #ffffff;

        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.14);

        transform: translateX(100%);

        transition: transform 0.24s ease;

        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .app-mobile-nav.is-open .app-mobile-nav-panel {
        transform: translateX(0);
    }

    .app-mobile-nav-header {
        min-height: 68px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 0 18px;

        border-bottom: 1px solid var(--app-border);

        flex: 0 0 auto;
    }

    .app-mobile-nav-header strong {
        color: var(--app-text);
        font-size: 17px;
        font-weight: 700;
    }

    .app-mobile-nav-close {
        width: 40px;
        height: 40px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border: 1px solid #cbd5e1;
        border-radius: 9px;

        background: #ffffff;
        color: #334155;

        font-size: 25px;
        font-weight: 400;
        line-height: 1;

        cursor: pointer;
    }

    .app-mobile-nav-close:hover {
        background: #f8fafc;
        border-color: #94a3b8;
    }

    .app-mobile-nav-close:focus-visible {
        outline: 3px solid rgba(37, 99, 235, 0.22);
        outline-offset: 2px;
    }

    .app-mobile-nav-links {
        display: flex;
        flex-direction: column;

        padding: 12px;

        gap: 4px;

        flex: 1 1 auto;
    }

    .app-mobile-nav-links a {
        min-height: 48px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 10px;

        padding: 11px 13px;

        border: 1px solid transparent;
        border-radius: 9px;

        color: #334155;

        font-size: 14px;
        font-weight: 600;

        text-decoration: none;

        transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease;
    }

    .app-mobile-nav-links a:hover {
        background: #f8fafc;
        color: var(--app-primary);
        text-decoration: none;
    }

    .app-mobile-nav-links a.active {
        background: #eff6ff;
        border-color: #dbeafe;
        color: var(--app-primary);
    }

    .app-mobile-nav-links a.app-mobile-nav-add {
        margin-top: 8px;

        justify-content: center;

        background: var(--app-primary);
        color: #ffffff;

        border-color: var(--app-primary);
    }

    .app-mobile-nav-links a.app-mobile-nav-add:hover {
        background: var(--app-primary-dark);
        color: #ffffff;
    }

    .app-mobile-nav-context {
        display: inline-flex;
        align-items: center;

        padding: 3px 7px;

        border-radius: 999px;

        background: #dbeafe;
        color: #1d4ed8;
        font-size: 10px;
        font-weight: 700;

        text-transform: capitalize;

    }
    .app-mobile-nav-group {
        display: flex;
        flex-direction: column;
    }

    .app-mobile-nav-group > div:first-child {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 11px 13px;
        color: var(--app-text);
        font-size: 14px;
        font-weight: 700;
        border-radius: 9px;
    }

    .app-mobile-nav-group > div:first-child.active {
        background: #eff6ff;
        border: 1px solid #dbeafe;
        color: var(--app-primary);
    }

    .app-mobile-nav-sub {
        display: flex;
        flex-direction: column;
        margin: 2px 0 8px 18px;
        padding-left: 12px;
        border-left: 2px solid #e2e8f0;
        gap: 2px;
    }

    .app-mobile-nav-sub a {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 9px 12px;
        color: var(--app-muted);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 7px;
    }

    .app-mobile-nav-sub a:hover {
        background: #f8fafc;
        color: var(--app-primary);
    }

    .app-mobile-nav-sub a.active {
        background: #eff6ff;
        color: var(--app-primary);
    }



    .app-mobile-nav-account {
        display: flex;
        flex-direction: column;

        gap: 8px;

        padding: 16px;

        border-top: 1px solid var(--app-border);

        background: #f8fafc;

        flex: 0 0 auto;
    }

    .app-mobile-nav-email {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        color: #475569;

        font-size: 13px;
    }

    .app-mobile-nav-role {
        align-self: flex-start;

        padding: 4px 9px;

        border-radius: 999px;

        background: var(--app-info-bg);
        color: var(--app-info-text);

        font-size: 11px;
        font-weight: 700;
    }

    .app-mobile-nav-logout {
        min-height: 44px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        margin-top: 4px;

        border: 1px solid #fecaca;
        border-radius: 9px;

        background: #ffffff;
        color: #b91c1c;

        font-size: 13px;
        font-weight: 600;

        text-decoration: none;
    }

    .app-mobile-nav-logout:hover {
        background: var(--app-danger-bg);
        color: #991b1b;
        text-decoration: none;
    }

    body.app-nav-open {
        overflow: hidden;
    }

    /* When the mobile menu is present, keep only the menu logout hidden
       from the compact header to avoid duplicate account actions. */

    .app-header .app-logout {
        display: none;
    }
}

@media (max-width: 400px) {

    .app-menu-toggle {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .app-mobile-nav-panel {
        width: min(92vw, 340px);
    }

    .app-mobile-nav-header {
        padding-left: 15px;
        padding-right: 15px;
    }

    .app-mobile-nav-links {
        padding: 10px;
    }

    .app-mobile-nav-account {
        padding: 14px;
    }
}

/* =========================================================
   Public desktop navigation
   ========================================================= */

.app-public-desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-public-desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 4px;
    color: var(--app-text);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.app-public-desktop-nav a:hover {
    color: var(--app-primary);
}

.app-public-desktop-nav a.active {
    color: var(--app-primary);
}

.app-public-desktop-nav .app-public-register {
    padding: 9px 16px;
    border-radius: 8px;
    background: var(--app-primary);
    color: #ffffff;
}

.app-public-desktop-nav .app-public-register:hover,
.app-public-desktop-nav .app-public-register.active {
    color: #ffffff;
}

@media (max-width: 700px) {
    .app-public-desktop-nav {
        display: none;
    }
}
/* Premium typography refinement */
body {
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.app-page-header h1,
.app-page-header h2 {
    color: var(--app-text);
    letter-spacing: -0.025em;
    font-weight: 650;
}

input,
select,
textarea {
    border-color: var(--app-border);
}

:focus-visible {
    outline: 3px solid rgba(83, 122, 103, 0.35);
    outline-offset: 2px;
}

/* PROPERTYHUB HEADER LINK REFINEMENT */
header a:not(.app-btn):not(.app-brand),
.app-header a:not(.app-btn):not(.app-brand) {
    text-decoration: none;
}

header a:not(.app-btn):not(.app-brand):hover,
.app-header a:not(.app-btn):not(.app-brand):hover {
    text-decoration: none;
}

/* PROPERTYHUB REGISTER TEXT LINK OVERRIDE */
.app-public-desktop-nav a.app-public-register,
.app-public-desktop-nav a.app-public-register:hover,
.app-public-desktop-nav a.app-public-register:focus,
.app-public-desktop-nav a.app-public-register.active {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--app-text);
    padding: 8px 4px;
    border-radius: 0;
    text-decoration: none;
}

.app-public-desktop-nav a.app-public-register:hover {
    color: var(--app-primary);
}

/* PROPERTYHUB STABLE NAVIGATION HOVER */
.app-public-desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-public-desktop-nav a,
.app-public-desktop-nav a:hover,
.app-public-desktop-nav a:focus,
.app-public-desktop-nav a.active {
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border: 0;
    box-shadow: none;
    transform: none;
}

/* Keep the Register text link the same size in every state */
.app-public-desktop-nav a.app-public-register,
.app-public-desktop-nav a.app-public-register:hover,
.app-public-desktop-nav a.app-public-register:focus,
.app-public-desktop-nav a.app-public-register.active {
    background: transparent;
    color: var(--app-text);
    padding: 8px 4px;
    border-radius: 0;
}

.app-public-desktop-nav a:hover,
.app-public-desktop-nav a:focus {
    color: var(--app-primary);
}

/* PROPERTYHUB CONSISTENT VIEWPORT WIDTH */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* PROPERTYHUB MOBILE NAVIGATION VIEWPORT FIX */
@media screen and (max-width: 700px) {
    .app-public-desktop-nav {
        display: none !important;
    }

    html,
    body {
        max-width: 100%;
    }

    .app-header,
    header.app-header {
        box-sizing: border-box;
        max-width: 100%;
    }

    .app-header *,
    header.app-header * {
        min-width: 0;
    }

    .app-header .app-brand,
    header.app-header .app-brand {
        flex-shrink: 1;
    }

    .app-header .app-menu-toggle,
    header.app-header .app-menu-toggle {
        flex: 0 0 38px;
    }
}

@media screen and (max-width: 400px) {
    .app-header,
    header.app-header {
        gap: 8px;
    }

    .app-header .app-brand,
    header.app-header .app-brand {
        max-width: calc(100% - 54px);
    }
}

/* APNAKHASRA CONSISTENT PUBLIC HEADER 20261027 */

/* Align shared header content with the public homepage. */
.app-header-inner {
    width: min(1280px, calc(100% - 48px));
    min-height: 82px;
    margin-inline: auto;
    gap: 28px;
}

/* Desktop public navigation. */
.app-public-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    margin-left: auto;
}

.app-public-desktop-nav a,
.app-public-desktop-nav a:hover,
.app-public-desktop-nav a:focus,
.app-public-desktop-nav a.active {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

/* Make Get started a clear primary action. */
.app-public-desktop-nav a.app-public-register,
.app-public-desktop-nav a.app-public-register:hover,
.app-public-desktop-nav a.app-public-register:focus,
.app-public-desktop-nav a.app-public-register.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-primary);
    border-radius: 11px;
    background: var(--app-primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(36, 76, 58, .16);
}

.app-public-desktop-nav a.app-public-register:hover {
    filter: brightness(.95);
}

/* Preserve compact spacing and the existing mobile navigation. */
@media (min-width: 701px) {
    .app-header .app-brand {
        flex-shrink: 0;
    }
}

@media (max-width: 1050px) and (min-width: 701px) {
    .app-header-inner {
        width: calc(100% - 32px);
        gap: 18px;
    }

    .app-public-desktop-nav {
        gap: 18px;
    }

    .app-public-desktop-nav a,
    .app-public-desktop-nav a:hover,
    .app-public-desktop-nav a:focus,
    .app-public-desktop-nav a.active {
        font-size: 16px;
    }
}

/* END APNAKHASRA CONSISTENT PUBLIC HEADER */
/* APNAKHASRA UNIFIED PUBLIC HEADER 20261027 */
.app-header-inner {
    width: min(1280px, calc(100% - 48px));
    min-height: 82px;
    gap: 28px;
}

.app-brand-logo {
    width: 56px;
    height: 48px;
    flex: 0 0 56px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.app-brand-logo img {
    width: 56px;
    height: 48px;
    object-fit: contain;
}

.app-brand-text strong {
    font-family: "Manrope", "DM Sans", "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.app-brand-text small {
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: 12px;
}

.app-public-desktop-nav {
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.app-public-desktop-nav a,
.app-public-desktop-nav a:hover,
.app-public-desktop-nav a:focus,
.app-public-desktop-nav a.active {
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.app-public-desktop-nav a.app-public-register,
.app-public-desktop-nav a.app-public-register:hover,
.app-public-desktop-nav a.app-public-register:focus,
.app-public-desktop-nav a.app-public-register.active {
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(120deg, #315f48, #27835f);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(36,76,58,.18);
    text-decoration: none;
}

@media (max-width: 1050px) and (min-width: 701px) {
    .app-header-inner {
        width: calc(100% - 32px);
        gap: 18px;
    }

    .app-public-desktop-nav {
        gap: 18px;
    }
}
/* END APNAKHASRA UNIFIED PUBLIC HEADER */
/* APNAKHASRA PUBLIC HEADER ALIGNMENT LOCK 20261027 */

/* Enforce the same centered container on homepage and public inner pages. */
body.ak-home header.app-header .app-header-inner,
body.app-property-search-page header.app-header .app-header-inner {
    box-sizing: border-box;
    width: min(1280px, calc(100% - 48px));
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Keep the logo and navigation aligned within that shared container. */
body.ak-home header.app-header .app-brand,
body.app-property-search-page header.app-header .app-brand {
    flex: 0 0 auto;
    margin-left: 0;
}

body.ak-home header.app-header .app-header-inner,
body.app-property-search-page header.app-header .app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 760px) {
    body.ak-home header.app-header .app-header-inner,
    body.app-property-search-page header.app-header .app-header-inner {
        width: calc(100% - 32px);
    }
}

/* END APNAKHASRA PUBLIC HEADER ALIGNMENT LOCK */
/* APNAKHASRA CANONICAL BRAND STYLES 20261027 */
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #183B2C;
    text-decoration: none;
}

.app-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    width: 56px;
    height: 48px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.app-brand-logo img {
    display: block;
    width: 56px;
    height: 48px;
    max-width: none;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}

.app-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.app-brand-text strong {
    margin: 0;
    color: #183B2C;
    font-family: "Manrope", "DM Sans", "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.app-brand-text small {
    display: block;
    margin-top: 2px;
    color: #718077;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
/* END APNAKHASRA CANONICAL BRAND STYLES */
/* APNAKHASRA FINAL SHARED BRAND TYPOGRAPHY 20261027 */
.app-header .app-brand-text strong,
body.ak-home .app-header .app-brand-text strong {
    font-family: "Manrope", sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px !important;
    color: #183B2C !important;
    -webkit-font-smoothing: antialiased;
}

.app-header .app-brand-text small,
body.ak-home .app-header .app-brand-text small {
    font-family: "DM Sans", sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
    color: #718077 !important;
    -webkit-font-smoothing: antialiased;
}
/* END APNAKHASRA FINAL SHARED BRAND TYPOGRAPHY */
/* APNAKHASRA MOBILE BRAND ALIGNMENT - CONTROLLED FIX */
@media screen and (max-width: 700px) {
    body.ak-home header.app-header .app-header-inner,
    body.app-property-search-page header.app-header .app-header-inner {
        min-height: 72px;
        align-items: center;
    }

    body.ak-home header.app-header .app-brand,
    body.app-property-search-page header.app-header .app-brand {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 12px;
        margin: 0;
    }

    body.ak-home header.app-header .app-brand-logo,
    body.app-property-search-page header.app-header .app-brand-logo {
        flex: 0 0 56px;
        width: 56px;
        height: 48px;
    }

    body.ak-home header.app-header .app-brand-text,
    body.app-property-search-page header.app-header .app-brand-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }
}
/* END APNAKHASRA MOBILE BRAND ALIGNMENT */

/* APNAKHASRA AUTH MOBILE HEADER ALIGNMENT */
@media screen and (max-width: 700px) {
    body:has(.auth-page) header.app-header .app-header-inner {
        box-sizing: border-box;
        width: calc(100% - 32px);
        min-height: 72px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    body:has(.auth-page) header.app-header .app-brand {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 12px;
        margin: 0;
    }

    body:has(.auth-page) header.app-header .app-brand-logo {
        flex: 0 0 56px;
        width: 56px;
        height: 48px;
    }

    body:has(.auth-page) header.app-header .app-brand-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }
}
/* END APNAKHASRA AUTH MOBILE HEADER ALIGNMENT */

/* APNAKHASRA MOBILE DRAWER TYPOGRAPHY FIX */
@media screen and (max-width: 700px) {
    .app-mobile-nav .app-mobile-nav-panel {
        font-family: Inter, -apple-system, BlinkMacSystemFont,
                     "Segoe UI", sans-serif !important;
    }

    .app-mobile-nav .app-mobile-nav-header strong,
    .app-mobile-nav .app-mobile-nav-links,
    .app-mobile-nav .app-mobile-nav-links a,
    .app-mobile-nav .app-mobile-nav-group,
    .app-mobile-nav .app-mobile-nav-group *,
    .app-mobile-nav .app-mobile-nav-account,
    .app-mobile-nav .app-mobile-nav-account *,
    .app-mobile-nav .app-mobile-nav-close {
        font-family: Inter, -apple-system, BlinkMacSystemFont,
                     "Segoe UI", sans-serif !important;
    }

    .app-mobile-nav .app-mobile-nav-header strong {
        font-size: 17px;
        font-weight: 700;
    }
}
/* END APNAKHASRA MOBILE DRAWER TYPOGRAPHY FIX */

/* APNAKHASRA PUBLIC CTA CONSISTENCY FIX */
@media screen and (min-width: 701px) {
    .app-public-desktop-nav a.app-public-register,
    .app-public-desktop-nav a.app-public-register:visited,
    .app-public-desktop-nav a.app-public-register:hover,
    .app-public-desktop-nav a.app-public-register:focus,
    .app-public-desktop-nav a.app-public-register:focus-visible,
    .app-public-desktop-nav a.app-public-register:active,
    .app-public-desktop-nav a.app-public-register.active {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 43.5px;
        padding: 12px 17px;
        border: 0;
        border-radius: 11px;
        background: linear-gradient(120deg, #315f48, #27835f);
        color: #ffffff !important;
        font-family: "DM Sans", "Segoe UI", sans-serif;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.5;
        text-decoration: none;
        box-shadow: 0 7px 18px rgba(36,76,58,.18);
        opacity: 1;
        filter: none;
        -webkit-text-fill-color: #ffffff !important;
        transition: background .25s ease, transform .2s ease,
                    box-shadow .25s ease;
    }

    .app-public-desktop-nav a.app-public-register .ak-icon {
        display: inline-block;
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        color: #ffffff !important;
        stroke: currentColor;
        opacity: 1;
    }

    .app-public-desktop-nav a.app-public-register:hover,
    .app-public-desktop-nav a.app-public-register:focus-visible {
        background: linear-gradient(120deg, #264d3b 0%, #206b4d 100%);
        box-shadow: 0 12px 26px rgba(36, 76, 58, .28);
        transform: translateY(-2px);
    }

    .app-public-desktop-nav a.app-public-register:focus-visible {
        outline: 3px solid rgba(39, 131, 95, .3);
        outline-offset: 3px;
    }
}
/* END APNAKHASRA PUBLIC CTA CONSISTENCY FIX */

/* APNAKHASRA FINAL CTA HEIGHT OVERRIDE */
@media screen and (min-width: 701px) {
    .app-public-desktop-nav a.app-public-register,
    .app-public-desktop-nav a.app-public-register:visited,
    .app-public-desktop-nav a.app-public-register:hover,
    .app-public-desktop-nav a.app-public-register:focus,
    .app-public-desktop-nav a.app-public-register:focus-visible,
    .app-public-desktop-nav a.app-public-register:active,
    .app-public-desktop-nav a.app-public-register.active {
        box-sizing: border-box !important;
        height: 43.5px !important;
        min-height: 0 !important;
        padding: 12px 17px !important;
        border-width: 0 !important;
        font-size: 13px !important;
        line-height: 19.5px !important;
    }
}