* {
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.72);
    --line: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --brand: #0f52ba;
    --brand-strong: #1d4ed8;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(15, 82, 186, 0.18), transparent 32%),
        linear-gradient(180deg, #020617 0%, #020817 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(2, 6, 23, 0.84);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(15, 82, 186, 0.28);
}

.brand-copy {
    display: grid;
    gap: 0.15rem;
}

.brand-copy strong {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.brand-copy strong span {
    color: #60a5fa;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.main-nav a {
    padding: 0.6rem 0.9rem;
    border-radius: 0.8rem;
    color: var(--muted);
    font-weight: 600;
    transition: 0.2s ease;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
}

.portal-shell {
    padding: 2rem 0 4rem;
}

.portal-stack {
    display: grid;
    gap: 1.5rem;
}

.landing-surface {
    display: grid;
    gap: 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.88));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.home-hero {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at top left, rgba(15, 82, 186, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.hero-copy-panel {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 82, 186, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-copy-panel h1 {
    margin: 1rem 0 0.9rem;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy {
    max-width: 62ch;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

.search-panel,
.section-block,
.provider-banner,
.sidebar-card,
.notice {
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--panel-soft);
    padding: 1.25rem;
}

.search-grid,
.metrics-row,
.city-grid,
.type-grid,
.listing-card-grid,
.bottom-listing-grid,
.plan-grid,
.listing-grid,
.card-grid {
    display: grid;
    gap: 1rem;
}

.search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.search-field {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #020617;
    border: 1px solid var(--line);
}

.search-field label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.search-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: rgba(15, 82, 186, 0.14);
    color: #60a5fa;
    font-size: 0.95rem;
}

select,
input,
textarea {
    width: 100%;
    border: 0;
    color: var(--text);
    font: inherit;
    background: transparent;
    outline: none;
}

select option {
    color: var(--text);
    background: #0f172a;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.25rem;
    border-radius: 0.95rem;
    font-weight: 800;
    transition: 0.2s ease;
}

.button.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    box-shadow: 0 18px 35px rgba(15, 82, 186, 0.22);
}

.button.secondary {
    background: #d97706;
    color: #fff;
}

.button.full {
    width: 100%;
}

.button.primary:hover,
.text-link:hover {
    transform: translateY(-1px);
}

.metrics-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.city-card,
.listing-showcase-card,
.plan-card,
.card {
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--panel);
    padding: 1.25rem;
}

.metric-card strong {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
}

.metric-card span,
.section-heading p,
.city-card p,
.provider-banner p,
.listing-showcase-card p,
.plan-points,
.notice p,
.listing-location {
    color: var(--muted);
}

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

.section-heading h2,
.provider-banner h2,
.section h1 {
    margin: 0.35rem 0 0;
    color: #fff;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-kicker {
    display: inline-block;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.city-grid,
.type-grid,
.listing-card-grid,
.bottom-listing-grid,
.plan-grid,
.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.city-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.city-card h3,
.listing-showcase-card h3,
.plan-card h3 {
    margin: 0 0 0.45rem;
    color: #fff;
}

.city-card span {
    color: #60a5fa;
    font-size: 1.15rem;
}

.provider-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background:
        radial-gradient(circle at right, rgba(15, 82, 186, 0.18), transparent 35%),
        #030712;
}

.type-card {
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.95), rgba(15, 23, 42, 0.92));
    padding: 1.25rem;
}

.type-card-top,
.type-meta-row,
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.type-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    font-weight: 900;
}

