/**
 * Teleguide Yellow Pages - Stylesheet
 * Official Brand Colors derived from TeleGuide Brand Logo:
 * - Brand Green (#00A54F): Magnifying Glass Rim & Eye Emblem
 * - Brand Red (#FE0000 / #DC2626): 'T' and 'G' in TeleGuide
 * - Brand Blue (#0000FE / #1D4ED8): 'ele' and 'uide' in TeleGuide
 * - Brand Slate/Black (#111827): Classic Phone Handset & Bengali Tagline "যাকে চাই তাকে পাই, পলকে"
 */

:root {
    /* TeleGuide Brand Signature Colors */
    --brand-red: #fe0000;              /* TeleGuide Logo Red ('T' and 'G') */
    --brand-red-hover: #dc2626;        /* Red Hover */
    --brand-red-dark: #b91c1c;         /* Red Dark */
    --brand-red-light: #fee2e2;        /* Red Light */

    --brand-blue: #0000fe;             /* TeleGuide Royal Blue ('ele' and 'uide') */
    --brand-blue-hover: #1d4ed8;       /* Royal Blue Hover */
    --brand-blue-dark: #1e40af;        /* Royal Blue Dark */
    --brand-blue-light: #eff6ff;       /* Blue Light Tint */
    --brand-blue-ultralight: #f0f4ff;  /* Blue 50 Tint */

    --brand-green: #00a54f;            /* TeleGuide Magnifying Glass & Eye Emblem */
    --brand-green-hover: #008840;      /* Green Hover */
    --brand-green-dark: #006830;       /* Green Dark */
    --brand-green-light: #ecfdf5;      /* Green Light */
    --brand-green-ultralight: #f2fbf6; /* Green 50 */

    --brand-black: #111827;            /* Deep Handset Black */

    /* TeleGuide Signature Multi-Color Gradients */
    --brand-gradient: linear-gradient(135deg, #fe0000 0%, #0000fe 100%);
    --brand-triad: linear-gradient(90deg, #fe0000 0%, #0000fe 50%, #00a54f 100%);
    --btn-red-gradient: linear-gradient(135deg, #fe0000 0%, #dc2626 100%);
    --btn-blue-gradient: linear-gradient(135deg, #0000fe 0%, #1d4ed8 100%);
    --btn-green-gradient: linear-gradient(135deg, #00a54f 0%, #008840 100%);

    /* Core Theme Bindings */
    --primary: var(--brand-blue);
    --primary-hover: var(--brand-blue-hover);
    --primary-dark: var(--brand-blue-dark);
    --primary-light: var(--brand-blue-light);
    --primary-ultralight: var(--brand-blue-ultralight);

    --accent-red: var(--brand-red);
    --accent-blue: var(--brand-blue);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --border: #e2e8f0;
    --border-focus: var(--brand-blue);
    --success: #10b981;
    --success-light: #ecfdf5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #0000fe;
    --info-light: #eff6ff;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.09), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 14px 0 rgba(0, 0, 254, 0.28);
    --shadow-red: 0 4px 14px 0 rgba(254, 0, 0, 0.35);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-light: #64748b;
    --bg-page: #0b1120;
    --bg-surface: #1e293b;
    --bg-surface-alt: #334155;
    --border: #334155;
    --border-focus: var(--brand-green);
    --primary-light: #064e3b;
    --primary-ultralight: #022c22;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img, svg {
    vertical-align: middle;
}

/* Container - Fluid Liquidity */
.yp-container {
    width: 100%;
    max-width: min(100% - 2rem, 1360px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Bilingual text visibility control */
html[data-lang="en"] .lang-bn,
body[data-lang="en"] .lang-bn {
    display: none !important;
}
html[data-lang="en"] .lang-en,
body[data-lang="en"] .lang-en {
    display: inline !important;
}
html[data-lang="en"] .lang-bn-block,
body[data-lang="en"] .lang-bn-block {
    display: none !important;
}
html[data-lang="en"] .lang-en-block,
body[data-lang="en"] .lang-en-block {
    display: block !important;
}

html[data-lang="bn"] .lang-en,
body[data-lang="bn"] .lang-en {
    display: none !important;
}
html[data-lang="bn"] .lang-bn,
body[data-lang="bn"] .lang-bn {
    display: inline !important;
}
html[data-lang="bn"] .lang-en-block,
body[data-lang="bn"] .lang-en-block {
    display: none !important;
}
html[data-lang="bn"] .lang-bn-block,
body[data-lang="bn"] .lang-bn-block {
    display: block !important;
}

/* Language Switcher Component */
.yp-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 254, 0.05);
    border: 1.5px solid rgba(0, 0, 254, 0.25);
    border-radius: var(--radius-full);
    padding: 0.12rem 0.3rem;
    gap: 0.2rem;
}

.yp-lang-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.yp-lang-btn.active {
    background: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 254, 0.35);
}

.yp-lang-divider {
    color: var(--text-light);
    font-size: 0.72rem;
}

/* Top Announcement & Helpline Bar */
.yp-topbar {
    background: #0b1329; /* Deep Royal Slate */
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0.35rem 0;
    border-bottom: 2.5px solid transparent;
    }

.yp-topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.yp-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.yp-topbar-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.yp-topbar-admin-btn:hover {
    color: #ffffff;
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.yp-ticker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.yp-badge-pill {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-hover) 100%);
    color: #ffffff;
    font-weight: 800;
    padding: 0.12rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.yp-badge-brand .brand-t {
    color: #ffffff;
}

.yp-badge-brand .brand-g {
    color: #93c5fd;
}

.yp-topbar-tagline {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 500;
}

.yp-helpline-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.yp-helpline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    padding: 0.18rem 0.65rem;
    font-size: 0.76rem;
    transition: var(--transition);
}

.yp-helpline-pill:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
}

/* Navbar - Modern Crisp White Header */
.yp-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px -1px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
}

[data-theme="dark"] .yp-header {
    background: #0f172a;
    border-bottom-color: #1e293b;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

.yp-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.42rem 0;
}

.yp-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
}

