:root {
    --color-primary: #12355b;
    --color-primary-dark: #0b223b;
    --color-accent: #21c7a8;
    --color-accent-dark: #159b83;
    --color-bg: #f5f7fb;
    --color-surface: #ffffff;
    --color-text: #172033;
    --color-muted: #667085;
    --color-border: #d9e2ec;
    --color-danger: #d92d20;
    --color-warning: #b7791f;
    --color-success: #027a48;
    --shadow-soft: 0 18px 45px rgba(18, 53, 91, 0.08);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(33, 199, 168, 0.14), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, var(--color-bg) 42%);
    line-height: 1.5;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(217, 226, 236, 0.8);
    backdrop-filter: blur(18px);
}

.header-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 12px 28px rgba(18, 53, 91, 0.2);
}

.brand-text {
    font-size: 1.25rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 650;
    transition: 180ms ease;
}

.main-nav a:hover {
    color: var(--color-primary);
    background: rgba(18, 53, 91, 0.07);
}

.main-nav .nav-button {
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 12px 25px rgba(18, 53, 91, 0.18);
}

.main-nav .nav-button:hover {
    color: #ffffff;
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.main-nav .nav-link-muted {
    color: var(--color-danger);
}

.site-main {
    min-height: calc(100vh - 158px);
    padding: 38px 0 56px;
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.flash-message {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 12px 28px rgba(18, 53, 91, 0.06);
    font-weight: 600;
}

.flash-success {
    border-color: rgba(2, 122, 72, 0.24);
    color: var(--color-success);
    background: #ecfdf3;
}

.flash-error,
.flash-danger {
    border-color: rgba(217, 45, 32, 0.24);
    color: var(--color-danger);
    background: #fef3f2;
}

.flash-warning {
    border-color: rgba(183, 121, 31, 0.24);
    color: var(--color-warning);
    background: #fffaeb;
}

.flash-info {
    border-color: rgba(18, 53, 91, 0.18);
    color: var(--color-primary);
    background: #eff6ff;
}

h1,
h2,
h3 {
    color: var(--color-primary-dark);
    letter-spacing: -0.04em;
    line-height: 1.12;
}

h1 {
    margin: 0 0 22px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
    color: var(--color-muted);
}

button,
.button,
input[type="submit"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-primary);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(18, 53, 91, 0.16);
    transition: 180ms ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

form {
    max-width: 720px;
    padding: 26px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

label {
    display: block;
    margin: 0 0 7px;
    color: var(--color-primary-dark);
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    background: #ffffff;
    font: inherit;
    outline: none;
    transition: 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(33, 199, 168, 0.14);
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

.card,
main > .container > ul,
main > .container > section {
    border-radius: var(--radius-lg);
}

.site-footer {
    border-top: 1px solid rgba(217, 226, 236, 0.85);
    background: rgba(255, 255, 255, 0.7);
}

.footer-content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.footer-content p {
    margin: 0;
}

@media (max-width: 820px) {
    .header-content {
        min-height: auto;
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .main-nav a {
        padding: 9px 11px;
        font-size: 0.9rem;
    }

    .site-main {
        padding-top: 28px;
    }

    form {
        padding: 20px;
    }

    .footer-content {
        padding: 22px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 22px, 1120px);
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .main-nav {
        gap: 4px;
    }

    .main-nav a {
        padding: 8px 9px;
    }
}


/* Home */
.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 34px;
    align-items: center;
    padding: 34px 0 44px;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(33, 199, 168, 0.26);
    border-radius: 999px;
    color: var(--color-accent-dark);
    background: rgba(33, 199, 168, 0.1);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-text {
    max-width: 650px;
    margin: 0 0 26px;
    color: var(--color-muted);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
}

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

.button-secondary {
    color: var(--color-primary);
    background: #ffffff;
    border: 1px solid rgba(18, 53, 91, 0.14);
    box-shadow: 0 12px 24px rgba(18, 53, 91, 0.08);
}

.button-secondary:hover {
    color: #ffffff;
    background: var(--color-primary);
}

.hero-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(217, 226, 236, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.22), transparent 34%),
        #ffffff;
    box-shadow: 0 26px 70px rgba(18, 53, 91, 0.14);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: auto -40px -80px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(18, 53, 91, 0.08);
}

.hero-card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-card-icon {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    font-weight: 900;
    box-shadow: 0 15px 28px rgba(18, 53, 91, 0.18);
}

.hero-card-header strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 1.05rem;
}

.hero-card-header p {
    margin: 3px 0 0;
    font-size: 0.92rem;
}

.hero-price {
    position: relative;
    margin-bottom: 22px;
    padding: 20px;
    border-radius: 22px;
    background: var(--color-primary);
    color: #ffffff;
}

.hero-price span {
    display: block;
    opacity: 0.76;
    font-weight: 700;
}

.hero-price strong {
    display: block;
    margin-top: 4px;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-card-info {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-card-info div {
    padding: 14px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.hero-card-info span {
    display: block;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-card-info strong {
    display: block;
    margin-top: 4px;
    color: var(--color-primary-dark);
    font-size: 0.94rem;
}

.hero-card-button {
    position: relative;
    width: 100%;
}

.section-block {
    margin-top: 34px;
    padding: 42px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0 0 12px;
}

.section-heading p {
    margin: 0;
    font-size: 1.03rem;
}

.feature-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.step-card {
    padding: 24px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 24px;
    background: #ffffff;
    transition: 180ms ease;
}

.feature-card:hover,
.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(18, 53, 91, 0.09);
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: rgba(33, 199, 168, 0.12);
    font-size: 1.35rem;
}

.feature-card h3,
.step-card h3 {
    margin: 0 0 8px;
    color: var(--color-primary-dark);
}

.feature-card p,
.step-card p {
    margin: 0;
}

.how-section {
    background:
        linear-gradient(135deg, rgba(18, 53, 91, 0.04), rgba(33, 199, 168, 0.08)),
        rgba(255, 255, 255, 0.78);
}

.step-card span {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--color-primary);
    font-weight: 900;
}

.cta-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 34px;
    padding: 36px;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.34), transparent 32%),
        linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 26px 70px rgba(18, 53, 91, 0.18);
}

.cta-section .eyebrow {
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.cta-section h2 {
    max-width: 760px;
    margin: 0 0 12px;
    color: #ffffff;
}

.cta-section p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.cta-section .button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.cta-section .button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 920px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 520px;
    }

    .feature-grid,
    .steps-grid,
    .cta-section {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .hero-section {
        padding-top: 14px;
    }

    .section-block,
    .cta-section {
        padding: 24px;
        border-radius: 24px;
    }

    .hero-card {
        padding: 22px;
        border-radius: 24px;
    }

    .hero-card-info {
        grid-template-columns: 1fr;
    }

    .hero-actions .button,
    .cta-actions .button {
        width: 100%;
    }
}

/* User dashboard */
.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding: 34px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.dashboard-hero h1 {
    margin-bottom: 12px;
}

.dashboard-hero p {
    max-width: 680px;
    margin: 0;
    font-size: 1.08rem;
}

.dashboard-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.location-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid rgba(33, 199, 168, 0.24);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(33, 199, 168, 0.12), rgba(255, 255, 255, 0.86)),
        #ffffff;
    box-shadow: 0 16px 34px rgba(18, 53, 91, 0.07);
}