.type-count {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.type-card h3 {
    margin: 1rem 0 0.55rem;
    color: #fff;
}

.type-card p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.type-meta-row span {
    color: #cbd5e1;
    font-weight: 700;
}

.type-filter-button,
.filter-chip {
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #bfdbfe;
    padding: 0.6rem 0.95rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.type-filter-button:hover,
.filter-chip:hover,
.filter-chip.is-active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(37, 99, 235, 0.5);
    color: #fff;
}

.filter-bar {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.badge,
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(15, 82, 186, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.listing-showcase-card h3 {
    margin-top: 1rem;
}

.listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.price {
    color: #fff;
    font-weight: 800;
}

.text-link {
    color: #60a5fa;
    font-weight: 700;
}

.plan-points {
    padding-left: 1rem;
    margin: 1rem 0 0;
    line-height: 1.8;
}

.pricing-head {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.pricing-head h2 {
    margin: 0.6rem 0 0.75rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.pricing-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.plan-grid {
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 2rem 1.55rem 1.55rem;
    border-radius: 1.5rem;
    background: #040b1f;
}

.plan-card-popular {
    border-color: rgba(37, 99, 235, 0.8);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.plan-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.65rem 1rem;
    border-radius: 0 1.5rem 0 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.plan-tier-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.16);
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.plan-card h3 {
    margin: 1rem 0 0.9rem;
    font-size: 1.15rem;
}

.plan-description {
    min-height: 4.8rem;
    margin: 0 0 1.2rem;
    color: var(--muted);
    line-height: 1.5;
}

.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.plan-price {
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-price-accent {
    color: #34d399;
}

.plan-price-suffix {
    color: var(--muted);
    font-size: 1rem;
}

.plan-divider {
    height: 1px;
    margin: 1.4rem 0 1rem;
    background: rgba(148, 163, 184, 0.12);
}

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

.plan-point {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
    font-size: 0.98rem;
}

.plan-point::before {
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-weight: 900;
}

.plan-point.positive::before {
    content: "+";
    color: #34d399;
}

.plan-point.negative::before {
    content: "-";
    color: #f87171;
}

.plan-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 0 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    background: #162036;
    color: #fff;
    font-weight: 800;
    transition: 0.2s ease;
}

.plan-button:hover {
    transform: translateY(-1px);
}

.plan-button-popular {
    border-color: rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.bottom-listing-card {
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94));
    padding: 1.25rem;
}

.bottom-listing-top,
.bottom-listing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bottom-listing-card h3 {
    margin: 1rem 0 0.55rem;
    color: #fff;
}

.bottom-listing-card p {
    color: var(--muted);
}

.bottom-listing-seats,
.bottom-listing-meta span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.bottom-listing-meta {
    margin: 1rem 0 0.75rem;
}

.bottom-listing-meta strong {
    color: #fff;
    font-size: 1.1rem;
}

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

.detail-stack > div + div,
.prose p + p {
    margin-top: 0.75rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

form {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

input,
textarea,
select {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #020617;
}

.error {
    color: #fda4af;
}

.success {
    color: #6ee7b7;
}

label {
    display: grid;
    gap: 0.45rem;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 700;
}

button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    filter: saturate(0.7);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.reveal-page {
    animation: pageReveal 0.65s ease both;
}

.float-in {
    animation: floatIn 0.55s ease both;
}

.client-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at 18% 12%, rgba(52, 211, 153, 0.12), transparent 26%),
        radial-gradient(circle at 95% 10%, rgba(96, 165, 250, 0.18), transparent 28%),
        #030712;
}

.client-hero h1,
.auth-panel h1,
.dashboard-top h1,
.section-block h2 {
    margin: 0.65rem 0 0.8rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.auth-panel {
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
    padding: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.auth-page {
    padding: 4rem 0;
}

.narrow-container {
    width: min(520px, calc(100% - 2rem));
}

.muted-copy,
.notice-line {
    color: var(--muted);
    line-height: 1.7;
}

.notice-line {
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 0.9rem;
    background: rgba(6, 78, 59, 0.22);
    padding: 0.8rem 0.9rem;
}

.otp-input {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.3rem;
}

.animated-form input,
.animated-form textarea,
.animated-form select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.animated-form input:focus,
.animated-form textarea:focus,
.animated-form select:focus {
    transform: translateY(-1px);
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at right, rgba(52, 211, 153, 0.1), transparent 26%),
        #030712;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 1rem;
}

.compact-heading {
    align-items: start;
}

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

.plan-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-form textarea,
.admin-plan-form textarea {
    resize: vertical;
}

.limit-meter {
    height: 0.85rem;
    margin: 1.25rem 0;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 999px;
    background: #020617;
}

.limit-meter::before {
    display: block;
    width: var(--used);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #34d399, #2563eb);
    content: "";
    animation: meterFill 0.8s ease both;
}

.mini-plan-list,
.admin-plan-list {
    display: grid;
    gap: 0.85rem;
}

.mini-plan-list div,
.admin-plan-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #020617;
    padding: 1rem;
}

.mini-plan-list strong,
.mini-plan-list span {
    display: block;
}

.mini-plan-list span {
    color: var(--muted);
    margin-top: 0.25rem;
}

.toggle-row,
.plan-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.toggle-row label {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 0.5rem;
}

.toggle-row input {
    width: auto;
}

.admin-plan-card {
    display: grid;
    gap: 1rem;
}

.plan-card-head {
    justify-content: space-between;
}

@keyframes pageReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes meterFill {
    from {
        width: 0;
    }
    to {
        width: var(--used);
    }
}

@media (max-width: 900px) {
    .header-inner,
    .search-grid,
    .metrics-row,
    .city-grid,
    .type-grid,
    .listing-card-grid,
    .bottom-listing-grid,
    .plan-grid,
    .listing-grid,
    .card-grid,
    .section-heading,
    .provider-banner,
    .client-hero,
    .dashboard-grid,
    .form-grid,
    .plan-form-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .provider-banner .button {
        width: 100%;
    }

    .type-card-top,
    .type-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .landing-surface,
    .home-hero,
    .search-panel,
    .section-block,
    .provider-banner {
        padding: 1rem;
    }

    .hero-copy-panel h1 {
        font-size: 2.25rem;
    }
}

/* Custom Auth Tabs (added for Register/Sign In toggling) */
.auth-tabs {
    display: flex;
    background: #020617;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.25rem;
    margin-bottom: 1.25rem;
    gap: 0.25rem;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.auth-tab-btn:hover {
    color: var(--text);
}

.auth-tab-btn.active {
    background: var(--line);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Smooth transition for form fields */
.animated-form .form-field-wrapper {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    max-height: 100px;
    margin-bottom: 0.65rem;
    overflow: hidden;
    transform: translateY(0);
}

.animated-form .form-field-wrapper.hidden-field {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

/* Glassmorphism Redesign */
.glass-panel {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover {
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 20px 50px rgba(15, 82, 186, 0.15) !important;
}

/* SVGs & Icon Styling */
.cat-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
    display: inline-block;
    vertical-align: middle;
}
.search-field-svg {
    width: 1.15rem;
    height: 1.15rem;
    color: inherit;
    display: inline-block;
}

/* Nav Highlights */
.nav-btn-highlight {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong)) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(15, 82, 186, 0.25);
}
.nav-btn-highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(15, 82, 186, 0.4);
}

/* How It Works Section */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.how-card {
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}
.how-step {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 82, 186, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 15px rgba(15, 82, 186, 0.2);
}
.how-card h3 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.15rem;
}
.how-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.info-section-glow {
    position: relative;
}
.info-section-glow::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(15, 82, 186, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.testimonial-card {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.testimonial-rating {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.testimonial-text {
    color: #cbd5e1 !important;
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}
.testimonial-author {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}
.testimonial-author strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
}
.testimonial-author span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

/* Newsletter Box Section */
.newsletter-box {
    padding: 3rem 2rem !important;
    margin-top: 2rem;
    background: radial-gradient(circle at center, rgba(15, 82, 186, 0.12), transparent 70%), rgba(15, 23, 42, 0.6) !important;
    text-align: center;
}
.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
}
.newsletter-inner h2 {
    color: #fff;
    margin: 0.5rem 0 0.75rem;
    font-size: 2rem;
    letter-spacing: -0.03em;
}
.newsletter-inner p {
    color: var(--muted);
    margin: 0 0 1.5rem;
    font-size: 0.98rem;
    line-height: 1.6;
}
.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex-grow: 1;
    background: #020617;
    border: 1px solid var(--line);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #fff;
}
.newsletter-form button {
    white-space: nowrap;
    min-height: auto;
}

/* Search Page Layout */
.search-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1rem;
}

/* Search Sidebar */
.search-sidebar {
    position: sticky;
    top: 90px;
    padding: 1.5rem !important;
    border-radius: 1.5rem;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}
.sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}
.clear-all-link {
    font-size: 0.8rem;
    color: #60a5fa;
    font-weight: 600;
}
.clear-all-link:hover {
    text-decoration: underline;
}
.filter-form {
    display: grid;
    gap: 1.25rem;
    margin-top: 0;
}
.filter-group {
    display: grid;
    gap: 0.5rem;
}
.filter-group label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.filter-group select,
.filter-group input {
    width: 100%;
    background: #020617;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: #fff;
    font-size: 0.9rem;
}
.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.range-inputs input {
    text-align: center;
}
.range-divider {
    color: var(--muted);
    font-size: 0.9rem;
}
.filter-submit-btn {
    margin-top: 0.5rem;
}

/* Results Panel */
.search-results-container {
    display: grid;
    gap: 1.5rem;
}
.results-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    padding-bottom: 1rem;
}
.results-meta-header h1 {
    margin: 0;
    font-size: 1.75rem;
    color: #fff;
    letter-spacing: -0.03em;
}
.results-count {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Active Chips */
.active-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.filter-chip-active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: rgba(15, 82, 186, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #bfdbfe;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.filter-chip-active a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1;
    transition: background 0.2s;
}
.filter-chip-active a:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* Empty State */
.search-empty-state {
    text-align: center;
    padding: 4rem 2rem !important;
    border-radius: 1.5rem;
    max-width: 500px;
    margin: 3rem auto;
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.search-empty-state h3 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.4rem;
}
.search-empty-state p {
    color: var(--muted);
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Listing Grid for Search */
.search-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Showcase Listing Card Enhanced */
.listing-showcase-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.listing-showcase-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 20px 40px rgba(15, 82, 186, 0.15);
}
.listing-featured-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}
.listing-card-body {
    padding: 1.5rem 1.5rem 1rem;
    flex-grow: 1;
}
.listing-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}
.listing-seats-badge {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}
.icon-location {
    width: 0.95rem;
    height: 0.95rem;
    display: inline-block;
    vertical-align: text-bottom;
    margin-right: 0.25rem;
    color: #3b82f6;
}
.listing-showcase-card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #fff;
}
.listing-desc {
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}
.listing-showcase-card .listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 6, 23, 0.5);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding: 1rem 1.5rem;
    margin-top: auto;
}
.listing-price-col {
    display: flex;
    flex-direction: column;
}
.price-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.listing-showcase-card .price {
    font-size: 1.15rem;
    color: #fff;
}
.listing-showcase-card .price small {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: normal;
}
.listing-btn {
    min-height: auto;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    border-radius: 0.75rem;
}