.yp-logo-img {
    height: 44px;
    max-height: 48px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transition: var(--transition);
}

.yp-logo-img:hover {
    transform: scale(1.02);
}

/* Light / Dark Mode Logo Switching */
[data-theme="light"] .yp-logo-dark {
    display: none !important;
}
[data-theme="light"] .yp-logo-light {
    display: block !important;
}
[data-theme="dark"] .yp-logo-light {
    display: none !important;
}
[data-theme="dark"] .yp-logo-dark {
    display: block !important;
}

.yp-nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.yp-nav-link {
    font-weight: 600;
    color: #334155;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

[data-theme="dark"] .yp-nav-link {
    color: #f1f5f9;
}

.yp-nav-link i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.yp-nav-link:hover {
    color: var(--brand-blue);
    background: rgba(0, 0, 254, 0.05);
}

.yp-nav-link:hover i {
    color: var(--brand-blue);
}

.yp-nav-link.active {
    background: rgba(0, 0, 254, 0.08);
    color: var(--brand-blue);
    font-weight: 700;
}

.yp-nav-link.active i {
    color: var(--brand-blue);
}

/* Emergency Pill in Nav (Using Brand Red) */
.yp-nav-emergency {
    background: #fef2f2;
    color: var(--brand-red) !important;
    border: 1px solid #fecaca;
    font-weight: 700;
}

[data-theme="dark"] .yp-nav-emergency {
    background: #450a0a;
    color: #fca5a5 !important;
    border-color: #7f1d1d;
}

.yp-emergency-dot {
    width: 7px;
    height: 7px;
    background: var(--brand-red);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(254, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(254, 0, 0, 0);
    }
}

.yp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.yp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.yp-btn-primary {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-hover) 100%);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(254, 0, 0, 0.32);
}

.yp-btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-red-hover) 0%, var(--brand-red-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(254, 0, 0, 0.45);
    color: #ffffff;
}

.yp-btn-nav-action {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-hover) 100%);
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 0.42rem 1rem;
    font-size: 0.82rem;
    box-shadow: 0 3px 12px rgba(254, 0, 0, 0.32);
}

.yp-btn-nav-action:hover {
    background: linear-gradient(135deg, var(--brand-red-hover) 0%, var(--brand-red-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(254, 0, 0, 0.45);
    color: #ffffff;
}

.yp-btn-admin-nav {
    background: rgba(0, 0, 254, 0.04);
    border: 1.5px solid rgba(0, 0, 254, 0.25);
    color: var(--brand-blue);
    border-radius: var(--radius-full);
    padding: 0.38rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.yp-btn-admin-nav:hover {
    border-color: var(--brand-blue);
    color: #ffffff;
    background: var(--brand-blue);
    box-shadow: 0 3px 10px rgba(0, 0, 254, 0.28);
}

[data-theme="dark"] .yp-btn-admin-nav {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(0, 34, 224, 0.15);
}

[data-theme="dark"] .yp-btn-admin-nav:hover {
    background: var(--brand-blue);
    color: #ffffff;
}

.yp-btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-main);
}

.yp-btn-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(0, 0, 254, 0.04);
}
    color: var(--text-main);
}

.yp-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-ultralight);
}

.yp-theme-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #334155;
    transition: var(--transition);
}

[data-theme="dark"] .yp-theme-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.yp-theme-toggle:hover {
    background: #e2e8f0;
}

[data-theme="dark"] .yp-theme-toggle:hover {
    background: #334155;
}

.yp-mobile-menu-btn {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #334155;
    font-size: 1.05rem;
    transition: var(--transition);
}

[data-theme="dark"] .yp-mobile-menu-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

/* ==========================================================================
   Native App Drawer Navigation (Slide from Left - High Polish App Experience)
   ========================================================================== */
.yp-app-drawer, .yp-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-surface);
    box-shadow: 6px 0 35px rgba(0, 0, 0, 0.22);
    z-index: 2500;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.yp-app-drawer.open, .yp-mobile-drawer.open {
    transform: translateX(0);
}

.yp-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2490;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.yp-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.yp-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.yp-drawer-close {
    background: var(--bg-main);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.yp-drawer-close:hover {
    background: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
}

.yp-drawer-stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.85rem 1rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
}

.yp-drawer-stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.yp-drawer-stat-item strong {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
}

.yp-drawer-stat-item span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.yp-drawer-stat-div {
    width: 1px;
    height: 26px;
    background: var(--border);
}

.yp-drawer-lang-row {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.yp-drawer-lang-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yp-drawer-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.yp-drawer-group-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 0.85rem 0.25rem;
}

.yp-drawer-link, .yp-drawer-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.yp-drawer-link:hover, .yp-drawer-btn:hover, .yp-drawer-link.active {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.yp-drawer-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.yp-drawer-text {
    flex: 1;
}

.yp-drawer-pill-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
}

.yp-drawer-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(254, 0, 0, 0.25);
    animation: ypPulse 1.8s infinite;
}

@keyframes ypPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(254, 0, 0, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(254, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(254, 0, 0, 0); }
}

.yp-drawer-cta {
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
}

.yp-drawer-cta:hover {
    background: var(--brand-green);
    color: #ffffff !important;
}

.yp-drawer-footer {
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.yp-drawer-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, #059669 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(0, 165, 79, 0.25);
    transition: var(--transition);
}

.yp-drawer-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 165, 79, 0.35);
}

