:root {
    --red: #c60812;
    --red-dark: #98010b;
    --blue: #004b8d;
    --blue-soft: #e7f2fb;
    --gold: #d89a14;
    --orange: #f26a21;
    --green: #087f5b;
    --ink: #162033;
    --muted: #647084;
    --line: #dfe6ef;
    --surface: #ffffff;
    --surface-soft: #f5f8fb;
    --shadow: 0 18px 45px rgba(22, 32, 51, 0.1);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.seasonal-ribbon {
    display: flex;
    justify-content: center;
    background: var(--season-primary, var(--blue));
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 5px 16px;
    text-transform: uppercase;
}

body.theme-pride {
    --season-primary: #7c3aed;
    --season-secondary: #0f766e;
    --season-accent: #f97316;
    --season-soft: #f4e8ff;
    --season-page: #fffaff;
    --season-line: #e9d5ff;
    --season-hero: linear-gradient(135deg, #1e1b4b 0%, #6d28d9 46%, #db2777 100%);
}

body.theme-pride .seasonal-ribbon {
    background: linear-gradient(90deg, #e11d48, #f59e0b, #16a34a, #2563eb, #7c3aed);
}

body.theme-canada-day {
    --season-primary: #c60812;
    --season-secondary: #004b8d;
    --season-accent: #d89a14;
    --season-soft: #fff1f2;
    --season-page: #fffafa;
    --season-line: #fecdd3;
    --season-hero: linear-gradient(135deg, #8f0109 0%, #c60812 48%, #ffffff 49%, #ffffff 54%, #004b8d 100%);
}

body.theme-canada-day .seasonal-ribbon,
body.theme-canada-day .nav-cta {
    background: var(--season-primary);
}

body.theme-tamil-heritage {
    --season-primary: #d89a14;
    --season-secondary: #004b8d;
    --season-accent: #c60812;
    --season-soft: #fff8e6;
    --season-page: #fffaf0;
    --season-line: #f2d58a;
    --season-hero: linear-gradient(135deg, #7a090e 0%, #d89a14 48%, #004b8d 100%);
}

body.theme-tamil-heritage .seasonal-ribbon {
    background: linear-gradient(90deg, var(--season-accent), var(--season-primary), var(--blue));
}

body.theme-custom .seasonal-ribbon,
body.theme-custom .nav-cta {
    background: var(--season-primary);
}

body.theme-custom {
    --season-secondary: var(--season-accent);
    --season-page: #fbfdff;
    --season-line: color-mix(in srgb, var(--season-primary) 22%, var(--line));
    --season-hero: linear-gradient(135deg, var(--season-primary) 0%, var(--season-accent) 100%);
}

body.theme-pride .main-nav a:hover,
body.theme-pride .main-nav a.active,
body.theme-pride .mobile-nav a:hover,
body.theme-canada-day .main-nav a:hover,
body.theme-canada-day .main-nav a.active,
body.theme-canada-day .mobile-nav a:hover,
body.theme-tamil-heritage .main-nav a:hover,
body.theme-tamil-heritage .main-nav a.active,
body.theme-tamil-heritage .mobile-nav a:hover,
body.theme-custom .main-nav a:hover,
body.theme-custom .main-nav a.active,
body.theme-custom .mobile-nav a:hover {
    background: var(--season-soft);
    color: var(--season-primary);
}

body.theme-pride,
body.theme-canada-day,
body.theme-tamil-heritage,
body.theme-custom {
    background:
        linear-gradient(180deg, var(--season-page) 0, #ffffff 420px),
        #ffffff;
}

body.theme-pride .site-header,
body.theme-canada-day .site-header,
body.theme-tamil-heritage .site-header,
body.theme-custom .site-header {
    border-bottom-color: var(--season-line);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--season-soft) 55%, #ffffff)),
        #ffffff;
    box-shadow: 0 10px 30px rgba(22, 32, 51, 0.08);
}

body.theme-pride .nav-shell,
body.theme-canada-day .nav-shell,
body.theme-tamil-heritage .nav-shell,
body.theme-custom .nav-shell {
    min-height: 88px;
}

body.theme-pride .brand,
body.theme-canada-day .brand,
body.theme-tamil-heritage .brand,
body.theme-custom .brand {
    border: 1px solid color-mix(in srgb, var(--season-primary) 20%, var(--line));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 6px 10px 6px 6px;
}

body.theme-pride .brand img,
body.theme-canada-day .brand img,
body.theme-tamil-heritage .brand img,
body.theme-custom .brand img,
body.theme-pride .footer-brand img,
body.theme-canada-day .footer-brand img,
body.theme-tamil-heritage .footer-brand img,
body.theme-custom .footer-brand img {
    border: 2px solid var(--season-primary);
    border-bottom-color: var(--season-accent);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--season-primary) 24%, transparent);
    padding: 4px;
}

body.theme-canada-day .brand img,
body.theme-canada-day .footer-brand img {
    border-radius: 50%;
    border-color: #c60812;
    outline: 3px solid #ffffff;
}

body.theme-tamil-heritage .brand img,
body.theme-tamil-heritage .footer-brand img {
    border-color: var(--season-primary);
    border-top-color: var(--season-accent);
    box-shadow: 0 8px 0 rgba(216, 154, 20, 0.12), 0 14px 28px rgba(122, 9, 14, 0.13);
}

body.theme-pride .brand strong,
body.theme-canada-day .brand strong,
body.theme-tamil-heritage .brand strong,
body.theme-custom .brand strong {
    color: var(--season-primary);
}

body.theme-pride .nav-cta,
body.theme-canada-day .nav-cta,
body.theme-tamil-heritage .nav-cta,
body.theme-custom .nav-cta {
    background: var(--season-primary);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--season-primary) 22%, transparent);
}

body.theme-pride .market-hero,
body.theme-canada-day .market-hero,
body.theme-tamil-heritage .market-hero,
body.theme-custom .market-hero,
body.theme-pride .page-hero,
body.theme-canada-day .page-hero,
body.theme-tamil-heritage .page-hero,
body.theme-custom .page-hero {
    position: relative;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--season-primary) 24%, transparent) 0 12px, transparent 12px 24px),
        var(--season-hero);
    border-bottom: 4px solid var(--season-accent);
}

body.theme-pride .market-hero h1,
body.theme-canada-day .market-hero h1,
body.theme-tamil-heritage .market-hero h1,
body.theme-custom .market-hero h1,
body.theme-pride .page-hero h1,
body.theme-canada-day .page-hero h1,
body.theme-tamil-heritage .page-hero h1,
body.theme-custom .page-hero h1,
body.theme-pride .page-hero p,
body.theme-canada-day .page-hero p,
body.theme-tamil-heritage .page-hero p,
body.theme-custom .page-hero p {
    color: #ffffff;
}

body.theme-pride .market-search,
body.theme-canada-day .market-search,
body.theme-tamil-heritage .market-search,
body.theme-custom .market-search,
body.theme-pride .directory-form,
body.theme-canada-day .directory-form,
body.theme-tamil-heritage .directory-form,
body.theme-custom .directory-form {
    border: 1px solid color-mix(in srgb, var(--season-primary) 28%, var(--line));
    border-top: 5px solid var(--season-accent);
    box-shadow: 0 20px 46px color-mix(in srgb, var(--season-primary) 16%, rgba(0, 20, 50, 0.16));
}

body.theme-pride .market-search button,
body.theme-canada-day .market-search button,
body.theme-tamil-heritage .market-search button,
body.theme-custom .market-search button,
body.theme-pride .directory-form button,
body.theme-canada-day .directory-form button,
body.theme-tamil-heritage .directory-form button,
body.theme-custom .directory-form button {
    background: var(--season-primary);
}

body.theme-pride .market-category-list,
body.theme-canada-day .market-category-list,
body.theme-tamil-heritage .market-category-list,
body.theme-custom .market-category-list {
    border-color: var(--season-line);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--season-primary) 10%, transparent);
}

