/*
Theme Name: Kitengela Classic
Theme URI: https://kitengela.co.ke
Author: Kitengela Web Team
Author URI: https://kitengela.co.ke
Description: Professional Business Directory Theme for Kitengela — built for the Directorist plugin. Features a modern Deep Navy + Gold palette, sticky header, full-width hero with integrated search, responsive grid layout, and custom sidebar widgets.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kitengela-classic
Tags: directory, business, listings, one-column, two-columns, right-sidebar, custom-header, custom-background, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
    --primary:       #002855;
    --primary-dark:  #001a3a;
    --primary-light: #0a4a8a;
    --accent:        #F5A623;
    --accent-dark:   #d4891a;
    --accent-light:  #FFD07A;
    --text:          #1a1a2e;
    --text-muted:    #64748b;
    --light-bg:      #f8fafc;
    --border:        #e2e8f0;
    --white:         #ffffff;
    --topbar-bg:     #001a3a;
    --shadow-sm:     0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --radius-pill:   50px;
    --transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    margin: 0;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
}

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

a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    color: var(--primary);
    margin-top: 0;
}

p { margin-top: 0; }

ul, ol { padding-left: 1.5em; }

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* =========================================================
   HEADER — TOP BAR
   ========================================================= */
.header-topbar {
    background: var(--topbar-bg);
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.65);
}

.topbar-item svg { opacity: 0.7; flex-shrink: 0; }

.topbar-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}
.topbar-link:hover { color: var(--white); }

.topbar-divider {
    color: rgba(255,255,255,0.2);
    font-size: 0.9em;
}

/* =========================================================
   HEADER — MAIN BAR
   ========================================================= */
.site-header {
    background: var(--white);
    padding: 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none;
}

.site-header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 80px;
    gap: 24px;
}

/* Brand */
.header-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    gap: 2px;
}

.header-tagline {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Logo */
.site-logo {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.3px;
    line-height: 1;
}

.site-logo span { color: var(--accent); }
.site-logo:hover { color: var(--primary-dark); text-decoration: none; }

.custom-logo-link img {
    max-height: 52px;
    width: auto;
}

/* Header Search Bar (inline in main bar) */
.header-center {
    display: flex;
    align-items: center;
}

.header-search-bar {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0 6px 0 16px;
    gap: 8px;
    height: 46px;
    width: 100%;
    max-width: 480px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search-bar:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(10,74,138,0.1);
    background: var(--white);
}

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.header-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.header-search-input::placeholder { color: var(--text-muted); }

.header-search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
    height: 34px;
    display: flex;
    align-items: center;
}

.header-search-btn:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-add-listing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #1a1000;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}

.btn-add-listing:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245,166,35,0.4);
    color: #1a1000;
    text-decoration: none;
}

/* Hamburger Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    width: 42px;
    height: 42px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =========================================================
   HEADER — NAV BAR
   ========================================================= */
.header-nav-bar {
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.07);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav ul li a {
    display: block;
    padding: 13px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 1px;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    color: var(--white);
    background: rgba(255,255,255,0.07);
}

.main-nav ul li a:hover::after,
.main-nav ul li.current-menu-item a::after {
    transform: scaleX(1);
}

/* CTA button in nav */
.main-nav ul li.menu-item-cta a {
    background: var(--accent);
    color: #1a1000 !important;
    border-radius: var(--radius-sm);
    margin: 6px 12px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.main-nav ul li.menu-item-cta a::after { display: none; }

.main-nav ul li.menu-item-cta a:hover {
    background: var(--accent-dark);
    color: #1a1000 !important;
}


/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
    position: relative;
    color: var(--white);
    padding: 0;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    flex-direction: column;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        url('https://images.unsplash.com/photo-1570168007204-dfb528c6958f?auto=format&fit=crop&w=1600&q=80')
        center/cover no-repeat;
    transform: scale(1.03);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.03); }
    to   { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 28, 65, 0.88) 0%,
        rgba(0, 40, 85, 0.80) 50%,
        rgba(0, 20, 50, 0.75) 100%
    );
}