.yp-drawer-brand-sub {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Revamped Modern Hero Section (Scaled & TeleGuide Red & Royal Blue) */
.yp-hero {
    background: radial-gradient(100% 100% at 50% 0%, #f0f4ff 0%, #ffffff 85%);
    color: #0f172a;
    padding: 2rem 0 1.6rem;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .yp-hero {
    background: radial-gradient(100% 100% at 50% 0%, #172554 0%, #0b1329 100%);
    color: #f9fafb;
    border-bottom-color: #1e293b;
}

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

.yp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 254, 0.2);
    padding: 0.24rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 0.85rem;
}

[data-theme="dark"] .yp-hero-badge {
    background: #1e293b;
    border-color: rgba(96, 165, 250, 0.3);
    color: #fed7aa;
}

.yp-title-brand {
    display: inline-flex;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.yp-title-brand .brand-t {
    color: var(--brand-red);
}

.yp-title-brand .brand-g {
    color: var(--brand-blue);
}

.yp-hero-title {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

[data-theme="dark"] .yp-hero-title {
    color: #f9fafb;
}

.text-highlight {
    background: linear-gradient(135deg, #fe0000 0%, #0000fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.yp-hero-subtitle {
    font-size: 0.86rem;
    color: #475569;
    margin-bottom: 1.2rem;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

[data-theme="dark"] .yp-hero-subtitle {
    color: #94a3b8;
}

/* Master Dynamic Search Engine Bar (Sleek Compact Size with Red-Blue Focus) */
.yp-search-box-wrap {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: 0 10px 24px -5px rgba(0, 0, 254, 0.1), 0 0 0 1.5px rgba(0, 0, 254, 0.15);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 740px;
    margin: 0 auto;
    color: #1f2937;
    border: 1px solid #cbd5e1;
    transition: var(--transition);
}

[data-theme="dark"] .yp-search-box-wrap {
    background: #1e293b;
    border-color: #334155;
    color: #f9fafb;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(96, 165, 250, 0.3);
}

.yp-search-box-wrap:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 254, 0.18), 0 0 0 3px rgba(0, 0, 254, 0.18);
}

.yp-search-input-group {
    flex: 2.2;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
}

.yp-search-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--brand-blue);
    font-size: 0.95rem;
    pointer-events: none;
}

.yp-search-input {
    width: 100%;
    padding: 0.58rem 2.2rem 0.58rem 2.4rem;
    font-size: 0.88rem;
    border: none;
    outline: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-main);
    font-weight: 500;
}

.yp-search-input::placeholder {
    color: #94a3b8;
}

.yp-clear-search {
    position: absolute;
    right: 0.75rem;
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    color: #475569;
}

.yp-clear-search.visible {
    display: flex;
}

.yp-search-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

.yp-search-select-group {
    flex: 1.1;
    min-width: 150px;
    position: relative;
}

.yp-search-select {
    width: 100%;
    padding: 0.58rem 1.8rem 0.58rem 0.65rem;
    font-size: 0.82rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}

.yp-select-arrow {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    font-size: 0.78rem;
}

.yp-search-submit-btn {
    padding: 0.6rem 1.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-hover) 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(254, 0, 0, 0.35);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.yp-search-submit-btn:hover {
    background: linear-gradient(135deg, var(--brand-red-hover) 0%, var(--brand-red-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(254, 0, 0, 0.45);
    color: #ffffff;
}

/* Autocomplete Suggestion Dropdown */
.yp-suggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    text-align: left;
}

.yp-suggest-dropdown.active {
    display: block;
}

.yp-suggest-item {
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.yp-suggest-item:hover, .yp-suggest-item.highlighted {
    background: rgba(0, 0, 254, 0.05);
}

.yp-suggest-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.yp-suggest-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 254, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    font-size: 0.78rem;
}

.yp-suggest-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.86rem;
}

.yp-suggest-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.yp-suggest-badge {
    font-size: 0.7rem;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Quick Category Pills */
.yp-quick-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.15rem;
}

.yp-quick-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
}

.yp-pill-btn {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.yp-pill-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 254, 0.15);
}

.yp-pill-btn.active {
    background: var(--brand-blue);
    color: #ffffff !important;
    border-color: var(--brand-blue);
    box-shadow: 0 3px 10px rgba(0, 0, 254, 0.35);
}

.yp-pill-btn.active i {
    color: #ffffff !important;
}

/* ==========================================================================
   Home Page Category Blocks Grid (Uncrowded, Focused & Interactive)
   ========================================================================== */

.yp-home-categories-section {
    padding: 2.25rem 0 3.25rem;
    transition: opacity 0.25s ease;
}

.yp-home-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 1.85rem;
}

.yp-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(254, 0, 0, 0.08);
    color: var(--brand-red);
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(254, 0, 0, 0.2);
}

.yp-home-section-title {
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.yp-home-section-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.yp-category-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.yp-category-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.yp-category-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-blue) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.yp-category-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 254, 0.09);
    border-color: rgba(0, 0, 254, 0.25);
}

.yp-category-block:hover::before {
    opacity: 1;
}

.yp-cat-block-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.yp-cat-block-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 0, 254, 0.06);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.yp-category-block:hover .yp-cat-block-icon {
    background: var(--brand-blue);
    color: #ffffff;
    transform: scale(1.05);
}

.yp-category-block[data-category*="Doctor"] .yp-cat-block-icon,
.yp-category-block[data-category*="Hospital"] .yp-cat-block-icon,
.yp-category-block[data-category*="Diagnostic"] .yp-cat-block-icon {
    background: rgba(0, 165, 79, 0.08);
    color: var(--brand-green);
}
.yp-category-block[data-category*="Doctor"]:hover .yp-cat-block-icon,
.yp-category-block[data-category*="Hospital"]:hover .yp-cat-block-icon,
.yp-category-block[data-category*="Diagnostic"]:hover .yp-cat-block-icon {
    background: var(--brand-green);
    color: #ffffff;
}

