/*
Theme Name: Restaurants Australia
Theme URI: https://restaurantsaustralia.com
Description: A modern and responsive WordPress theme for restaurant directory websites in Australia.
Author: Rohit Kumar
Version: 1.0.0
License: GPL v2 or later
Text Domain: restaurants-australia
*/

/* ============================================
   CSS Reset & Base Styles
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Responsive Typography */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-white);
}

/* Main Content Areas */
.site-main,
.main-content,
.content-area,
.page-content,
.entry-content {
    background: var(--background-white);
}

/* Container Backgrounds */
.container,
.content-wrapper,
.page-wrapper {
    background: transparent;
}

/* Ensure clean section backgrounds */
.section {
    background: transparent;
}

/* ============================================
   Color Palette Variables
   ============================================ */

:root {
    --primary-color: #04A2DF;          /* Sky Blue - Main brand color */
    --secondary-color: #10B981;        /* Emerald Green - Secondary actions */
    --accent-color: #F97316;           /* Vibrant Orange - Highlights */
    --accent-pink: #EC4899;            /* Bright Pink - Special elements */
    --text-dark: #1E2A38;             /* Deep Navy Gray - Titles, nav */
    --text-light: #4B5A68;            /* Cool Gray - Paragraphs, labels */
    --text-muted: #4B5A68;            /* Cool Gray - Muted text */
    --background-light: #F8F9FA;      /* Light Gray - Section backgrounds */
    --background-white: #FFFFFF;      /* Pure White - Card backgrounds */
    --border-color: #E5E7EB;          /* Warmer Pale Gray - Borders */
    --success-color: #10B981;         /* Emerald - Success messages */
    --warning-color: #F97316;         /* Vibrant Orange - Alerts */
    --danger-color: #EC4899;          /* Bright Pink - Errors/danger */
    --shadow: 0 2px 10px rgba(30, 42, 56, 0.1);
    --shadow-hover: 0 4px 20px rgba(30, 42, 56, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Professional Spacing System */
    --section-margin: 3rem;            /* Between major sections */
    --box-margin: 2rem;                /* Between boxes/cards */
    --element-margin: 1.5rem;          /* Between elements */
    --small-margin: 1rem;              /* Small gaps */
    
    --box-padding: 2rem;               /* Inside boxes/cards */
    --element-padding: 1.5rem;         /* Inside elements */
    --small-padding: 1rem;             /* Small internal spacing */
    --compact-padding: 0.75rem;        /* Very tight spacing */
}

/* Mobile spacing adjustments */
@media (max-width: 768px) {
    :root {
        --section-margin: 2rem;
        --box-margin: 1.5rem;
        --element-margin: 1rem;
        --small-margin: 0.75rem;
        
        --box-padding: 1.5rem;
        --element-padding: 1rem;
        --small-padding: 0.75rem;
        --compact-padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-margin: 1.5rem;
        --box-margin: 1rem;
        --element-margin: 0.75rem;
        --small-margin: 0.5rem;
        
        --box-padding: 1rem;
        --element-padding: 0.75rem;
        --small-padding: 0.5rem;
        --compact-padding: 0.375rem;
    }
}

/* ============================================
   Professional Spacing System Applied
   ============================================ 
   
   This theme now uses a consistent, professional spacing system:
   
   MARGINS (between elements):
   - --section-margin: Between major sections (3rem → 2rem → 1.5rem)
   - --box-margin: Between boxes/cards (2rem → 1.5rem → 1rem)
   - --element-margin: Between elements (1.5rem → 1rem → 0.75rem)
   - --small-margin: Small gaps (1rem → 0.75rem → 0.5rem)
   
   PADDING (inside elements):
   - --box-padding: Inside major boxes (2rem → 1.5rem → 1rem)
   - --element-padding: Inside elements (1.5rem → 1rem → 0.75rem)
   - --small-padding: Small internal spacing (1rem → 0.75rem → 0.5rem)
   - --compact-padding: Tight spacing (0.75rem → 0.5rem → 0.375rem)
   
   All values scale responsively for mobile optimization.
   ============================================ */

/* ============================================
   Balanced Section Spacing
   ============================================ */

/* Major content sections with balanced top/bottom spacing */
.entry-content,
.page-content,
.post-content,
.widget-area,
.sidebar-content,
.main-content-section {
    margin: var(--section-margin) 0;
}

/* Content boxes with balanced spacing */
.content-box,
.info-box,
.feature-box,
.text-box {
    margin: var(--box-margin) 0;
    padding: var(--box-padding);
}

/* Ensure all article elements have consistent spacing */
article {
    margin-bottom: var(--section-margin);
}

article:last-child {
    margin-bottom: 0;
}

/* Section headers with balanced spacing */
.section-header,
.content-header,
.page-header {
    margin: var(--box-margin) 0;
    padding: var(--element-padding) 0;
}

/* Footer sections with balanced spacing */
.site-footer .widget,
.footer-widget {
    margin: var(--box-margin) 0;
    padding: var(--element-padding);
}

/* WordPress-specific sections with balanced spacing */
.wp-block-group,
.wp-block-columns,
.wp-block-media-text,
.wp-block-cover {
    margin: var(--section-margin) 0;
}

.wp-block-group__inner-container {
    padding: var(--box-padding);
}

/* Ensure form sections have balanced spacing */
.wpcf7-form,
.contact-form,
.search-results,
.archive-header {
    margin: var(--section-margin) 0;
    padding: var(--box-padding) 0;
}

/* Post/page title sections */
.entry-header,
.page-title,
.archive-title {
    margin: var(--box-margin) 0;
    padding: var(--element-padding) 0;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
}

h5 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

h6 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Typography Scaling */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.4rem;
        margin-bottom: 0.875rem;
    }
    
    h4 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    h5 {
        font-size: 1.1rem;
        margin-bottom: 0.625rem;
    }
    
    h6 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    h4 {
        font-size: 1.125rem;
        margin-bottom: 0.625rem;
    }
    
    h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    h6 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

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

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ============================================
   Responsive Images & Media
   ============================================ */

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

