/**
 * BanhaCity.com Component Styles (components.css)
 * Cards, Hero Search, Badges, Buttons, Live Widgets, Zero-CLS Ad Containers
 */

/* Top Utility Bar */
.top-bar {
    background-color: var(--color-secondary);
    color: var(--text-inverse);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.widget-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
}

/* Header & Navbar */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.brand-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    transition: var(--transition);
}
.brand-logo:hover {
    transform: scale(1.02);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

/* Hero Section & Split Layout */
.hero-section {
    background: linear-gradient(180deg, #fff7ed 0%, var(--bg-body) 100%);
    padding: 3.5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .hero-section {
    background: linear-gradient(180deg, #1e293b 0%, var(--bg-body) 100%);
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-content-col {
    text-align: start;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
[data-theme="dark"] .hero-title { color: #f8fafc; }

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Full Live Video Background Hero Experience */
.hero-video-bg-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7rem 0 6rem;
    color: #fff;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center 35%;
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(15, 23, 42, 0.78) 0%, 
        rgba(15, 23, 42, 0.65) 50%, 
        rgba(15, 23, 42, 0.92) 100%
    );
    z-index: 2;
}

.hero-bg-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.hero-bg-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-bg-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism Floating Search Bar */
.hero-glass-search-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.hero-glass-search {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 15px rgba(249, 115, 22, 0.3) !important;
}

.hero-glass-input {
    color: #ffffff !important;
    background: transparent !important;
}
.hero-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
}

.badge-glass-tag {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
}
.badge-glass-tag:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Instant Search Autocomplete Dropdown */
.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% - 1.5rem);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    z-index: 99;
    overflow: hidden;
    text-align: start;
    animation: fadeInDropdown 0.2s ease-out;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.autocomplete-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.autocomplete-title {
    font-weight: 700;
    font-size: 0.95rem;
}
.autocomplete-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-inline-start: auto;
}

/* Search Bar Box */
.search-box-wrapper {
    max-width: 100%;
    position: relative;
}

.badge-tag {
    background: var(--border-color);
    color: var(--text-main);
    transition: var(--transition);
}
.badge-tag:hover {
    background: var(--color-primary);
    color: #fff;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.6rem 0.35rem 1.5rem;
    box-shadow: var(--shadow-lg);
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--text-main);
    background: transparent;
}
.search-btn {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.search-btn:hover {
    background: var(--color-primary-hover);
}

/* Directory Listing Cards */
.listing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.card-media {
    position: relative;
    height: 180px;
    background-color: var(--border-color);
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.card-address {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}
.btn-whatsapp {
    background: #25d366;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-verified { background: #dcfce7; color: #15803d; }
.badge-featured { background: #fef3c7; color: #b45309; }

/* Home Feed Sections & Cards */
.home-feed-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.feed-header {
    margin-bottom: 2rem;
}
.feed-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}
.feed-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.feed-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.feed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.feed-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--border-color);
}
.feed-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.feed-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.feed-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.feed-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Live Offer Countdown Box */
.offer-countdown-box {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: #fff7ed;
    border: 1px dashed rgba(249, 115, 22, 0.4);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
[data-theme="dark"] .offer-countdown-box {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.3);
}
.countdown-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
}
.countdown-timer-units {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--color-secondary);
}
[data-theme="dark"] .countdown-timer-units {
    color: #ffffff;
}
.countdown-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
    background: var(--bg-surface);
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.countdown-unit b {
    font-size: 1rem;
    color: var(--color-primary);
    min-width: 18px;
    text-align: center;
}
.countdown-unit small {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
}
.countdown-expired {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.85rem;
}
.feed-card-link {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
}
.feed-card-link:hover {
    text-decoration: underline;
}