body.theme-pride .market-category-row,
body.theme-canada-day .market-category-row,
body.theme-tamil-heritage .market-category-row,
body.theme-custom .market-category-row {
    border-color: var(--season-line);
    background: color-mix(in srgb, var(--season-soft) 34%, #ffffff);
}

body.theme-pride .market-category-row:hover,
body.theme-canada-day .market-category-row:hover,
body.theme-tamil-heritage .market-category-row:hover,
body.theme-custom .market-category-row:hover {
    background: var(--season-soft);
}

body.theme-pride .category-mark,
body.theme-canada-day .category-mark,
body.theme-tamil-heritage .category-mark,
body.theme-custom .category-mark {
    border: 2px solid #ffffff;
    background: var(--season-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--season-primary) 22%, transparent);
}

body.theme-pride .category-arrow,
body.theme-canada-day .category-arrow,
body.theme-tamil-heritage .category-arrow,
body.theme-custom .category-arrow {
    color: var(--season-accent);
}

body.theme-pride .listing-card,
body.theme-canada-day .listing-card,
body.theme-tamil-heritage .listing-card,
body.theme-custom .listing-card {
    border-color: color-mix(in srgb, var(--season-primary) 24%, var(--line));
    border-top: 4px solid var(--season-primary);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--season-soft) 40%, #ffffff), #ffffff 82px),
        #ffffff;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--season-primary) 8%, transparent);
}

body.theme-pride .listing-thumb,
body.theme-canada-day .listing-thumb,
body.theme-tamil-heritage .listing-thumb,
body.theme-custom .listing-thumb {
    border-color: var(--season-primary);
    box-shadow: 0 8px 16px color-mix(in srgb, var(--season-primary) 14%, transparent);
}

body.theme-pride .listing-avatar,
body.theme-canada-day .listing-avatar,
body.theme-tamil-heritage .listing-avatar,
body.theme-custom .listing-avatar {
    background: linear-gradient(135deg, var(--season-primary), var(--season-accent));
}

body.theme-pride .listing-meta em,
body.theme-canada-day .listing-meta em,
body.theme-tamil-heritage .listing-meta em,
body.theme-custom .listing-meta em,
body.theme-pride .section-heading h2,
body.theme-canada-day .section-heading h2,
body.theme-tamil-heritage .section-heading h2,
body.theme-custom .section-heading h2 {
    color: var(--season-primary);
}

body.theme-pride .post-main-card,
body.theme-pride .seller-card,
body.theme-canada-day .post-main-card,
body.theme-canada-day .seller-card,
body.theme-tamil-heritage .post-main-card,
body.theme-tamil-heritage .seller-card,
body.theme-custom .post-main-card,
body.theme-custom .seller-card {
    border-color: color-mix(in srgb, var(--season-primary) 22%, var(--line));
    box-shadow: 0 18px 38px color-mix(in srgb, var(--season-primary) 8%, transparent);
}

body.theme-pride .business-template-page .seller-card,
body.theme-canada-day .business-template-page .seller-card,
body.theme-tamil-heritage .business-template-page .seller-card,
body.theme-custom .business-template-page .seller-card {
    border-top-color: var(--season-primary);
}

body.theme-pride .seller-profile img,
body.theme-canada-day .seller-profile img,
body.theme-tamil-heritage .seller-profile img,
body.theme-custom .seller-profile img {
    border: 2px solid var(--season-primary);
    border-radius: 10px;
    padding: 3px;
    background: #ffffff;
}

body.theme-pride .business-update-card,
body.theme-pride .review-submit-card,
body.theme-canada-day .business-update-card,
body.theme-canada-day .review-submit-card,
body.theme-tamil-heritage .business-update-card,
body.theme-tamil-heritage .review-submit-card,
body.theme-custom .business-update-card,
body.theme-custom .review-submit-card {
    border-color: color-mix(in srgb, var(--season-primary) 20%, var(--line));
    background: color-mix(in srgb, var(--season-soft) 30%, #ffffff);
}

body.theme-pride .cta-band,
body.theme-canada-day .cta-band,
body.theme-tamil-heritage .cta-band,
body.theme-custom .cta-band {
    background: var(--season-hero);
    border-top: 4px solid var(--season-accent);
}

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

.brand,
.footer-brand,
.admin-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    width: 72px;
    height: 58px;
    object-fit: contain;
}

.brand strong,
.footer-brand span,
.admin-logo span {
    display: block;
    color: var(--blue);
    font-weight: 800;
    line-height: 1;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.main-nav a,
.nav-cta,
.mobile-nav a {
    border-radius: 6px;
    color: #263247;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 13px;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.nav-cta {
    background: var(--blue);
    color: #ffffff;
}

.nav-cta:hover {
    background: #003767;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--blue);
    margin: 5px 0;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 20px 18px;
}

.market-hero {
    background:
        linear-gradient(135deg, rgba(198, 8, 18, 0.18), rgba(0, 75, 141, 0) 42%),
        linear-gradient(135deg, #003a70, var(--blue));
    color: #ffffff;
    padding: 46px 0 40px;
}

.market-hero-inner {
    display: grid;
    gap: 22px;
}

.market-hero-copy {
    display: block;
}

.market-hero-copy img {
    display: none;
}

.market-hero-copy p {
    color: #d9ebff;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 6px;
}

.market-hero h1 {
    max-width: 860px;
    margin: 0;
    font-family: Lora, Georgia, serif;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.08;
}

.market-search {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(180px, 0.8fr) minmax(170px, 0.75fr) auto;
    gap: 10px;
    align-items: end;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 20, 50, 0.22);
    padding: 14px;
}

.market-search-field span {
    color: #334155;
}

.market-search button {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: var(--red);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    padding: 11px 22px;
}

.market-search button:hover {
    background: var(--red-dark);
}

.market-hero-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.market-hero .hero-stats {
    margin-top: 0;
}

.market-hero .hero-stats span {
    color: #d9ebff;
}

.market-hero .hero-stats strong {
    color: #ffffff;
}

.market-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.market-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    padding: 9px 14px;
}

.market-actions .post-action {
    border-color: var(--orange);
    background: var(--orange);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 54px;
    background:
        linear-gradient(135deg, rgba(0, 75, 141, 0.08), rgba(198, 8, 18, 0.02) 50%, rgba(216, 154, 20, 0.12)),
        #ffffff;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 480px;
    height: 300px;
    border: 28px solid rgba(242, 106, 33, 0.15);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    gap: 52px;
    align-items: center;
}

.hero h1,
.page-hero h1,
.business-profile-header h1 {
    margin: 0;
    font-family: Lora, Georgia, serif;
    color: #111827;
    font-size: 58px;
    line-height: 1.04;
}

.hero p,
.page-hero p {
    max-width: 670px;
    color: #40506a;
    font-size: 18px;
    margin: 22px 0 0;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr auto;
    gap: 10px;
    align-items: end;
    margin-top: 34px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

label span,
.directory-form span,
.admin-edit-form span {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    padding: 10px 12px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 75, 141, 0.12);
}

.search-panel button,
.cta-inner a,
.directory-form button,
.login-card button,
.admin-button,
.admin-filters button,
.table-actions button,
.compact-form button {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: var(--red);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 18px;
}

.search-panel button:hover,
.cta-inner a:hover,
.directory-form button:hover,
.login-card button:hover,
.admin-button:hover,
.admin-filters button:hover,
.table-actions button:hover {
    background: var(--red-dark);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.hero-stats strong {
    color: var(--blue);
    font-size: 22px;
    margin-right: 6px;
}

.hero-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.hero-card img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 18px;
}

.hero-card-footer span {
    color: var(--muted);
    font-weight: 700;
}

.hero-card-footer a,
.text-link,
.outline-button,
.back-link,
.filter-panel a,
.admin-panel a {
    color: var(--blue);
    font-weight: 800;
}

.section {
    padding: 70px 0;
}

.soft-section {
    background: var(--surface-soft);
}

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