.yp-category-block[data-category*="Emergency"] .yp-cat-block-icon {
    background: rgba(254, 0, 0, 0.08);
    color: var(--brand-red);
}
.yp-category-block[data-category*="Emergency"]:hover .yp-cat-block-icon {
    background: var(--brand-red);
    color: #ffffff;
}

.yp-cat-block-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.yp-category-block:hover .yp-cat-block-badge {
    background: rgba(0, 0, 254, 0.08);
    color: var(--brand-blue);
    border-color: rgba(0, 0, 254, 0.2);
}

.yp-cat-block-title-bn {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.2rem;
    transition: color 0.15s ease;
}

.yp-category-block:hover .yp-cat-block-title-bn {
    color: var(--brand-blue);
}

.yp-cat-block-title-en {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

.yp-cat-block-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.yp-cat-block-arrow {
    font-size: 0.72rem;
    color: var(--brand-blue);
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.yp-category-block:hover .yp-cat-block-arrow {
    transform: translateX(4px);
}

.yp-home-all-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-blue);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.yp-results-back-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .yp-category-blocks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .yp-category-block {
        padding: 0.85rem;
    }
    .yp-cat-block-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .yp-cat-block-title-bn {
        font-size: 0.88rem;
    }
    .yp-cat-block-title-en {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    .yp-home-all-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* Main Layout: Sidebar & Content (Compact & Balanced Spacing) */
.yp-main-section {
    padding: 1.25rem 0 3rem;
}

.yp-layout-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* Filters Sidebar */
.yp-filter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 4.5rem;
}

.yp-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.yp-filter-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.yp-reset-filters {
    font-size: 0.78rem;
    color: var(--brand-red);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.yp-reset-filters:hover {
    text-decoration: underline;
    color: var(--brand-red-dark);
}

.yp-filter-group {
    margin-bottom: 1.15rem;
}

.yp-filter-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.45rem;
}

.yp-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.yp-filter-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.32rem 0.55rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-main);
    transition: var(--transition);
}

.yp-filter-opt:hover {
    background: rgba(0, 0, 254, 0.04);
    color: var(--brand-blue);
}

.yp-filter-opt.active {
    background: rgba(0, 0, 254, 0.08);
    color: var(--brand-blue);
    font-weight: 700;
}

.yp-filter-opt-count {
    font-size: 0.7rem;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-sm);
}

.yp-filter-opt.active .yp-filter-opt-count {
    background: var(--brand-blue);
    color: #ffffff;
}

.yp-custom-select {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.yp-custom-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px rgba(0, 0, 254, 0.15);
}

/* Switch Toggle for Verified */
.yp-switch-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    user-select: none;
}

.yp-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.yp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.yp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 20px;
}

.yp-slider::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .yp-slider {
    background-color: var(--brand-blue);
}

input:checked + .yp-slider::before {
    transform: translateX(18px);
}

/* Content Area Toolbar (Compact) */
.yp-toolbar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    box-shadow: var(--shadow-sm);
}

.yp-results-count {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.yp-results-count strong {
    color: var(--text-main);
    font-weight: 800;
}

.yp-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.yp-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

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

.yp-view-btn {
    background: var(--bg-surface);
    border: none;
    padding: 0.38rem 0.65rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.85rem;
}

.yp-view-btn.active {
    background: rgba(0, 0, 254, 0.08);
    color: var(--brand-blue);
    font-weight: 700;
}

/* Active Filter Chips */
.yp-active-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.yp-chip {
    background: rgba(0, 0, 254, 0.06);
    color: var(--brand-blue);
    border: 1px solid rgba(0, 0, 254, 0.2);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.yp-chip-remove {
    cursor: pointer;
    color: var(--brand-red);
    font-weight: 800;
    font-size: 0.95rem;
}

.yp-chip-remove:hover {
    color: var(--brand-red-dark);
}

/* Directory Cards Grid (High Density, Sleek Card Width) */
.yp-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 0.95rem;
}

/* Directory Card Design - TeleGuide Red & Royal Blue Signature */
.yp-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-top: 3.5px solid #0000fe;
    }

.yp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -4px rgba(0, 0, 254, 0.12), 0 2px 6px -1px rgba(254, 0, 0, 0.06);
    border-color: rgba(0, 0, 254, 0.3);
}

.yp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    gap: 0.4rem;
}

.yp-card-category {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--brand-blue);
    background: rgba(0, 0, 254, 0.07);
    border: 1px solid rgba(0, 0, 254, 0.18);
    padding: 0.16rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yp-verified-badge {
    color: var(--brand-green);
    background: #ecfdf5;
    border: 1px solid rgba(0, 165, 79, 0.25);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.16rem 0.45rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Interactive Card Buttons: Bookmark, Share, Copy */
.yp-bookmark-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.8rem;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

[data-theme="dark"] .yp-bookmark-btn {
    background: #1e293b;
    border-color: #334155;
}

.yp-bookmark-btn:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
    transform: scale(1.1);
}

.yp-bookmark-btn.saved {
    color: var(--brand-red);
    border-color: #fecaca;
    background: #fef2f2;
}

.yp-share-card-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.78rem;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

[data-theme="dark"] .yp-share-card-btn {
    background: #1e293b;
    border-color: #334155;
}

.yp-share-card-btn:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: scale(1.1);
}

.yp-copy-phone-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    transition: var(--transition);
}

.yp-copy-phone-btn:hover {
    color: var(--brand-blue);
    background: rgba(0, 0, 254, 0.08);
}

.yp-card-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.32;
    margin-bottom: 0.2rem;
    transition: var(--transition);
}

.yp-card:hover .yp-card-title {
    color: var(--brand-blue);
}

