/* Flooring Contractor Directory - Hardwood Showroom Theme */

:root {
    /* Colors — Hardwood Showroom Palette */
    --background: hsl(40, 30%, 96%);
    --foreground: hsl(20, 25%, 10%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(20, 25%, 10%);
    --primary: hsl(20, 45%, 30%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(40, 35%, 93%);
    --secondary-foreground: hsl(20, 25%, 10%);
    --muted: hsl(40, 25%, 94%);
    --muted-foreground: hsl(25, 12%, 45%);
    --accent: hsl(35, 70%, 50%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 72%, 55%);
    --border: hsl(35, 20%, 86%);
    --ring: hsl(20, 45%, 30%);
    --radius: 0.75rem;
    --success: hsl(145, 55%, 34%);
    --warning: hsl(38, 92%, 50%);
    --container-max: 1280px;
    --container-padding: 1rem;
    --card-image-height: 96px;
    --hero-image-height: 180px;
    --carousel-image-height: 240px;
    --carousel-image-height-mobile: 180px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: hsl(20, 45%, 24%);
}

button {
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.main-content {
    flex: 1;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--foreground);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: hsl(20, 45%, 24%);
    border-color: hsl(20, 45%, 24%);
    color: var(--primary-foreground);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: var(--muted);
    color: var(--foreground);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
    border-color: transparent;
}

.btn-ghost:hover {
    background-color: var(--secondary);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
}

.btn-icon {
    padding: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    justify-content: center;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-success {
    background-color: hsl(145, 55%, 90%);
    color: hsl(145, 55%, 28%);
}

.badge-warning {
    background-color: hsl(38, 92%, 90%);
    color: hsl(38, 80%, 30%);
}

.badge-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
    background-color: hsl(20, 35%, 12%);
    border-bottom: 1px solid hsl(20, 35%, 20%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(38, 45%, 90%);
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover {
    color: hsl(35, 70%, 50%);
}

.logo-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
}

.logo-text-full {
    font-size: 1.125rem;
    font-weight: 700;
    display: none;
}

.logo-text-short {
    font-size: 1.125rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .logo-text-full { display: inline; }
    .logo-text-short { display: none; }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(35, 25%, 75%);
    transition: color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: hsl(35, 70%, 50%);
    background-color: hsl(20, 35%, 18%);
}

.nav-link.active {
    color: var(--accent);
    background-color: hsl(20, 35%, 18%);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    color: hsl(35, 25%, 80%);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

@media (min-width: 768px) {
    .nav-mobile { display: none !important; }
}

.mobile-menu-btn:hover {
    background-color: hsl(20, 35%, 20%);
    color: hsl(35, 70%, 50%);
}

.nav-mobile {
    display: none;
    padding: 0.75rem;
    border-top: 1px solid hsl(20, 35%, 20%);
    background-color: hsl(20, 35%, 15%);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile .nav-link {
    display: flex;
    width: 100%;
    padding: 0.625rem 0.75rem;
    color: hsl(35, 25%, 80%);
}

.nav-mobile .nav-link:hover {
    color: hsl(35, 70%, 50%);
    background-color: hsl(20, 35%, 20%);
}

/* ============================================================
   HERO / SEARCH SECTION
   ============================================================ */

.hero {
    background: linear-gradient(135deg, hsl(20, 45%, 30%, 0.08), var(--background), hsl(35, 70%, 50%, 0.06));
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: hsl(20, 45%, 30%, 0.12);
    color: var(--primary);
    border: 1px solid hsl(20, 45%, 30%, 0.25);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.65;
}

/* Search Form */
.search-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem;
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--foreground);
    background-color: var(--background);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(20, 45%, 30%, 0.15);
}

.form-input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.75;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.search-btn {
    padding: 0.625rem 1.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    height: 2.625rem;
}

.search-btn:hover {
    background-color: hsl(20, 45%, 24%);
    box-shadow: 0 4px 12px hsl(20, 45%, 30%, 0.35);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* ============================================================
   FILTERS & SORT BAR
   ============================================================ */

.filters-bar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 4rem;
    z-index: 90;
}

.filters-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.filter-select {
    padding: 0.375rem 2rem 0.375rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--foreground);
    background-color: var(--card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsl(20, 45%, 30%, 0.12);
}

.filter-chips {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3125rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background-color: var(--card);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: hsl(20, 45%, 30%, 0.05);
}

.filter-chip.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.results-meta {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

/* ============================================================
   MAIN LAYOUT (sidebar + grid)
   ============================================================ */

.content-area {
    padding: 2rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.75rem;
    align-items: start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    position: sticky;
    top: 8.5rem;
}

.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4375rem 0.5rem;
    border-radius: calc(var(--radius) * 0.75);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-item:hover {
    background-color: var(--secondary);
    color: var(--foreground);
}

.sidebar-item.active {
    background-color: hsl(20, 45%, 30%, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-count {
    background-color: var(--secondary);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.sidebar-item.active .sidebar-count {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Rating filter */
.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: calc(var(--radius) * 0.75);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rating-option:hover {
    background-color: var(--secondary);
}

.rating-option input[type="checkbox"] {
    accent-color: var(--primary);
    width: 1rem;
    height: 1rem;
}

.stars-display {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    color: var(--warning);
}

.rating-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ============================================================
   LISTINGS GRID
   ============================================================ */

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

.listings-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.view-btn {
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    transition: all 0.2s ease;
}

.view-btn.active,
.view-btn:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

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

.listings-grid.list-view {
    grid-template-columns: 1fr;
}

/* ============================================================
   CONTRACTOR CARD (kept as .laundromat-card for PHP compatibility)
   ============================================================ */

.laundromat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.laundromat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: hsl(20, 45%, 30%, 0.3);
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    height: var(--card-image-height);
    overflow: hidden;
    background: linear-gradient(135deg, hsl(28, 40%, 88%), hsl(38, 35%, 86%));
    flex-shrink: 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.laundromat-card:hover .card-image-wrapper img {
    transform: scale(1.04);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(28, 40%, 88%), hsl(38, 35%, 86%));
    color: hsl(25, 30%, 58%);
}

.card-badges {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.card-actions-top {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: flex;
    gap: 0.25rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.action-btn:hover {
    background: var(--card);
    color: var(--primary);
}

.action-btn.saved {
    color: hsl(0, 72%, 55%);
}

/* Card Body */
.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--card-foreground);
    line-height: 1.3;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.stars {
    display: flex;
    color: var(--warning);
}

.stars svg {
    width: 0.875rem;
    height: 0.875rem;
}

.rating-score {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
}

.rating-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.meta-item svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: var(--success);
}

.status-dot.closed {
    background-color: hsl(0, 72%, 55%);
}

.card-cta {
    display: flex;
    gap: 0.375rem;
}

/* List View Card Overrides */
.listings-grid.list-view .laundromat-card {
    flex-direction: row;
}

.listings-grid.list-view .card-image-wrapper {
    width: 120px;
    height: auto;
    min-height: 100%;
    flex-shrink: 0;
}

.listings-grid.list-view .card-body {
    flex: 1;
}

/* ============================================================
   FEATURED / SPONSORED CARDS
   ============================================================ */

.laundromat-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.laundromat-card.sponsored {
    border-color: var(--primary);
}

/* ============================================================
   RANKINGS INFO BOX
   ============================================================ */

.rankings-info {
    background: linear-gradient(135deg, hsl(20, 45%, 30%, 0.08), hsl(35, 70%, 50%, 0.08));
    border: 1px solid hsl(20, 45%, 30%, 0.2);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.rankings-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rankings-info-header h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--foreground);
}

.rankings-info-icon {
    color: var(--primary);
}

.rankings-info p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.rankings-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.ranking-factor {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
}

.ranking-factor svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--card);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: var(--secondary);
    color: var(--foreground);
    border-color: hsl(35, 20%, 78%);
}

.page-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   PROFILE / DETAIL PAGE
   ============================================================ */

.profile-hero {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.profile-hero-inner {
    display: grid;
    grid-template-columns: var(--hero-image-height) 1fr auto;
    gap: 1.5rem;
    align-items: start;
}

.profile-image-wrapper {
    width: var(--hero-image-height);
    height: var(--hero-image-height);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background: linear-gradient(135deg, hsl(28, 40%, 88%), hsl(38, 35%, 86%));
}

.profile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.profile-badges {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rating-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1;
}

.stars-large {
    display: flex;
    color: var(--warning);
}

.stars-large svg {
    width: 1.25rem;
    height: 1.25rem;
}

.review-count-large {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Profile Tabs */
.profile-tabs {
    border-bottom: 1px solid var(--border);
    background: var(--card);
    position: sticky;
    top: 4rem;
    z-index: 80;
}

.tabs-list {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-list::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted-foreground);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Profile Content */
.profile-content {
    padding: 2rem 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 9rem;
}

/* Info Cards */
.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.info-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--secondary);
}

.info-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-title svg {
    color: var(--primary);
}

.info-card-body {
    padding: 1.25rem;
}

/* Hours Table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--foreground);
    width: 40%;
}

.hours-table td:last-child {
    color: var(--muted-foreground);
}

.hours-table tr.today td {
    color: var(--primary);
    font-weight: 600;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.625rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--secondary);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.service-item svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */

.reviews-summary {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.overall-score {
    text-align: center;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1;
}

.score-stars {
    display: flex;
    justify-content: center;
    color: var(--warning);
    margin: 0.375rem 0;
}

.score-count {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
}

.rating-bar-label {
    color: var(--muted-foreground);
    width: 1.5rem;
    text-align: right;
}

.rating-bar-track {
    flex: 1;
    height: 0.375rem;
    background-color: var(--border);
    border-radius: 9999px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background-color: var(--warning);
    border-radius: 9999px;
    transition: width 0.6s ease;
}

.rating-bar-count {
    color: var(--muted-foreground);
    width: 2rem;
    text-align: right;
}

/* Individual Review */
.review-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.reviewer-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--foreground);
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-date {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.review-source {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: var(--secondary);
    border-radius: 9999px;
    color: var(--muted-foreground);
}

.review-rating {
    display: flex;
    color: var(--warning);
}

.review-text {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ============================================================
   PHOTO CAROUSEL / GALLERY
   ============================================================ */

.photo-carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex-shrink: 0;
    width: 280px;
    height: var(--carousel-image-height);
    border-radius: calc(var(--radius) * 0.75);
    overflow: hidden;
    scroll-snap-align: start;
    background: linear-gradient(135deg, hsl(28, 40%, 88%), hsl(38, 35%, 86%));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.carousel-item:hover {
    opacity: 0.9;
}

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

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

.photo-thumb {
    aspect-ratio: 4/3;
    border-radius: calc(var(--radius) * 0.75);
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, hsl(28, 40%, 88%), hsl(38, 35%, 86%));
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.photo-thumb:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

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

/* ============================================================
   MAP
   ============================================================ */

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--secondary);
}

.map-container iframe,
.map-container .map-embed {
    width: 100%;
    height: 280px;
    border: none;
    display: block;
}

/* ============================================================
   CONTACT CTA CARD
   ============================================================ */

.contact-card {
    background: linear-gradient(135deg, var(--primary), hsl(20, 45%, 24%));
    color: var(--primary-foreground);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.contact-card h3 {
    color: var(--primary-foreground);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.contact-card .btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-foreground);
    border-color: rgba(255, 255, 255, 0.35);
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.contact-card .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.55);
}

.contact-card .btn.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: hsl(20, 35%, 12%);
}

.contact-card .btn.btn-accent:hover {
    background: hsl(35, 70%, 44%);
    border-color: hsl(35, 70%, 44%);
}

/* ============================================================
   NEARBY SECTION
   ============================================================ */

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

/* ============================================================
   CITY / STATE LANDING PAGE
   ============================================================ */

.city-hero {
    background: linear-gradient(135deg, hsl(20, 45%, 30%, 0.08), var(--background), hsl(35, 70%, 50%, 0.06));
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.city-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.city-breadcrumb a {
    color: var(--primary);
}

.city-breadcrumb a:hover {
    color: hsl(20, 45%, 24%);
}

.city-breadcrumb-sep {
    color: var(--border);
}

.city-stats-bar {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ============================================================
   STATE DIRECTORY PAGE
   ============================================================ */

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

.state-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.125rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.state-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: hsl(20, 45%, 30%, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.state-card-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

/* Cities Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.625rem;
}

.city-link-card {
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.city-link-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: hsl(20, 45%, 30%, 0.04);
}

/* ============================================================
   BLOG / ARTICLES
   ============================================================ */

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

.article-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.article-image {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(28, 40%, 88%), hsl(38, 35%, 86%));
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.04);
}

.article-body {
    padding: 1.25rem;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.section-description {
    font-size: 1.0625rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   FEATURES / HOW IT WORKS
   ============================================================ */

.features-section {
    padding: 4rem 0;
    background: var(--secondary);
}

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

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(20, 45%, 30%, 0.12), hsl(35, 70%, 50%, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), hsl(20, 45%, 24%));
    color: var(--primary-foreground);
    text-align: center;
}

.cta-section h2 {
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-white {
    background: var(--primary-foreground);
    color: var(--primary);
    border-color: var(--primary-foreground);
}

.cta-section .btn-white:hover {
    background: hsl(40, 30%, 93%);
}

.cta-section .btn-outline-white {
    background: transparent;
    color: var(--primary-foreground);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-section .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    margin-top: auto;
    background: hsl(20, 35%, 12%);
    border-top: none;
    color: hsl(35, 25%, 80%);
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-brand .logo {
    margin-bottom: 0.875rem;
}

.footer-brand .logo span {
    color: hsl(38, 45%, 90%);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: hsl(35, 18%, 60%);
    margin-bottom: 1.25rem;
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(35, 70%, 50%);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: hsl(35, 25%, 70%);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: hsl(35, 70%, 50%);
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: hsl(20, 35%, 22%);
    color: hsl(35, 25%, 80%);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent);
    color: hsl(20, 35%, 12%);
    transform: translateY(-2px);
}

/* Footer States Section */
.footer-states {
    border-top: 1px solid hsl(20, 35%, 20%);
    padding: 1.5rem 0;
}

.footer-states-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(35, 70%, 50%);
    margin-bottom: 0.875rem;
}

.state-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.state-tag {
    padding: 0.3125rem 0.75rem;
    background: hsl(20, 35%, 20%);
    color: hsl(35, 25%, 80%);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.state-tag:hover {
    background: var(--accent);
    color: hsl(20, 35%, 12%);
}

/* Footer Bottom */
.footer-bottom {
    background: hsl(20, 35%, 9%);
    border-top: 1px solid hsl(20, 35%, 17%);
    padding: 1.125rem 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-content p {
    font-size: 0.875rem;
    color: hsl(35, 18%, 55%);
}

.footer-bottom-links {
    display: flex;
    gap: 1.25rem;
}

.footer-bottom-links a {
    font-size: 0.875rem;
    color: hsl(35, 18%, 55%);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* ============================================================
   LOADING STATES
   ============================================================ */

.skeleton {
    background: linear-gradient(90deg, var(--secondary) 25%, var(--muted) 50%, var(--secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 320px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-foreground);
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    color: var(--border);
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   ALERTS / NOTIFICATIONS
   ============================================================ */

.alert {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    border: 1px solid;
    font-size: 0.9rem;
}

.alert-info {
    background: hsl(20, 45%, 30%, 0.08);
    border-color: hsl(20, 45%, 30%, 0.2);
    color: hsl(20, 45%, 24%);
}

.alert-success {
    background: hsl(145, 55%, 34%, 0.08);
    border-color: hsl(145, 55%, 34%, 0.2);
    color: hsl(145, 55%, 28%);
}

.alert-warning {
    background: hsl(38, 92%, 50%, 0.1);
    border-color: hsl(38, 92%, 50%, 0.25);
    color: hsl(38, 70%, 30%);
}

.alert-error {
    background: hsl(0, 72%, 55%, 0.08);
    border-color: hsl(0, 72%, 55%, 0.2);
    color: hsl(0, 72%, 40%);
}

/* ============================================================
   MODAL / LIGHTBOX
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.modal {
    background: var(--card);
    border-radius: calc(var(--radius) * 1.5);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    padding: 0.375rem;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ============================================================
   TOOLTIPS
   ============================================================ */

.tooltip-wrapper {
    position: relative;
    display: inline-flex;
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--foreground);
    color: var(--background);
    font-size: 0.75rem;
    padding: 0.3125rem 0.625rem;
    border-radius: calc(var(--radius) * 0.5);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.tooltip-wrapper:hover .tooltip {
    opacity: 1;
}

/* ============================================================
   TABS (generic)
   ============================================================ */

.tabs {
    width: 100%;
}

.tab-panels {
    margin-top: 1.25rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */

.accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 0.75rem;
}

.accordion-trigger:hover {
    background-color: var(--secondary);
}

.accordion-trigger svg {
    color: var(--muted-foreground);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.accordion-item.open .accordion-trigger svg {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.25rem 1.125rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ============================================================
   PROGRESS / TRUST SIGNALS
   ============================================================ */

.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.trust-badge svg {
    color: var(--success);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: hsl(20, 45%, 24%);
}

.breadcrumb-sep {
    color: var(--border);
    font-size: 0.75rem;
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

.search-results-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--card);
}

.search-query-display {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin-top: 0.375rem;
}

.search-query-display span {
    font-weight: 700;
    color: var(--foreground);
}

/* Inline search (smaller version for results page) */
.search-inline {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   NO RESULTS
   ============================================================ */

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.no-results-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    color: var(--muted-foreground);
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

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

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-destructive { color: var(--destructive); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }

.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }

.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); }
.shadow { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.grid { display: grid; }
.hidden { display: none; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-center { text-align: center; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 hsl(20, 45%, 30%, 0.4); }
    70% { box-shadow: 0 0 0 10px hsl(20, 45%, 30%, 0); }
    100% { box-shadow: 0 0 0 0 hsl(20, 45%, 30%, 0); }
}

.animate-fade-in {
    animation: fadeIn 0.35s ease forwards;
}

.animate-slide-down {
    animation: slideDown 0.25s ease forwards;
}

/* ============================================================
   FOCUS VISIBLE (accessibility)
   ============================================================ */

:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .header,
    .footer,
    .filters-bar,
    .sidebar,
    .pagination,
    .card-actions-top {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .laundromat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 220px 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .profile-hero-inner {
        grid-template-columns: var(--hero-image-height) 1fr;
    }

    .profile-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */

@media (max-width: 768px) {
    :root {
        --container-padding: 0.875rem;
        --card-image-height: 80px;
        --carousel-image-height: var(--carousel-image-height-mobile);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 2rem 0 1.75rem;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .filters-bar {
        top: 4rem;
        overflow-x: auto;
    }

    .filters-inner {
        flex-wrap: nowrap;
        min-width: max-content;
        padding: 0 var(--container-padding);
    }

    .results-meta {
        display: none;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .listings-grid.list-view .card-image-wrapper {
        width: 100px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        gap: 0.875rem;
    }

    .profile-hero-inner {
        grid-template-columns: 1fr;
    }

    .profile-image-wrapper {
        width: 100%;
        height: 180px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }

    .overall-score {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .score-stars {
        justify-content: flex-start;
    }

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .carousel-item {
        width: 220px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-header {
        margin-bottom: 1.75rem;
    }

    .modal {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */

@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }

    .hero-title {
        font-size: 1.625rem;
    }

    .states-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .profile-meta-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-rating {
        flex-wrap: wrap;
    }

    .tabs-list {
        gap: 0;
    }

    .tab-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.8375rem;
    }

    .accordion-trigger {
        font-size: 0.875rem;
    }

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

    .cities-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        gap: 0.875rem;
    }

    .stat-number {
        font-size: 1.0625rem;
    }
}