.section-heading h2,
.cta-inner h2,
.form-intro h2,
.business-detail h2,
.business-sidebar h2,
.admin-panel h2 {
    margin: 0;
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
}

.section-heading p,
.cta-inner p,
.form-intro p,
.muted {
    color: var(--muted);
    margin: 8px 0 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

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

.category-tile {
    min-height: 136px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-tile:hover,
.listing-card:hover {
    border-color: rgba(0, 75, 141, 0.34);
    box-shadow: 0 16px 34px rgba(22, 32, 51, 0.09);
    transform: translateY(-2px);
}

.category-tile span {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.category-tile strong {
    display: block;
    color: var(--red);
    font-size: 13px;
    margin-top: 8px;
}

.category-tile p {
    color: var(--muted);
    margin: 12px 0 0;
}

.market-category-section {
    padding-top: 52px;
}

.market-category-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.market-category-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px;
}

.market-category-row:nth-child(4n) {
    border-right: 0;
}

.category-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.category-copy strong,
.category-copy small {
    display: block;
}

.category-copy strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.2;
}

.category-copy small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-top: 3px;
}

.category-arrow {
    color: var(--red);
    font-size: 26px;
    line-height: 1;
}

.market-category-row:hover {
    background: #f8fbff;
}

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

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

.listing-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.listing-card-main {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    flex: 1;
    padding: 22px;
}

.listing-media {
    align-self: start;
}

.listing-content {
    min-width: 0;
}

.listing-avatar,
.profile-avatar,
.thumbnail-placeholder {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #ffffff;
    font-weight: 900;
}

.listing-thumb,
.profile-thumbnail,
.thumbnail-upload-row img,
.admin-business-cell img {
    display: block;
    border: 1px solid var(--line);
    background: #ffffff;
    object-fit: cover;
}

.listing-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.listing-meta strong {
    color: var(--gold);
}

.listing-meta em {
    color: var(--blue);
    font-style: normal;
}

.claim-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    padding: 5px 9px;
}

.listing-meta .claim-status {
    letter-spacing: 0;
    text-transform: none;
}

.claim-status.claimed,
.status-pill.claimed {
    border-color: #ccebd8;
    background: #e8f7ef;
    color: #075b3f;
}

.claim-status.unclaimed,
.status-pill.unclaimed {
    border-color: #ffe1a6;
    background: #fff5da;
    color: #8a5d00;
}

.listing-card h3 {
    margin: 10px 0 8px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
}

.listing-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #ffffff;
    line-height: 1;
    transform: translateY(1px);
}

.verified-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 1px rgba(16, 33, 61, 0.18));
}

.verified-icon circle {
    fill: #1877f2;
}

.verified-icon path {
    fill: #ffffff;
}

.verified-icon-large {
    width: 25px;
    height: 25px;
}

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

.listing-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #6b7587;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
}

.open-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: #edf2f7;
    color: #526175;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 6px 9px;
}

.open-status.open {
    background: #e7f7ef;
    color: #168046;
}

.open-status.closed {
    background: #fff1f2;
    color: #b91c1c;
}

.listing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line);
    color: #42526b;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 22px;
}

.listing-card-footer a {
    color: var(--blue);
}

.listing-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.listing-actions a {
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    padding: 8px 10px;
}

.listing-actions .whatsapp-action,
.whatsapp-row strong {
    color: #168046;
}

.market-list,
.listing-grid.directory {
    grid-template-columns: 1fr;
    gap: 12px;
}

.market-list .listing-card,
.listing-grid.directory .listing-card {
    min-height: 0;
}

.market-list .listing-card-main,
.listing-grid.directory .listing-card-main {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 16px;
}

.market-list .listing-thumb,
.listing-grid.directory .listing-thumb {
    width: 96px;
    height: 86px;
}

.market-list .listing-avatar,
.listing-grid.directory .listing-avatar {
    width: 86px;
    height: 86px;
    border-radius: 8px;
}

.market-list .listing-card h3,
.listing-grid.directory .listing-card h3 {
    font-size: 18px;
    margin-top: 7px;
}

.market-list .listing-card-footer,
.listing-grid.directory .listing-card-footer {
    padding: 11px 16px;
}

.city-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.city-link-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 15px 16px;
}

.city-link-grid strong {
    color: var(--ink);
}

.city-link-grid span {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.directory-search-band {
    background:
        linear-gradient(135deg, rgba(198, 8, 18, 0.16), rgba(0, 75, 141, 0) 46%),
        linear-gradient(135deg, #003a70, var(--blue));
    color: #ffffff;
    padding: 46px 0;
}

.directory-search-band h1 {
    margin: 0;
    font-family: Lora, Georgia, serif;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
}

.directory-search-band p {
    color: #d9ebff;
    margin: 10px 0 22px;
}

.directory-search {
    box-shadow: 0 16px 34px rgba(0, 20, 50, 0.2);
}

.discovery-search {
    grid-template-columns: minmax(240px, 1.3fr) minmax(170px, 0.75fr) minmax(160px, 0.7fr) auto auto;
}

.discovery-search .near-me-status {
    grid-column: 1 / -1;
    color: #d9ebff;
    font-weight: 800;
}

.near-me-button {
    min-height: 46px;
    border: 1px solid rgba(0, 75, 141, 0.2);
    border-radius: 6px;
    background: #eef7ff;
    color: var(--blue);
    font-size: 14px;
    font-weight: 900;
    padding: 11px 16px;
}

.autocomplete-shell {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.autocomplete-results.open {
    display: block;
}

.autocomplete-item {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: #ffffff;
    color: var(--ink);
    padding: 11px 13px;
    text-align: left;
}

.autocomplete-item:last-child {
    border-bottom: 0;
}

.autocomplete-item:hover,
.autocomplete-item:focus {
    background: var(--blue-soft);
}

.autocomplete-item span,
.autocomplete-item small {
    display: block;
}

.autocomplete-item span {
    font-weight: 900;
}

.autocomplete-item small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.city-search {
    grid-template-columns: minmax(220px, 1fr) auto;
}

.city-landing-hero .post-breadcrumb,
.city-landing-hero .post-breadcrumb a {
    color: #d9ebff;
}

.city-landing-hero .post-breadcrumb strong {
    color: #ffffff;
}

.marketplace-filter {
    display: grid;
    gap: 24px;
}

.filter-block {
    display: grid;
    gap: 2px;
}

.discovery-filter-form {
    gap: 12px;
}

.filter-block h2 {
    color: var(--ink);
    font-size: 17px;
    margin: 0 0 8px;
}

.filter-block a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 10px;
}

.filter-block a:hover,
.filter-block a.active {
    background: var(--blue-soft);
    color: var(--blue);
}

.filter-block span {
    color: var(--muted);
    font-size: 12px;
}

.discovery-filter-form label span {
    font-size: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.filter-checkbox input {
    width: auto;
    min-height: 0;
}

.filter-checkbox span {
    color: #334155;
    font-size: 13px;
    margin: 0;
}

.discovery-filter-form button {
    min-height: 40px;
}

.discovery-filter-form .near-me-status {
    color: var(--muted);
    font-weight: 800;
}

.clear-filters-link {
    justify-content: center;
    border: 1px dashed var(--line);
    color: var(--blue) !important;
}

.result-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.result-tools span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.all-category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.all-category-list .market-category-row:nth-child(4n) {
    border-right: 1px solid var(--line);
}

.all-category-list .market-category-row:nth-child(3n) {
    border-right: 0;
}

.post-page {
    background: #e8eff2;
    padding: 64px 0 76px;
}

.business-template-page {
    --business-theme: var(--blue);
}

.post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.post-breadcrumb a {
    color: var(--blue);
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
    align-items: start;
}

.post-main-card,
.seller-card,
.safety-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.post-main-card {
    padding: 12px;
}

.business-cover {
    min-height: 240px;
    border-radius: 5px;
    background-color: var(--business-theme);
    background-position: center;
    background-size: cover;
    margin-bottom: 14px;
}

.post-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 0 12px;
}

.post-title-row h1 {
    color: var(--ink);
    font-size: 30px;
    line-height: 1.15;
    margin: 0;
}

.business-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.business-open-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.business-open-line small {
    color: var(--muted);
    font-weight: 800;
}

.post-title-row p {
    color: var(--muted);
    margin: 6px 0 0;
}

.post-views {
    color: var(--business-theme);
    font-weight: 900;
    white-space: nowrap;
}

.post-media-frame {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
    background: #eef4f6;
    overflow: hidden;
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 430px;
    place-items: center;
    margin: 0;
}

.gallery-slide.active {
    display: grid;
}

.post-media-frame img,
.gallery-slide img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.gallery-slide figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: min(520px, calc(100% - 32px));
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 10px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.gallery-nav.prev {
    left: 14px;
}

.gallery-nav.next {
    right: 14px;
}

.post-thumb-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 4px 10px;
}

.post-thumb-strip button {
    flex: 0 0 94px;
    height: 72px;
    border: 2px solid #d7e1eb;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.post-thumb-strip button.active {
    border-color: var(--business-theme);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--business-theme) 16%, transparent);
}