.feed-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    align-items: stretch;
}
.feed-card-actions > * {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
}
.feed-badge-container {
    min-height: 24px;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Live City Counters & Trust Stats */
.city-stats-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1e293b 100%);
    padding: 2.75rem 0;
    color: #ffffff;
    border-radius: var(--radius-xl);
    margin: 1.5rem auto 3rem;
    box-shadow: var(--shadow-lg);
}
.stat-box {
    text-align: center;
    padding: 1rem;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}
.stat-box:last-child {
    border-inline-end: none;
}
.stat-box:hover {
    transform: translateY(-3px);
}
.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-family: inherit;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* B2B Merchant Conversion Section */
.merchant-cta-section {
    padding: 3.5rem 0 4rem;
}
.merchant-cta-card {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px dashed rgba(249, 115, 22, 0.4);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-md);
}
[data-theme="dark"] .merchant-cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(249, 115, 22, 0.3);
}
.merchant-cta-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}
[data-theme="dark"] .merchant-cta-title { color: #fff; }
.merchant-cta-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.6;
}
.merchant-cta-btn {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    white-space: nowrap;
    border-radius: var(--radius-md);
}
@media (max-width: 768px) {
    .merchant-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .merchant-cta-subtitle {
        margin: 0 auto;
    }
    .merchant-cta-btn {
        width: 100%;
    }
}

/* -------------------------------------------------------------------------- */
/* Dedicated Restaurants & Cafes Portal Styling                              */
/* -------------------------------------------------------------------------- */
.restaurants-hero-section {
    background: linear-gradient(180deg, #fff7ed 0%, var(--bg-body) 100%);
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .restaurants-hero-section {
    background: linear-gradient(180deg, #1e293b 0%, var(--bg-body) 100%);
}
.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}
[data-theme="dark"] .page-title { color: #fff; }
.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
}
.restaurants-search-box {
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

/* Cuisine Taxonomy Responsive Pills */
.cuisine-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 0.5rem 0.75rem;
}

.cuisine-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}
.cuisine-pill:hover, .cuisine-pill.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    transform: translateY(-2px);
}

/* Filter Toolbar Bar */
.restaurant-toolbar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.area-select-box {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}
.area-select-box:focus {
    border-color: var(--color-primary);
}

/* Restaurant Specific Cards */
.restaurant-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.restaurant-card-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--border-color);
}
.restaurant-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.restaurant-card:hover .restaurant-card-img {
    transform: scale(1.05);
}
.restaurant-badges-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}
[dir="ltr"] .restaurant-badges-bar {
    right: auto;
    left: 10px;
}
.restaurant-rating-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #facc15;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    z-index: 2;
}
[dir="ltr"] .restaurant-rating-tag {
    left: auto;
    right: 10px;
}
.restaurant-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.restaurant-cuisine-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.restaurant-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}
.restaurant-card-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}
.restaurant-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.restaurant-card-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
    align-items: center;
}
.restaurant-card-actions .btn-primary,
.restaurant-card-actions .btn-outline,
.restaurant-card-actions .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-align: center;
    box-sizing: border-box;
}

.empty-state-card {
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    margin: 2rem 0;
}

/* Zero-CLS Dedicated Ad Containers */
.ad-container {
    margin: 1.5rem auto;
    max-width: 100%;
    overflow: hidden;
}
.ad-label-bar {
    text-align: left;
    margin-bottom: 0.25rem;
}
.ad-badge {
    font-size: 0.65rem;
    background: var(--border-color);
    color: var(--text-muted);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.ad-content-box {
    background: var(--border-color-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-home_leaderboard .ad-content-box { min-height: 90px; }
.ad-daleel_infeed .ad-content-box { min-height: 250px; }
.ad-jobs_precta .ad-content-box { min-height: 250px; }
.ad-sidebar_sticky .ad-content-box { min-height: 600px; }

/* -------------------------------------------------------------------------- */
/* Responsive Mobile Navigation & Hamburger System                           */
/* -------------------------------------------------------------------------- */
.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-toggle-btn:hover {
    background: var(--bg-body);
}
.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}
.mobile-toggle-btn.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle-btn.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.mobile-toggle-btn.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
    display: none;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--color-primary);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}