.location-icon {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(33, 199, 168, 0.14);
    font-size: 1.45rem;
}

.location-card h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.location-card p {
    margin: 0;
}

.location-status {
    margin-top: 12px !important;
    color: var(--color-primary) !important;
    font-weight: 800;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.dashboard-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 160px;
    padding: 24px;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(18, 53, 91, 0.06);
    transition: 180ms ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(33, 199, 168, 0.34);
    box-shadow: 0 22px 44px rgba(18, 53, 91, 0.1);
}

.dashboard-card-highlight {
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.18), transparent 36%),
        #ffffff;
}

.dashboard-card-icon {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 19px;
    background: rgba(18, 53, 91, 0.07);
    font-size: 1.5rem;
}

.dashboard-card h2 {
    margin: 0 0 7px;
    font-size: 1.25rem;
}

.dashboard-card p {
    margin: 0;
}

.dashboard-card-arrow {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--color-primary);
    background: rgba(18, 53, 91, 0.07);
    font-weight: 900;
    transition: 180ms ease;
}

.dashboard-card:hover .dashboard-card-arrow {
    color: #ffffff;
    background: var(--color-primary);
    transform: translateX(2px);
}

.dashboard-section {
    padding: 34px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.quick-action {
    display: block;
    padding: 20px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 22px;
    background: #ffffff;
    transition: 180ms ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 199, 168, 0.32);
    box-shadow: 0 16px 30px rgba(18, 53, 91, 0.08);
}

.quick-action strong {
    display: block;
    margin-bottom: 7px;
    color: var(--color-primary-dark);
}

.quick-action span {
    display: block;
    color: var(--color-muted);
    font-size: 0.95rem;
}

@media (max-width: 860px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-actions {
        justify-content: flex-start;
    }

    .dashboard-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dashboard-hero,
    .dashboard-section,
    .location-card {
        padding: 22px;
        border-radius: 24px;
    }

    .dashboard-hero-actions .button {
        width: 100%;
    }

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

    .dashboard-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dashboard-card-arrow {
        justify-self: flex-start;
    }
}

/* Search with map */
.search-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding: 34px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.search-hero h1 {
    margin-bottom: 12px;
}

.search-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 1.08rem;
}

.search-hero-actions {
    display: flex;
    justify-content: flex-end;
}

.search-layout {
    display: grid;
    grid-template-columns: minmax(330px, 0.42fr) minmax(0, 0.58fr);
    gap: 22px;
    align-items: start;
}

.search-panel {
    display: grid;
    gap: 18px;
}

.search-form {
    max-width: none;
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.search-submit-button {
    width: 100%;
}

.search-location-status {
    margin: 14px 0 0;
    color: var(--color-primary);
    font-size: 0.92rem;
    font-weight: 750;
}

.search-results {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid rgba(217, 226, 236, 0.95);
    background: #f8fafc;
    box-shadow: none;
}

.search-results > .empty-results-card {
    margin: 18px;
}

.search-map-page .search-results-header {
    flex: 0 0 auto;
    position: relative;
    top: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(217, 226, 236, 0.75);
    background: #f8fafc;
    backdrop-filter: none;
}

.search-results-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.search-map-page .search-results-header span {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(18, 53, 91, 0.08);
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
}

.results-list {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 12px;
    overflow-y: auto;
    padding: 16px 18px 20px;
}



.parking-result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 20px;
    background: #ffffff;
    cursor: pointer;
    transition: 180ms ease;
}

.parking-result-card + .parking-result-card {
    margin-top: 12px;
}

.parking-result-card:hover,
.parking-result-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(33, 199, 168, 0.4);
    box-shadow: 0 16px 30px rgba(18, 53, 91, 0.08);
}

.parking-result-card strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 1rem;
}

.parking-result-card p {
    margin: 4px 0 0;
    font-size: 0.92rem;
}

.parking-result-price {
    padding: 8px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-primary);
    font-size: 0.92rem;
    font-weight: 900;
    white-space: nowrap;
}

.map-shell {
    position: sticky;
    top: 98px;
    min-height: 680px;
    overflow: hidden;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(18, 53, 91, 0.13);
}

.parking-map {
    width: 100%;
    min-height: 680px;
    height: 100%;
    z-index: 1;
}

.map-floating-card {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    max-width: 260px;
    padding: 14px 16px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(18, 53, 91, 0.12);
    backdrop-filter: blur(14px);
}

.map-floating-card strong {
    display: block;
    color: var(--color-primary-dark);
}

