:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --accent: #f59e0b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --radius: 24px;
}

body.theme-default {
    background: var(--bg);
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

body.theme-default .main-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #f1f5f9;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.theme-default .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

body.theme-default .nav-links-desktop {
    display: flex;
    gap: 22px;
    align-items: center;
}

body.theme-default .nav-links-desktop a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

body.theme-default .nav-links-desktop a:hover {
    color: var(--primary);
}

body.theme-default .header-search-wrap {
    flex: 1;
    max-width: 520px;
}

body.theme-default .search-bar {
    display: flex;
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    align-items: center;
    gap: 8px;
}

body.theme-default .search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 12px;
    gap: 10px;
}

body.theme-default .search-bar input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    padding: 10px 0;
}

body.theme-default .search-bar button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-classic-primary,
.btn-primary {
    background: var(--primary);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-classic-primary:hover,
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-classic-outline {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-classic-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-soft);
}

.premium-hero {
    position: relative;
    padding: 96px 0 120px;
    background: #ffffff;
    overflow: hidden;
}

.hero-bg-accents .accent-1 {
    position: absolute;
    inset: auto auto 0 0;
    width: 55%;
    height: 75%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, transparent 70%);
    filter: blur(90px);
    transform: translate(-15%, -15%);
}

.hero-bg-accents .accent-2 {
    position: absolute;
    inset: auto 0 0 auto;
    width: 45%;
    height: 70%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.10) 0%, transparent 70%);
    filter: blur(90px);
    transform: translate(15%, -15%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 0 0 18px;
    color: var(--text-primary);
}

.hero-title span {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    margin: 0 auto 28px;
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 600;
}

.hero-search-glass {
    max-width: 760px;
    margin: 0 auto 18px;
    display: flex;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    gap: 10px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 0 12px;
}

.search-input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px 0;
}

.hero-search-btn {
    border: none;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 18px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: #1e293b;
}

.hero-quick-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 800;
    margin-top: 10px;
}

.hero-quick-cats a {
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-quick-cats a:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.2);
    background: #ffffff;
}

.stats-glass-bar {
    margin-top: -44px;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #f1f5f9;
    border-radius: 26px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid #f1f5f9;
}