.mobile-drawer.is-open {
    display: block;
}
.mobile-drawer-content {
    padding: 1rem 1.25rem 1.5rem;
}
.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-nav-link {
    display: block;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.mobile-drawer-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.lang-switcher-btn {
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.65rem;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}
.add-listing-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .brand-logo {
        height: 54px;
    }
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-content-col {
        text-align: center;
    }
    .hero-subtitle {
        margin-inline: auto;
    }
    .hero-quick-tags {
        justify-content: center;
    }
    .hero-video-card {
        max-width: 440px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 0.4rem;
        align-items: flex-start;
    }
    .hero-title, .hero-bg-title {
        font-size: 1.85rem;
    }
    .hero-subtitle, .hero-bg-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-video-bg-section {
        min-height: 65vh;
        padding: 5rem 0 4rem;
    }
    .hero-video-card {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
    .search-form {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 0.5rem;
    }
    .search-input {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    .search-btn {
        width: 100%;
        margin-top: 0.5rem;
        border-radius: var(--radius-sm);
    }
    .add-listing-btn {
        display: none; /* Accessible in the mobile drawer */
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 48px;
    }
    .top-bar {
        font-size: 0.75rem;
    }
    .widget-item {
        padding: 0.15rem 0.4rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Mobile App Sticky Bottom Navigation Bar                                    */
/* -------------------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    padding: 0.25rem 0.05rem;
    text-decoration: none;
    transition: var(--transition);
}
.bottom-nav-icon {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bottom-nav-label {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
    padding-bottom: 2px;
}
.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--color-primary);
}
.bottom-nav-fab {
    position: relative;
    top: -12px;
}
.bottom-nav-fab-btn {
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
    margin: 0 auto 0.15rem auto;
    transition: var(--transition);
}
.bottom-nav-fab:hover .bottom-nav-fab-btn {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px; /* Prevent footer clipping by sticky bottom nav */
    }
}

@media (max-width: 380px) {
    .bottom-nav-item {
        font-size: 0.58rem;
        padding: 0.3rem 0;
    }
    .bottom-nav-icon {
        font-size: 1.15rem;
        margin-bottom: 0.15rem;
    }
    .bottom-nav-fab-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ==============================================================================
 * Restaurant Single Detail & Digital Menu - Pure Vanilla CSS Design System
 * ============================================================================== */
.restaurant-single-page {
    background-color: var(--bg-body);
}

.restaurant-breadcrumbs {
    padding: 0.85rem 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.restaurant-breadcrumbs a {
    color: var(--text-muted);
}
.restaurant-breadcrumbs a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.restaurant-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    background-color: #0f172a;
    overflow: hidden;
}
.restaurant-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.38) saturate(1.2);
    transform: scale(1.02);
    transition: transform 0.6s ease;
}
.restaurant-hero:hover .restaurant-hero-bg {
    transform: scale(1.05);
}
.restaurant-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.92) 100%);
}
.restaurant-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0 2.5rem;
    width: 100%;
}
.restaurant-hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}
.restaurant-hero-info {
    flex: 1 1 320px;
    min-width: 0;
}
.restaurant-meta-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}
.restaurant-status-pill {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}
.restaurant-status-pill.open {
    background: #10b981;
    color: #ffffff;
}
.restaurant-status-pill.closed {
    background: #ef4444;
    color: #ffffff;
}
.restaurant-info-pill {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: var(--radius-full);
}
.restaurant-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    word-break: break-word;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.fb-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(24, 119, 242, 0.4));
    cursor: pointer;
    transition: transform 0.2s ease;
}
.fb-verified-badge:hover {
    transform: scale(1.15);
}
.fb-verified-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Card & Feed Inline Verified Badges */
.restaurant-title-link,
.feed-title-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.card-verified-badge,
.feed-verified-badge {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(24, 119, 242, 0.3));
}
.restaurant-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 1rem;
}
.restaurant-rating-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 700;
    flex-wrap: wrap;
}
.restaurant-rating-row .addr {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    word-break: break-word;
}