.map-floating-card span {
    display: block;
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.parking-marker {
    display: grid;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(18, 53, 91, 0.24);
}

.leaflet-popup-content-wrapper {
    border-radius: 14px;
}

.leaflet-popup-content {
    color: var(--color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 980px) {
    .search-hero,
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-hero-actions {
        justify-content: flex-start;
    }

    .map-shell {
        position: relative;
        top: auto;
        min-height: 480px;
    }

    .parking-map {
        min-height: 480px;
    }
}

@media (max-width: 620px) {
    .search-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .search-hero-actions .button {
        width: 100%;
    }

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

    .parking-result-card {
        grid-template-columns: 1fr;
    }

    .parking-result-price {
        width: fit-content;
    }

    .map-shell,
    .parking-map {
        min-height: 420px;
        border-radius: 24px;
    }
}

/* Auth pages */
.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 30px;
    align-items: center;
    min-height: calc(100vh - 260px);
}

.auth-intro {
    padding: 34px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.auth-intro h1 {
    max-width: 760px;
    margin-bottom: 14px;
}

.auth-intro p {
    max-width: 620px;
    margin: 0;
    font-size: 1.08rem;
}

.auth-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.auth-benefits div {
    padding: 18px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 20px;
    background: #ffffff;
}

.auth-benefits strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
}

.auth-benefits span {
    display: block;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.auth-card {
    padding: 30px;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(18, 53, 91, 0.13);
}

.auth-card h2 {
    margin: 0 0 8px;
}

.auth-card p {
    margin: 0 0 22px;
}

.auth-form {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-submit-button {
    width: 100%;
    margin-top: 4px;
}

.auth-footer-text {
    margin-top: 20px;
    text-align: center;
    color: var(--color-muted);
    font-weight: 650;
}

.auth-footer-text a {
    color: var(--color-primary);
    font-weight: 850;
}

.auth-footer-text a:hover {
    color: var(--color-accent-dark);
}

@media (max-width: 940px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .auth-intro,
    .auth-card {
        padding: 22px;
        border-radius: 24px;
    }
}

/* Search distance and stable map refinements */
.parking-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.parking-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(18, 53, 91, 0.07);
    font-size: 0.78rem;
    font-weight: 800;
}

.search-page-shell {
    isolation: isolate;
}

.map-panel {
    overflow: hidden;
}

.map-panel .leaflet-container {
    min-height: inherit;
}

.parking-result-card.is-active {
    border-color: rgba(33, 199, 168, 0.55);
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.12), transparent 35%),
        #ffffff;
}



/* Auth pages */
.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 30px;
    align-items: center;
    min-height: calc(100vh - 260px);
}

.auth-intro {
    padding: 34px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.auth-intro h1 {
    max-width: 760px;
    margin-bottom: 14px;
}

.auth-intro p {
    max-width: 620px;
    margin: 0;
    font-size: 1.08rem;
}

.auth-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.auth-benefits div {
    padding: 18px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 20px;
    background: #ffffff;
}

.auth-benefits strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
}

.auth-benefits span {
    display: block;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.auth-card {
    padding: 30px;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(18, 53, 91, 0.13);
}

.auth-card h2 {
    margin: 0 0 8px;
}

.auth-card p {
    margin: 0 0 22px;
}

.auth-form {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-submit-button {
    width: 100%;
    margin-top: 4px;
}

.auth-footer-text {
    margin-top: 20px;
    text-align: center;
    color: var(--color-muted);
    font-weight: 650;
}

.auth-footer-text a {
    color: var(--color-primary);
    font-weight: 850;
}

.auth-footer-text a:hover {
    color: var(--color-accent-dark);
}

@media (max-width: 940px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .auth-intro,
    .auth-card {
        padding: 22px;
        border-radius: 24px;
    }
}


/* Final map UX fix */
.search-page-shell {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    min-height: 680px;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(18, 53, 91, 0.13);
}

.search-sidebar {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 680px;
    max-height: 680px;
    overflow: hidden;
    border-right: 1px solid rgba(217, 226, 236, 0.95);
    background: #ffffff;
}

.search-sidebar .search-form {
    padding: 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
}

.search-sidebar .search-results {
    max-height: 360px;
    overflow-y: auto;
    padding: 18px;
    border: 0;
    border-top: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 0;
    box-shadow: none;
    background: #f8fafc;
}

.map-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    height: 680px;
    min-height: 680px;
    overflow: hidden;
    background: #dbe5ef;
}

.parking-map {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 680px;
    min-height: 680px;
    background: #dbe5ef;
}

.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 680px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.leaflet-control-container {
    position: relative;
    z-index: 500;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 600;
}

.leaflet-control-zoom {
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(18, 53, 91, 0.18) !important;
}

.leaflet-control-zoom a {
    color: var(--color-primary) !important;
    border: 0 !important;
    font-weight: 900;
}

.map-floating-card {
    display: none !important;
}

.parking-marker {
    display: grid;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(18, 53, 91, 0.24);
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(18, 53, 91, 0.18);
}

.leaflet-popup-content {
    min-width: 180px;
    color: var(--color-text);
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (max-width: 1020px) {
    .search-page-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .search-sidebar {
        min-height: auto;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid rgba(217, 226, 236, 0.95);
    }

    .search-sidebar .search-results {
        max-height: 360px;
    }

    .map-panel,
    .parking-map,
    .leaflet-container {
        height: 520px;
        min-height: 520px;
    }
}

@media (max-width: 620px) {
    .search-page-shell {
        border-radius: 24px;
    }

    .map-panel,
    .parking-map,
    .leaflet-container {
        height: 430px;
        min-height: 430px;
    }

    .leaflet-control-zoom {
        margin-top: 12px !important;
        margin-right: 12px !important;
    }
}

/* Critical Leaflet/layout fix */
.search-page-shell {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 0;
    width: 100%;
    overflow: hidden;
    min-height: 680px;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(18, 53, 91, 0.13);
}

.search-sidebar {
    position: relative;
    z-index: 2;
    width: 420px;
    min-width: 420px;
    max-width: 420px;
    min-height: 680px;
    max-height: 680px;
    overflow: hidden;
    border-right: 1px solid rgba(217, 226, 236, 0.95);
    background: #ffffff;
}

.search-sidebar .search-form {
    width: 100%;
    max-width: none;
    padding: 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
}

.search-sidebar .search-form label {
    font-size: 0.92rem;
}

.search-sidebar .search-form input,
.search-sidebar .search-form select {
    min-width: 0;
    height: 48px;
    min-height: 48px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.search-sidebar .form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.search-sidebar .form-row > div {
    min-width: 0;
}

.search-sidebar input[type="datetime-local"] {
    width: 100%;
    min-width: 0;
    font-size: 0.88rem;
    letter-spacing: -0.02em;
}

.search-submit-button {
    width: 100%;
}

.search-location-status {
    margin: 14px 0 0;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.4;
}

.search-sidebar .search-results {
    max-height: 360px;
    overflow-y: auto;
    padding: 18px;
    border: 0;
    border-top: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 0;
    box-shadow: none;
    background: #f8fafc;
}

.map-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    height: 680px;
    min-height: 680px;
    overflow: hidden;
    background: #dbe5ef;
}

.parking-map {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 680px;
    min-height: 680px;
    overflow: hidden;
    background: #dbe5ef;
}

.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 680px;
    background: #dbe5ef !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* This is the important fix for broken map tiles */
.leaflet-container img,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

.leaflet-tile-container {
    pointer-events: auto;
}

.leaflet-control-container {
    position: relative;
    z-index: 500;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 600;
}

.leaflet-control-zoom {
    margin-top: 16px !important;
    margin-right: 16px !important;
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(18, 53, 91, 0.18) !important;
}

.leaflet-control-zoom a {
    color: var(--color-primary) !important;
    border: 0 !important;
    font-weight: 900;
}

.map-floating-card {
    display: none !important;
}

.parking-marker {
    display: grid;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(18, 53, 91, 0.24);
}

@media (max-width: 1020px) {
    .search-page-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .search-sidebar {
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: auto;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid rgba(217, 226, 236, 0.95);
    }

    .search-sidebar .search-results {
        max-height: 360px;
    }

    .map-panel,
    .parking-map,
    .leaflet-container {
        height: 520px;
        min-height: 520px;
    }
}

@media (max-width: 620px) {
    .search-sidebar .form-row {
        grid-template-columns: 1fr;
    }

    .search-page-shell {
        border-radius: 24px;
    }

    .map-panel,
    .parking-map,
    .leaflet-container {
        height: 430px;
        min-height: 430px;
    }
}

/*.search-map-page .search-sidebar {
    display: flex;
    flex-direction: column;
    height: 720px;
    overflow: hidden;
}

.search-map-page .search-results {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
*/

/* Parking detail page */
.parking-detail-page {
    display: grid;
    gap: 24px;
}

.parking-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 34px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--color-primary);
    font-weight: 850;
}

