.home-shell {
    background:
        radial-gradient(circle at 85% -10%, rgba(0, 116, 255, 0.2), transparent 45%),
        radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.08), transparent 30%),
        #f6f8fc;
    min-height: 100vh;
}

.city-kicker {
    font-family: 'Space Grotesk', var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #243b70;
    font-size: 0.78rem;
    font-weight: 700;
}

.city-title {
    font-family: 'Space Grotesk', var(--font-heading);
    font-size: clamp(2.3rem, 6vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #101b36;
}

.city-dot {
    color: #0a63ff;
}

.city-tagline {
    color: #495a86;
    font-size: 1.05rem;
}

.city-badge {
    border-radius: 999px;
    border: 1px solid rgba(16, 27, 54, 0.1);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #102244;
    font-weight: 700;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.city-badge:hover,
.city-badge:focus-visible {
    border-color: rgba(10, 99, 255, 0.35);
    box-shadow: 0 6px 16px rgba(10, 23, 58, 0.1);
}

.city-badge i {
    color: #d92332;
}

.city-badge__chevron {
    color: #7688ac !important;
    font-size: 0.7rem;
}

.directory-switch-results {
    max-height: 340px;
    overflow-y: auto;
    display: grid;
    gap: 0.6rem;
}

.directory-switch-results .nearby-card {
    padding: 0.7rem 0.85rem;
}

.city-header-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.btn-city-login {
    border: 1px solid rgba(16, 27, 54, 0.2);
    border-radius: 999px;
    background: #ffffff;
    color: #102244;
    font-weight: 700;
    padding: 0.55rem 1rem;
}

.btn-city-login:hover {
    color: #0a63ff;
    border-color: rgba(10, 99, 255, 0.4);
}

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

.city-service-card {
    border-radius: 16px;
    border: 1px solid rgba(16, 27, 54, 0.1);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.85rem 0.95rem;
}

.city-service-card__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.city-service-card__header i {
    color: #0a63ff;
    font-size: 1rem;
}

.city-service-card__header h2 {
    margin: 0;
    font-size: 0.95rem;
    color: #102244;
    font-family: 'Space Grotesk', var(--font-heading);
}

.city-service-card__meta {
    margin-top: 0.35rem;
    display: grid;
    gap: 0.12rem;
}

.city-service-card__meta a,
.city-service-card__meta span {
    color: #56688f;
    font-size: 0.9rem;
    word-break: break-word;
}

.city-service-card__meta a:hover {
    color: #0a63ff;
}

.btn-city-action {
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a63ff, #0d89ff);
    color: #ffffff;
    font-weight: 700;
    min-height: 46px;
}

.btn-city-action:hover {
    color: #ffffff;
    filter: brightness(1.05);
}

@media (max-width: 767px) {
    .city-header {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .city-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .city-badge-wrap {
        flex: 1 1 auto;
    }

    .city-badge-wrap .city-badge {
        width: 100%;
        justify-content: center;
    }

    .btn-city-login {
        flex: 1 1 auto;
        text-align: center;
    }
}

.btn-outline-city {
    border-radius: 14px;
    border: 1px solid #0a63ff;
    color: #0a63ff;
    font-weight: 700;
    background: #ffffff;
}

.btn-outline-city:hover {
    background: #0a63ff;
    color: #ffffff;
}

.city-info-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.city-info-links__label {
    color: #54658f;
    font-weight: 700;
}

.city-info-links__item {
    color: #0a63ff;
    font-weight: 700;
    text-decoration: none;
}

.city-info-links__item:hover {
    text-decoration: underline;
}

.city-info-links__item--plain {
    color: #8a97b8;
    font-weight: 700;
}

.city-info-links__sep {
    color: #c4cde3;
}

.city-info-links__favorite {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #b8860b;
    font-weight: 700;
}

.city-info-links__favorite i {
    color: #f5a623;
}

.city-info-links__favorite--set {
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.city-info-links__favorite--set:hover {
    color: #0a63ff;
}

.city-info-links__favorite--set:hover i {
    color: #0a63ff;
}

.city-info-links__pref-toggle {
    color: #8a97b8;
    font-size: 0.88rem;
    text-decoration: underline;
}

.city-info-links__pref-toggle:hover {
    color: #0a63ff;
}

.claim-listing-cta {
    text-align: center;
    color: #54658f;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0;
}

.claim-listing-cta a {
    color: #0a63ff;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 350px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 22px 36px rgba(7, 20, 46, 0.2);
}

.hero-carousel .hero-slide {
    position: absolute;
    inset: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-carousel .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-carousel__dots {
    position: absolute;
    z-index: 2;
    right: 1.1rem;
    bottom: 1.1rem;
    display: flex;
    gap: 0.4rem;
}

.hero-carousel__dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Enlarges the tap target to ~44px without changing the visible dot size. */
.hero-carousel__dot::before {
    content: "";
    position: absolute;
    inset: -13px;
}

.hero-carousel__dot.is-active {
    background: #ffffff;
    transform: scale(1.2);
}

.featured-banner {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    min-height: 350px;
    box-shadow: 0 22px 36px rgba(7, 20, 46, 0.2);
}

.featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.hero-slide__hover-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 19, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.featured-banner:hover .hero-slide__hover-overlay,
.featured-banner:focus-within .hero-slide__hover-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Touch devices have no :hover, so the "See More Details" CTA needs to be visible by
   default rather than unreachable - a bottom gradient keeps the photo mostly clear. */
@media (hover: none) {
    .hero-slide__hover-overlay {
        opacity: 1;
        pointer-events: auto;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 1.25rem;
        background: linear-gradient(to top, rgba(3, 7, 19, 0.78), rgba(3, 7, 19, 0) 55%);
    }
}

.directory-shell {
    border-radius: 24px;
    border: 1px solid rgba(16, 27, 54, 0.09);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(10, 23, 58, 0.08);
    padding: 1rem;
}

.search-wrap {
    position: relative;
}

.search-wrap > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #0a63ff;
    font-size: 1.1rem;
}

.search-wrap .form-control {
    padding-left: 2.75rem;
    border-radius: 15px;
    min-height: 52px;
    border: 2px solid #e2e8f6;
    background: #f6f8fc;
}

.search-wrap .form-control:focus {
    border-color: #0a63ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(10, 99, 255, 0.12);
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f6;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 14px 34px rgba(10, 23, 58, 0.12);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
}

.tag-suggestion {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #152749;
    line-height: 1;
}

.tag-suggestion:hover {
    background: #eaf0fb;
}

.tag-suggestion i {
    flex: 0 0 auto;
    color: #0a63ff;
    font-size: 0.95rem;
    line-height: 1;
}

.tag-suggestion span {
    flex: 1 1 auto;
}

#active-tag-filter .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-cloud-shell {
    padding: 1.5rem 0;
    text-align: center;
}

.tag-cloud-heading {
    font-family: 'Space Grotesk', var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #101b36;
    margin-bottom: 0.9rem;
    text-align: center;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.tag-cloud-pill {
    border: 1px solid #e2e8f6;
    border-radius: 999px;
    background: #eaf0fb;
    color: #2a3a61;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.tag-cloud-pill:hover {
    border-color: #0a63ff;
    color: #0a63ff;
}

.tag-cloud-pill.active {
    background: #0a63ff;
    border-color: #0a63ff;
    color: #ffffff;
}

.directory-count {
    color: #4f618c;
    font-size: 0.95rem;
}

.directory-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.directory-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f6;
    border-radius: 16px;
    padding: 1.1rem 1.35rem;
}

.directory-item--premium,
.directory-item--enhanced {
    transition: box-shadow 180ms ease;
}

.directory-item--premium:hover,
.directory-item--enhanced:hover {
    box-shadow: 0 10px 24px rgba(10, 23, 58, 0.08);
}

.directory-item--free {
    padding: 0.85rem 1.35rem;
}

.directory-item--premium {
    border-left: 6px solid #0a63ff;
    background: #f3f8ff;
    padding: 1.35rem 1.6rem;
}

.directory-item--enhanced {
    border-left: 6px solid #3fa264;
    background: #f6fcf8;
    padding: 1.35rem 1.6rem;
}

.directory-item__premier-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28em 0.7em;
    margin-left: 0.5rem;
    border-radius: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

.directory-item__premier-badge--premium {
    background: rgba(10, 99, 255, 0.1);
    border: 1px solid rgba(10, 99, 255, 0.3);
    color: #0a63ff;
}

.directory-item__premier-badge--enhanced {
    background: rgba(63, 162, 100, 0.1);
    border: 1px solid rgba(63, 162, 100, 0.35);
    color: #2f7d4d;
}

.directory-item__premier-badge i {
    font-size: 0.68rem;
}

.directory-item__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.directory-item__logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e9eff9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.directory-item__logo img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    border-radius: 6px;
}

.directory-item__left {
    flex: 1;
    min-width: 0;
}

.directory-item__right {
    text-align: right;
    flex-shrink: 0;
}

.directory-item__name {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: #152749;
}

.directory-item__name-link {
    color: inherit;
    text-decoration: none;
}

.directory-item__name-link:hover {
    color: #0a63ff;
    text-decoration: underline;
}

.directory-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.directory-item__tag {
    font-size: 0.8rem;
    color: #4f618c;
    background: #eaf0fb;
    border: 1px solid #e2e8f6;
    border-radius: 3px;
    padding: 0.1rem 0.5rem;
    line-height: 1.4;
}

.directory-item__phone {
    margin: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.directory-item__phone i {
    color: #0a63ff;
}

.directory-item__phone a {
    position: relative;
    z-index: 2;
    color: #152749;
    text-decoration: none;
    font-weight: 700;
}

.directory-item__phone a:hover {
    color: #0a63ff;
    text-decoration: underline;
}

.directory-item__phone span {
    color: #152749;
    font-weight: 700;
}

.directory-item--free .directory-item__phone i {
    color: #7f8fae;
}

.directory-item__address {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #4f618c;
    text-align: right;
}

.empty-row {
    padding: 1.2rem;
    color: #50618a;
}

.directory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.directory-pagination .biz-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.6rem;
    border-radius: 8px;
    border: 1px solid #e2e8f6;
    background: #ffffff;
    color: #4f618c;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.directory-pagination .biz-page-link:hover {
    border-color: #0a63ff;
    color: #0a63ff;
}

.directory-pagination .biz-page-link.active {
    background: rgba(10, 99, 255, 0.1);
    border-color: #0a63ff;
    color: #0a63ff;
    cursor: default;
}

.directory-pagination .biz-page-link.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.directory-pagination .biz-page-ellipsis {
    color: #9aaed0;
    padding: 0 0.25rem;
}

.directory-pagination .biz-page-info {
    color: #4f618c;
    font-size: 0.88rem;
}

.not-live-card {
    border-radius: 24px;
    border: 1px solid rgba(16, 27, 54, 0.1);
    background: linear-gradient(150deg, #ffffff, #f4f8ff);
    padding: 1.4rem;
    box-shadow: 0 16px 34px rgba(11, 22, 43, 0.08);
}

.not-live-card h2 {
    font-family: 'Space Grotesk', var(--font-heading);
    font-size: 1.65rem;
    margin-bottom: 0.6rem;
}

.not-live-card p {
    color: #40537d;
    margin-bottom: 0.35rem;
}

.nearby-wrap h3 {
    font-family: 'Space Grotesk', var(--font-heading);
    font-size: 1.1rem;
    color: #152749;
    margin: 0;
}

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

.nearby-card {
    border-radius: 16px;
    border: 1px solid rgba(16, 27, 54, 0.09);
    background: #ffffff;
    padding: 0.8rem;
    display: block;
    text-decoration: none;
}

.nearby-card:hover {
    border-color: rgba(10, 99, 255, 0.3);
    box-shadow: 0 12px 20px rgba(11, 23, 45, 0.08);
}

.nearby-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.nearby-top strong {
    color: #13264f;
}

.nearby-card p {
    margin: 0.25rem 0;
    color: #49608f;
    font-size: 0.9rem;
}

.nearby-distance {
    font-size: 0.82rem;
    color: #5f7098;
    font-weight: 700;
}

.nearby-status {
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nearby-status-on {
    color: #0c7343;
    background: #dcf7e9;
}

.nearby-status-off {
    color: #8e2430;
    background: #ffe7ea;
}

.nearby-empty {
    color: #50618a;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .city-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .directory-shell {
        padding: 1.4rem;
    }

    .directory-item {
        padding: 1.1rem 1.3rem;
    }
}

@media (min-width: 1200px) {
    .city-service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .directory-item__body {
        flex-direction: column;
        align-items: flex-start;
    }

    .directory-item__right {
        text-align: left;
        width: 100%;
    }

    .directory-item__phone {
        justify-content: flex-start;
    }

    .directory-item__address {
        text-align: left;
    }
}