.yp-card-subcat {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.yp-card-details {
    list-style: none;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    font-size: 0.8rem;
}

.yp-card-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-main);
}

.yp-card-details li i {
    width: 14px;
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

.yp-phone-highlight {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.2px;
}

[data-theme="dark"] .yp-phone-highlight {
    color: #f8fafb;
}

.yp-card-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    color: #f59e0b;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.yp-card-views {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: normal;
    margin-left: auto;
}

.yp-card-views i {
    color: var(--brand-blue);
}

/* Card Action Buttons (Royal Blue Call & Green WhatsApp) */
.yp-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}

.yp-card-actions .yp-btn {
    padding: 0.42rem 0.6rem;
    font-size: 0.78rem;
    width: 100%;
    border-radius: 7px;
}

.yp-btn-call {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-hover) 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 254, 0.25);
}

.yp-btn-call:hover {
    background: linear-gradient(135deg, var(--brand-blue-hover) 0%, var(--brand-blue-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 254, 0.35);
}

.yp-btn-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.yp-btn-whatsapp:hover {
    background: #1eb956;
    transform: translateY(-1px);
}

.yp-btn-quickview {
    grid-column: span 2;
    background: var(--bg-surface-alt);
    color: var(--text-main);
    border: 1px solid var(--border);
    font-size: 0.76rem;
    padding: 0.38rem 0.55rem;
    font-weight: 600;
    border-radius: 7px;
}

.yp-btn-quickview:hover {
    background: #eff6ff;
    color: var(--brand-blue);
    border-color: #93c5fd;
}

/* Compact List View Rows */
.yp-directory-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.yp-list-row {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.yp-list-row:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateX(3px);
}

.yp-list-info {
    flex: 2;
    min-width: 240px;
}

.yp-list-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Keyword Highlight Tag */
mark.highlight {
    background: #fecaca;
    color: #991b1b;
    font-weight: 800;
    padding: 0 0.2rem;
    border-radius: 3px;
}

/* Pagination */
.yp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.yp-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.yp-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

/* Modal Popup */
.yp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.yp-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.yp-modal {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 2rem;
    transform: scale(0.95);
    transition: all 0.25s ease;
}

.yp-modal-overlay.active .yp-modal {
    transform: scale(1);
}

.yp-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-surface-alt);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.yp-modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* Form Styles */
/* ==========================================================================
   Clean, Uncrowded Form Architecture (3-Section Visual Grouping & Modern Tiles)
   ========================================================================== */

.yp-form-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.yp-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.yp-form-section-step {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-blue) 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yp-form-section-title h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

.yp-form-section-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.15rem;
}

.yp-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.yp-form-group {
    margin-bottom: 0.85rem;
}

.yp-form-group:last-child {
    margin-bottom: 0;
}

.yp-form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-main);
    line-height: 1.3;
}

.yp-field-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(0, 0, 254, 0.08);
    color: var(--brand-blue);
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.yp-form-label .required {
    color: var(--brand-red);
    font-weight: 800;
    margin-left: 2px;
}

.yp-form-label .optional {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: normal;
    margin-left: 3px;
}

.yp-form-control {
    width: 100%;
    height: 42px;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.yp-form-control:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 0, 254, 0.15);
}

textarea.yp-form-control {
    height: auto;
    min-height: 72px;
    resize: vertical;
    padding: 0.65rem 0.85rem;
    line-height: 1.45;
}

/* File Upload Compact Dropzone */
.yp-file-upload-compact {
    position: relative;
}

.yp-file-upload-box {
    border: 1.5px dashed rgba(0, 0, 254, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    text-align: center;
    background: rgba(0, 0, 254, 0.02);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yp-file-upload-box:hover {
    border-color: var(--brand-blue);
    background: rgba(0, 0, 254, 0.06);
}

.yp-file-input {
    display: block;
    width: 100%;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 0.35rem;
}

.yp-file-input::file-selector-button {
    padding: 0.35rem 0.75rem;
    margin-right: 0.65rem;
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
}

.yp-file-input::file-selector-button:hover {
    background: var(--brand-blue-hover);
}

.yp-file-preview-img {
    margin-top: 0.5rem;
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: none;
}

/* Category Checkbox Grid & Clean Single-Language Tiles */
.yp-cat-select-help {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.yp-category-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 0.45rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface-alt);
}

.yp-cat-check-tile {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.15s ease;
    user-select: none;
}

.yp-cat-check-tile:hover {
    border-color: var(--brand-blue);
    background: rgba(0, 0, 254, 0.04);
}

.yp-cat-check-tile input[type="checkbox"] {
    accent-color: var(--brand-blue);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.yp-cat-check-tile:has(input:checked) {
    border-color: var(--brand-blue);
    background: rgba(0, 0, 254, 0.06);
    color: var(--brand-blue);
}

.yp-cat-check-icon {
    font-size: 0.85rem;
    color: var(--brand-blue);
    flex-shrink: 0;
}

.yp-cat-check-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

/* Mobile Filter Bar & Collapsible Trigger */
.yp-mobile-filter-bar {
    display: none;
}

.yp-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--brand-green);
    color: var(--brand-green-dark);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.yp-mobile-filter-btn:hover, .yp-mobile-filter-btn.active {
    background: var(--brand-green);
    color: #ffffff;
}

.yp-filter-count-badge {
    background: var(--brand-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
}

/* Toast Notification */
.yp-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1f2937;
    color: #ffffff;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--primary);
}

.yp-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Stats Ribbon */
/* ==========================================================================
   Clean, Elegant, Uncrowded Footer & Slim Stats Ribbon
   ========================================================================== */

.yp-stats-bar {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
}

[data-theme="dark"] .yp-stats-bar {
    background: #0f172a;
    border-color: #1e293b;
}

.yp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
    align-items: center;
}