.parking-detail-header h1 {
    max-width: 820px;
    margin-bottom: 12px;
}

.parking-detail-header p {
    margin: 0;
    font-size: 1.08rem;
}

.parking-detail-price-card {
    min-width: 220px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 18px 40px rgba(18, 53, 91, 0.18);
}

.parking-detail-price-card span,
.parking-detail-price-card small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.parking-detail-price-card strong {
    display: block;
    margin: 6px 0;
    color: #ffffff;
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.parking-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.parking-detail-main {
    display: grid;
    gap: 22px;
}

.parking-gallery,
.detail-section,
.parking-reservation-card {
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.parking-gallery {
    overflow: hidden;
}

.gallery-cover {
    height: 380px;
    background: #dbe5ef;
}

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

.gallery-placeholder {
    min-height: 360px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 34px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.18), transparent 34%),
        #ffffff;
}

.gallery-placeholder span {
    width: 74px;
    height: 74px;
    display: inline-grid;
    place-items: center;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    font-size: 2rem;
    font-weight: 900;
}

.gallery-placeholder strong {
    color: var(--color-primary-dark);
    font-size: 1.25rem;
}

.gallery-placeholder p {
    margin: 0;
}

.detail-section {
    padding: 30px;
}

.detail-section .section-heading {
    margin-bottom: 18px;
}

.detail-section p {
    margin-top: 0;
}

.feature-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(18, 53, 91, 0.07);
    font-size: 0.92rem;
    font-weight: 850;
}

.address-card {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 20px;
    background: #ffffff;
}

.address-card strong {
    color: var(--color-primary-dark);
}

.address-card span {
    color: var(--color-muted);
}

.detail-map {
    height: 320px;
    overflow: hidden;
    border-radius: 24px;
    background: #dbe5ef;
}

.detail-map .leaflet-container img,
.detail-map .leaflet-tile,
.detail-map .leaflet-marker-icon,
.detail-map .leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

.info-box {
    padding: 18px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 20px;
    background: #ffffff;
}

.info-box + .info-box {
    margin-top: 14px;
}

.info-box strong {
    display: block;
    margin-bottom: 7px;
    color: var(--color-primary-dark);
}

.info-box p {
    margin: 0;
}

.parking-reservation-card {
    position: sticky;
    top: 100px;
}

.reservation-card-inner {
    padding: 26px;
}

.reservation-card-inner h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.reservation-card-inner p {
    margin: 0 0 18px;
}

.reservation-summary {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.reservation-summary div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(217, 226, 236, 0.9);
}

.reservation-summary span {
    color: var(--color-muted);
    font-weight: 700;
}

.reservation-summary strong {
    color: var(--color-primary-dark);
    text-align: right;
}

.reservation-button {
    width: 100%;
}

.reservation-card-inner small {
    display: block;
    margin-top: 14px;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.4;
}

.parking-detail-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(18, 53, 91, 0.07);
    font-size: 0.86rem;
    font-weight: 850;
}

.parking-detail-link:hover {
    color: #ffffff;
    background: var(--color-primary);
}

@media (max-width: 980px) {
    .parking-detail-header,
    .parking-detail-layout {
        grid-template-columns: 1fr;
    }

    .parking-detail-price-card {
        width: 100%;
    }

    .parking-reservation-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 620px) {
    .parking-detail-header,
    .detail-section,
    .reservation-card-inner {
        padding: 22px;
        border-radius: 24px;
    }

    .gallery-cover,
    .gallery-placeholder {
        height: auto;
        min-height: 260px;
    }

    .detail-map {
        height: 260px;
    }

    .reservation-summary div {
        flex-direction: column;
    }

    .reservation-summary strong {
        text-align: left;
    }
}


/* Reserve page */
.reserve-page {
    display: grid;
    gap: 24px;
}

.reserve-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 34px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.reserve-header h1 {
    max-width: 760px;
    margin-bottom: 12px;
}

.reserve-header p {
    max-width: 720px;
    margin: 0;
    font-size: 1.08rem;
}

.reserve-header p strong {
    color: var(--color-primary-dark);
}

.reserve-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.reserve-form,
.reserve-side-card {
    max-width: none;
    padding: 30px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.reserve-form input {
    margin-bottom: 18px;
}

.reserve-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 8px 0 22px;
}

.reserve-preview div {
    padding: 18px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 22px;
    background: #ffffff;
}

.reserve-preview span {
    display: block;
    margin-bottom: 6px;
    color: var(--color-muted);
    font-weight: 700;
}

.reserve-preview strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 1.25rem;
}