/* Action CTA Box */
.restaurant-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 0 0 280px;
    max-width: 100%;
}
.btn-cta-delivery {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
    transition: var(--transition);
    text-align: center;
}
.btn-cta-delivery:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.5);
    color: #ffffff;
}
.btn-cta-wa {
    background: #25D366;
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    text-align: center;
}
.btn-cta-wa:hover {
    transform: translateY(-2px);
    background: #20bd5a;
    color: #ffffff;
}
.btn-cta-share {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-cta-share:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Main Layout Grid */
.restaurant-body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}
.restaurant-menu-column,
.restaurant-sidebar-column {
    min-width: 0;
}

/* Card Container */
.restaurant-card-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.card-box-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}
.menu-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
}
[data-theme="dark"] .menu-updated-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}
.restaurant-updated-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
[data-theme="dark"] .restaurant-updated-pill {
    background: rgba(5, 150, 105, 0.15);
    color: #34d399;
}
.card-box-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
[data-theme="dark"] .card-box-title { color: #ffffff; }
.card-box-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Menu Category Tabs Carousel Wrapper */
.menu-tabs-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.menu-category-tabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.85rem 0.5rem 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
    scroll-behavior: smooth;
    user-select: none;
    cursor: grab;
}
.menu-category-tabs.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}
.menu-category-tabs::-webkit-scrollbar {
    height: 4px;
}
.menu-category-tabs::-webkit-scrollbar-track {
    background: transparent;
}
.menu-category-tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
.menu-category-tabs::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.menu-carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex-shrink: 0;
    margin-bottom: 0.4rem;
}
.menu-carousel-arrow:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: scale(1.08);
}
@media (max-width: 640px) {
    .menu-carousel-arrow {
        display: none; /* Mobile users swipe natively */
    }
}

.menu-tab-btn {
    padding: 0.5rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: inherit;
    flex-shrink: 0;
}
.menu-tab-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}
.menu-tab-btn.active {
    background: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
}

/* Menu Food Item Card */
.menu-dish-card {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-bottom: 1rem;
    align-items: center;
    transition: var(--transition);
    overflow: hidden;
}
.menu-dish-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.menu-dish-thumb {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border-color);
}
.menu-dish-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.menu-dish-badge {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
.menu-dish-details {
    flex-grow: 1;
    min-width: 0;
}
.menu-dish-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.35rem;
}
.menu-dish-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
    word-break: break-word;
}
[data-theme="dark"] .menu-dish-name { color: #ffffff; }
.menu-dish-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-primary);
    white-space: nowrap;
}
.menu-dish-price small {
    font-size: 0.8rem;
    font-weight: 600;
}
.menu-dish-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.65rem;
    word-break: break-word;
}
.menu-dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.menu-dish-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.menu-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}
.menu-tag.popular {
    background: #fef3c7;
    color: #92400e;
}
.menu-tag.spicy {
    background: #fee2e2;
    color: #991b1b;
}
.btn-dish-order-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid #25D366;
    color: #25D366;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    min-height: 34px;
}
.btn-dish-order-wa:hover {
    background: #25D366;
    color: #ffffff;
}

/* Sidebar Info Blocks */
.info-list-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.info-list-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text-main);
}
.info-list-features .check {
    color: #10b981;
    font-weight: 800;
}

/* ==============================================================================
 * Comprehensive Mobile & Tablet Responsive Media Queries
 * ============================================================================== */