.post-thumb-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-facts {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 14px;
}

.post-facts div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-facts span {
    color: var(--muted);
    min-width: 90px;
}

.post-facts a,
.post-facts strong {
    color: var(--ink);
    font-weight: 800;
}

.business-template-page .post-facts a,
.business-template-page .safety-card a,
.business-template-page .post-breadcrumb a,
.business-template-page .contact-row {
    color: var(--business-theme);
}

.business-template-page .seller-card {
    border-top: 4px solid var(--business-theme);
}

.business-template-page .seller-profile > span {
    background: var(--business-theme);
}

.post-description {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 18px;
}

.post-description h2 {
    color: var(--ink);
    font-size: 18px;
    margin: 0 0 8px;
}

.post-description p {
    color: #4b5565;
    margin: 0;
}

.post-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 104px;
}

.seller-card {
    overflow: hidden;
}

.seller-profile {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.seller-profile img,
.seller-profile > span {
    width: 58px;
    height: 58px;
    border-radius: 6px;
}

.seller-profile > span {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #ffffff;
    font-weight: 900;
}

.seller-profile h2 {
    color: var(--ink);
    font-size: 18px;
    margin: 0;
}

.seller-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.seller-profile p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin: 3px 0 0;
}

.contact-row {
    display: block;
    border-top: 1px solid var(--line);
    color: var(--blue);
    padding: 14px 16px;
}

.contact-row strong,
.contact-row span {
    display: block;
}

.contact-row strong {
    color: var(--ink);
}

.contact-row span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.call-row strong {
    color: var(--business-theme);
}

.business-hours-list {
    display: grid;
    gap: 8px;
}

.business-hours-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid #eef2f7;
    padding: 8px 0;
}

.business-hours-list div:last-child {
    border-bottom: 0;
}

.business-hours-list span {
    color: var(--muted);
    font-weight: 800;
}

.business-hours-list strong {
    color: var(--ink);
}

.business-video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.business-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.service-menu-list {
    display: grid;
    gap: 10px;
}

.service-menu-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 13px 14px;
}

.service-menu-list strong {
    color: var(--ink);
}

.service-menu-list p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.service-menu-list span {
    color: var(--business-theme);
    font-weight: 900;
    white-space: nowrap;
}

.safety-card,
.claim-card,
.quote-card,
.qr-card {
    padding: 18px;
}

.safety-card h2,
.claim-card h2,
.quote-card h2,
.qr-card h2 {
    color: var(--ink);
    font-size: 17px;
    margin: 0 0 8px;
}

.safety-card p,
.claim-card p,
.quote-card p,
.qr-card p {
    color: #5f6b7c;
    margin: 0 0 12px;
}

.safety-card a,
.claim-card a,
.qr-card a {
    color: var(--blue);
    font-weight: 800;
}

.claim-card,
.quote-card,
.qr-card {
    border: 1px solid color-mix(in srgb, var(--business-theme) 26%, var(--line));
    border-radius: 6px;
    background: #ffffff;
}

.business-template-page .claim-card a,
.business-template-page .qr-card a {
    color: var(--business-theme);
}

.quote-card form {
    display: grid;
    gap: 10px;
}

.quote-card label {
    display: grid;
    gap: 5px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.quote-card input,
.quote-card textarea {
    width: 100%;
}

.quote-card button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: var(--business-theme);
    color: #ffffff;
    font-weight: 900;
    padding: 10px 14px;
}

.social-contact-row strong {
    color: var(--business-theme);
}

.qr-card {
    text-align: center;
}

.qr-card img {
    display: block;
    width: 148px;
    height: 148px;
    margin: 12px auto;
}

.qr-print-page {
    display: grid;
    place-items: center;
}

.qr-print-card {
    display: grid;
    justify-items: center;
    width: min(100%, 460px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 30px;
}

.qr-print-logo {
    width: 78px;
    height: 78px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 12px;
}

.qr-print-card h1 {
    color: var(--ink);
    font-size: 28px;
    margin: 0 0 6px;
}

.qr-print-card p,
.qr-print-card small {
    color: var(--muted);
}

.qr-print-image {
    width: 280px;
    height: 280px;
    margin: 20px 0 14px;
}

.qr-print-card strong {
    color: var(--ink);
}

.qr-print-card button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 900;
    margin-top: 18px;
    padding: 10px 16px;
}

.post-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.post-section-heading h2 {
    margin: 0;
}

.post-section-heading a {
    border: 1px solid color-mix(in srgb, var(--business-theme) 34%, var(--line));
    border-radius: 6px;
    color: var(--business-theme);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 12px;
}

.business-update-feed {
    display: grid;
    gap: 14px;
}

.business-update-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    padding: 16px;
}

.business-updates-section > .business-update-card {
    margin-top: 14px;
}

.business-update-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.business-update-head img,
.business-update-head span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.business-update-head span {
    display: grid;
    place-items: center;
    background: var(--business-theme);
    color: #ffffff;
    font-weight: 900;
}

.business-update-head strong,
.business-update-head small {
    display: block;
}

.business-update-head small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.business-update-card p {
    color: #34445d;
    line-height: 1.65;
    margin: 0 0 14px;
}

.empty-update-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.business-update-image {
    display: block;
    width: 100%;
    max-height: 460px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
}

.google-review-overview {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.google-score-card strong {
    display: block;
    color: var(--ink);
    font-size: 46px;
    line-height: 1;
}

.google-score-card small,
.google-review-head small,
.google-review-rating-line small,
.review-sort-row span,
.google-review-actions small {
    color: var(--muted);
}

.google-stars,
.review-stars {
    color: #fbbc04;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.rating-breakdown {
    display: grid;
    gap: 8px;
}

.rating-breakdown-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    color: #34445d;
    font-size: 13px;
    font-weight: 800;
}

.rating-breakdown-row div {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef5;
}

.rating-breakdown-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fbbc04;
}

.rating-breakdown-row b {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.review-sort-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.review-sort-row a {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    padding: 8px 14px;
    text-decoration: none;
}

.review-sort-row a.active {
    border-color: #bcd5ff;
    background: #d8e8ff;
    color: #174ea6;
}

.google-review-list {
    display: grid;
    gap: 2px;
}

.google-review-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 18px 0 20px;
}

.google-review-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #174ea6;
    font-weight: 900;
}

.google-review-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.google-review-head strong,
.google-review-head small {
    display: block;
}

.google-review-head strong {
    color: var(--ink);
}

.reviewer-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.verified-customer-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e8f0fe;
    color: #174ea6;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    padding: 5px 8px;
}

.google-review-head > span {
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
}

.google-review-rating-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.google-review-title {
    display: block;
    color: var(--ink);
    margin-top: 10px;
}