.reserve-submit-button {
    width: 100%;
}

.reserve-note {
    margin: 16px 0 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    text-align: center;
}

.reserve-side-card {
    position: sticky;
    top: 100px;
}

.reserve-side-card h2 {
    margin: 0 0 10px;
}

.reserve-side-card p {
    margin: 0 0 18px;
}

@media (max-width: 920px) {
    .reserve-header,
    .reserve-layout {
        grid-template-columns: 1fr;
    }

    .reserve-side-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 620px) {
    .reserve-header,
    .reserve-form,
    .reserve-side-card {
        padding: 22px;
        border-radius: 24px;
    }

    .reserve-preview {
        grid-template-columns: 1fr;
    }
}


/* Payment page */
.payment-page {
    display: grid;
    gap: 24px;
}

.payment-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 34px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.payment-header h1 {
    margin-bottom: 12px;
}

.payment-header p {
    margin: 0;
    font-size: 1.08rem;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.payment-main-card,
.payment-summary-card {
    padding: 30px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.payment-summary-card {
    position: sticky;
    top: 100px;
}

.payment-summary-card h2 {
    margin: 0 0 18px;
    color: var(--color-primary-dark);
    font-size: 2.2rem;
}

.pix-code-card {
    display: grid;
    gap: 14px;
}

.pix-code-card strong {
    color: var(--color-primary-dark);
}

.pix-code-card textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    font-size: 0.95rem;
    line-height: 1.5;
}

.payment-feedback {
    margin: 0;
    color: var(--color-success);
    font-weight: 800;
}

@media (max-width: 920px) {
    .payment-header,
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .payment-summary-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 620px) {
    .payment-header,
    .payment-main-card,
    .payment-summary-card {
        padding: 22px;
        border-radius: 24px;
    }
}

/* Pix QR Code */
.pix-qr-card {
    display: grid;
    place-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 26px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 24px;
    background: #ffffff;
}

.pix-qr-card strong {
    color: var(--color-primary-dark);
    font-size: 1.05rem;
}

.pix-qr-card img {
    width: min(280px, 100%);
    height: auto;
    padding: 14px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 20px;
    background: #ffffff;
}



/* Payment verification */
.check-payment-form {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.check-payment-form .button {
    width: 100%;
}


/* Reservation check-in */
.checkin-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.checkin-code-card,
.checkin-status-grid div {
    padding: 18px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 20px;
    background: #ffffff;
}

.checkin-code-card span,
.checkin-status-grid span {
    display: block;
    margin-bottom: 7px;
    color: var(--color-muted);
    font-weight: 700;
}

.checkin-code-card strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 1.45rem;
    letter-spacing: 0.04em;
}

.checkin-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.checkin-status-grid strong {
    display: block;
    color: var(--color-primary-dark);
}

.checkin-actions form {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.success-box {
    padding: 16px 18px;
    border: 1px solid rgba(2, 122, 72, 0.24);
    border-radius: 18px;
    color: var(--color-success);
    background: #ecfdf3;
    font-weight: 800;
}

@media (max-width: 620px) {
    .checkin-panel,
    .checkin-status-grid {
        grid-template-columns: 1fr;
    }
}


/* Reservation cards */
.reservation-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reservation-card-item {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(18, 53, 91, 0.07);
}

.reservation-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.reservation-card-top h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.reservation-card-top p {
    margin: 0;
}

.reservation-card-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.reservation-card-info div {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(217, 226, 236, 0.8);
}

.reservation-card-info span {
    display: block;
    margin-bottom: 5px;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.reservation-card-info strong {
    color: var(--color-primary-dark);
    font-size: 0.95rem;
}

.reservation-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .reservation-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .reservation-card-top,
    .reservation-card-actions {
        flex-direction: column;
    }

    .reservation-card-info {
        grid-template-columns: 1fr;
    }

    .reservation-card-actions .button {
        width: 100%;
    }
}

/* Chat */
.chat-page {
    display: grid;
    gap: 24px;
}

.chat-box {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.chat-messages {
    min-height: 420px;
    max-height: 560px;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 24px;
    background: #f8fafc;
}

.chat-message {
    max-width: 76%;
    padding: 14px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(217, 226, 236, 0.9);
}

.chat-message.is-user {
    justify-self: end;
    color: #ffffff;
    background: var(--color-primary);
}

.chat-message.is-user span,
.chat-message.is-user small,
.chat-message.is-user p {
    color: #ffffff;
}

.chat-message.is-host {
    justify-self: start;
}

.chat-message span {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 850;
}

.chat-message p {
    margin: 0;
}

.chat-message small {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.chat-form {
    max-width: none;
    padding: 20px;
    border: 0;
    border-top: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.chat-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.chat-input-row input {
    margin-bottom: 0;
}

@media (max-width: 620px) {
    .chat-input-row {
        grid-template-columns: 1fr;
    }

    .chat-message {
        max-width: 92%;
    }
}

/* ... existing code ... */

.page-hero {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.page-hero.compact {
    padding: 2rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.hero-text {
    max-width: 680px;
    color: #64748b;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card,
.content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.stat-card {
    padding: 1.25rem;
}

.stat-label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: #0f172a;
    font-size: 1.8rem;
}

.content-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    margin: 0;
}

.section-header p {
    margin: 0.35rem 0 0;
    color: #64748b;
}

.reservation-list {
    display: grid;
    gap: 1rem;
}

.reservation-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #f8fafc;
}

.reservation-card h2,
.reservation-card h3 {
    margin: 0.45rem 0;
}

.reservation-card p {
    margin: 0.25rem 0;
    color: #64748b;
}

.reservation-card-side {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-paid,
.status-confirmed,
.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-pending,
.status-pending_payment {
    background: #fef3c7;
    color: #92400e;
}

.status-checked_in,
.status-checked_out {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.filter-bar label {
    display: block;
    width: 100%;
    color: #475569;
    font-weight: 700;
}

.filter-bar select {
    min-width: 240px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #ffffff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.info-grid div {
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.info-grid span {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    margin-bottom: 0.35rem;
}

.info-grid strong {
    color: #0f172a;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
}

.profile-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.note-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.chat-box {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.chat-message {
    max-width: 78%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.chat-message-own {
    margin-left: auto;
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.chat-message-header span {
    opacity: 0.75;
}

.chat-message p {
    margin: 0;
}

.chat-form {
    display: grid;
    gap: 0.75rem;
}

.chat-form label {
    font-weight: 700;
    color: #334155;
}

.chat-form textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    resize: vertical;
    font: inherit;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #f8fafc;
}

.empty-state.small {
    padding: 1.25rem;
}

.empty-state h3 {
    margin-top: 0;
}

.empty-state p,
.muted {
    color: #64748b;
}

.button-small {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .page-hero,
    .reservation-card,
    .section-header {
        flex-direction: column;
    }

    .stats-grid,
    .detail-layout,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .reservation-card-side {
        align-items: stretch;
        min-width: 0;
    }

    .chat-message {
        max-width: 100%;
    }
}


/* ... existing code ... */

/* Chat do anunciante - layout similar ao do usuário */
.chat-messages-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 1rem;
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-message-bubble {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    padding: 1rem;
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.chat-message-bubble.is-user {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.chat-message-bubble.is-host {
    align-self: flex-end;
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
}

.chat-bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.chat-bubble-header strong {
    font-weight: 700;
}

.chat-message-bubble.is-host .chat-bubble-header {
    color: rgba(255, 255, 255, 0.9);
}

.chat-bubble-time {
    font-size: 0.8rem;
    opacity: 0.7;
}

.chat-bubble-text {
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message-bubble.is-host .chat-bubble-text {
    color: #ffffff;
}

/* Remover estilos antigos conflitantes */
.chat-box {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.chat-message {
    max-width: 78%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.chat-message-own {
    margin-left: auto;
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.chat-message-header span {
    opacity: 0.75;
}

.chat-message p {
    margin: 0;
}

.chat-form {
    display: grid;
    gap: 0.75rem;
}

.chat-form label {
    font-weight: 700;
    color: #334155;
}

.chat-form textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    resize: vertical;
    font: inherit;
}

.chat-form button {
    justify-self: start;
}

@media (max-width: 900px) {
    .chat-message-bubble {
        max-width: 85%;
    }
}




.alert-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.alert-icon {
    font-size: 2rem;
    line-height: 1;
}

.alert-banner strong {
    display: block;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.alert-banner p {
    margin: 0;
    color: #3b82f6;
}

/* ... existing code ... */

.unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    margin-left: 8px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
}

.dashboard-card-highlight .unread-badge {
    background: #ffffff;
    color: var(--color-danger);
}


/* ... existing code ... */

/* Host parking spaces */
.parking-spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.parking-space-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: 180ms ease;
}

.parking-space-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.parking-space-photo,
.parking-space-photo-placeholder {
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
}

.parking-space-photo-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    color: #2563eb;
    font-size: 2.5rem;
}

.parking-space-content {
    padding: 1.25rem;
}

.parking-space-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.parking-space-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.parking-space-address {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.92rem;
}

.parking-space-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.parking-space-stats div {
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.parking-space-stats span {
    display: block;
    margin-bottom: 0.3rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.parking-space-stats strong {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
}

.parking-space-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.button-danger {
    background: #dc2626;
    color: #ffffff;
}

.button-danger:hover {
    background: #991b1b;
}

/* Host forms */
.form-layout {
    max-width: 920px;
    margin: 0 auto;
}

.parking-space-form,
.become-host-form {
    max-width: none;
}

.form-section {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.15rem;
    background: #f8fafc;
}

.form-section h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.form-section label {
    color: #334155;
}

.form-hint {
    margin: 0.5rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Host financial dashboard */
.revenue-chart {
    display: flex;
    align-items: end;
    gap: 1rem;
    min-height: 260px;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #f8fafc;
    overflow-x: auto;
}

.revenue-bar {
    min-width: 90px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 0.75rem;
    min-height: 220px;
}

.revenue-bar-fill {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.85rem 0.85rem 0 0;
    background: linear-gradient(180deg, #2563eb, #1e40af);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.revenue-bar strong {
    color: #334155;
    font-size: 0.85rem;
}

.transactions-table {
    overflow-x: auto;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.transactions-table th,
.transactions-table td {
    padding: 0.9rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.transactions-table th {
    color: #475569;
    background: #f8fafc;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.transactions-table td {
    color: #334155;
}

@media (max-width: 900px) {
    .parking-spaces-grid {
        grid-template-columns: 1fr;
    }

    .parking-space-stats {
        grid-template-columns: 1fr;
    }
}

/* ... existing code ... */

/* Reviews */
.review-card {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.review-form {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rating-picker {
    margin-bottom: 1.25rem;
}

.rating-picker p {
    margin: 0 0 0.75rem;
    color: #334155;
    font-weight: 800;
}

.rating-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rating-options label {
    cursor: pointer;
}

.rating-options input {
    display: none;
}

.rating-options span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
    color: #cbd5e1;
    font-size: 1.7rem;
    transition: 160ms ease;
}

.rating-options small {
    display: block;
    margin-top: 0.3rem;
    text-align: center;
    color: #64748b;
    font-weight: 700;
}

.rating-options input:checked + span {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #f59e0b;
    transform: translateY(-2px);
}

.reviews-list {
    display: grid;
    gap: 1rem;
}

.review-item {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #f8fafc;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.review-item-header strong {
    display: block;
    color: #0f172a;
}

.review-item-header span {
    display: block;
    color: #64748b;
    font-size: 0.88rem;
}

.review-stars {
    white-space: nowrap;
}

.review-stars span {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.review-stars span.is-filled {
    color: #f59e0b;
}

.review-parking-title {
    margin: 0 0 0.75rem;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
}

.review-comment {
    margin: 0 0 0.75rem;
    color: #334155;
}

.review-item small {
    color: #64748b;
}

@media (max-width: 700px) {
    .review-item-header {
        flex-direction: column;
    }

    .rating-options span {
        width: 46px;
        height: 46px;
    }
}

/* ... existing code ... */

/* Rating summaries */
.rating-summary-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
}

.rating-summary-box div {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #f8fafc;
}

.rating-summary-box span {
    display: block;
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.rating-summary-box strong {
    color: #0f172a;
    font-size: 1.35rem;
}

.mini-reviews-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mini-review-item {
    padding: 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    background: #ffffff;
}

.mini-review-item p {
    margin: 0.35rem 0;
    color: #334155;
}

.mini-review-item small {
    color: #64748b;
}

.parking-rating-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
}

.parking-rating-inline span {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 900;
}

.parking-rating-inline small {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.parking-rating-inline.muted span {
    background: #f1f5f9;
    color: #64748b;
}



.inline-form {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.danger-card {
    border-color: rgba(220, 38, 38, 0.25);
    background: #fff7f7;
}

.finance-filter-bar,
.reviews-filter-bar {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.finance-filter-bar label,
.reviews-filter-bar label {
    width: auto;
}

@media (max-width: 900px) {
    .checkbox-grid,
    .finance-filter-bar,
    .reviews-filter-bar {
        grid-template-columns: 1fr;
    }
}



/* Driving route distance */
.route-distance {
    background: #ecfdf3 !important;
    color: #027a48 !important;
}


/* Final checkbox-card fix: prevent global input styles from affecting checkboxes */
.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: auto;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 3px;
    flex: 0 0 16px;
    box-shadow: none !important;
}

.checkbox-card span {
    display: inline;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 700;
}

/* Compact layout inside search/sidebar */
.search-sidebar .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.search-sidebar .checkbox-card {
    padding: 0.45rem 0.55rem;
    border-radius: 0.65rem;
}

.search-sidebar .checkbox-card span {
    font-size: 0.78rem;
}

/* Mobile checkbox layout */
@media (max-width: 620px) {
    .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .checkbox-card {
        min-height: 34px;
        padding: 0.42rem 0.5rem;
        gap: 0.38rem;
        border-radius: 0.6rem;
    }

    .checkbox-card input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        max-width: 14px !important;
        min-height: 14px !important;
        max-height: 14px !important;
        flex-basis: 14px;
    }

    .checkbox-card span {
        font-size: 0.74rem;
        line-height: 1.1;
        font-weight: 700;
    }

    .search-sidebar .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-sidebar .checkbox-card {
        min-height: 32px;
        padding: 0.38rem 0.45rem;
    }
}

@media (max-width: 360px) {
    .checkbox-card span {
        font-size: 0.7rem;
    }
}


/* Search sidebar: single scroll for filters + results */
.search-map-page .search-sidebar {
    display: block !important;
    height: 720px;
    min-height: 720px;
    max-height: 720px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff;
}

.search-map-page .search-sidebar .search-form {
    position: relative;
    top: auto;
    width: 100%;
    padding: 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
}

.search-map-page .search-results {
    display: block;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0;
    border-top: 1px solid rgba(217, 226, 236, 0.95);
    background: #f8fafc;
}

.search-map-page .search-results-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f8fafc;
}

.search-map-page .results-list {
    display: grid;
    gap: 12px;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 16px 18px 20px;
}

/* Keep map fixed while only sidebar scrolls */
.search-map-page .map-panel {
    height: 720px;
    min-height: 720px;
    overflow: hidden;
}

.search-map-page .parking-map {
    height: 720px;
    min-height: 720px;
}

/* Compact search form spacing to avoid wasting vertical space */
.search-map-page .search-form label {
    margin-bottom: 5px;
    font-size: 0.86rem;
}

.search-map-page .search-form input,
.search-map-page .search-form select {
    min-height: 42px;
    height: 42px;
    margin-bottom: 10px;
    padding: 9px 11px;
    font-size: 0.9rem;
}

.search-map-page .search-form .form-row {
    gap: 10px;
}

.search-map-page .search-submit-button {
    min-height: 42px;
    margin-top: 4px;
}

.search-map-page .search-location-status {
    margin-top: 10px;
    font-size: 0.82rem;
}

/* Compact checkbox area specifically in search */
.search-map-page .search-form .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 2px 0 10px;
}

.search-map-page .search-form .checkbox-card {
    min-height: 32px;
    padding: 0.38rem 0.45rem;
    gap: 0.35rem;
    border-radius: 0.6rem;
}

.search-map-page .search-form .checkbox-card input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    flex: 0 0 14px;
}

.search-map-page .search-form .checkbox-card span {
    font-size: 0.73rem;
    line-height: 1.1;
}

/* Mobile: entire page can scroll naturally, no split scroll */
@media (max-width: 1020px) {
    .search-map-page .search-page-shell {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        min-height: auto;
    }

    .search-map-page .search-sidebar {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible !important;
        border-right: 0;
        border-bottom: 1px solid rgba(217, 226, 236, 0.95);
    }

    .search-map-page .map-panel,
    .search-map-page .parking-map {
        height: 520px;
        min-height: 520px;
    }

    .search-map-page .search-results-header {
        position: relative;
        top: auto;
    }
}

@media (max-width: 620px) {
    .search-map-page .search-form {
        padding: 14px;
    }

    .search-map-page .search-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .search-map-page .search-form .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-map-page .map-panel,
    .search-map-page .parking-map {
        height: 430px;
        min-height: 430px;
    }
}




/* Unread messages badge in host reservations */
.unread-reservation-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-left: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.22);
}

.button-attention {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.18) !important;
}

.button-attention:hover {
    background: #b91c1c !important;
}

.reservation-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

@media (max-width: 620px) {
    .unread-reservation-badge {
        margin-left: 0;
        font-size: 0.7rem;
        padding: 0.22rem 0.5rem;
    }
}



/* Vehicles cards */
.vehicle-form {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.vehicle-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.vehicle-card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: #eff6ff;
    font-size: 1.5rem;
}

.vehicle-card-header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.vehicle-card-header span {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.vehicle-plate {
    width: fit-content;
    margin: 0.85rem 0;
    padding: 0.45rem 0.75rem;
    border: 2px solid #0f172a;
    border-radius: 0.45rem;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.vehicle-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.vehicle-info-grid div {
    padding: 0.75rem;
    border-radius: 0.8rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.vehicle-info-grid span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
}

.vehicle-info-grid strong {
    color: #0f172a;
}

/* Host CTA on home */
.host-cta-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: center;
    margin-top: 34px;
    padding: 36px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(33, 199, 168, 0.22), transparent 34%),
        #ffffff;
    border: 1px solid rgba(217, 226, 236, 0.95);
    box-shadow: var(--shadow-soft);
}

.host-cta-section h2 {
    margin: 0 0 0.75rem;
}

.host-cta-section p {
    max-width: 720px;
    margin: 0;
    font-size: 1.05rem;
}

.host-cta-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.35rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #ffffff;
}

.host-cta-card strong {
    color: #ffffff;
    font-size: 1.1rem;
}

.host-cta-card span {
    color: rgba(255, 255, 255, 0.8);
}

.host-cta-card .button {
    width: 100%;
    background: var(--color-accent);
}

.host-cta-card .button:hover {
    background: var(--color-accent-dark);
}

/* Cancellation boxes */
.cancel-reservation-form {
    display: grid;
    gap: 0.75rem;
}

.cancel-reservation-form textarea {
    margin-bottom: 0;
}

.reservation-cancel-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
}

.reservation-cancel-box h3 {
    margin: 0 0 0.5rem;
}

.reservation-cancel-box p {
    margin: 0 0 1rem;
}

@media (max-width: 900px) {
    .host-cta-section {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 24px;
    }

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

/* User reservations filters */
.reservations-filter-form {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
    gap: 0.75rem;
    align-items: end;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.reservations-filter-form label {
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
}

.reservations-filter-form input,
.reservations-filter-form select {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .reservations-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reservations-filter-form .button {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .reservations-filter-form {
        grid-template-columns: 1fr;
    }
}


/* Unified select/combobox styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-height: 46px;
    height: 46px;
    padding: 11px 42px 11px 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-muted) 50%),
        linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    font: inherit;
    outline: none;
    transition: 160ms ease;
    cursor: pointer;
}

select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(33, 199, 168, 0.14);
}

select:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    background-color: #f8fafc;
}

/* Keep selects aligned in compact forms */
.reservations-filter-form select,
.finance-filter-bar select,
.reviews-filter-bar select,
.search-form select,
.parking-space-form select,
.vehicle-form select,
.auth-form select {
    min-height: 46px;
    height: 46px;
    margin-bottom: 0;
}

/* Search sidebar compact select */
.search-map-page .search-form select {
    min-height: 42px;
    height: 42px;
    padding-top: 9px;
    padding-bottom: 9px;
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
}

/* Mobile select comfort */
@media (max-width: 620px) {
    select {
        font-size: 0.95rem;
    }
}


/* User profile */
.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
}

.profile-form {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.profile-type-box {
    margin: 0.5rem 0 1.25rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.profile-type-box span {
    display: block;
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.profile-type-box strong {
    color: #0f172a;
}

.compact-section {
    margin-top: 1.25rem;
}

.profile-side-card {
    text-align: center;
    position: sticky;
    top: 100px;
}

.profile-avatar {
    margin: 0 auto 1rem;
}

.profile-side-card h2 {
    margin: 0 0 0.35rem;
}

.profile-side-card p {
    margin: 0 0 1.25rem;
}

.profile-quick-actions {
    grid-template-columns: 1fr;
    text-align: left;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-side-card {
        position: relative;
        top: auto;
    }
}



/* Unified select/combobox styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    min-height: 46px;
    height: 46px;
    margin-bottom: 16px;
    padding: 11px 42px 11px 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-muted) 50%),
        linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    font: inherit;
    outline: none;
    transition: 160ms ease;
    cursor: pointer;
}

select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(33, 199, 168, 0.14);
}

select:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    background-color: #f8fafc;
}

/* Keep selects aligned inside filter/compact forms */
.reservations-filter-form select,
.finance-filter-bar select,
.reviews-filter-bar select,
.search-form select,
.parking-space-form select,
.vehicle-form select,
.auth-form select {
    min-height: 46px;
    height: 46px;
    margin-bottom: 0;
}

/* Search sidebar compact select */
.search-map-page .search-form select {
    min-height: 42px;
    height: 42px;
    padding-top: 9px;
    padding-bottom: 9px;
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
}

/* Mobile select comfort */
@media (max-width: 620px) {
    select {
        font-size: 0.95rem;
    }
}



/* Parking detail map layering fix */
.parking-detail-page {
    position: relative;
    isolation: isolate;
}

.parking-detail-main,
.parking-detail-main .detail-section,
.parking-gallery,
.parking-reservation-card {
    position: relative;
    z-index: 1;
}

.detail-map {
    position: relative;
    z-index: 1;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    overflow: hidden;
    border-radius: 24px;
    background: #dbe5ef;
}

.detail-map .leaflet-container {
    position: relative;
    z-index: 1;
    height: 100% !important;
    min-height: 320px !important;
}

.detail-map .leaflet-pane,
.detail-map .leaflet-top,
.detail-map .leaflet-bottom {
    z-index: 2;
}

.detail-map .leaflet-control-container {
    position: relative;
    z-index: 3;
}

/* Prevent map from visually leaking outside its section */
.detail-section:has(.detail-map) {
    overflow: hidden;
}

/* Availability */
.availability-form {
    max-width: none;
    display: grid;
    gap: 0.85rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.availability-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 140px 140px;
    gap: 0.85rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #f8fafc;
}

.availability-row label {
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
}

.availability-row input[type="time"] {
    margin-bottom: 0;
}

.availability-toggle {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    .availability-row {
        grid-template-columns: 1fr;
    }
}


.availability-note {
    margin-bottom: 1.25rem;
}

.availability-note p {
    margin-bottom: 0;
}



/* Admin basic lists */
.admin-list {
    display: grid;
    gap: 1rem;
}

.admin-list-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
}

.admin-list-card h2 {
    margin: 0.5rem 0;
}

.admin-actions {
    display: grid;
    gap: 0.75rem;
}

.admin-actions form {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-actions textarea {
    margin-bottom: 0.5rem;
}

/* Photos */
.photo-upload-form {
    max-width: none;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
}

.photo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.cover-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.photo-actions {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem;
}

.photo-actions form {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 900px) {
    .admin-list-card {
        grid-template-columns: 1fr;
    }
}

/* Availability exceptions */
.availability-exception-form {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 0.85rem;
    align-items: end;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 1.25rem;
}

.availability-exception-form input {
    margin-bottom: 0;
}

.availability-exceptions-list {
    display: grid;
    gap: 0.85rem;
}

.availability-exception-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #f8fafc;
}

.availability-exception-card strong {
    color: #0f172a;
}

.availability-exception-card p {
    margin: 0.35rem 0 0;
}

.availability-exception-card form {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 900px) {
    .availability-exception-form {
        grid-template-columns: 1fr;
    }

    .availability-exception-card {
        align-items: stretch;
        flex-direction: column;
    }
}