@media (max-width: 992px) {
    .restaurant-hero-content {
        padding: 2.5rem 0 2rem;
    }
    .restaurant-hero-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .restaurant-hero-info {
        flex: 1 1 auto;
    }
    .restaurant-hero-cta {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
    }
    .restaurant-hero-cta .btn-cta-delivery,
    .restaurant-hero-cta .btn-cta-wa {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .restaurant-hero-cta .btn-cta-share {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: var(--radius-md);
    }
    .restaurant-hero-cta .btn-cta-share .share-text {
        display: none;
    }
    .restaurant-body-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .restaurant-hero {
        min-height: auto;
    }
    .restaurant-hero-content {
        padding: 2rem 0 1.5rem;
    }
    .restaurant-title {
        font-size: 1.75rem;
    }
    .restaurant-desc {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    .restaurant-hero-cta {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .restaurant-hero-cta .btn-cta-delivery,
    .restaurant-hero-cta .btn-cta-wa {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.7rem 0.4rem;
        font-size: 0.85rem;
        border-radius: var(--radius-md);
    }
    .restaurant-hero-cta .btn-cta-share {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        padding: 0;
        font-size: 1.1rem;
    }
    .restaurant-card-box {
        padding: 1.15rem;
        border-radius: var(--radius-md);
    }
    .menu-dish-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
    }
    .menu-dish-thumb {
        width: 100%;
        height: 180px;
    }
    .menu-dish-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .menu-dish-price {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }
    .menu-dish-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .btn-dish-order-wa {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .restaurant-title {
        font-size: 1.5rem;
    }
    .restaurant-meta-pills {
        gap: 0.35rem;
    }
    .restaurant-status-pill,
    .restaurant-info-pill {
        font-size: 0.75rem;
        padding: 0.25rem 0.65rem;
    }
    .menu-tab-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }
}
/* ==============================================================================
   Jobs Portal Styling (/jobs)
   ============================================================================== */
.jobs-hero-section {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(15, 23, 42, 0.03) 100%);
    padding: 2.5rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.jobs-search-box {
    max-width: 600px;
    margin: 1.25rem auto 1rem;
}
.jobs-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Horizontal Categories Carousel */
.jobs-categories-bar-section,
.offers-categories-bar-section {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 0 1rem;
    position: sticky;
    top: 75px;
    z-index: 40;
    backdrop-filter: blur(8px);
}
.categories-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 0.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.categories-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}
.categories-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.job-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-full);
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
}
.job-category-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}
.job-category-pill.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
    transform: translateY(-1px);
}

/* Jobs Grid & Card */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}
.job-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 0;
}
.job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.4);
}
.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}
.job-company-logo {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.job-header-info {
    flex: 1;
    min-width: 0;
}
.job-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.job-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}
.job-title-link {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}
.job-title-link:hover {
    color: var(--color-primary);
}
.job-company-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Meta Chips */
.job-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
.chip-item {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}
.chip-urgent.chip-today {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}
.chip-urgent.chip-ending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.25);
}
.chip-days {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
}

/* Requirements Box */
.job-requirements-box {
    background: rgba(15, 23, 42, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
}
[data-theme="dark"] .job-requirements-box {
    background: rgba(255, 255, 255, 0.03);
}
.req-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}
.req-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Actions Row */
.job-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}
.job-actions-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.btn-job-action {
    flex: 1;
    min-width: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-job-action.btn-call {
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-job-action.btn-call:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-job-action.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: 1px solid #25d366;
}
.btn-job-action.btn-whatsapp:hover {
    background: #1eb857;
    border-color: #1eb857;
}
.btn-job-action.btn-email {
    background: var(--color-primary);
    color: #ffffff;
    border: 1px solid var(--color-primary);
}
.btn-job-action.btn-email:hover {
    background: #ea580c;
    border-color: #ea580c;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .jobs-hero-section {
        padding: 2rem 1rem 1.5rem;
    }
    .jobs-categories-bar-section {
        top: 60px;
    }
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .job-card {
        padding: 1rem;
    }
    .job-company-logo {
        width: 46px;
        height: 46px;
    }
    .btn-job-action {
        font-size: 0.78rem;
        padding: 0.5rem 0.35rem;
    }
}