.yp-stat-item {
    border-right: 1px solid var(--border);
    padding: 0 0.5rem;
}

.yp-stat-item:last-child {
    border-right: none;
}

.yp-stat-num {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.15rem;
}

.yp-stat-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Modern High-Contrast Clean Footer */
.yp-footer {
    background: #0a0f1d;
    color: #94a3b8;
    padding: 2.5rem 0 1.25rem;
    position: relative;
    border-top: 2.5px solid transparent;
    }

.yp-footer-brand-stripe {
    display: none;
}

.yp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.yp-footer-logo-img {
    max-height: 40px;
    max-width: 185px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
    display: block;
}

.yp-footer-tagline {
    font-size: 0.84rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 1rem;
    max-width: 320px;
}

.yp-footer-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--brand-red) 0%, #dc2626 100%);
    color: #ffffff !important;
    padding: 0.38rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(254, 0, 0, 0.25);
    transition: var(--transition);
}

.yp-footer-call-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 0, 0, 0.35);
}

.yp-footer-title {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.85rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.yp-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 2px;
}

.yp-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.82rem;
    padding: 0;
    margin: 0;
}

.yp-footer-links li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.4;
}

.yp-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.15s ease;
}

.yp-footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.yp-footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.82rem;
    padding: 0;
    margin: 0;
}

.yp-footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.yp-footer-contact-list i {
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.yp-footer-contact-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.yp-footer-contact-list a:hover {
    color: #38bdf8;
}

.yp-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
}

.yp-copyright a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.yp-copyright a:hover {
    color: #ffffff;
}

@media (max-width: 991px) {
    .yp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 640px) {
    .yp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .yp-stat-item:nth-child(2) {
        border-right: none;
    }
    .yp-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .yp-copyright {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }
}

/* Empty / No Results State */
.yp-empty-state {
    text-align: center;
    padding: 4.5rem 1.5rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 1rem 0;
}

.yp-empty-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.yp-empty-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.yp-empty-desc {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

/* Loading Skeleton Animation */
.yp-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .yp-layout-grid {
        grid-template-columns: 1fr;
    }
    .yp-mobile-filter-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
    }
    .yp-filter-card {
        display: none; /* Collapsible on tablet & mobile */
        position: static;
        margin-bottom: 1.5rem;
    }
    .yp-filter-card.yp-filter-open {
        display: block !important;
        animation: ypSlideDown 0.25s ease-out;
    }
    .yp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .yp-stat-item:nth-child(2) {
        border-right: none;
    }
    .yp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

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

@media (max-width: 992px) {
    .yp-nav-links {
        display: none;
    }
    .yp-mobile-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .yp-hero-title {
        font-size: clamp(1.6rem, 5vw, 2.1rem);
    }
    .yp-search-box-wrap {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius-lg);
        padding: 0.65rem;
        gap: 0.6rem;
    }
    .yp-search-divider {
        display: none;
    }
    .yp-search-input {
        height: 44px;
        font-size: 0.95rem;
    }
    .yp-search-select-group {
        border-top: 1px solid var(--border);
        padding-top: 0.5rem;
    }
    .yp-search-select {
        height: 42px;
        width: 100%;
    }
    .yp-search-submit-btn {
        width: 100%;
        height: 46px;
        justify-content: center;
        border-radius: var(--radius-md);
    }
    .yp-footer-grid {
        grid-template-columns: 1fr;
    }
    .yp-list-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .yp-list-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .yp-logo-img {
        height: 42px;
        max-width: 170px;
    }
    .yp-header-actions {
        gap: 0.35rem;
    }
    .yp-lang-btn {
        padding: 0.12rem 0.35rem;
        font-size: 0.72rem;
    }
    .yp-btn-nav-action {
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }
    .yp-btn-nav-action span.yp-btn-fulltext {
        display: none;
    }
    .yp-btn-nav-action span.yp-btn-shorttext {
        display: inline;
    }
    .yp-btn-admin-nav {
        padding: 0.4rem 0.6rem;
    }
    .yp-btn-admin-nav span.yp-btn-fulltext {
        display: none;
    }
    .yp-topbar-tagline {
        display: none;
    }
    .yp-helpline-secondary {
        display: none;
    }
    .yp-modal {
        padding: 1.25rem;
        max-width: min(100% - 1.5rem, 580px);
    }
    .yp-category-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Back to Top Button */
.yp-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-blue) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 254, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.25s ease;
}

.yp-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yp-back-to-top:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 20px rgba(254, 0, 0, 0.35);
}


/* ==========================================================================
   Mobile Bottom Navigation Bar & Mobile App Bottom-Sheet Modal
   ========================================================================== */
.yp-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    z-index: 950;
    padding: 0 0.5rem;
    align-items: center;
    justify-content: space-around;
}

html[data-theme="dark"] .yp-mobile-bottom-nav {
    background: rgba(30, 41, 59, 0.96);
    border-top-color: #334155;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
}

.yp-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    transition: var(--transition);
    flex: 1;
    max-width: 80px;
}

.yp-mobile-nav-item i {
    font-size: 1.15rem;
    line-height: 1;
    transition: var(--transition);
}

.yp-mobile-nav-item:hover, .yp-mobile-nav-item.active {
    color: var(--brand-blue);
}

.yp-mobile-nav-item.active i {
    color: var(--brand-blue);
    transform: translateY(-1px);
}

.yp-mobile-nav-cta {
    position: relative;
    top: -10px;
}

.yp-mobile-cta-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-blue) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(254, 0, 0, 0.4);
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

.yp-mobile-nav-cta:hover .yp-mobile-cta-btn {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 254, 0.45);
}

.yp-mobile-nav-call {
    color: var(--brand-green-dark);
}

.yp-mobile-nav-call i {
    color: var(--brand-green);
}