/* Decorative diagonal accent at bottom */
.hero-section::before {
    content: '';
    position: absolute;
    bottom: 80px; /* height of stats bar */
    left: 0; right: 0;
    height: 60px;
    background: inherit;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 1;
    opacity: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 72px 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

/* Badge pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,0.18);
    border: 1px solid rgba(245,166,35,0.45);
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.3); }
}

/* Headline */
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin: 0 0 18px;
    max-width: 680px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-weight: 400;
}

/* Hero Search Form */
.hero-search-wrap { width: 100%; max-width: 720px; }

.hero-search-form { width: 100%; }

.hero-search-inner {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 8px 8px 8px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
    gap: 0;
    min-height: 70px;
}

.hs-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 16px 4px 0;
    min-width: 0;
}

.hs-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    display: block;
}

.hs-input {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: transparent;
    width: 100%;
    font-weight: 500;
}

.hs-input::placeholder { color: var(--text-muted); font-weight: 400; }

.hs-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 16px 0 0;
}

.hs-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #1a1000;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition);
    height: 54px;
    flex-shrink: 0;
}

.hs-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* Popular tags */
.hero-popular {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 22px;
}

.popular-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.popular-tag {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.88);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    padding: 5px 14px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.popular-tag:hover {
    background: rgba(245,166,35,0.25);
    border-color: rgba(245,166,35,0.5);
    color: var(--white);
}

/* Stats Bar */
.hero-stats {
    position: relative;
    z-index: 2;
    background: rgba(0,20,50,0.65);
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 40px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-size: 1.1rem;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 800;
}

.stat-star {
    color: var(--accent);
    font-size: 1.2rem;
    font-family: var(--font-body);
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.58);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

/* =========================================================
   CONTENT AREA
   ========================================================= */
.content-area {
    display: flex;
    gap: 40px;
    padding: 56px 0;
    align-items: flex-start;
}

.site-main { flex: 3; min-width: 0; }

/* Full-width page template */
.no-sidebar .content-area { display: block; }
.no-sidebar .site-main { max-width: 100%; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.primary-sidebar {
    flex: 1;
    min-width: 260px;
    max-width: 300px;
}

.widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: var(--text); text-decoration: none; }
.widget ul li a:hover { color: var(--primary); }

/* =========================================================
   CARDS / POSTS
   ========================================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.post-card-body { padding: 20px; }

.post-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--primary-light); }

.post-card-excerpt { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    line-height: 1.4;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #000;
}

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

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

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.section-heading h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

.section-heading a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* =========================================================
   DIRECTORIST PLUGIN INTEGRATION
   ========================================================= */

/* Search bar inside hero */
.hero-section .directorist-search-form,
.hero-section .directorist-search-listing {
    background: var(--white);
    padding: 10px 10px 10px 24px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    max-width: 680px;
    width: 100%;
}

.hero-section .directorist-search-form input[type="text"],
.hero-section .directorist-search-form input[type="search"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1rem;
    flex: 1;
}

/* All Directorist primary buttons → Gold */
.directorist-btn,
.directorist-btn-primary,
.directorist .atbdp-btn,
.atbdp_submit_btn {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: var(--radius-pill) !important;
    transition: background var(--transition) !important;
}

.directorist-btn:hover,
.directorist-btn-primary:hover,
.directorist .atbdp-btn:hover,
.atbdp_submit_btn:hover {
    background-color: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    color: #000 !important;
}

/* Listing cards */
.directorist-listing-card,
.atbdp-listing-card {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform var(--transition), box-shadow var(--transition) !important;
    overflow: hidden !important;
}

.directorist-listing-card:hover,
.atbdp-listing-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Category badges */
.directorist-badge,
.directorist-listing-badge {
    background: var(--accent) !important;
    color: #000 !important;
    font-weight: 700 !important;
}

/* =========================================================
   SINGLE LISTING HEADER — full colour fix
   Directorist renders the header band with navy background
   but its own stylesheet sets title/meta to near-black.
   Every child selector here forces white/gold text so the
   listing name, price, rating, category and action buttons
   are all readable on the dark background.
   ========================================================= */

/* Outer header band */
.directorist-single-listing-header,
.directorist-listing-header,
.directorist-single-listing__header,
[class*="directorist-single"][class*="header"],
[class*="atbdp"][class*="single"][class*="header"] {
    background: var(--primary) !important;
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border-radius: var(--radius-md) !important;
    padding: 36px 36px 28px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
}