img {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

img:hover {
    opacity: 0.9;
}

/* WordPress Image Classes */
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
    text-align: center;
}

.alignnone {
    margin: 0 0 1rem 0;
}

/* Responsive Image Alignment */
@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 0 auto 1rem;
        text-align: center;
    }
}

/* Image Captions */
.wp-caption {
    max-width: 100%;
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.wp-caption img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* Featured Images */
.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.02);
}

/* Responsive Video Embeds */
.wp-video,
.wp-embed,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* Responsive Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

/* Gallery Responsiveness */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }
}

.gallery-item {
    margin: 0;
}

.gallery-icon img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* ============================================
   Layout & Grid
   ============================================ */

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

/* Responsive Container */
@media (max-width: 1280px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Desktop Grid System */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

[class*="col-"] {
    padding: 0 15px;
    margin-bottom: var(--section-margin);
}

/* Tablet Responsive Grid */
@media (max-width: 1024px) {
    .col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-6 { flex: 0 0 50%; max-width: 50%; }
    .col-3 { flex: 0 0 50%; max-width: 50%; }
}

/* Mobile Responsive Grid - Stack all columns */
@media (max-width: 768px) {
    .row {
        margin: 0 -10px;
    }
    
    [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    /* Reorder for better mobile experience */
    .col-8 {
        order: 1;
    }
    
    .col-4 {
        order: 2;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .row {
        margin: 0 -5px;
    }
    
    [class*="col-"] {
        padding: 0 5px;
        margin-bottom: 15px;
    }
}

/* ============================================
   Header Styles
   ============================================ */

.site-header {
    background: var(--background-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    margin-left: 10px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 1rem;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ============================================
   Main Content
   ============================================ */

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

/* Remove margin for front page to eliminate white gap before hero */
.home .site-main {
    margin-top: 0;
}

.content-area {
    padding: var(--section-margin) 0;
}

/* ============================================
   Cards & Components
   ============================================ */

.card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card {
    margin-bottom: var(--box-margin);
}

.card-content {
    padding: var(--box-padding);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--small-margin);
    color: var(--text-dark);
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--small-margin);
}

.card-excerpt {
    color: var(--text-light);
    margin-bottom: var(--element-margin);
    flex-grow: 1;
}

.card-footer {
    padding-top: var(--element-padding);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Responsive Card Styles */
@media (max-width: 1024px) {
    .card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .card-image {
        height: 160px;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .card-meta {
        font-size: 0.8rem;
    }
    
    .card-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: 140px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-meta {
        font-size: 0.75rem;
    }
    
    .card-excerpt {
        font-size: 0.85rem;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../../uploads/2025/07/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    margin-top: -2px; /* Eliminate gap between fixed header and hero */
}

.hero-content {
    max-width: 800px;
    padding: var(--section-margin);
}

/* Responsive Hero Section */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 600px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-content {
        max-width: 700px;
        padding: var(--box-padding);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 1rem 0;
    }
    
    .hero-content {
        max-width: 90%;
        padding: var(--element-padding);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: var(--small-margin);
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: var(--element-margin);
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
        padding: 0.5rem 0;
    }
    
    .hero-content {
        max-width: 95%;
        padding: var(--small-padding);
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: var(--compact-padding);
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: var(--element-margin);
        line-height: 1.5;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    -webkit-text-stroke: 2px white;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.7),
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.hero-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.hero-cta:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: white;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 2.5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-alt {
    background: var(--background-light);
}

/* ============================================
   Search Form
   ============================================ */

.search-section {
    background: var(--background-white);
    padding: 2.5rem 0;
    box-shadow: var(--shadow);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

/* Force search section centering on mobile */
@media (max-width: 768px) {
    .search-section {
        text-align: center !important;
    }
    
    .search-section h3 {
        text-align: center !important;
        margin-bottom: 2rem !important;
    }
    
    /* Ensure mobile menu items are hidden by default */
    .main-navigation .nav-menu {
        display: none !important;
    }
    
    .main-navigation.active .nav-menu {
        display: flex !important;
        flex-direction: column;
    }
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    align-items: end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 162, 223, 0.1);
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
        align-items: stretch;
    }
    
    .form-group {
        flex: none;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-control {
        padding: 0.6rem;
        font-size: 0.95rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    /* Stack form elements vertically */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row .form-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-form {
        gap: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .form-control {
        padding: 0.5rem;
        font-size: 0.9rem;
        min-height: 42px;
    }
    
    /* Smaller form elements on very small screens */
    select.form-control {
        padding: 0.4rem;
    }
}

/* ============================================
   Responsive Utility Classes
   ============================================ */

/* Hide/Show elements based on screen size */
.hidden-mobile {
    display: block;
}

.hidden-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .hidden-desktop {
        display: block !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-left {
        text-align: left !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-no-padding {
        padding: 0 !important;
    }
    
    .mobile-small-padding {
        padding: 0.5rem !important;
    }
}

/* Touch-friendly interactive elements */
@media (max-width: 768px) {
    a, button, .btn, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Ensure adequate spacing between clickable elements */
    .btn + .btn,
    a + a,
    button + button {
        margin-top: 0.5rem;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
    
    /* Fix common overflow issues */
    pre, code {
        overflow-x: auto;
        word-wrap: break-word;
    }
    
    table {
        width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    table tbody {
        display: table;
        width: 100%;
    }
}

/* Clean dropdown styling - completely override browser defaults */
#first-level-taxonomy,
#child-taxonomy {
    border-radius: 15px !important;
    border: 2px solid var(--border-color) !important;
    padding: 0.75rem 1rem !important;
    background: white !important;
    font-size: 1rem !important;
    transition: border-color 0.2s ease !important;
    
    /* Completely remove all browser styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -ms-appearance: none !important;
    -o-appearance: none !important;
    appearance: none !important;
    
    /* Add simple arrow using CSS */
    background-image: none !important;
    position: relative !important;
}

/* Remove IE/Edge dropdown button */
#first-level-taxonomy::-ms-expand,
#child-taxonomy::-ms-expand {
    display: none !important;
}

/* Add arrow using pseudo-element instead of background */
#first-level-taxonomy::after,
#child-taxonomy::after {
    content: "▼" !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #666 !important;
    font-size: 12px !important;
    pointer-events: none !important;
}

#first-level-taxonomy:hover,
#child-taxonomy:hover:not(:disabled) {
    border-color: var(--primary-color) !important;
}

#first-level-taxonomy:focus,
#child-taxonomy:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
}

#child-taxonomy:disabled {
    background: #f1f3f4 !important;
    border-color: #dadce0 !important;
    color: #9aa0a6 !important;
    cursor: not-allowed !important;
}

#child-taxonomy:disabled::after {
    color: #ccc !important;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

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

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

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

/* Responsive Button Styles */
@media (max-width: 768px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px; /* Touch-friendly minimum */
        border-radius: calc(var(--border-radius) - 1px);
    }
    
    .btn-block {
        width: 100%;
        display: block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-height: 42px;
    }
    
    /* Stack buttons vertically on small screens */
    .btn + .btn {
        margin-top: 0.5rem;
        margin-left: 0;
    }
}

/* ============================================
   Rating & Status Styles
   ============================================ */

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    transition: transform 0.2s ease;
    cursor: default;
}

.stars:hover i {
    transform: scale(1.1);
}

.stars .fas.fa-star {
    color: #ffc107; /* Gold for filled stars */
    text-shadow: 0 0 3px rgba(255, 193, 7, 0.3);
}

.stars .fas.fa-star-half-alt {
    color: #ffc107; /* Gold for half stars */
    text-shadow: 0 0 3px rgba(255, 193, 7, 0.3);
}

.stars .far.fa-star {
    color: #e0e0e0; /* Light gray for empty stars */
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.status-open {
    color: var(--success-color);
    font-weight: 600;
}

.status-closed {
    color: var(--danger-color);
    font-weight: 600;
}

/* ============================================
   Work Time Styles
   ============================================ */

.work-time {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.work-time h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-list li:last-child {
    border-bottom: none;
}

.current-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}

/* ============================================
   Contact Info Styles
   ============================================ */

.contact-info {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin: 0;
}

.contact-list i {
    color: var(--primary-color);
    width: 20px;
}

/* ============================================
   Place Topics Styles
   ============================================ */

.place-topics {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.topic-item {
    background: var(--background-white);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.topic-name {
    font-weight: 500;
    color: var(--text-dark);
}

.topic-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   Attributes Styles
   ============================================ */

.available-attributes,
.unavailable-attributes {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.attribute-category {
    margin-bottom: 1.5rem;
}

.attribute-category:last-child {
    margin-bottom: 0;
}

.attribute-category h5 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-transform: capitalize;
}

.attribute-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attribute-category li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    margin: 0;
}

.available-attributes i.fa-check {
    color: var(--success-color);
}

.unavailable-attributes i.fa-times {
    color: var(--danger-color);
}

/* ============================================
   Breadcrumbs
   ============================================ */

.breadcrumbs {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--text-light);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.breadcrumb-list a:hover {
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb-list .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ============================================
   Footer Styles
   ============================================ */

.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    color: white;
    font-size: 0.875rem;
}

.footer-bottom p {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* ============================================
   FAQ Section Styles
   ============================================ */

.faqs-container {
    max-width: 1000px;
    margin: 0 auto;
    counter-reset: faq-counter;
}

.faq-item {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: var(--element-margin);
    overflow: hidden;
    transition: var(--transition);
    counter-increment: faq-counter;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--element-padding) var(--box-padding);
    cursor: pointer;
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    line-height: 1.4;
}

.faq-question h4::before {
    content: counter(faq-counter) ". ";
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--background-light);
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem 2rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* ============================================
   Sidebar & Widgets Styles
   ============================================ */

.sidebar {
    background: transparent;
    padding: 0;
}

.sidebar .widget {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: var(--box-margin);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.sidebar .widget:hover {
    box-shadow: 0 4px 16px rgba(30, 42, 56, 0.12);
    border-color: var(--primary-color);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    background: var(--background-white);
    color: var(--text-dark);
    padding: var(--element-padding);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

.widget-title i {
    margin-right: var(--compact-padding);
    font-size: 1rem;
    color: var(--primary-color);
}

.widget-content {
    padding: var(--element-padding);
}

/* Recent Items Lists */
.recent-restaurants-list,
.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-restaurant-item,
.recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    transition: var(--transition);
}

.recent-restaurant-item:hover,
.recent-post-item:hover {
    background: var(--background-light);
    margin: 0 -1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
}

.recent-restaurant-item:last-child,
.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-restaurant-item:first-child,
.recent-post-item:first-child {
    padding-top: 0;
}

.restaurant-thumbnail,
.post-thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.restaurant-thumbnail:hover,
.post-thumbnail:hover {
    border-color: var(--primary-color);
}

.restaurant-thumbnail img,
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.restaurant-info,
.post-info {
    flex-grow: 1;
    min-width: 0;
}

.restaurant-title,
.post-title {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    font-weight: 600;
}

.restaurant-title a,
.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.restaurant-title a:hover,
.post-title a:hover {
    color: var(--primary-color);
}

.restaurant-address,
.post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

.restaurant-address i,
.post-date i {
    margin-right: 0.4rem;
    color: var(--primary-color);
    font-size: 0.75rem;
}

/* State Categories List */
.state-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.state-category-item {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.state-category-item:last-child {
    border-bottom: none;
}

.state-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.state-link:hover {
    color: var(--primary-color);
    text-decoration: none;
    background: var(--background-light);
    margin: 0 -1.5rem;
    padding: 1rem 1.5rem;
}

.state-link i {
    margin-right: 0.75rem;
    font-size: 0.8rem;
    transition: var(--transition);
    color: var(--primary-color);
}

.state-link:hover i {
    transform: translateX(3px);
}

.state-link .count {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Social Links Widget */
.social-links-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links-widget .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--background-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    transition: var(--transition);
    flex: 1;
    min-width: calc(50% - 0.375rem);
    border: 2px solid var(--border-color);
    font-weight: 500;
}

.social-links-widget .social-link:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links-widget .social-link.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-links-widget .social-link.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-links-widget .social-link.instagram:hover {
    background: #e4405f;
    color: white;
    border-color: #e4405f;
}

.social-links-widget .social-link.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

/* Search Form in Sidebar */
.sidebar .search-form {
    display: flex;
    gap: 0.5rem;
}

.sidebar .search-field {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.sidebar .search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar .search-submit:hover {
    background: var(--secondary-color);
}

/* Rating in Sidebar */
.sidebar .rating {
    font-size: 0.85rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    padding: 0.4rem 0.8rem;
    background: var(--background-light);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.sidebar .rating .stars {
    font-size: 0.8rem;
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
    color: #fbbf24;
}

.sidebar .rating .rating-text {
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-muted);
    font-weight: 500;
}

/* Additional Widget Overrides for WordPress Default Widgets */
.sidebar .widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.sidebar .widget_search .search-field {
    flex: 1;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--background-light);
    transition: var(--transition);
}

.sidebar .widget_search .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background-white);
    box-shadow: 0 0 0 3px rgba(4, 162, 223, 0.1);
}

.sidebar .widget_search .search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.sidebar .widget_search .search-submit:hover {
    background: var(--text-dark);
    transform: translateY(-1px);
}

/* Override Default WordPress Widget Styles */
.sidebar .widget_recent_entries ul,
.sidebar .widget_categories ul,
.sidebar .widget_archive ul,
.sidebar .widget_meta ul,
.sidebar .widget_pages ul,
.sidebar .widget_nav_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget_recent_entries li,
.sidebar .widget_categories li,
.sidebar .widget_archive li,
.sidebar .widget_meta li,
.sidebar .widget_pages li,
.sidebar .widget_nav_menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.sidebar .widget_recent_entries li:last-child,
.sidebar .widget_categories li:last-child,
.sidebar .widget_archive li:last-child,
.sidebar .widget_meta li:last-child,
.sidebar .widget_pages li:last-child,
.sidebar .widget_nav_menu li:last-child {
    border-bottom: none;
}

.sidebar .widget_recent_entries a,
.sidebar .widget_categories a,
.sidebar .widget_archive a,
.sidebar .widget_meta a,
.sidebar .widget_pages a,
.sidebar .widget_nav_menu a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar .widget_recent_entries a:hover,
.sidebar .widget_categories a:hover,
.sidebar .widget_archive a:hover,
.sidebar .widget_meta a:hover,
.sidebar .widget_pages a:hover,
.sidebar .widget_nav_menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 0.5rem;
}

/* Widget Titles Override */
.sidebar .widget h2,
.sidebar .widget h3,
.sidebar .widget h4 {
    background: var(--background-white);
    color: var(--text-dark);
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.sidebar .widget h2::before,
.sidebar .widget h3::before,
.sidebar .widget h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

/* Text Widget Styling */
.sidebar .widget_text .textwidget {
    color: var(--text-light);
    line-height: 1.6;
}

.sidebar .widget_text .textwidget p {
    margin-bottom: 1rem;
}

.sidebar .widget_text .textwidget p:last-child {
    margin-bottom: 0;
}

/* Calendar Widget */
.sidebar .widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.sidebar .widget_calendar th,
.sidebar .widget_calendar td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.sidebar .widget_calendar th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-dark);
}

.sidebar .widget_calendar a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.sidebar .widget_calendar a:hover {
    text-decoration: underline;
}

/* Tag Cloud Widget */
.sidebar .widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: var(--background-light);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.85rem !important;
    transition: var(--transition);
}

.sidebar .widget_tag_cloud .tagcloud a:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Comment Section Styles */
.comments-area {
    margin: 0 0 var(--section-margin) 0;
    padding: var(--box-padding);
    background: var(--background-light);
    border-radius: var(--border-radius);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: var(--box-margin);
    color: var(--text-dark);
}

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

.comment {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: var(--element-padding);
    margin-bottom: var(--element-margin);
    box-shadow: var(--shadow);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comment-content {
    color: var(--text-light);
    line-height: 1.6;
}

.reply-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

.reply-link:hover {
    text-decoration: underline;
}

.comment-form {
    background: var(--background-white);
    padding: var(--box-padding);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: var(--box-margin) 0;
}

.comment-form h3 {
    margin-bottom: var(--element-margin);
    color: var(--text-dark);
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 162, 223, 0.1);
}

.form-submit .submit {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.form-submit .submit:hover {
    background: var(--secondary-color);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large screens - extra generous padding */
@media (min-width: 1400px) {
    .container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    /* Tablet responsive padding */
    .container {
        padding: 0 25px;
    }
    
    .search-section .container {
        text-align: center !important;
    }
    
    .search-section {
        text-align: center !important;
    }
    
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Adjust body spacing for fixed header in mobile */
    .site-main {
        margin-top: 50px !important;
    }
    
    .home .site-main {
        margin-top: 50px !important;
    }
    
    /* Ensure hero section connects with header */
    .hero-section {
        margin-top: -50px !important;
        padding-top: 50px !important;
    }
    
    /* Ensure search section spacing is maintained */
    .search-section {
        margin-top: -2rem !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .site-branding {
        flex: none !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
    
    .menu-toggle {
        display: block !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-left: auto !important;
        z-index: 1001 !important;
    }
    
    .main-navigation {
        display: block !important;
        position: relative;
    }
    
    .main-navigation .nav-menu {
        display: none !important;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background: var(--background-white);
        box-shadow: var(--shadow);
        padding: 0 !important;
        flex-direction: column;
        list-style: none;
        margin: 0;
        border-radius: 8px;
        width: 200px;
        z-index: 1000;
        min-width: 180px;
        overflow: hidden;
        gap: 0 !important;
    }
    
    .main-navigation.active .nav-menu {
        display: flex !important;
        flex-direction: column;
    }
    
    .main-navigation .nav-menu li {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        line-height: 1 !important;
        border: none !important;
        background: none !important;
        display: block !important;
    }
    
    .main-navigation .nav-menu a {
        display: flex !important;
        align-items: center !important;
        padding: 0 16px !important;
        color: var(--text-dark) !important;
        text-decoration: none !important;
        border-bottom: 1px solid #E5E7EB;
        width: 100%;
        min-height: 44px !important;
        box-sizing: border-box;
        transition: all 0.2s ease !important;
        line-height: 1 !important;
        margin: 0 !important;
        font-size: 16px !important;
    }
    
    .main-navigation .nav-menu li:first-child a {
        border-radius: 8px 8px 0 0;
    }
    
    .main-navigation .nav-menu li:last-child a {
        border-bottom: none !important;
        border-radius: 0 0 8px 8px;
    }
    
    /* Single menu item should have full border radius */
    .main-navigation .nav-menu li:first-child:last-child a {
        border-radius: 8px;
    }
    
    .main-navigation .nav-menu a:hover {
        background-color: #F7FAFC !important;
        color: var(--primary-color) !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .search-form {
        flex-direction: column !important;
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        align-items: center !important;
    }
    
    .search-form .form-group {
        text-align: center !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .search-form .form-group label {
        text-align: center !important;
        margin: 0 auto 0.5rem auto !important;
    }
    
    .search-form .form-control {
        margin: 0 auto !important;
        max-width: 300px !important;
        width: 100% !important;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    [class*="col-"] {
        padding: 0 10px;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    /* FAQ Responsive */
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-question i {
        margin-left: 0.75rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.25rem 1.5rem 1.75rem;
        max-height: 250px;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
    
    /* Sidebar Responsive */
    .sidebar {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .widget-content {
        padding: 1rem;
    }
    
    .widget-title {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .social-links-widget .social-link {
        min-width: 100%;
        justify-content: center;
    }
    
    /* Comments Responsive */
    .comments-area {
        padding: 1.5rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .search-section .container {
        text-align: center !important;
    }
    
    /* Ensure proper header spacing on small phones */
    .site-header {
        position: fixed !important;
    }
    
    .header-container {
        padding: 0.5rem 0 !important;
    }
    
    .site-main {
        margin-top: 45px !important;
    }
    
    .home .site-main {
        margin-top: 45px !important;
    }
    
    /* Ensure hero section connects with header on small phones */
    .hero-section {
        margin-top: -45px !important;
        padding-top: 45px !important;
    }
    
    /* Maintain search section spacing on small phones */
    .search-section {
        margin-top: -2rem !important;
    }
    
    /* Ensure mobile menu looks good on small phones */
    .main-navigation .nav-menu {
        width: 180px !important;
        min-width: 160px !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 0 14px !important;
        font-size: 15px !important;
        line-height: 1 !important;
        min-height: 40px !important;
    }
    
    .search-form {
        padding: 0 0.5rem !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .search-form .form-group {
        text-align: center !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .search-form .form-group label {
        text-align: center !important;
    }
    
    .search-form .form-control {
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    /* FAQ Mobile */
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-question h4 {
        font-size: 0.95rem;
    }
    
    .faq-question i {
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem 1.25rem 1.5rem;
        max-height: 300px;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    /* Sidebar Mobile */
    .sidebar {
        padding: 0.75rem;
    }
    
    .widget-content {
        padding: 0.75rem;
    }
    
    .widget-title {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .recent-restaurant-item,
    .recent-post-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .restaurant-thumbnail,
    .post-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    /* Comments Mobile */
    .comments-area {
        padding: 1rem;
    }
    
    .comment {
        padding: 1rem;
    }
    
    .comment-form {
        padding: 1rem;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* ============================================
   Pagination Styles
   ============================================ */

.posts-navigation,
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    background: var(--background-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.nav-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.nav-links .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.nav-links .prev,
.nav-links .next {
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    min-width: auto;
}

.nav-links .prev:hover,
.nav-links .next:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Special styling for page numbers */
.nav-links a.page-numbers,
.nav-links span.page-numbers {
    font-weight: 500;
}

.nav-links span.page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: default;
}

.nav-links .dots:before {
    content: "…";
}

/* Pagination wrapper */
.pagination-wrapper {
    margin: 4rem 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.nav-links .dots {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text-muted);
    cursor: default;
}

.nav-links .dots:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-links a,
    .nav-links span {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .nav-links .prev,
    .nav-links .next {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links a,
    .nav-links span {
        min-width: 35px;
        height: 35px;
        padding: 0.375rem;
        font-size: 0.8rem;
    }
    
    .nav-links .prev,
    .nav-links .next {
        padding: 0.375rem 0.75rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .breadcrumbs,
    .search-section {
        display: none;
    }
    
    .site-main {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}