.stat-text .val {
    display: block;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.stat-text .lbl {
    display: block;
    font-weight: 800;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.home-section {
    padding: 72px 0;
}

.grey-bg-modern {
    background: var(--bg-soft);
}

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

.header-left .sub {
    margin: 0 0 10px;
    font-weight: 900;
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.header-left h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.view-all-premium {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.view-all-premium:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-soft);
}

.premium-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.cat-card-modern {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.cat-card-modern:hover {
    border-color: rgba(37, 99, 235, 0.25);
}

.cat-card-modern .icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cat-card-modern .info {
    flex: 1;
    min-width: 0;
}

.cat-card-modern .name {
    display: block;
    font-weight: 900;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 4px;
}

.cat-card-modern .count {
    display: block;
    font-weight: 800;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cat-card-modern .arrow {
    color: var(--text-muted);
}

.premium-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.premium-listing-card {
    display: block;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.premium-listing-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
}

.row-logo-modern {
    width: 100%;
    height: 180px;
    background: var(--bg-soft);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-logo-placeholder-modern {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-info {
    padding: 18px;
}

.pl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.pl-badge.city {
    background: var(--bg-soft);
    color: var(--text-secondary);
    border: 1px solid #f1f5f9;
}

.pl-badge.category {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.pl-info h3 {
    margin: 0 0 12px;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.25;
}

.pl-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: 12px;
}

.pl-rating {
    color: var(--accent);
    font-weight: 900;
}

.pl-reviews {
    color: var(--text-muted);
    font-weight: 800;
    font-size: 12px;
}

.pl-action {
    font-weight: 900;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.premium-cta-box {
    border-radius: 26px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-content h2 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
}

.cta-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-header-modern {
    text-align: center;
    padding: 54px 0 32px;
}

.page-header-modern h1 {
    margin: 0 0 10px;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.page-header-modern p {
    margin: 0 auto;
    max-width: 720px;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.7;
    font-size: 16px;
}

.modern-form-container {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin: 0 auto 72px;
    max-width: 920px;
}

.form-alert {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    background: var(--bg-soft);
    color: var(--text-secondary);
    font-weight: 700;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.form-alert.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.form-alert.error {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

.form-section-title {
    margin: 26px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 900;
    font-size: 16px;
    color: var(--text-primary);
}

.form-row-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group-modern label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.form-group-modern .req {
    color: #ef4444;
}

.form-group-modern input,
.form-group-modern select,
.form-group-modern textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text-primary);
    font-weight: 600;
    outline: none;
}

.form-group-modern input:focus,
.form-group-modern select:focus,
.form-group-modern textarea:focus {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.35);
}

.btn-form-submit {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    font-weight: 900;
    cursor: pointer;
    margin-top: 10px;
}

.btn-form-submit:hover {
    background: var(--primary-hover);
}

@media (max-width: 768px) {
    .form-row-modern {
        grid-template-columns: 1fr;
    }
    .page-header-modern h1 {
        font-size: 34px;
    }
}

.listing-classic-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 40px 0;
    margin-bottom: 36px;
}

.listing-classic-header h1 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.listing-summary {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 600;
}

.company-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.w-100 {
    width: 100%;
}

.sidebar-card h3 {
    margin: 0 0 14px;
    font-weight: 900;
    font-size: 16px;
    color: var(--text-primary);
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-soft);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 13px;
}

.sidebar-links a:hover {
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--primary);
    background: #ffffff;
}

.sidebar-links a.active {
    background: var(--primary);
    color: #ffffff;
}

.sidebar-links a.active .badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.sidebar-links .badge {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.phone-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
}

.phone-link:hover {
    border-color: rgba(37, 99, 235, 0.25);
    background: #ffffff;
}

.phone-num {
    font-weight: 900;
    color: var(--text-primary);
}

.phone-type {
    font-weight: 900;
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.12);
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.filter-label {
    display: block;
    margin: 12px 0 8px;
    font-weight: 900;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.filter-select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text-primary);
    font-weight: 700;
    outline: none;
}

.filter-select:focus {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.35);
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 13px;
}

.filter-check input {
    width: 18px;
    height: 18px;
}

.classic-list-view-modern {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.classic-row-card-modern {
    display: flex;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.classic-row-card-modern:hover {
    border-color: rgba(37, 99, 235, 0.25);
}

.classic-row-card-modern .row-logo-modern {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classic-row-card-modern .row-logo-modern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.row-details-modern {
    flex: 1;
    min-width: 0;
}

.row-details-modern a {
    color: inherit;
    text-decoration: none;
}

.row-details-modern a:hover {
    color: var(--primary);
}

.row-rating-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.row-actions-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.listing-content-wrap {
    padding-bottom: 80px;
}

.header-flex-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.row-details-modern h3 {
    margin: 0 0 8px;
    font-weight: 900;
    font-size: 18px;
    color: var(--text-primary);
}

.row-meta-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pl-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon {
    color: var(--primary);
    opacity: 0.9;
}

.company-info-main {
    flex: 1;
    min-width: 0;
}

.listing-grid-main {
    width: 100%;
}

.no-results-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 44px 22px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 44px;
    margin-bottom: 14px;
    opacity: 0.6;
}

.no-results-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
}

.no-results-card p {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.7;
}

.row-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.row-badge.city {
    background: var(--bg-soft);
    color: var(--text-secondary);
    border: 1px solid #f1f5f9;
}

.row-badge.category {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.row-badge.verified {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.row-rating-modern .stars {
    color: var(--accent);
}

.row-rating-modern .score {
    font-weight: 900;
    color: var(--text-primary);
}

.row-rating-modern .count {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
}

.row-address-modern {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}

.btn-row-action {
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    color: var(--text-primary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.pagination-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-secondary);
}

.pagination-btn:hover:not(.disabled) {
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--primary);
    background: var(--bg-soft);
}

.pagination-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--text-secondary);
    background: #ffffff;
}

.page-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.classic-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 18px 0;
    margin: 0;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
}

.classic-breadcrumb a {
    text-decoration: none;
    color: var(--text-secondary);
}

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

.company-detail-page {
    padding-bottom: 80px;
}

.company-hero {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.company-hero-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

@media (max-width: 768px) {
    .company-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-actions {
        margin-left: 0;
    }
}

.company-logo-wrap {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder-large {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 52px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hero-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
}

.hero-badges .badge.city {
    background: var(--bg-soft);
    color: var(--text-secondary);
    border: 1px solid #f1f5f9;
}

.hero-badges .badge.cat {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero-badges .badge.verified {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.company-name {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
}

.hero-rating .stars {
    color: var(--accent);
    font-size: 16px;
}

.hero-rating .score {
    font-weight: 900;
    color: var(--text-primary);
}

.hero-rating .count {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 12px;
}

.hero-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.btn-hero-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    min-width: 160px;
}

.btn-hero-cta small {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.75;
}

.btn-hero-cta:hover {
    background: #1e293b;
}

.company-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    margin-bottom: 18px;
}

.company-card h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    gap: 14px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.info-label {
    display: block;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.description-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
    border-left: 4px solid var(--primary);
    border-radius: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 600;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
    color: var(--text-secondary);
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
}

.tag:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.2);
    background: #ffffff;
}

.tag::before {
    content: '#';
    margin-right: 6px;
    color: var(--text-muted);
    font-weight: 900;
}

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

.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
    font-weight: 800;
    color: var(--text-secondary);
}

