/* ═══════════════════════════════════════════════════════════════
   Chennai Guide Directory - Main Stylesheet
   ═══════════════════════════════════════════════════════════════
   COLOR CONFIG — Change these CSS variables to retheme
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary:    #8B1A1A;    /* Deep Maroon */
    --secondary:  #D4A017;    /* Gold */
    --accent-bg:  #F5F0E8;    /* Warm Light */
    --text-color: #2D2D2D;    /* Dark Text */
    --text-light: #666666;
    --white:      #FFFFFF;
    --light-gray: #F8F8F8;
    --border:     #E5E5E5;
    --shadow:     0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --radius:     10px;
    --font:       'Poppins', sans-serif;
}


/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

a:hover {
    color: var(--secondary);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */

.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

/* Logo */
.site-logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.site-logo a:hover {
    color: var(--secondary);
}

/* Desktop Nav */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    padding: 5px;
}


/* ═══════════════════════════════════════
   MOBILE MENU OVERLAY
   ═══════════════════════════════════════ */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.mobile-menu-close {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    margin-bottom: 20px;
    margin-left: auto;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border);
}

.mobile-nav-menu li a {
    display: block;
    padding: 14px 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background 0.3s ease;
}

.mobile-nav-menu li a:hover {
    background: var(--accent-bg);
    color: var(--primary);
}


/* ═══════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════ */

.site-main {
    min-height: calc(100vh - 130px);
}

.content-area {
    padding: 40px 0;
}


/* ═══════════════════════════════════════
   HERO SECTION (Homepage)
   ═══════════════════════════════════════ */

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #5C1010 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════════════ */

.section-block {
    padding: 50px 0;
}

.section-block:nth-child(even) {
    background: var(--light-gray);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}


/* ═══════════════════════════════════════
   CATEGORY GRID (Place & Business categories)
   ═══════════════════════════════════════ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.category-card .cat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.category-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.category-card .cat-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

.view-all-link {
    display: inline-block;
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--primary);
    color: var(--white);
}


/* ═══════════════════════════════════════
   POST CARDS (Places, Businesses, Blog)
   ═══════════════════════════════════════ */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

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

.post-card-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
}

.badge-place {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-business {
    background: #FFF3E0;
    color: #E65100;
}

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

.badge-verified {
    background: #E3F2FD;
    color: #1565C0;
}

.post-card-content {
    padding: 18px;
}

.post-card-content h3,
.post-card-content h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-card-content h3 a,
.post-card-content h2 a {
    color: var(--text-color);
}

.post-card-content h3 a:hover,
.post-card-content h2 a:hover {
    color: var(--primary);
}

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.read-more-link:hover {
    color: var(--secondary);
}


/* ═══════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════ */

.search-section {
    background: var(--accent-bg);
    padding: 30px 0;
    text-align: center;
}

.search-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.search-form-wrap {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-form-wrap input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    transition: border 0.3s ease;
}

.search-form-wrap input[type="search"]:focus {
    border-color: var(--primary);
}

.search-form-wrap button {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form-wrap button:hover {
    background: var(--secondary);
}


/* ═══════════════════════════════════════
   SINGLE PAGE (Place / Business detail)
   ═══════════════════════════════════════ */

.single-banner {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.single-content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.single-meta-badges {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.single-content-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.single-content-area h2 {
    font-size: 1.3rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.single-content-area h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.single-content-area p {
    margin-bottom: 16px;
    line-height: 1.7;
}


/* Info Box (Visitor Info / Contact Details) */
.info-box {
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.info-row {
    padding: 8px 0;
    font-size: 0.93rem;
    line-height: 1.5;
}

.info-row strong {
    display: inline;
}


/* ═══════════════════════════════════════
   GALLERY (WordPress Default)
   ═══════════════════════════════════════ */

.wp-block-gallery,
.gallery {
    margin: 24px 0;
}

.gallery-item img {
    border-radius: 6px;
}


/* ═══════════════════════════════════════
   REVIEWS & RATINGS
   ═══════════════════════════════════════ */

.reviews-section {
    margin: 30px 0;
}

.reviews-section h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.review-item {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
}

.review-stars {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 6px;
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* Review Form */
.review-form {
    margin-top: 24px;
    padding: 24px;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.review-form h3 {
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.93rem;
    font-family: var(--font);
    outline: none;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s ease;
}

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


/* ═══════════════════════════════════════
   FRONTEND FORMS (Add Business, Event, Offer)
   ═══════════════════════════════════════ */

.frontend-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 0;
}

.frontend-form h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.frontend-form .form-intro {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Plan Selection Cards */
.plan-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.plan-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-card:hover,
.plan-card.selected {
    border-color: var(--primary);
    background: #FFF5F5;
}

.plan-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.plan-card .plan-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.plan-card .plan-features {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}


/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */

.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.site-footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 24px 20px;
    font-size: 0.88rem;
}

.site-footer a {
    color: var(--secondary);
}


/* ═══════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* ═══════════════════════════════════════
   NO RESULTS
   ═══════════════════════════════════════ */

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-light);
}


/* ═══════════════════════════════════════
   SUCCESS / ERROR MESSAGES
   ═══════════════════════════════════════ */

.form-message {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.93rem;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}


/* ═══════════════════════════════════════
   RESPONSIVE — TABLET (768px)
   ═══════════════════════════════════════ */

@media (max-width: 768px) {

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .plan-selection {
        grid-template-columns: 1fr;
    }

    .single-banner {
        height: 220px;
    }
}


/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (480px)
   ═══════════════════════════════════════ */

@media (max-width: 480px) {

    .header-container {
        height: 55px;
    }

    .site-logo a {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-section h1 {
        font-size: 1.3rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px 10px;
    }

    .category-card .cat-icon {
        font-size: 1.5rem;
    }

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

    .section-block {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .search-form-wrap {
        flex-direction: column;
    }

    .single-content-area h1 {
        font-size: 1.4rem;
    }
}