.google-review-text,
.google-review-copy p,
.empty-review-card p {
    color: #34445d;
    line-height: 1.58;
    margin: 8px 0 0;
}

.google-review-copy summary {
    display: block;
    color: #34445d;
    line-height: 1.58;
    margin-top: 8px;
    cursor: pointer;
}

.google-review-copy summary::-webkit-details-marker {
    display: none;
}

.google-review-copy .more-label {
    color: #174ea6;
    font-weight: 900;
    margin-left: 4px;
}

.google-review-copy .more-label::before {
    content: "More";
}

.google-review-copy[open] .review-preview {
    display: none;
}

.google-review-copy[open] .more-label::before {
    content: "Less";
}

.review-photo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.review-photo-strip a {
    display: block;
    width: 126px;
    height: 96px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f8;
}

.review-photo-strip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-review-reply {
    border-left: 4px solid #d8e8ff;
    border-radius: 0 8px 8px 0;
    background: #f7fbff;
    margin-top: 14px;
    padding: 12px 14px;
}

.owner-review-reply strong,
.owner-review-reply small {
    display: block;
}

.owner-review-reply strong {
    color: var(--ink);
}

.owner-review-reply small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-top: 2px;
}

.owner-review-reply p {
    color: #34445d;
    margin: 8px 0 0;
}

.owner-reply-editor {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 14px;
    padding: 10px 12px;
}

.owner-reply-editor summary {
    color: var(--blue);
    cursor: pointer;
    font-weight: 900;
}

.owner-reply-editor form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.owner-reply-editor textarea {
    width: 100%;
    resize: vertical;
}

.owner-reply-editor button {
    width: fit-content;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 900;
    padding: 8px 13px;
}

.google-review-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.google-review-actions span {
    color: #5f6368;
    font-size: 23px;
    line-height: 1;
}

.review-flag-link,
.review-report-box summary,
.review-flagged-note {
    color: #5f6368;
    font-size: 13px;
    font-weight: 800;
}

.review-flag-link {
    margin-left: 8px;
    text-decoration: none;
}

.review-report-box {
    position: relative;
    margin-left: 8px;
}

.review-report-box summary {
    cursor: pointer;
    list-style: none;
}

.review-report-box summary::-webkit-details-marker {
    display: none;
}

.review-report-form {
    display: grid;
    gap: 10px;
    width: min(320px, 84vw);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    margin-top: 8px;
    padding: 12px;
}

.review-report-form label {
    display: grid;
    gap: 5px;
    font-size: 13px;
    font-weight: 800;
}

.review-report-form select,
.review-report-form textarea {
    width: 100%;
}

.review-report-form button {
    width: fit-content;
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: #34445d;
    color: #ffffff;
    font-weight: 900;
    padding: 8px 12px;
}

.review-submit-card,
.empty-review-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
}

.review-submit-card {
    margin-top: 18px;
}

.review-submit-card h3 {
    color: var(--ink);
    font-size: 18px;
    margin: 0 0 6px;
}

.review-form {
    display: grid;
    gap: 14px;
}

.review-star-field {
    gap: 8px;
}

.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 3px;
}

.star-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating-input label {
    color: #d4dbe5;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #fbbc04;
}

.review-photo-upload small {
    color: var(--muted);
}

.review-form button,
.review-admin-form button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--business-theme, var(--blue));
    color: #ffffff;
    font-weight: 900;
    padding: 10px 16px;
}

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

.cta-band {
    padding: 44px 0;
    background: var(--blue);
    color: #ffffff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-inner h2,
.cta-inner p {
    color: #ffffff;
}

.cta-inner a {
    background: #ffffff;
    color: var(--blue);
}

.cta-inner a:hover {
    background: #eef6ff;
}

.site-footer {
    background: #101827;
    color: #cbd5e1;
    padding: 54px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 34px;
}

.footer-brand img {
    width: 58px;
    height: 48px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    padding: 3px;
}

.footer-brand span {
    color: #ffffff;
}

.site-footer h2 {
    color: #ffffff;
    font-size: 15px;
    margin: 0 0 14px;
}

.site-footer a {
    display: block;
    color: #d8e8ff;
    margin: 8px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 40px;
    padding-top: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.account-auth-page {
    display: grid;
    place-items: center;
    min-height: 720px;
    background: rgba(0, 75, 141, 0.08);
    padding: 54px 20px;
}

.account-auth-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1fr);
    width: min(920px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.auth-benefits {
    display: grid;
    align-content: start;
    gap: 22px;
    border-right: 1px solid var(--line);
    padding: 34px;
}

.auth-benefits h1 {
    color: var(--ink);
    font-size: 30px;
    margin: 0;
}

.auth-benefits p {
    color: var(--muted);
    margin: -12px 0 8px;
}

.auth-benefit-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    color: #5f6b7c;
}

.auth-benefit-row span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 900;
}

.auth-form {
    display: grid;
    gap: 16px;
    padding: 34px;
}

.auth-form h2 {
    color: var(--ink);
    font-size: 24px;
    margin: 0;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f9fc;
    padding: 5px;
}

.auth-tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
    padding: 8px;
}

.auth-tabs button.active {
    background: #ffffff;
    color: var(--blue);
    box-shadow: 0 5px 16px rgba(22, 32, 51, 0.08);
}

.auth-panel-form,
.firebase-auth-panel {
    display: grid;
    gap: 14px;
}

.firebase-auth-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    padding: 16px;
}

.firebase-auth-panel p {
    text-align: left;
}