.yp-mobile-nav-badge-wrap {
    position: relative;
    display: inline-block;
}

.yp-mobile-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 64px !important;
    }
    .yp-mobile-bottom-nav {
        display: flex;
    }
    .yp-back-to-top {
        bottom: 74px !important;
        right: 16px !important;
    }
    .yp-modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    .yp-modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 92vh !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 1.25rem 1rem 2rem 1rem !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .yp-modal-overlay.active .yp-modal {
        transform: translateY(0) !important;
    }
    .yp-form-row-2 {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .yp-form-section {
        padding: 1rem 0.85rem;
    }
}


/* ==========================================================================
   TeleGuide V2: Premium Paid Partners Module, Listings Explorer & Authenticity Proof
   ========================================================================== */

/* 1. Premium Partners Module (Homepage & Listings) */
.yp-premium-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .yp-premium-section {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.07) 0%, rgba(15, 23, 42, 0) 100%);
    border-bottom-color: #334155;
}

.yp-premium-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.2) 100%);
    color: #b45309;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

html[data-theme="dark"] .yp-premium-spotlight-badge {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.yp-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.yp-premium-card {
    position: relative;
    background: var(--bg-surface);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.yp-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.18);
    border-color: #f59e0b;
}

.yp-prem-card-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 50%, var(--brand-blue) 100%);
}

.yp-prem-card-header {
    padding: 1.15rem 1.25rem 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.yp-prem-badges-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.yp-badge-crown {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.yp-badge-auth-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
    border: 1px solid rgba(0, 165, 79, 0.3);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.yp-prem-cat-tag {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-blue);
    background: rgba(0, 0, 254, 0.05);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.yp-prem-card-body {
    padding: 0 1.25rem 1.15rem 1.25rem;
    flex: 1;
}

.yp-prem-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.yp-prem-pubname {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.yp-prem-address {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.yp-prem-phone {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    color: var(--brand-green-dark);
    margin-bottom: 0.25rem;
}

.yp-prem-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--border);
    background: var(--bg-surface-alt);
}

.yp-prem-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    border-right: 1px solid var(--border);
}

.yp-prem-action-btn:last-child {
    border-right: none;
}

.yp-prem-btn-call {
    color: var(--brand-red);
}
.yp-prem-btn-call:hover {
    background: rgba(254, 0, 0, 0.08);
}

.yp-prem-btn-wa {
    color: #16a34a;
}
.yp-prem-btn-wa:hover {
    background: rgba(22, 163, 74, 0.08);
}

.yp-prem-btn-details {
    color: var(--brand-blue);
}
.yp-prem-btn-details:hover {
    background: rgba(0, 0, 254, 0.08);
}

/* 2. Listings Page Dedicated Header & Breadcrumbs */
.yp-listings-header-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.yp-listings-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.yp-listings-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.yp-listings-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}
.yp-listings-breadcrumb a:hover {
    color: var(--brand-blue);
}

.yp-crumb-sep {
    color: var(--border);
}

.yp-crumb-current {
    color: var(--brand-blue);
    font-weight: 700;
}

.yp-listings-page-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

.yp-listings-inline-search {
    flex: 1;
    max-width: 440px;
    min-width: 260px;
}

.yp-current-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
    font-size: 0.82rem;
}

.yp-filter-pill-active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 254, 0.08);
    color: var(--brand-blue);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.76rem;
}

.yp-filter-pill-active .yp-pill-remove {
    cursor: pointer;
    color: var(--brand-red);
    margin-left: 2px;
}

/* 3. Verification Document Upload Box Styling (Forms) */
.yp-doc-upload-box {
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    border: 1.5px dashed var(--border);
    background: var(--bg-surface-alt);
    transition: var(--transition);
}

.yp-doc-box-public {
    border-color: rgba(0, 165, 79, 0.35);
    background: rgba(0, 165, 79, 0.02);
}
.yp-doc-box-public:hover {
    border-color: var(--brand-green);
    background: rgba(0, 165, 79, 0.05);
}

.yp-doc-box-private {
    border-color: rgba(100, 116, 139, 0.35);
    background: rgba(100, 116, 139, 0.02);
}
.yp-doc-box-private:hover {
    border-color: #475569;
    background: rgba(100, 116, 139, 0.05);
}

.yp-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.45rem;
}

.yp-doc-badge-public {
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
    border: 1px solid rgba(0, 165, 79, 0.3);
}

.yp-doc-badge-private {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
}

html[data-theme="dark"] .yp-doc-badge-private {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

.yp-doc-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.35;
}

/* 4. Public Authenticity Document Modal Display */
.yp-authenticity-card {
    margin-top: 1.25rem;
    border: 1.5px solid rgba(0, 165, 79, 0.3);
    border-radius: var(--radius-md);
    background: rgba(0, 165, 79, 0.02);
    overflow: hidden;
}

.yp-auth-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(0, 165, 79, 0.06);
    border-bottom: 1px solid rgba(0, 165, 79, 0.18);
    gap: 0.5rem;
}

.yp-auth-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.yp-auth-card-body {
    padding: 1rem;
    text-align: center;
}

.yp-auth-preview-link {
    display: block;
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.yp-auth-preview-link:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 165, 79, 0.18);
    border-color: var(--brand-green);
}

.yp-auth-doc-image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #ffffff;
    display: block;
}

.yp-auth-zoom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Card Badges for Directory Grid */
.yp-card-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.yp-card-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 165, 79, 0.25);
}