.hour-row.today {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 10px 25px -15px rgba(37, 99, 235, 0.25);
}

.hour-row.open-now.today {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.hour-row.closed-now.today {
    background: #fef2f2;
    border-color: #fee2e2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.status-pill.open {
    background: rgba(5, 150, 105, 0.10);
    border: 1px solid rgba(5, 150, 105, 0.20);
    color: #065f46;
}

.status-pill.closed {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.20);
    color: #991b1b;
}

.hour-row .time {
    color: var(--text-primary);
    font-weight: 900;
}

.hour-row .day {
    font-weight: 900;
    color: var(--text-primary);
}

.hour-row.closed {
    background: #fef2f2;
    border-color: #fee2e2;
}

.hour-row.closed .day,
.hour-row.closed .time {
    color: #991b1b;
}

.hour-row.open-now.today .day,
.hour-row.open-now.today .time {
    color: #065f46;
}

.map-static {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    background: var(--bg-soft);
    aspect-ratio: 16 / 9;
}

.map-static img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.map-leaflet {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    background: var(--bg-soft);
    width: 100%;
    height: 360px;
}

.map-leaflet .leaflet-control-attribution {
    font-size: 11px;
    color: var(--text-muted);
}

.map-attrib {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.map-embed {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    background: var(--bg-soft);
}

.map-embed iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.coord-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.coord-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
}

.coord-label {
    font-weight: 900;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.coord-value {
    font-weight: 900;
    color: var(--text-primary);
    font-size: 13px;
}

.map-missing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    background: var(--bg-soft);
}

.map-missing-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #f1f5f9;
}

.map-missing-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.map-missing-text strong {
    font-weight: 900;
    color: var(--text-primary);
}

.map-missing-text span {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 13px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.15);
    flex-shrink: 0;
}

.review-meta {
    flex: 1;
    min-width: 0;
}

.review-meta strong {
    display: block;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
}

.review-meta span {
    display: block;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.review-stars {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 1px;
}

.review-body {
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.75;
}

.review-form-card {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.review-form-card h3 {
    margin: 0 0 12px;
    font-weight: 900;
    color: var(--text-primary);
    font-size: 16px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.review-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.review-field .req {
    color: #ef4444;
}

.review-field input,
.review-field select,
.review-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text-primary);
    font-weight: 600;
    outline: none;
}

.review-field input:focus,
.review-field select:focus,
.review-field textarea:focus {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.35);
}

.ai-answer h2 {
    margin: 0 0 10px;
}

.ai-answer-text {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 650;
    line-height: 1.75;
}

.ai-answer-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ai-fact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 12px;
}

.ai-answer-updated {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-soft);
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 14px;
}

.faq-q {
    font-weight: 900;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.9;
    flex: 0 0 auto;
}

.faq-item[open] .faq-q::after {
    transform: rotate(-135deg);
}

.faq-a {
    color: var(--text-secondary);
    font-weight: 650;
    line-height: 1.7;
    margin-top: 8px;
}

.directory-page {
    padding: 80px 0 120px;
    background: #f8fafc;
    min-height: 80vh;
}

.directory-header {
    text-align: center;
    margin-bottom: 64px;
}

.directory-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.directory-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

.directory-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 56px;
    padding: 0 20px;
    position: sticky;
    top: 100px;
    z-index: 10;
}

.directory-index .index-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
}

.directory-index .index-link:hover {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.18);
}

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

.directory-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    scroll-margin-top: 160px;
}

.directory-section:hover {
    border-color: rgba(37, 99, 235, 0.18);
}

.letter-heading,
.section-letter {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.letter-heading::after,
.section-letter::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #f1f5f9;
}

.directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.directory-list li {
    margin: 0;
}

.directory-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.directory-list a:hover {
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateX(6px);
}

.cat-count,
.item-count {
    font-size: 12px;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.directory-list a:hover .cat-count,
.directory-list a:hover .item-count {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 992px) {
    .directory-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .directory-columns {
        grid-template-columns: 1fr;
    }
    .directory-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .review-form-row {
        grid-template-columns: 1fr;
    }
    .map-embed iframe {
        height: 300px;
    }
}

@media (max-width: 1024px) {
    .company-content-grid {
        grid-template-columns: 1fr;
    }
    body.theme-default .header-search-wrap {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    body.theme-default .nav-links-desktop,
    body.theme-default .header-search-wrap {
        display: none;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .premium-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