.firebase-auth-status {
    min-height: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.firebase-auth-status.success {
    color: var(--green);
}

.firebase-auth-status.error {
    color: var(--red);
}

.firebase-recaptcha {
    min-height: 78px;
}

.google-auth-button {
    background: #ffffff !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
}

.firebase-email-button {
    background: var(--blue) !important;
}

.auth-form button,
.owner-form button,
.owner-update-form button {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: var(--green);
    color: #ffffff;
    font-weight: 900;
    padding: 11px 18px;
}

.auth-form .auth-tabs button {
    min-height: 40px;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 8px;
}

.auth-form .auth-tabs button.active {
    background: #ffffff;
    color: var(--blue);
}

.auth-form p {
    color: var(--muted);
    text-align: center;
    margin: 0;
}

.auth-form a {
    color: var(--blue);
    font-weight: 900;
}

.account-shell {
    display: grid;
    gap: 24px;
}

.account-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.account-heading h1 {
    color: var(--ink);
    font-size: 34px;
    margin: 0;
}

.account-heading p {
    color: var(--muted);
    margin: 6px 0 0;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.account-actions a {
    font-weight: 900;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.account-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 22px;
}

.account-panel h2,
.owner-update-form h2 {
    color: var(--ink);
    font-size: 22px;
    margin: 0 0 16px;
}

.claim-business-summary {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.claim-business-summary strong {
    color: var(--ink);
    font-size: 20px;
}

.claim-business-summary span {
    color: var(--muted);
}

.owner-business-list,
.owner-post-list,
.owner-feed {
    display: grid;
    gap: 12px;
}

.owner-business-list article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.owner-post-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.owner-post-list p {
    color: #34445d;
    margin: 6px 0;
}

.owner-business-list img,
.owner-business-list span {
    width: 58px;
    height: 58px;
    border-radius: 8px;
}

.owner-business-list span {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #ffffff;
    font-weight: 900;
}

.owner-business-list strong,
.owner-business-list small {
    display: block;
}

.owner-business-list small,
.owner-post-list small {
    color: var(--muted);
    margin-top: 3px;
}

.owner-business-list a,
.owner-post-list a {
    color: var(--blue);
    font-weight: 900;
}

.compact-empty {
    padding: 28px;
}

.owner-preview {
    width: 92px;
    height: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

.owner-cover-preview {
    width: 100%;
    max-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

.owner-feed article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.owner-feed article > div strong,
.owner-feed article > div small {
    display: block;
}

.owner-feed p {
    color: #34445d;
}

.owner-feed img {
    width: 100%;
    max-height: 320px;
    border-radius: 8px;
    object-fit: cover;
}

.owner-feed button {
    border: 0;
    background: transparent;
    color: var(--red);
    font-weight: 900;
    padding: 10px 0 0;
}

.page-hero,
.business-profile-header {
    background:
        linear-gradient(135deg, rgba(0, 75, 141, 0.08), rgba(198, 8, 18, 0.04)),
        #ffffff;
    border-bottom: 1px solid var(--line);
}

.compact-hero {
    padding: 64px 0;
}

.hero-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--blue);
    font-weight: 800;
}

.directory-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.filter-panel,
.contact-card,
.business-sidebar,
.business-detail,
.form-intro,
.directory-form,
.login-card,
.admin-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.content-panel,
.info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.content-panel {
    padding: 30px;
}

.content-panel h2,
.info-card h2 {
    color: var(--ink);
    font-size: 22px;
    margin-bottom: 10px;
}

.content-panel h2:not(:first-child) {
    margin-top: 30px;
}

.content-panel p,
.legal-copy li {
    color: #40506a;
    font-size: 16px;
    line-height: 1.75;
}

.content-panel p + p {
    margin-top: 12px;
}

.content-sidebar {
    display: grid;
    gap: 16px;
}

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

.guide-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 22px;
}

.guide-card small,
.guide-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.guide-card h2 {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
    margin: 10px 0;
}

.guide-card p {
    color: #4b5565;
    line-height: 1.7;
    margin: 0;
}

.guide-hero .post-breadcrumb {
    margin-bottom: 18px;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.guide-article h2 {
    margin-top: 28px;
}

.guide-article h2:first-child {
    margin-top: 0;
}

.info-card {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.info-card p {
    color: var(--muted);
    line-height: 1.65;
}

.info-card a:not(.admin-button) {
    color: var(--blue);
    font-weight: 800;
}

.filter-panel {
    position: sticky;
    top: 104px;
    padding: 18px;
}

.filter-panel form,
.directory-form,
.login-card,
.admin-edit-form {
    display: grid;
    gap: 16px;
}

.filter-panel button {
    width: 100%;
}

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.results-toolbar h2 {
    margin: 0;
    font-size: 28px;
}

.results-toolbar p {
    margin: 2px 0 0;
    color: var(--muted);
}

.outline-button {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 14px;
}

.outline-button.compact {
    border-radius: 999px;
    font-size: 13px;
    padding: 8px 12px;
    text-decoration: none;
}

.outline-button.active-tool {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 900;
}

.directory-map-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 16px;
}

.directory-map-panel iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
    background: #eef3f8;
}

.directory-leaflet-map {
    width: 100%;
    height: 380px;
    background: #eef3f8;
}

.ad-slot {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    margin-bottom: 22px;
}

.ad-slot-global {
    width: min(1160px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.ad-slot-top {
    margin-top: 14px;
}

.ad-slot-footer {
    margin-bottom: 28px;
}

.ad-slot-leaderboard {
    margin-top: 24px;
    margin-bottom: 24px;
}

.ad-slot-sidebar {
    margin: 0;
}

.ad-slot-feed {
    grid-column: 1 / -1;
    margin: 4px 0;
}

.ad-label {
    color: #7b8798;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.ad-unit {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.ad-unit-image a,
.ad-unit-image img {
    display: block;
}

.ad-unit-image img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.ad-slot-sidebar .ad-unit-image img {
    max-height: 320px;
}

.ad-unit-code {
    display: grid;
    min-height: 90px;
    place-items: center;
    padding: 8px;
}

.ad-unit-code iframe,
.ad-unit-code ins {
    max-width: 100%;
}

.leaflet-popup-content a {
    color: var(--blue);
    font-weight: 900;
}

.directory-map-panel .map-panel-copy {
    padding: 14px 16px;
}

.directory-map-panel strong {
    color: var(--ink);
}

.directory-map-panel p {
    color: var(--muted);
    margin: 3px 0 0;
}

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

.city-landing-main {
    min-width: 0;
}

.city-landing-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 104px;
}

.flush-heading {
    margin-bottom: 16px;
}

.city-category-list {
    margin-bottom: 30px;
}

.city-listing-heading {
    margin-top: 6px;
}

.city-map-card {
    margin-bottom: 0;
}

.city-map-card iframe {
    height: 260px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pagination a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}

.pagination a.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
}

.compact-pagination {
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.compact-pagination a,
.compact-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 900;
}

.compact-pagination span {
    color: #9aa5b5;
}

.compact-pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.empty-state {
    border: 1px dashed #bac7d6;
    border-radius: var(--radius);
    padding: 44px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    color: var(--muted);
}

.empty-state a {
    color: var(--blue);
    font-weight: 800;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 32px;
    align-items: end;
    padding: 62px 0;
}

.profile-heading {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.profile-avatar {
    width: 82px;
    height: 82px;
    font-size: 26px;
}

.profile-thumbnail {
    width: 110px;
    height: 110px;
    border-radius: 8px;
}

.business-profile-header h1 {
    font-size: 44px;
}

.business-profile-header p {
    color: var(--muted);
    font-size: 18px;
    margin: 10px 0 0;
}

.contact-card {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.contact-card a {
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--blue);
    font-weight: 800;
    padding: 12px;
}

.business-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.business-detail,
.business-sidebar,
.form-intro,
.directory-form {
    padding: 24px;
}

.business-detail h2:not(:first-child) {
    margin-top: 32px;
}

.business-sidebar {
    display: grid;
    gap: 22px;
}

.business-sidebar p {
    color: var(--muted);
    margin: 8px 0 0;
}

.business-sidebar a {
    color: var(--blue);
    font-weight: 800;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tags span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: #34445d;
    font-weight: 700;
    padding: 8px 12px;
}

.business-template-page .service-tags span {
    border-color: color-mix(in srgb, var(--business-theme) 26%, var(--line));
    background: color-mix(in srgb, var(--business-theme) 9%, #ffffff);
    color: var(--business-theme);
}

.business-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.business-gallery a {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    overflow: hidden;
}

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

.post-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.post-gallery-grid a {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-gallery-grid a:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.13);
    transform: translateY(-2px);
}

.post-gallery-grid a:first-child:nth-last-child(n + 4) {
    grid-column: span 2;
    grid-row: span 2;
}

.form-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

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

.form-grid .full,
.checkbox-row {
    grid-column: 1 / -1;
}

.hours-editor {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    padding: 14px;
}

.hours-editor-heading {
    margin-bottom: 12px;
}

.hours-editor-heading strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
}

.hours-editor-heading p {
    margin: 4px 0 0;
}

.hours-grid {
    display: grid;
    gap: 9px;
}

.hours-row {
    display: grid;
    grid-template-columns: 120px minmax(108px, 1fr) minmax(108px, 1fr) 96px;
    gap: 9px;
    align-items: center;
}

.hours-row > strong {
    color: var(--ink);
    font-size: 14px;
}

.hours-row input[type="time"] {
    min-height: 40px;
}

.inline-checkbox {
    display: inline-flex;
    align-items: center;
    grid-column: auto;
    gap: 6px;
    margin: 0;
}

.inline-checkbox input {
    width: auto;
    min-height: 0;
}

.inline-checkbox span {
    margin: 0;
}

label small {
    display: block;
    color: var(--red);
    font-weight: 700;
    margin-top: 6px;
}

.flash {
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.flash.success {
    background: #e8f7ef;
    color: #075b3f;
}

.flash.error {
    background: #fdeceb;
    color: #8d1118;
}

.login-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(0, 75, 141, 0.92), rgba(198, 8, 18, 0.88)),
        #0f172a;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(300px, 480px) minmax(300px, 420px);
    gap: 46px;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 38px;
}

.login-brand {
    color: #ffffff;
}

.login-brand img {
    width: 220px;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 14px;
}

.login-brand h1 {
    margin: 24px 0 10px;
    font-size: 42px;
    line-height: 1.1;
}

.login-brand p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.login-card {
    padding: 28px;
    box-shadow: var(--shadow);
}

.login-card h2 {
    margin: 0;
    font-size: 28px;
}

.login-help {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.admin-body {
    min-height: 100vh;
    background: #f4f7fb;
    padding-left: 260px;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: 260px;
    background: #101827;
    color: #ffffff;
    padding: 22px;
}

.admin-logo {
    margin-bottom: 30px;
}

.admin-logo img {
    width: 58px;
    height: 48px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    padding: 3px;
}

.admin-logo span {
    color: #ffffff;
    font-size: 20px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    border-radius: 6px;
    color: #cbd5e1;
    font-weight: 800;
    padding: 12px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.admin-logout {
    margin-top: auto;
}

.admin-logout button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    font-weight: 800;
    padding: 12px;
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-topbar p {
    color: var(--muted);
    font-weight: 800;
    margin: 0;
}

.admin-topbar h1 {
    margin: 4px 0 0;
    font-size: 34px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    padding: 8px 14px 8px 8px;
}

.admin-user span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: #ffffff;
    font-weight: 900;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-stat-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 18px;
}

.admin-stat-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-stat-grid strong {
    display: block;
    color: var(--blue);
    font-size: 30px;
    line-height: 1.2;
    margin-top: 7px;
}

.compact-stats {
    margin: 18px 0;
}

.analytics-stats small,
.admin-stat-grid small {
    display: block;
    color: var(--muted);
    font-weight: 800;
    margin-top: 4px;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.admin-grid-two.align-start {
    align-items: start;
}

.admin-panel {
    padding: 22px;
}

.panel-heading,
.action-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
}

.admin-list strong,
.admin-table strong {
    display: block;
    color: var(--ink);
}

.admin-list small,
.admin-table small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.admin-list em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px auto auto;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-filters a {
    align-self: center;
}

.inline-filter select {
    min-width: 150px;
}

.email-guidance {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px;
    background: #f8fbff;
}

.email-guidance h3 {
    margin-bottom: 10px;
}

.email-guidance ol {
    margin-left: 20px;
    color: var(--muted);
    line-height: 1.7;
}

.email-template-box {
    display: grid;
    gap: 14px;
}

.email-template-box pre {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    white-space: pre-wrap;
    color: #1f2937;
    background: #f8fbff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.6;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.compact-table {
    min-width: 520px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.status-pill.published {
    background: #e8f7ef;
    color: #075b3f;
}

.status-pill.active {
    background: #e8f7ef;
    color: #075b3f;
}

.status-pill.paused {
    background: #edf1f7;
    color: #4b5565;
}

.status-pill.new {
    background: #fff5da;
    color: #8a5d00;
}

.status-pill.read {
    background: #e8f0fe;
    color: #174ea6;
}

.status-pill.pending {
    background: #fff5da;
    color: #8a5d00;
}

.status-pill.hidden {
    background: #ffe9ea;
    color: #9b111d;
}

.status-pill.verified {
    background: #e8f0fe;
    color: #174ea6;
}

.status-pill.reported {
    background: #fff1f2;
    color: #b91c1c;
}

.status-pill.approved {
    background: #e8f7ef;
    color: #075b3f;
}

.status-pill.rejected {
    background: #ffe9ea;
    color: #9b111d;
}

.status-pill.archived {
    background: #edf1f7;
    color: #4b5565;
}

.status-pill.reviewed {
    background: #e8f0fe;
    color: #174ea6;
}

.status-pill.dismissed {
    background: #edf1f7;
    color: #4b5565;
}

.claim-table a {
    color: var(--blue);
    font-weight: 800;
}

.claim-proof {
    max-width: 360px;
    white-space: normal;
}

.claim-review-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.review-admin-table p {
    color: #34445d;
    margin: 8px 0 0;
}

.admin-review-photo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.admin-review-photo-strip a {
    display: block;
    width: 58px;
    height: 48px;
    overflow: hidden;
    border-radius: 6px;
    background: #eef3f8;
}

.admin-review-photo-strip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-admin-form {
    display: grid;
    gap: 9px;
    min-width: 260px;
}

.review-report-list {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 12px;
}

.review-report-list > strong {
    color: var(--ink);
}

.report-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    padding: 12px;
}

.report-card strong,
.report-card small {
    display: block;
}

.report-card small {
    color: var(--muted);
    margin-top: 3px;
}

.report-review-form {
    display: grid;
    gap: 8px;
}

.report-review-form button {
    width: fit-content;
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 900;
    padding: 8px 12px;
}

.quote-admin-table p {
    color: #34445d;
    max-width: 520px;
    margin: 0;
}

.quote-admin-table a {
    color: var(--blue);
    font-weight: 800;
}

.ad-admin-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.ad-edit-form textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.55;
}

.ad-type-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ad-type-tabs label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #f8fbff;
}

.ad-type-tabs input {
    width: 18px;
    min-height: 18px;
}

.ad-type-tabs span {
    margin: 0;
}

.ad-upload-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 14px;
}