/* Print Optimization */
@media print {
    .yp-topbar, .yp-header, .yp-hero, .yp-filter-card, .yp-toolbar, .yp-pagination, .yp-footer, .yp-modal-overlay, .yp-toast {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .yp-main-section {
        padding: 0 !important;
    }
    .yp-layout-grid {
        display: block !important;
    }
    .yp-directory-grid {
        display: block !important;
    }
    .yp-card {
        page-break-inside: avoid;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   TELEGUIDE MODERN DIRECTORY UI & ADVANCED COMPONENTS
   ========================================================================== */

/* 1. Main Directory Layout Grid */
.yp-layout-grid {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .yp-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* 2. Modern Sticky Filter Card */
.yp-filter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 5rem;
}

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

.yp-filter-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.yp-filter-group {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.yp-filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.yp-filter-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 3. Modern iOS / macOS Style Toggle Switches (Replaces raw classic checkboxes) */
.yp-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.yp-filter-toggle:hover {
    border-color: rgba(0, 0, 254, 0.25);
    background: rgba(0, 0, 254, 0.02);
}

.yp-toggle-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.yp-filter-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.yp-toggle-slider {
    position: relative;
    width: 38px;
    height: 22px;
    background-color: #cbd5e1;
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.yp-toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Checked state - Premium switch (Golden amber) */
.yp-filter-toggle:has(#ypFilterPremiumOnly:checked) {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.4);
}

.yp-filter-toggle:has(#ypFilterPremiumOnly:checked) .yp-toggle-slider,
#ypFilterPremiumOnly:checked + .yp-toggle-slider {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

#ypFilterPremiumOnly:checked + .yp-toggle-slider::before {
    transform: translateX(16px);
}

/* Checked state - Verified switch (Emerald green) */
.yp-filter-toggle:has(#ypFilterVerified:checked) {
    background: rgba(0, 165, 79, 0.08);
    border-color: rgba(0, 165, 79, 0.4);
}

.yp-filter-toggle:has(#ypFilterVerified:checked) .yp-toggle-slider,
#ypFilterVerified:checked + .yp-toggle-slider {
    background: linear-gradient(135deg, #00A54F, #059669);
}

#ypFilterVerified:checked + .yp-toggle-slider::before {
    transform: translateX(16px);
}

/* 4. Facet Lists (Categories & Locations) */
.yp-facet-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.yp-facet-list::-webkit-scrollbar {
    width: 4px;
}
.yp-facet-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.yp-filter-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.42rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-main);
    transition: all 0.15s ease;
}

.yp-filter-opt:hover {
    background: rgba(0, 0, 254, 0.06);
    color: var(--brand-blue);
}

.yp-filter-opt.active {
    background: rgba(0, 0, 254, 0.1);
    color: var(--brand-blue);
    font-weight: 700;
}

.yp-filter-opt.active::before {
    content: '✓ ';
    font-weight: 900;
    margin-right: 4px;
    color: var(--brand-blue);
}

.yp-filter-opt-count {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    padding: 0.12rem 0.5rem;
    border-radius: 12px;
}

.yp-filter-opt.active .yp-filter-opt-count {
    background: var(--brand-blue);
    color: #ffffff;
}

/* 5. Modern Toolbar & Segmented View Toggles */
.yp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.15rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.yp-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.yp-results-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.yp-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.yp-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.yp-sort-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.yp-select {
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yp-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 0, 254, 0.1);
}

.yp-view-toggle {
    display: inline-flex;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2px;
}

.yp-view-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.38rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.yp-view-btn:hover {
    color: var(--text-main);
}

.yp-view-btn.active {
    background: #ffffff;
    color: var(--brand-blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.yp-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yp-btn-icon:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(0, 0, 254, 0.04);
}

/* 6. Modern Directory Contact Cards (.yp-card) */
.yp-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Clean top color accent stripe */
.yp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-blue) 100%);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.yp-card.is-premium::before {
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.yp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 254, 0.1), 0 3px 8px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 254, 0.25);
}

.yp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    gap: 0.5rem;
}

.yp-card-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.yp-card-badges-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.yp-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.yp-card-pubname {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.yp-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed var(--border);
}

.yp-card-address-text,
.yp-card-email-text {
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--text-muted);
}


/* ==========================================================================
   Comprehensive Mobile App-First Polish (Max-Width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Hide topbar ticker on mobile for clean app header */
    .yp-topbar {
        display: none !important;
    }

    /* Sticky clean 56px app header */
    .yp-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: var(--bg-surface) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    }

    .yp-navbar {
        height: 56px !important;
        padding: 0 0.85rem !important;
    }

    .yp-logo-img {
        height: 38px !important;
        max-width: 160px !important;
    }

    /* Hide desktop actions in mobile header to eliminate crowding */
    .yp-header-actions .yp-btn-nav-action,
    .yp-header-actions .yp-btn-admin-nav {
        display: none !important;
    }

    .yp-header-actions {
        gap: 0.5rem !important;
    }

    .yp-mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: var(--radius-md);
        background: var(--bg-main);
        border: 1px solid var(--border);
        color: var(--text-main);
        font-size: 1.15rem;
        cursor: pointer;
        transition: var(--transition);
    }

    /* Horizontal swipeable touch-scrolling carousel for trending pills */
    .yp-quick-pills {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        padding: 0.35rem 0.25rem 0.65rem !important;
        gap: 0.5rem !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .yp-quick-pills::-webkit-scrollbar {
        display: none !important;
    }

    .yp-quick-label {
        flex-shrink: 0 !important;
    }

    .yp-pill-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Prevent bottom navigation bar from ever overlapping content */
    body {
        padding-bottom: 76px !important;
    }

    /* Fixed mobile bottom app bar */
    .yp-mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 62px !important;
        z-index: 2000 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid var(--border) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
    }

    html[data-theme="dark"] .yp-mobile-bottom-nav {
        background: rgba(15, 23, 42, 0.98) !important;
        border-top-color: #334155 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    .yp-back-to-top {
        bottom: 80px !important;
        right: 16px !important;
    }
}