/* ==============================================================================
   Single Job Detail Page Styling (/job/{slug})
   ============================================================================== */
.breadcrumb-nav {
    font-size: 0.9rem;
    padding: 0.85rem 1.25rem;
    margin: 1.5rem 0 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
}
.breadcrumb-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.breadcrumb-list a:hover {
    color: var(--color-primary);
}
.breadcrumb-list .separator {
    color: var(--border-color);
    font-weight: 300;
    user-select: none;
}
.breadcrumb-list .active {
    color: var(--color-primary);
    font-weight: 700;
}

.job-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
.job-header-card, .job-content-card, .job-apply-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.job-header-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.company-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.job-detail-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.job-detail-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}
.company-detail-name {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin: 0.35rem 0;
}
.job-pub-info {
    font-size: 0.85rem;
}

.job-highlights-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.hl-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.hl-val {
    font-size: 0.95rem;
    color: var(--text-main);
}

.content-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.85rem;
}
.content-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}
.job-req-list {
    padding-right: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Sidebar Apply Box */
.job-detail-sidebar {
    position: sticky;
    top: 90px;
}
.job-apply-box {
    border-top: 4px solid var(--color-primary);
}
.apply-box-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}
.apply-box-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.apply-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.btn-apply-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}
.btn-apply-call {
    background: var(--color-secondary);
    color: #ffffff;
}
.btn-apply-call:hover {
    background: #000000;
}
.btn-apply-whatsapp {
    background: #25d366;
    color: #ffffff;
}
.btn-apply-whatsapp:hover {
    background: #1eb857;
}
.btn-apply-email {
    background: var(--color-primary);
    color: #ffffff;
}
.btn-apply-email:hover {
    background: #ea580c;
}
.trust-notice-box {
    padding: 0.65rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-sm);
    color: #065f46;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .job-detail-layout {
        grid-template-columns: 1fr;
    }
    .job-detail-sidebar {
        position: static;
    }
}
@media (max-width: 600px) {
    .job-header-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==============================================================================
   Emergency Directory Styling (/emergency)
   ============================================================================== */
.emergency-hero-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.04) 100%);
    padding: 2.5rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.emergency-search-box {
    max-width: 640px;
    margin: 1.25rem auto 1rem;
}
.emergency-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.emergency-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hotlines Grid */
.hotlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.hotline-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--card-accent, #ef4444);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.hotline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.hotline-icon {
    font-size: 2.25rem;
    line-height: 1;
}
.hotline-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.hotline-number {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--card-accent, #ef4444);
    letter-spacing: 1px;
    direction: ltr;
}
.btn-hotline-dial {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--card-accent, #ef4444);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.btn-hotline-dial:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Contacts Grid (Hospitals & Utilities) */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
}
.emergency-contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.emergency-contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(239, 68, 68, 0.4);
}
.contact-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.contact-header-info {
    flex: 1;
}
.contact-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.35rem;
    line-height: 1.35;
}
.contact-address {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}
.badge-24h {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Contact Card Dial Buttons */
.contact-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}
.btn-contact-call {
    flex: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    background: #ef4444;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.btn-contact-call:hover {
    background: #dc2626;
}
.btn-contact-call-alt {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.65rem 0.6rem;
    border-radius: var(--radius-md);
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-contact-call-alt:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

@media (max-width: 640px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .hotlines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==============================================================================
   Offers & Deals Portal Styling (/offers)
   ============================================================================== */
.offers-hero-section {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(15, 23, 42, 0.04) 100%);
    padding: 2.5rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.offers-search-box {
    max-width: 620px;
    margin: 1.25rem auto 0;
}

/* Offers Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
}
.offer-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    min-width: 0;
}
.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.4);
}
.offer-banner-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: var(--bg-body);
}
.offer-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.offer-card:hover .offer-banner-img {
    transform: scale(1.05);
}
.offer-discount-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.3px;
}
[dir="ltr"] .offer-discount-tag {
    right: auto;
    left: 12px;
}

.offer-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
.offer-store-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.45rem;
}
.offer-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0 0 0.5rem;
}
.offer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Live Countdown Box */
.offer-countdown-box {
    background: rgba(249, 115, 22, 0.06);
    border: 1px dashed rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    margin-bottom: 1.1rem;
}
.countdown-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}
.countdown-digits-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    direction: ltr;
}
.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.35rem;
}
.time-block span {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}
.time-block small {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.countdown-digits-row .colon {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Actions Row */
.offer-actions-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-offer-wa {
    flex: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    background: #25d366;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.btn-offer-wa:hover {
    background: #1eb857;
}
.btn-offer-call {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.6rem;
    border-radius: var(--radius-md);
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-offer-call:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

@media (max-width: 640px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Trains Timetable Portal Styles (/trains)
   ========================================================================== */
.trains-page-wrapper {
    min-height: 80vh;
}

/* Next Train Live Spotlights */
.next-train-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.next-train-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.next-train-card.next-cairo::before {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}
.next-train-card.next-alex::before {
    background: linear-gradient(90deg, #10b981, #059669);
}
.next-train-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}
.next-badge {
    font-size: 0.78rem;
    font-weight: 800;
    color: #e11d48;
    background: rgba(225, 29, 72, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}
.train-route-pill {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}
.next-train-body {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.85rem;
}
.next-time-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    text-align: center;
}
.next-time-box .dep-time {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.1;
}
.next-time-box .dep-station {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.next-train-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.next-train-meta .train-num {
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.95rem;
}
.next-train-meta .train-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.next-train-meta .platform-info {
    font-size: 0.78rem;
    color: #d97706;
    font-weight: 700;
}
.next-train-footer {
    border-top: 1px dashed var(--border-color);
    padding-top: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-main);
}
.next-train-footer strong {
    color: #0284c7;
    font-size: 1.05rem;
}

/* Train Timetable Cards Grid */
.train-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.train-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}
.train-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.train-identity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.train-badge-num {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.9rem;
}
.train-class-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
}
.badge-talgo {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;
}
.badge-vip {
    background: linear-gradient(135deg, #78350f, #d97706);
    color: #ffffff;
}
.badge-ac {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.25);
}
.badge-russian-ac {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-russian {
    background: var(--border-color);
    color: var(--text-main);
}
.train-stops-badge {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}
.train-platform-box {
    text-align: right;
}
[dir="ltr"] .train-platform-box {
    text-align: left;
}
.train-platform-box small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.train-price-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* Mid Section: Timings & Graphic Route */
.train-card-mid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: center;
    gap: 1rem;
}
.station-point {
    display: flex;
    flex-direction: column;
}
.station-point.dest {
    text-align: left;
}
[dir="ltr"] .station-point.dest {
    text-align: right;
}
.station-time {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
}
.station-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}
.station-platform {
    font-size: 0.75rem;
    color: #d97706;
    font-weight: 600;
}
.station-arrive-badge {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}
.trip-route-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.trip-duration {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}
.line-graphic {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.line-graphic .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}
.line-graphic .connector {
    flex: 1;
    height: 2px;
    background: var(--border-color);
}
.line-graphic .arrow-train {
    margin: 0 0.4rem;
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .train-card-mid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    .station-point.dest {
        text-align: center;
    }
    .line-graphic {
        max-width: 200px;
        margin: 0 auto;
    }
    .train-card-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .train-platform-box {
        text-align: right;
        width: 100%;
    }
    [dir="ltr"] .train-platform-box {
        text-align: left;
    }
}