.ad-image-preview {
    display: grid;
    gap: 10px;
}

.ad-image-preview img {
    width: 100%;
    max-height: 190px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    object-fit: contain;
}

.checkbox-field {
    align-self: end;
    min-height: 46px;
}

.ad-placement-guide {
    display: grid;
    gap: 10px;
}

.ad-placement-guide div {
    display: grid;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #f8fbff;
}

.ad-placement-guide strong {
    color: var(--ink);
}

.ad-placement-guide small {
    color: var(--muted);
}

.ad-placement-guide code {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.ad-admin-cell {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.ad-admin-cell img,
.ad-admin-cell > span {
    width: 88px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fbff;
}

.ad-admin-cell img {
    object-fit: contain;
}

.ad-admin-cell > span {
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.ad-admin-table {
    min-width: 1040px;
}

.quote-status-form {
    display: grid;
    gap: 8px;
    min-width: 160px;
    margin-top: 10px;
}

.quote-status-form button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 900;
    padding: 8px 10px;
}

.owner-quote-list {
    display: grid;
    gap: 14px;
}

.owner-quote-list article {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
}

.owner-quote-list strong,
.owner-quote-list small {
    display: block;
}

.owner-quote-list small {
    color: var(--muted);
    margin-top: 3px;
}

.owner-quote-list p {
    color: #34445d;
    margin: 0;
}

.quote-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quote-actions a,
.quote-actions button {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 10px;
}

.quote-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-admin-form {
    gap: 22px;
}

.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.theme-choice-card {
    display: grid;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    padding: 15px;
}

.theme-choice-card.active {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 75, 141, 0.12);
}

.theme-choice-card input {
    width: 18px;
    min-height: 18px;
}

.theme-choice-card strong {
    color: var(--ink);
}

.theme-choice-card small {
    color: var(--muted);
    font-weight: 700;
}

.theme-swatch {
    display: block;
    width: 100%;
    height: 38px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--blue), var(--red), var(--green));
}

.theme-swatch-default,
.theme-swatch-auto {
    background: linear-gradient(90deg, var(--blue), var(--red), var(--green));
}