/* Subtle gold accent line at top of header */
.directorist-single-listing-header::before,
.directorist-listing-header::before,
.directorist-single-listing__header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 3px !important;
    background: var(--accent) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

/* Title / heading — the main offender */
.directorist-single-listing-header h1,
.directorist-single-listing-header h2,
.directorist-single-listing-header h3,
.directorist-listing-header h1,
.directorist-listing-header h2,
.directorist-listing-header h3,
.directorist-single-listing__header h1,
.directorist-single-listing__header h2,
.directorist-single-listing__header h3,
.directorist-single-listing-header .directorist-listing-title,
.directorist-single-listing-header .directorist-single-listing__title,
.directorist-listing-header .directorist-listing-title,
[class*="directorist"][class*="listing-title"],
[class*="directorist"][class*="single"][class*="title"] {
    color: var(--white) !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25) !important;
    line-height: 1.25 !important;
}

/* All other text inside the header */
.directorist-single-listing-header *,
.directorist-listing-header *,
.directorist-single-listing__header * {
    color: rgba(255,255,255,0.85) !important;
}

/* Price — make it gold and prominent */
.directorist-single-listing-header .directorist-listing-price,
.directorist-listing-header .directorist-listing-price,
.directorist-single-listing-header [class*="price"],
.directorist-listing-header [class*="price"],
.directorist-single-listing__header [class*="price"] {
    color: var(--accent) !important;
    font-weight: 700 !important;
    font-size: 1.15em !important;
}

/* Category tag / type label */
.directorist-single-listing-header [class*="category"],
.directorist-single-listing-header [class*="type"],
.directorist-listing-header [class*="category"],
.directorist-listing-header [class*="type"] {
    color: var(--accent-light) !important;
    font-weight: 600 !important;
}

/* Star rating stars — keep gold */
.directorist-single-listing-header [class*="star"],
.directorist-single-listing-header [class*="rating"],
.directorist-listing-header [class*="star"],
.directorist-listing-header [class*="rating"] {
    color: var(--accent) !important;
}

/* Review count & muted meta */
.directorist-single-listing-header a,
.directorist-listing-header a,
.directorist-single-listing__header a {
    color: var(--accent-light) !important;
    text-decoration: none !important;
}

.directorist-single-listing-header a:hover,
.directorist-listing-header a:hover,
.directorist-single-listing__header a:hover {
    color: var(--white) !important;
    text-decoration: underline !important;
}

/* Action buttons in the header (Go Back, Share, Bookmark, Report) */
.directorist-single-listing-header .directorist-btn,
.directorist-single-listing-header [class*="btn"],
.directorist-listing-header .directorist-btn,
.directorist-listing-header [class*="btn"] {
    background: var(--accent) !important;
    color: #1a1000 !important;
    border-color: var(--accent) !important;
    font-weight: 700 !important;
}

.directorist-single-listing-header .directorist-btn:hover,
.directorist-single-listing-header [class*="btn"]:hover,
.directorist-listing-header .directorist-btn:hover,
.directorist-listing-header [class*="btn"]:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
    border-color: var(--white) !important;
}

/* "Featured" badge */
.directorist-single-listing-header .directorist-featured-badge,
.directorist-listing-header .directorist-featured-badge,
[class*="directorist"][class*="featured-badge"],
[class*="directorist"][class*="featured"][class*="badge"] {
    background: var(--accent) !important;
    color: #1a1000 !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    border-radius: var(--radius-pill) !important;
    padding: 3px 12px !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
}

/* Star ratings */
.directorist-rating .filled,
.atbdp-star-filled { color: var(--accent) !important; }