/* Footer Section Redesign */
.site-footer {
    background: #030712;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.25fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.footer-brand-section {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}
.footer-tagline {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
}
.footer-social-links {
    display: flex;
    gap: 0.75rem;
}
.footer-social-links a {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.08);
    color: var(--muted);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.2s ease;
}
.footer-social-links a:hover {
    color: #fff;
    background: var(--brand);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.social-icon {
    width: 1.1rem;
    height: 1.1rem;
}
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.footer-column {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}
.footer-column h4 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-column a {
    color: var(--muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-column a:hover {
    color: #fff;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    color: var(--muted);
    font-size: 0.8rem;
}
.footer-bottom p {
    margin: 0;
}
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.footer-bottom-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animations and Responsive Overrides */
@media (max-width: 900px) {
    .search-page-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .search-sidebar {
        position: relative;
        top: 0;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .how-it-works-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .search-listing-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Listing Photos & Videos Media Styles
   ========================================================================== */

/* Card Thumbnail Zoom-on-Hover Effect */
.listing-card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.listing-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.listing-showcase-card:hover .listing-card-thumbnail img {
    transform: scale(1.08);
}

/* Row-style listings with thumbnail layouts (dashboard and city pages) */
.bottom-listing-card, .card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.dashboard-listing-thumbnail {
    width: 110px;
    height: 110px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-listing-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bottom-listing-card-content {
    flex-grow: 1;
}

/* Detail Page Media Gallery */
.listing-media-gallery {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.main-media-display {
    width: 100%;
    height: 460px;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.main-media-display img, 
.main-media-display video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-thumbnails {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.3) transparent;
}
.media-thumb {
    width: 90px;
    height: 65px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.55;
    background: #020617;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.media-thumb:hover,
.media-thumb.active {
    opacity: 1;
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 82, 186, 0.25);
}
.video-thumb {
    position: relative;
}
.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s;
}
.media-thumb:hover .play-overlay {
    color: #fff;
}
.media-video {
    outline: none;
}

@media (max-width: 640px) {
    .bottom-listing-card, .card {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-listing-thumbnail {
        width: 100%;
        height: 160px;
    }
    .main-media-display {
        height: 280px;
    }
    .media-thumb {
        width: 70px;
        height: 50px;
    }
}

/* ==========================================================================
   Custom Autocomplete Search Dropdown
   ========================================================================== */
.custom-autocomplete {
    position: relative;
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 999;
    margin-top: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.3) transparent;
}
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}
.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(96, 165, 250, 0.3);
    border-radius: 999px;
}
.autocomplete-item {
    padding: 0.7rem 1.15rem;
    color: #cbd5e1;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: left;
}
.autocomplete-item:last-child {
    border-bottom: 0;
}
.autocomplete-item:hover {
    background: rgba(15, 82, 186, 0.25);
    color: #fff;
    padding-left: 1.4rem;
}
.autocomplete-item strong {
    color: #60a5fa;
    font-weight: 600;
}