.theme-swatch-pride {
    background: linear-gradient(90deg, #e11d48, #f59e0b, #16a34a, #2563eb, #7c3aed);
}

.theme-swatch-canada-day {
    background: linear-gradient(90deg, #c60812, #ffffff, #c60812);
    border: 1px solid var(--line);
}

.theme-swatch-tamil-heritage {
    background: linear-gradient(90deg, #c60812, #d89a14, #004b8d);
}

.theme-swatch-custom {
    background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
}

.theme-custom-panel {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 18px;
}

.theme-custom-panel h3 {
    color: var(--ink);
    margin: 0;
}

.theme-live-preview {
    display: grid;
    gap: 10px;
    border: 1px solid color-mix(in srgb, var(--preview-primary) 30%, var(--line));
    border-radius: 8px;
    background: var(--preview-soft);
    padding: 16px;
}

.theme-live-preview span {
    width: fit-content;
    border-radius: 999px;
    background: var(--preview-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 10px;
    text-transform: uppercase;
}

.theme-live-preview strong {
    color: var(--preview-primary);
    font-size: 20px;
}

.theme-live-preview button {
    width: fit-content;
    border: 0;
    border-radius: 6px;
    background: var(--preview-accent);
    color: #ffffff;
    font-weight: 900;
    padding: 9px 12px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    display: flex;
    gap: 8px;
}

.table-actions select {
    width: 132px;
    min-height: 38px;
}

.table-actions button {
    min-height: 38px;
    padding: 8px 12px;
}

.admin-edit-form {
    max-width: 980px;
}

.admin-edit-form.compact-form {
    max-width: none;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
}

.checkbox-row span {
    margin: 0;
}

.verification-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 16px;
}

.verification-panel > strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    margin-bottom: 6px;
}

.verification-panel p {
    margin-bottom: 12px;
}

.verification-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.verification-options .checkbox-row {
    grid-column: auto;
}

.upload-field > span {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

.thumbnail-upload-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 14px;
}

.thumbnail-upload-row img,
.thumbnail-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 8px;
}

.thumbnail-placeholder {
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #ffffff;
    font-weight: 900;
}

.remove-image {
    margin-top: 10px;
}

.compact-note {
    margin: 0 0 12px;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.gallery-preview-card {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 8px;
}

.gallery-preview-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
}

.gallery-preview-card span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 0;
}

.gallery-preview-card input {
    width: 16px;
    min-height: 16px;
}

.gallery-upload-row {
    display: grid;
    gap: 6px;
    border: 1px dashed #bac7d6;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.admin-business-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.admin-business-cell img,
.admin-business-cell span {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 6px;
}

.admin-business-cell span {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.admin-footer {
    color: var(--muted);
    font-size: 13px;
    margin-top: 28px;
}

@media (max-width: 980px) {
    .main-nav,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav.open {
        display: grid;
        gap: 4px;
    }

    .hero-grid,
    .profile-grid,
    .business-detail-grid,
    .form-layout,
    .directory-layout,
    .post-layout,
    .content-layout,
    .city-landing-layout,
    .account-auth-card,
    .account-grid,
    .login-shell,
    .admin-grid-two {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 44px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .market-search {
        grid-template-columns: 1fr 1fr;
    }

    .discovery-search {
        grid-template-columns: 1fr 1fr;
    }

    .market-search .wide,
    .market-search button {
        grid-column: 1 / -1;
    }

    .market-category-list,
    .city-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-category-row:nth-child(4n) {
        border-right: 1px solid var(--line);
    }

    .market-category-row:nth-child(2n) {
        border-right: 0;
    }

    .all-category-list .market-category-row:nth-child(3n),
    .all-category-list .market-category-row:nth-child(4n) {
        border-right: 1px solid var(--line);
    }

    .all-category-list .market-category-row:nth-child(2n) {
        border-right: 0;
    }

    .category-grid,
    .category-grid.wide,
    .listing-grid,
    .listing-grid.compact,
    .guide-card-grid,
    .listing-grid.directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-list,
    .listing-grid.directory {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
    }

    .post-sidebar {
        position: static;
    }

    .city-landing-sidebar {
        position: static;
    }

    .auth-benefits {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .account-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-body {
        padding-left: 0;
    }

    .admin-sidebar {
        position: static;
        width: auto;
    }

    .admin-main {
        padding: 22px;
    }

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

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .nav-shell {
        min-height: 72px;
    }

    .brand img {
        width: 58px;
        height: 48px;
    }

    .brand small {
        display: none;
    }

    .hero,
    .market-hero,
    .directory-search-band,
    .post-page,
    .section,
    .compact-hero {
        padding: 44px 0;
    }

    .hero h1,
    .market-hero h1,
    .page-hero h1,
    .business-profile-header h1 {
        font-size: 34px;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-card {
        padding: 18px;
    }

    .market-hero-copy,
    .market-hero-bottom,
    .market-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-search,
    .discovery-search,
    .market-category-list,
    .ad-type-tabs,
    .city-link-grid {
        grid-template-columns: 1fr;
    }

    .market-category-row,
    .market-category-row:nth-child(2n),
    .market-category-row:nth-child(4n),
    .all-category-list .market-category-row:nth-child(2n),
    .all-category-list .market-category-row:nth-child(3n),
    .all-category-list .market-category-row:nth-child(4n) {
        border-right: 0;
    }

    .hero-card-footer,
    .section-heading,
    .cta-inner,
    .results-toolbar,
    .result-tools,
    .post-title-row,
    .post-section-heading,
    .review-actions,
    .footer-bottom,
    .admin-topbar,
    .panel-heading,
    .action-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading h2,
    .cta-inner h2,
    .form-intro h2,
    .business-detail h2,
    .business-sidebar h2,
    .admin-panel h2 {
        font-size: 28px;
    }

    .google-review-overview {
        grid-template-columns: 1fr;
    }

    .google-review-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
    }

    .google-review-avatar {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .review-photo-strip a {
        width: calc(50% - 3px);
        height: auto;
        aspect-ratio: 4 / 3;
    }

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

    .market-hero .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 10px;
    }

    .market-hero .hero-stats span {
        display: grid;
        gap: 2px;
    }

    .market-hero .hero-stats strong {
        margin-right: 0;
    }

    .market-actions {
        width: 100%;
    }

    .market-actions a {
        width: 100%;
    }

    .directory-search-band h1 {
        font-size: 34px;
    }

    .post-media-frame {
        min-height: 260px;
    }

    .gallery-slide {
        min-height: 260px;
    }

    .business-cover {
        min-height: 170px;
    }

    .post-gallery-grid a:first-child:nth-last-child(n + 4) {
        grid-column: auto;
        grid-row: auto;
    }

    .post-title-row h1 {
        font-size: 26px;
    }

    .post-views {
        white-space: normal;
    }

    .category-grid,
    .category-grid.wide,
    .listing-grid,
    .listing-grid.compact,
    .listing-grid.directory,
    .guide-card-grid,
    .form-grid,
    .footer-grid,
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .listing-card-main {
        grid-template-columns: 58px 1fr;
    }

    .market-list .listing-card-main,
    .listing-grid.directory .listing-card-main {
        grid-template-columns: 72px 1fr;
    }

    .listing-avatar {
        width: 50px;
        height: 50px;
    }

    .listing-thumb,
    .market-list .listing-thumb,
    .listing-grid.directory .listing-thumb {
        width: 58px;
        height: 58px;
    }

    .market-list .listing-avatar,
    .listing-grid.directory .listing-avatar {
        width: 58px;
        height: 58px;
    }

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

    .listing-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .hours-row > strong,
    .hours-row .inline-checkbox {
        grid-column: 1 / -1;
    }

    .business-hours-list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .compact-pagination {
        justify-content: center;
    }

    .compact-pagination a,
    .compact-pagination span,
    .compact-pagination strong {
        width: 100%;
    }

    .account-auth-page {
        min-height: auto;
        padding: 28px 14px;
    }

    .account-auth-card {
        border-radius: 6px;
    }

    .auth-benefits,
    .auth-form {
        padding: 22px;
    }

    .auth-benefits h1,
    .account-heading h1 {
        font-size: 28px;
    }

    .account-actions,
    .account-actions a {
        width: 100%;
    }

    .account-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .owner-business-list article {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .owner-business-list article a {
        grid-column: 2;
    }

    .owner-business-list img,
    .owner-business-list span {
        width: 52px;
        height: 52px;
    }

    .profile-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .table-actions,
    .table-actions form {
        flex-direction: column;
        align-items: stretch;
    }

    .table-actions select {
        width: 100%;
    }
}

@media print {
    .site-header,
    .site-footer,
    .qr-print-card button {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .qr-print-page {
        min-height: 100vh;
        padding: 0;
    }

    .qr-print-card {
        border: 0;
        box-shadow: none;
    }
}