/* Submit listing form */
.directorist-submit-listing,
.atbdp-submit-listing-page {
    background: var(--light-bg);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

/* Pagination */
.directorist-pagination .page-numbers.current,
.atbdp-pagination .current {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

/* =========================================================
   CATEGORY STRIPS (optional homepage widget)
   ========================================================= */
.category-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.category-strip-item {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.category-strip-item:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-strip-item .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs {
    background: var(--light-bg);
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs a { color: var(--primary-light); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 40px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* =========================================================
   SINGLE POST / PAGE
   ========================================================= */
.entry-header { margin-bottom: 24px; }

.entry-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.entry-meta a { color: var(--text-muted); text-decoration: none; }
.entry-meta a:hover { color: var(--primary); }

.entry-content h2,
.entry-content h3 { color: var(--primary); margin-top: 1.6em; }

.entry-content a { color: var(--primary-light); }

.entry-thumbnail { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px; }
.entry-thumbnail img { width: 100%; height: 380px; object-fit: cover; }

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }

.comment-list { list-style: none; padding: 0; }

.comment-body {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.comment-author { font-weight: 700; color: var(--primary); }
.comment-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }

/* Comment form */
.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 14px;
    transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form input[type="submit"] {
    width: auto;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.comment-form input[type="submit"]:hover { background: var(--primary-dark); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.82);
    padding: 64px 0 0;
    margin-top: 64px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    padding-bottom: 48px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.footer-col p { font-size: 0.9rem; line-height: 1.7; margin: 0; }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 5px 0; font-size: 0.9rem; }
.footer-col ul li a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }

.footer-col.footer-brand .site-logo { font-size: 1.3rem; color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-col.footer-brand .site-logo span { color: var(--accent); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    color: var(--white);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #000; }

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { display: inline; margin-right: 16px; }
.footer-nav li a { color: var(--accent); font-size: 0.85rem; text-decoration: none; }

.footer-bottom {
    margin-top: 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

/* =========================================================
   NOTICES & ALERTS
   ========================================================= */
.notice {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.notice-info    { background: #e7f3ff; border-color: var(--primary-light); color: var(--primary); }
.notice-success { background: #e6f9ee; border-color: #28a745; color: #155724; }
.notice-warning { background: #fff8e1; border-color: var(--accent); color: #856404; }
.notice-error   { background: #fde8e8; border-color: #dc3545; color: #721c24; }

/* =========================================================
   FORMS (Generic)
   ========================================================= */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,51,102,0.12); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .content-area { flex-direction: column; }
    .primary-sidebar { max-width: 100%; min-width: 0; width: 100%; }
    .footer-widgets { grid-template-columns: 1fr 1fr; gap: 32px; }
    .header-topbar .topbar-left .topbar-item:last-child { display: none; }
}

@media (max-width: 768px) {
    .site-header .container {
        grid-template-columns: auto auto;
        height: 66px;
        gap: 12px;
    }

    .header-center { display: none; }

    .header-brand .header-tagline { display: none; }

    .header-nav-bar { display: none; }
    .header-nav-bar.is-open { display: block; }

    .main-nav { position: static; box-shadow: none; padding: 0; }
    .main-nav.is-open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav ul li a {
        padding: 13px 20px;
        color: var(--text);
    }
    .main-nav ul li a::after { display: none; }
    .main-nav ul li a:hover { background: var(--light-bg); color: var(--primary); }

    .main-nav ul li.menu-item-cta a { margin: 8px 16px; color: #1a1000 !important; }

    .menu-toggle { display: flex; }

    .btn-add-listing { display: none; }

    .hero-content { padding: 48px 20px 36px; }
    .hero-headline { font-size: 1.8rem; }
    .hero-sub { font-size: 0.95rem; }

    .hero-search-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: var(--radius-md);
        gap: 12px;
        min-height: auto;
    }

    .hs-field { padding: 0; }
    .hs-divider { display: none; }

    .hs-btn {
        width: 100%;
        justify-content: center;
        height: 48px;
    }

    .stat-item { padding: 0 16px; }
    .stat-number { font-size: 1.3rem; }

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

    .footer-widgets { grid-template-columns: 1fr; gap: 24px; }

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

    .section-heading { flex-direction: column; gap: 8px; }

    .header-topbar { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .category-strip { grid-template-columns: repeat(3, 1fr); }
    .hero-section { padding: 48px 0; }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus { top: 16px; }

/* =========================================================
   PRINT
   ========================================================= */
@media print {
    .site-header, .site-footer, .primary-sidebar, .menu-toggle { display: none !important; }
    .content-area { display: block; }
    body { font-size: 12pt; }
    a[href]::after { content: " (" attr(href) ")"; }
}
