/* Marketing + legacy public topbar (guest marketing pages, e.g. landing) */
.topbar--marketing {
    flex-wrap: wrap;
    gap: 12px 20px;
    row-gap: 14px;
}

.topbar--marketing .logo {
    flex-shrink: 0;
    min-width: min-content;
}

.topbar--marketing .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    row-gap: 10px;
    column-gap: 20px;
    max-width: 100%;
}

.topbar--marketing .nav-links--site {
    flex: 1 1 auto;
    justify-content: center;
    min-width: min(100%, 280px);
}

.topbar--marketing .nav-mkt-link {
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.topbar--marketing .nav-mkt-link--active,
.topbar--marketing .nav-mkt-link[aria-current="page"] {
    color: #ffffff;
    font-weight: 600;
    border-bottom-color: rgba(255, 252, 248, 0.85);
}

.nav-mkt-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 2px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: rgba(252, 250, 246, 0.88);
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.nav-mkt-link:hover {
    color: #ffffff;
}

.nav-mkt-link--active,
.nav-mkt-link[aria-current="page"] {
    color: #ffffff;
    font-weight: 600;
    border-bottom-color: rgba(255, 252, 248, 0.85);
}

.nav-mkt-link__icon {
    flex-shrink: 0;
    opacity: 0.92;
}

/* Global nav search (all pages with topbar) */
.nav-search {
    flex: 1 1 200px;
    max-width: min(520px, 42vw);
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search__query {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.nav-search__zip-label {
    position: relative;
    flex: 0 0 auto;
}

.nav-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-search__icon {
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    pointer-events: none;
    color: rgba(252, 250, 246, 0.65);
}

.nav-search__icon .sc-icon {
    display: block;
}

.nav-search__input {
    width: 100%;
    min-width: 0;
    padding: 8px 84px 8px 26px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 252, 248, 0.22);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.25;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.nav-search__input::placeholder {
    color: rgba(252, 250, 246, 0.52);
}

.nav-search__input:hover {
    border-bottom-color: rgba(255, 252, 248, 0.4);
}

.nav-search__input:focus {
    border-bottom-color: rgba(255, 252, 248, 0.85);
}

.nav-search__submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    min-height: 44px;
    min-width: 48px;
    padding: 8px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(252, 250, 246, 0.92);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-search__submit:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nav-search__submit:focus-visible {
    color: #fff;
    outline: 2px solid rgba(255, 252, 248, 0.45);
    outline-offset: 1px;
}

.nav-search__zip {
    width: 4.25rem;
    padding: 8px 4px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 252, 248, 0.22);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.nav-search__zip::placeholder {
    color: rgba(252, 250, 246, 0.52);
    font-size: 12px;
}

.nav-search__zip:hover {
    border-bottom-color: rgba(255, 252, 248, 0.4);
}

.nav-search__zip:focus {
    border-bottom-color: rgba(255, 252, 248, 0.85);
}

.nav-search__zip-label .nav-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sc-icon {
    display: block;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* Same cream as body background — readable on navy (do not use inherit on .logo--link or it pulls body --text) */
    color: var(--bg-page);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: rgba(252, 250, 246, 0.82);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Nav CTA — plain text with a champagne hairline underline, no pill */
.nav-links a.nav-link-cta {
    display: inline-flex;
    align-items: center;
    padding: 4px 0 3px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #d9c39a;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    color: #f3e6cc;
}

.nav-links a.nav-link-cta:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    background: transparent;
}

.nav-links a.nav-link-cta[aria-current="page"] {
    color: #ffffff;
    border-bottom-color: rgba(255, 252, 248, 0.85);
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.logo--link {
    text-decoration: none;
}

/*
 * Browser default `a:link` / `:visited` wins over `.logo` alone — pin brand color on the nav.
 */
.topbar a.logo.logo--link:link,
.topbar a.logo.logo--link:visited {
    color: var(--bg-page);
}

.topbar a.logo.logo--link:hover {
    color: var(--bg-elevated);
}

.topbar a.logo.logo--link:focus-visible {
    color: var(--bg-page);
    outline: 2px solid rgba(255, 252, 248, 0.45);
    outline-offset: 3px;
}

.nav-links a[aria-current="page"]:not(.nav-link-cta) {
    color: #ffffff;
    font-weight: 600;
}

.nav-links-meta {
    font-size: 12px;
    color: rgba(252, 250, 246, 0.55);
    align-self: center;
}

/* Guest banner */
.guest-banner {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 20px;
}
.guest-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}
.guest-banner-text {
    font-size: 13px;
    color: var(--text-muted);
}
.guest-banner-text a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.guest-banner-text a:hover {
    color: var(--navy-deep);
}
.guest-banner-dismiss {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    line-height: 1;
    flex-shrink: 0;
}
.guest-banner-dismiss:hover {
    color: var(--text);
}

.dev-logout-form {
    display: inline;
    margin: 0;
}

.dev-logout-button {
    background: none;
    border: none;
    color: rgba(252, 250, 246, 0.82);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: none;
}

.dev-logout-button:hover {
    color: #ffffff;
}

.hero {
    padding: 90px 48px 50px 48px;
}

.eyebrow {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1 {
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 18px;
    color: var(--text);
}

.hero-text {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 28px;
}

.primary-button,
.secondary-button {
    border-radius: 4px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.25s ease;
}

button.primary-button,
button.secondary-button {
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.primary-button {
    background: var(--navy);
    color: #fdfcfa;
    text-decoration: none;
    display: inline-block;
    border: 1px solid var(--navy);
    box-shadow: none;
}

.primary-button:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
}

.secondary-button {
    display: inline-block;
    text-align: center;
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--border-medium);
    box-shadow: none;
}

.secondary-button:hover {
    background: transparent;
    border-color: var(--navy);
}

.secondary-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.secondary-button:disabled:hover {
    background: transparent;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 10px 48px 48px 48px;
}

.listing-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.error-box {
    background: transparent;
    border: none;
    border-left: 2px solid #b42318;
    border-radius: 0;
    padding: 2px 0 2px 12px;
    color: #b42318;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 20px;
}

.auth-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 24px;
}

.auth-section--admin {
    align-items: center;
    flex: 1;
    min-height: 0;
    padding: 40px 20px 56px;
}

.page--admin-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-card--admin {
    max-width: 400px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    box-shadow: none;
}

.auth-card__head {
    margin-bottom: 20px;
}

.auth-card--admin .eyebrow {
    margin-bottom: 8px;
}

.auth-card__lede {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
}

.auth-card--admin .auth-card__lede code {
    font-size: 13px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.error-box--admin {
    margin-bottom: 16px;
}

.auth-card h1 {
    font-size: 42px;
    margin-bottom: 36px;
}

.auth-card--admin h1 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.auth-form--admin {
    gap: 16px;
    margin-bottom: 0;
}

.auth-form--admin .field-group input::placeholder {
    color: #555;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-group input {
    width: 100%;
    box-sizing: border-box;
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.25;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    min-height: 48px;
}

.field-group--password .password-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.field-group--password .password-input-wrap input {
    width: 100%;
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--muted, #6b7280);
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--navy, #1e3a5f);
    background: rgba(0, 0, 0, 0.04);
    outline: none;
}

.password-toggle__icon {
    display: block;
}

.password-toggle--revealed .password-toggle__icon {
    opacity: 0.55;
}

.hub-main.account-profile {
    grid-template-columns: 1fr;
    max-width: 32rem;
}

.account-profile__form {
    margin-top: 1.25rem;
    width: 100%;
}

.account-profile__form .primary-button {
    width: 100%;
    box-sizing: border-box;
}

.account-profile__meta {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0;
}

.account-profile__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: baseline;
}

.account-profile__meta dt {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 7rem;
}

.account-profile__meta dd {
    margin: 0;
    font-size: 15px;
    color: var(--text);
}

.account-profile__ok {
    margin-top: 0.75rem;
    padding: 2px 0 2px 12px;
    border-radius: 0;
    border: none;
    border-left: 2px solid var(--ok-border, #2d6a4f);
    background: transparent;
    color: var(--ok-fg, #1b4332);
    font-size: 14px;
}

.account-profile__hidden-error {
    margin-top: 0.75rem;
}

.account-profile__hidden-empty {
    margin-top: 1rem;
}

.account-profile__hidden-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.account-profile__hidden-list:empty {
    display: none;
}

.account-profile__hidden-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--border-light);
}

.account-profile__hidden-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.account-profile__hidden-name {
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    min-width: 0;
    overflow-wrap: anywhere;
}

.account-profile__hidden-name:hover {
    text-decoration: underline;
}

.account-profile__hidden-remove {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 13px;
}

.field-group input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(28, 53, 82, 0.12);
}

.full-width {
    width: 100%;
    text-align: center;
    margin-top: 4px;
    padding: 15px 24px;
}

.auth-oauth {
    margin-top: 20px;
}

.auth-oauth-divider {
    margin: 0 0 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.auth-footer a {
    color: var(--navy);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Account profile -- Recent searches / Saved searches */
.account-profile__section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.account-profile__history-error {
    margin-top: 0.75rem;
}

.account-profile__history-empty {
    margin-top: 1rem;
}

.account-profile__history-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.account-profile__history-list:empty {
    display: none;
}

.account-profile__history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--border-light);
}

.account-profile__history-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.account-profile__history-main {
    min-width: 0;
}

.account-profile__history-label {
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.account-profile__history-label:hover {
    text-decoration: underline;
}

.account-profile__history-meta {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.account-profile__history-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.account-profile__history-btn {
    padding: 8px 16px;
    font-size: 13px;
}

.account-profile__history-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 600px) {
    .account-profile__history-row {
        flex-direction: column;
        align-items: stretch;
    }

    .account-profile__history-actions {
        justify-content: flex-start;
    }
}
