/* All Restaurants Redesigned - TripAdvisor-Inspired CSS */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #ee2e20;
    --primary-dark: #000000;
    --primary-light: #d75e43;
    --secondary-color: #0f6a58;
    --secondary-dark: #0a4d40;
    --secondary-light: #1f8570;
    --accent-color: #f4c161;
    --accent-deep: #d08a1a;
    --sand-color: #f6ebdc;
    --sand-soft: #d1c5c4;
    --tile-color: rgba(255, 255, 255, 0.1);
    --text-primary: #271714;
    --text-secondary: #000000;
    --text-muted: #f6d2cf;
    --border-color: rgb(255, 0, 0);
    --border-light: rgb(255, 40, 40);
    --bg-white: #fffaf2;
    --bg-gray-50: #faf4ed;
    --bg-gray-100: #0f6a58;
    --shadow-sm: 0 2px 8px rgba(26, 24, 23, 0.07);
    --shadow-md: 0 10px 24px rgba(15, 73, 63, 0.14);
    --shadow-lg: 0 24px 45px rgba(179, 52, 43, 0.18);
    --shadow-xl: 0 32px 60px rgba(9, 49, 41, 0.22);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: all 0.25s ease;
    --pattern: radial-gradient(circle at 12% 18%, var(--tile-color) 6%, transparent 7%),
        radial-gradient(circle at 82% 28%, var(--tile-color) 6%, transparent 7%),
        radial-gradient(circle at 18% 82%, var(--tile-color) 6%, transparent 7%),
        radial-gradient(circle at 88% 78%, var(--tile-color) 6%, transparent 7%);
}

/* Base Styles */
.lebonresto-all-restaurants-page {
    font-family: 'Manrope', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.55;
    color: var(--text-primary);
    background: radial-gradient(circle at 0% 0%, rgba(179, 52, 43, 0.08), transparent 52%),
        radial-gradient(circle at 100% 100%, rgba(15, 106, 88, 0.1), transparent 48%),
        linear-gradient(180deg, var(--sand-soft) 0%, #f3e6d7 100%);
    min-height: 100vh;
}

.lebonresto-all-restaurants-redesigned {
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Page Header Section */
.page-header-section {
    background: radial-gradient(circle at 15% 20%, rgba(244, 193, 97, 0.35) 0%, rgba(244, 193, 97, 0) 55%),
        radial-gradient(circle at 85% 10%, rgba(215, 94, 67, 0.45) 0%, rgba(215, 94, 67, 0) 60%),
        linear-gradient(135deg, rgba(10, 77, 64, 0.95) 0%, rgba(125, 34, 28, 0.92) 100%);
    color: #fffaf2;
    border-bottom: 1px solid rgba(244, 193, 97, 0.45);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}

.page-header-section::before,
.page-header-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern);
    background-size: 140px 140px;
    opacity: 0.32;
    pointer-events: none;
}

.page-header-section::after {
    background-image: linear-gradient(135deg, rgba(244, 193, 97, 0.25), transparent 55%);
    opacity: 0.42;
    mix-blend-mode: screen;
}

/* Mobile optimizations for page header */
@media (max-width: 768px) {
    .page-header-section {
        padding: 16px 0 !important;
    }
    
    .page-header-section .container {
        padding: 0 12px !important;
    }
    
    .page-header-section .py-8 {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}

.header-content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff7ef;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.main-subtitle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 250, 242, 0.85);
    max-width: 780px;
    line-height: 1.7;
}

.moroccan-ornament {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    margin-top: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(244, 193, 97, 0.45);
    background: linear-gradient(135deg, rgba(244, 193, 97, 0.28), rgba(15, 106, 88, 0.28));
    box-shadow: 0 18px 40px rgba(9, 49, 41, 0.35);
    color: rgba(255, 250, 242, 0.85);
    position: relative;
    overflow: hidden;
}

.moroccan-ornament::before,
.moroccan-ornament::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern);
    background-size: 140px 140px;
    opacity: 0.4;
    pointer-events: none;
}

.moroccan-ornament::after {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 65%);
    opacity: 0.55;
}

.moroccan-ornament-svg {
    width: 220px;
    height: 40px;
    position: relative;
    z-index: 1;
}

/* Mobile optimizations for titles */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem !important;
        margin: 0 0 6px 0 !important;
        line-height: 1.3 !important;
    }
    
    .main-subtitle {
        font-size: 0.95rem !important;
        margin: 8px 0 !important;
        line-height: 1.4 !important;
        gap: 6px !important;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.25rem !important;
        margin: 0 0 4px 0 !important;
    }
    
    .main-subtitle {
        font-size: 0.875rem !important;
        margin: 6px 0 !important;
        line-height: 1.3 !important;
    }
}

.info-tooltip {
    position: relative;
    display: inline-block;
}

.info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(244, 193, 97, 0.2);
    cursor: pointer;
    color: var(--accent-color);
    transition: var(--transition);
    border-radius: 50%;
}

.info-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.info-icon {
    width: 16px;
    height: 16px;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: #fff7ef;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
    margin-bottom: 4px;
    max-width: 300px;
    white-space: normal;
}

.info-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Map Toggle */
.map-toggle-container {
    flex-shrink: 0;
    width: 50%;
}

.map-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid rgba(244, 193, 97, 0.6);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(244, 193, 97, 0.92), rgba(179, 52, 43, 0.96));
    color: #fffaf2;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.map-toggle-btn:hover {
    border-color: rgba(244, 193, 97, 0.85);
    background: linear-gradient(135deg, rgba(179, 52, 43, 0.95), rgba(10, 77, 64, 0.92));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.map-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.05em;
}

.map-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 250, 242, 0.85);
}

/* Ensure SVG inherits text color */
.map-icon path {
    fill: currentColor;
}

.map-text {
    color: #fff7ef;
    text-transform: uppercase;
    font-weight: 600;
}

/* Main Content Layout */
.main-content-layout {
    padding: 24px 0;
}

/* Mobile optimizations for main content */
@media (max-width: 768px) {
    .main-content-layout {
        padding: 16px 0 !important;
    }
    
    .main-content-layout .container {
        padding: 0 12px !important;
    }
}

@media (max-width: 480px) {
    .main-content-layout {
        padding: 12px 0 !important;
    }
    
    .main-content-layout .container {
        padding: 0 8px !important;
    }
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 24px;
    height: fit-content;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    z-index: 10;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #0f6a58;
    transition: all 0.3s ease;
}

/* Ensure sticky behavior works properly */
.filters-sidebar.sticky {
    box-shadow: var(--shadow-lg);
}

.filters-container {
    background: #ffffff;
    border: 1px solid #0f6a58;
    border-radius: var(--radius-lg);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.filters-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern);
    background-size: 110px 110px;
    opacity: 0.22;
    pointer-events: none;
}

.filters-container > * {
    position: relative;
    z-index: 1;
}

/* Filter Groups */
.filter-group {
    border-bottom: 1px solid #0f6a58;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    background: #0f6a58;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #b3342b;
    background: #ffffff;
    cursor: pointer;
    color: #b3342b;
    transition: var(--transition);
    border-radius: 50%;
}

.filter-toggle:hover {
    background: #b3342b;
    color: #ffffff;
    border-color: #b3342b;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.filter-toggle[aria-expanded="false"] .toggle-icon {
    transform: rotate(-90deg);
}

.filter-content {
    padding: 0 22px 20px 22px;
    display: block;
    background: #ffffff;
}

.filter-group .filter-header[aria-expanded="false"] + .filter-content {
    display: none;
}

/* Search Input */
.search-input-container {
    position: relative;
    margin-bottom: 16px;
}

.search-input {
    width: 90%;
    padding: 12px 16px 12px 44px;
    border: 1px solid rgba(15, 106, 88, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 250, 242, 0.85);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(179, 52, 43, 0.18);
    background: rgba(255, 250, 242, 0.95);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--secondary-light);
    pointer-events: none;
}

.location-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Price Range Inputs */
.price-range-slider {
    margin-bottom: 16px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-input-group {
    flex: 1;
    position: relative;
}

.price-input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.price-input {
    width: 90%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(254, 220, 0, 0.1);
}

.currency-symbol {
    position: absolute;
    right: 30px;
    top: 70%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}

.price-separator {
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Price Category Options */
.price-symbols {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 8px;
    min-width: 40px;
    display: inline-block;
}

.price-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 12px;
    transition: var(--transition);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #0f6a58;
}

.filter-option:hover {
    background: #0f6a58;
    color: #ffffff;
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #0f6a58;
    border-radius: var(--radius-sm);
    background: #ffffff;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: var(--transition);
}

.filter-checkbox:checked {
    background: #b3342b;
    border-color: #b3342b;
}

.filter-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

/* Radio Button Styling */
.filter-radio {
    width: 16px;
    height: 16px;
    border: 1px solid #0f6a58;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: var(--transition);
}

.filter-radio:checked {
    background: #b3342b;
    border-color: #b3342b;
}

.filter-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

.radio-mark {
    display: none;
}

.checkmark {
    display: none;
}

.option-text {
    font-size: 0.875rem;
    color: #0f6a58;
    flex: 1;
}

.wp-embed-responsive{
    background-color: #0a4d40;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffa500;
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Show More Button */
.show-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #b3342b;
    border: none;
    color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    border-radius: var(--radius-full);
}

.show-more-btn:hover {
    background: #0f6a58;
    color: #ffffff;
}

.show-more-icon {
    width: 1em;
    height: 1em;
    transition: transform 0.2s ease;
}

.show-more-btn[aria-expanded="true"] .show-more-icon {
    transform: rotate(180deg);
}

/* Filter Actions */
.filter-actions {
    padding: 16px 20px;
    border-top: 1px solid #0f6a58;
    background: #ffffff;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #b3342b;
    border-radius: var(--radius-md);
    color: #b3342b;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.clear-filters-btn:hover {
    background: #0f6a58;
    border-color: #0f6a58;
    color: #ffffff;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #0f6a58;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #0f6a58;
}

.filter-select:focus {
    outline: 2px solid #b3342b;
}

.price-inputs .price-input {
    border: 1px solid #0f6a58;
    background: #ffffff;
    color: #0f6a58;
    border-radius: var(--radius-md);
}

.price-inputs .price-input:focus {
    outline: 2px solid #b3342b;
}

.currency-symbol {
    color: #0f6a58;
}

.clear-icon {
    width: 16px;
    height: 16px;
}
.clear-icon path { fill: currentColor; }
.clear-filters-btn .clear-icon { color: #ffffff; }
.clear-filters-btn:hover .clear-icon { color: #b3342b; }

/* Popup control icon color behavior */
.control-icon { width: 16px; height: 16px; }
.control-icon path { fill: currentColor; }
.popup-control-btn .control-icon { color: #ffffff; }
.popup-control-btn:hover .control-icon { color: #b3342b; }

/* Header search icon */
.header-search-icon { color: #ffffff; }
.header-search-icon path { fill: currentColor; }
.header-search-input-container:hover .header-search-icon { color: #b3342b; }

/* Restaurant Content */
.restaurants-content {
    min-height: 100vh;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: #FFF;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-dropdown-btn:hover {
    border-color: var(--primary-color);
}

.sort-text {
    font-weight: 500;
}

.sort-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.sort-dropdown-btn[aria-expanded="true"] .sort-icon {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
}

.sort-dropdown-btn[aria-expanded="true"] + .sort-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-options {
    padding: 8px 0;
}

.sort-option {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-option:hover {
    background: var(--bg-gray-50);
    color: var(--text-primary);
}

.sort-option.active {
    background: var(--primary-color);
    color: var(--text-primary);
    font-weight: 600;
}

/* Restaurant Grid */
.restaurants-container {
    flex: 1;
}

.restaurants-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Restaurant Cards */
.restaurant-card {
    background: linear-gradient(145deg, rgba(255, 250, 242, 0.98) 0%, rgba(246, 235, 220, 0.92) 100%);
    border: 1px solid rgba(244, 193, 97, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.restaurant-card > * {
    position: relative;
    z-index: 1;
}

.restaurant-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(244, 193, 97, 0.65);
}

.restaurant-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern);
    background-size: 140px 140px;
    opacity: 0.16;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 0;
}

.restaurant-card:hover::before {
    opacity: 0.26;
}

.restaurant-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 193, 97, 0.15), transparent 65%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.card-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(150px, 180px);
    gap: 20px;
    padding: 20px 24px;
    align-items: center;
    background-color: #0a4d40;
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(179, 52, 43, 0.28), rgba(15, 106, 88, 0.28));
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(244, 193, 97, 0.3);
}

.restaurant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.restaurant-card:hover .restaurant-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.save-btn,
.vr-btn,
.award-badge {
    background: rgba(255, 247, 239, 0.92);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 22px rgba(15, 106, 88, 0.18);
    border: 1px solid rgba(244, 193, 97, 0.45);
}

.save-btn:hover,
.vr-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #fff;
}

/* Icon colors - Yellow */
.save-btn svg,
.vr-btn svg {
    color: #0f6a58;
}

.save-btn svg path,
.vr-btn svg path {
    fill: #0f6a58;
}

/* Ensure div inside a tags work properly */
.save-btn div,
.vr-btn div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* VR Popup - Auto height based on content */
#virtual-tour-popup .popup-container {
    height: 100vh;
    max-height: 100vh;
}
#irtual-tour-iframe{
    width: 100% !important;
    height: 100% !important;
}

/* Icon Tooltips */
.save-btn,
.vr-btn {
    position: relative;
}

.save-btn::after {
    content: "Voir sur la carte";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f6a58;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.save-btn::before {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #FFF;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.save-btn:hover::after,
.save-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.vr-btn::after {
    content: "Visite virtuelle";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f6a58;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.vr-btn::before {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #FFF;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.vr-btn:hover::after,
.vr-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Card Content */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.restaurant-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.restaurant-ranking {
    color: rgba(15, 106, 88, 0.65);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.restaurant-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    letter-spacing: 0.02em;
}

.restaurant-name:hover {
    color: #FFF;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.rating-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(255, 0, 0);
}

.rating-bubbles {
    display: flex;
    gap: 2px;
}

.rating-bubble {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 247, 239, 0.8) 15%, transparent 16%),
        linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    box-shadow: 0 0 0 1px rgba(255, 247, 239, 0.3);
}

.rating-bubble.empty {
    background: rgba(255, 247, 239, 0.6);
}

.review-count {
    color: rgb(255, 0, 0);
    font-size: 0.875rem;
    text-decoration: none;
}

.review-count:hover {
    color: rgb(255, 255, 255);
    text-decoration: underline;
}

/* Restaurant Details */
.restaurant-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.detail-icon {
    width: 16px;
    height: 16px;
    color: #FFF;
}

/* Ensure yellow fill for inline SVG paths */
.detail-icon path {
    fill: #FFF;
}

.cuisine-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-range {
    color: #FFF;
    font-weight: 700;
}

.status-open {
    color: #10b981;
    font-weight: 500;
}

.status-closed {
    color: #ef4444;
    font-weight: 500;
}

/* Google Reviews Preview */
.google-reviews-preview {
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #e1f5fe;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
    position: relative;
    overflow: hidden;
}

.google-reviews-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #4285F4, #34A853);
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.review-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-navigation button {
    transition: all 0.2s ease;
}

.review-navigation button:hover {
    background: rgba(66, 133, 244, 0.1) !important;
    transform: scale(1.1);
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
}

.review-item {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-item.active {
    display: block !important;
    opacity: 1;
}

/* Ensure reviews are visible */
.google-reviews-preview {
    display: block !important;
    visibility: visible !important;
}

.recent-review {
    font-size: 13px;
    line-height: 1.5;
}

.review-text {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
}

.review-text::before {
    content: '"';
    color: #4285F4;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    left: -8px;
    top: -2px;
}

.review-text::after {
    content: '"';
    color: #4285F4;
    font-size: 16px;
    font-weight: bold;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.review-author span {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 12px;
    color: #FFF;
}

.more-reviews {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e1f5fe;
    text-align: center;
}

.more-reviews span {
    background: #4285F4;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Price Symbols */
.price-symbols {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 8px;
    font-size: 14px;
}

.cuisine-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* Vertical icons stack next to details button */
.action-icons-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 480px) {
    .action-icons-vertical {
        flex-direction: row;
    }
}

/* Color action icons in yellow */
.action-icons-vertical .action-btn svg,
.action-icons-vertical .action-btn svg path {
    color: #ffffff;
    fill: #ffffff;
}

.action-icons-vertical .action-btn:hover svg,
.action-icons-vertical .action-btn:hover svg path {
    color: #b3342b;
    fill: #b3342b;
}

.action-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.action-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
    font-weight: 600;
}

.action-btn.primary:hover {
    background: var(--primary-dark);
}

/* Load More */
.load-more-container {
    text-align: center;
    padding: 32px 0;
}

.load-more-btn {
    padding: 12px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.mobile-filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.mobile-filter-button:hover {
    background: var(--primary-dark);
}

.filter-icon {
    width: 20px;
    height: 20px;
}

/* Mobile Filter Overlay */
.mobile-filter-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.mobile-filter-overlay.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-filter-overlay:not(.hidden) {
    display: block !important;
    visibility: visible !important;
}

/* Mobile Filter Panel */
.mobile-filter-panel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    background: white !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-filter-panel.show {
    transform: translateX(0) !important;
}

.mobile-filter-panel:not(.-translate-x-full) {
    transform: translateX(0) !important;
}

/* Force mobile filter panel to be visible when needed */
.mobile-filter-overlay.show .mobile-filter-panel {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile Filter Button - Hide on desktop */
@media (min-width: 1024px) {
    .mobile-filter-toggle,
    .mobile-filter-toggle.lg\:hidden,
    div.mobile-filter-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Also hide mobile filter overlay and panel on desktop */
    .mobile-filter-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .mobile-filter-panel {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Additional desktop hiding for any remaining mobile filter elements */
@media (min-width: 1024px) {
    #mobile-filter-overlay,
    #mobile-filter-panel,
    .mobile-filter-overlay,
    .mobile-filter-panel {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Show mobile filter button only on mobile/tablet */
@media (max-width: 1023px) {
    .mobile-filter-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 70px !important;
        right: 20px !important;
        z-index: 1000 !important;
        pointer-events: auto !important;
    }
    
    .mobile-filter-toggle button {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-light) 100%) !important;
        color: #fffaf2 !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 12px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        box-shadow: 0 10px 26px rgba(15, 106, 88, 0.32) !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: 2px solid rgba(244, 193, 97, 0.45) !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        min-width: auto !important;
        height: auto !important;
        white-space: nowrap !important;
    }

    .mobile-filter-toggle button:hover {
        transform: scale(1.05) translateY(-2px) !important;
        box-shadow: 0 12px 32px rgba(179, 52, 43, 0.36) !important;
        background: linear-gradient(135deg, var(--secondary-light) 0%, var(--primary-dark) 100%) !important;
    }

    .mobile-filter-toggle button:active {
        transform: scale(1.02) translateY(0px) !important;
        box-shadow: 0 8px 18px rgba(179, 52, 43, 0.32) !important;
    }
    
    /* SVG Icon styling */
    .mobile-filter-toggle .filter-icon {
        display: block !important;
        width: 20px !important;
        height: 20px !important;
        fill: currentColor !important;
        color: #fffaf2 !important;
        flex-shrink: 0 !important;
    }
    
    .mobile-filter-toggle .filter-icon path {
        fill: currentColor !important;
    }
    
    /* Text styling */
    .mobile-filter-toggle .filter-text {
        display: block !important;
        color: #0a4d40 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Remove the emoji fallback since we have proper icon now */
    .mobile-filter-toggle button::before {
        display: none !important;
    }
    
    /* Hide mobile filter button when filter panel is open */
    .mobile-filter-toggle.filter-open {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: scale(0.8) !important;
    }
}

/* Mobile Filter Form Styling */
.mobile-filter-panel {
    font-family: 'Manrope', 'Segoe UI', Roboto, sans-serif !important;
}

.mobile-filter-panel .space-y-4 > div {
    margin-bottom: 20px !important;
}

.mobile-filter-panel input,
.mobile-filter-panel select {
    background: linear-gradient(145deg, rgba(255, 247, 239, 0.95) 0%, rgba(243, 231, 211, 0.9) 100%) !important;
    border: 2px solid rgba(15, 106, 88, 0.25) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--primary-dark) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 22px rgba(15, 106, 88, 0.14) !important;
}

.mobile-filter-panel input:focus,
.mobile-filter-panel select:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(179, 52, 43, 0.18), 0 10px 22px rgba(15, 106, 88, 0.18) !important;
    background: rgba(255, 250, 242, 0.98) !important;
    transform: translateY(-1px) !important;
}

.mobile-filter-panel input::placeholder {
    color: #f6d2cf !important;
    font-weight: 400 !important;
}

.mobile-filter-panel select {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

.mobile-filter-panel input:hover,
.mobile-filter-panel select:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 6px 18px rgba(244, 193, 97, 0.2) !important;
}

/* Checkbox styling */
.mobile-filter-panel input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    accent-color: var(--primary-color) !important;
    margin-right: 12px !important;
    cursor: pointer !important;
}

.mobile-filter-panel .flex.items-center {
    padding: 12px 0 !important;
}

.mobile-filter-panel .flex.items-center span {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: rgb(255, 0, 0) !important;
}

/* Button styling */
.mobile-filter-panel button {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    padding: 16px 20px !important;
    box-shadow: 0 8px 20px rgba(15, 106, 88, 0.18) !important;
}

.mobile-filter-panel button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(179, 52, 43, 0.28) !important;
}

.mobile-filter-panel button:active {
    transform: translateY(0) !important;
}

/* Apply button specific styling */
.mobile-filter-panel button[style*="background-color: #cc2014"],
.mobile-filter-panel button.apply-filters {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-light) 100%) !important;
    color: #fffaf2 !important;
    border: 1px solid rgba(244, 193, 97, 0.45) !important;
}

.mobile-filter-panel button[style*="background-color: #cc2014"]:hover,
.mobile-filter-panel button.apply-filters:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 12px 30px rgba(179, 52, 43, 0.3) !important;
}

/* Clear button specific styling */
.mobile-filter-panel .bg-gray-200 {
    background: linear-gradient(135deg, rgba(15, 106, 88, 0.08) 0%, rgba(244, 193, 97, 0.25) 100%) !important;
    color: var(--secondary-dark) !important;
    border: 2px solid rgba(244, 193, 97, 0.4) !important;
}

.mobile-filter-panel .bg-gray-200:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%) !important;
    color: #fffaf2 !important;
    border-color: rgba(179, 52, 43, 0.55) !important;
}

/* Mobile Filter Panel Header */
.mobile-filter-panel .flex.items-center.justify-between {
    background: linear-gradient(135deg, rgba(10, 77, 64, 0.95), rgba(179, 52, 43, 0.92)) !important;
    padding: 20px !important;
    border-bottom: 2px solid rgba(244, 193, 97, 0.5) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    display: flex;
    gap: 170px;
}

.mobile-filter-panel h3 {
    color: #fffaf2 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 2px 6px rgba(12, 44, 43, 0.6) !important;
}

/* Close button styling */
#close-mobile-filters {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 247, 239, 0.18) !important;
    border: 2px solid rgba(244, 193, 97, 0.55) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #fffaf2 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 0 !important;
    margin: 0 !important;
}

#close-mobile-filters svg {
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor !important;
    fill: none !important;
    display: block !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    color: #fffaf2 !important;
    transition: all 0.3s ease !important;
}

#close-mobile-filters:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
    border-color: rgba(244, 193, 97, 0.75) !important;
    transform: scale(1.1) rotate(90deg) !important;
    box-shadow: 0 8px 18px rgba(9, 49, 41, 0.35) !important;
}

#close-mobile-filters:hover svg {
    color: #fffaf2 !important;
    stroke: #fffaf2 !important;
    transform: scale(1.1) !important;
}

#close-mobile-filters:active {
    transform: scale(1.05) rotate(90deg) !important;
}

/* Mobile Filter Panel Content */
.mobile-filter-panel .p-4 {
    padding: 24px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
}

/* Add subtle animations */
.mobile-filter-panel .space-y-4 > div {
    animation: slideInUp 0.3s ease-out !important;
    animation-fill-mode: both !important;
}

.mobile-filter-panel .space-y-4 > div:nth-child(1) { animation-delay: 0.1s !important; }
.mobile-filter-panel .space-y-4 > div:nth-child(2) { animation-delay: 0.15s !important; }
.mobile-filter-panel .space-y-4 > div:nth-child(3) { animation-delay: 0.2s !important; }
.mobile-filter-panel .space-y-4 > div:nth-child(4) { animation-delay: 0.25s !important; }
.mobile-filter-panel .space-y-4 > div:nth-child(5) { animation-delay: 0.3s !important; }
.mobile-filter-panel .space-y-4 > div:nth-child(6) { animation-delay: 0.35s !important; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling for mobile filter panel */
.mobile-filter-panel::-webkit-scrollbar {
    width: 6px !important;
}

.mobile-filter-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 3px !important;
}

.mobile-filter-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-light) 100%) !important;
    border-radius: 3px !important;
}

.mobile-filter-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--primary-dark) 100%) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px !important;
    }
    
    .filters-sidebar {
        position: static;
        max-height: none;
        order: -1;
        overflow-y: visible;
        margin-bottom: 16px !important;
    }
    
    /* Tablet: Ensure 16:9 aspect ratio */
    .card-image {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px !important;
    }
    
    .header-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .results-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 0 !important;
        margin-bottom: 16px !important;
    }
    
    .card-layout {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
        background-color: #0a4d40;
    }
    
    .card-image {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }
    
    .card-actions {
        align-items: stretch !important;
        margin-top: 8px !important;
    }
    
    .action-buttons {
        justify-content: space-between !important;
        gap: 6px !important;
    }
    
    .action-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 6px 8px !important;
        font-size: 13px !important;
    }
    
    /* Mobile: Stack title and reviews vertically on small screens */
    .restaurant-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    
    .rating-section {
        align-self: flex-start !important;
    }
    
    .filters-sidebar {
        display: none !important;
    }
    
    .mobile-filter-toggle {
        display: block !important;
    }
    
    /* Compact restaurant cards */
    .restaurants-grid {
        gap: 12px !important;
    }
    
    .restaurant-card {
        border-radius: 8px !important;
    }
    
    .restaurant-name {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .restaurant-details {
        gap: 2px !important;
    }
    
    .detail-row {
        font-size: 13px !important;
        gap: 6px !important;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.25rem !important;
    }
    
    .card-layout {
        padding: 10px !important;
        gap: 8px !important;
        background-color: #0a4d40;
    }
    
    .restaurant-name {
        font-size: 0.95rem !important;
        line-height: 1.1 !important;
    }
    
    .mobile-filter-button {
        padding: 8px 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }
    
    .mobile-filter-button .filter-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Compact restaurant cards for very small screens */
    .restaurants-grid {
        gap: 8px !important;
    }
    
    .restaurant-card {
        border-radius: 6px !important;
    }
    
    .card-content {
        gap: 6px !important;
    }
    
    .restaurant-details {
        gap: 1px !important;
    }
    
    .detail-row {
        font-size: 12px !important;
        gap: 4px !important;
    }
    
    .detail-icon {
        width: 14px !important;
        height: 14px !important;
    }
    
    .rating-section {
        gap: 6px !important;
    }
    
    .rating-value {
        font-size: 13px !important;
    }
    
    .rating-bubbles {
        gap: 1px !important;
    }
    
    .rating-bubble {
        width: 10px !important;
        height: 10px !important;
    }
    
    .review-count {
        font-size: 12px !important;
    }
    
    .action-icons-vertical {
        gap: 4px !important;
    }
    
    .action-icons-vertical .action-btn {
        padding: 4px 6px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    
    .action-icons-vertical .action-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #000000;
        --text-muted: #f6d2cf;
        --bg-white: #0a4d40;
        --bg-gray-50: #111827;
        --bg-gray-100: rgb(255, 0, 0);
        --border-color: rgb(255, 0, 0);
        --border-light: #4b5563;
    }
}

/* Enhanced Features - Price and Distance Display */
.price-display {
    color: var(--primary-color);
    font-weight: 600;
}

.rating-bubble.half {
    background: linear-gradient(90deg, var(--primary-color) 50%, var(--border-color) 50%);
}

.google-reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #4285f4;
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Restaurant Status Styling */
.status-open {
    color: #10b981;
    font-weight: 600;
}

.status-closed {
    color: #ef4444;
    font-weight: 600;
}

/* Header Layout Structure */
.header-content {
    display: flex;
    flex-direction: column;
}

.header-title-section {
    width: 100%;
}

.header-controls-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.header-search-input-container {
    position: relative;
    width: 90%;
}

.header-search-input {
    padding: 0.75rem 1rem 0.75rem 3rem !important;
    border: 2px solid rgba(244, 193, 97, 0.45);
    border-radius: 2rem !important;
    font-size: 1rem;
    background: rgba(255, 250, 242, 0.92);
    transition: all 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 106, 88, 0.18);
    width: 100%;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(179, 52, 43, 0.2);
    background: rgba(255, 250, 242, 0.98);
}

.header-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-light);
    pointer-events: none;
}

/* Responsive header layout */
@media (max-width: 768px) {
    .header-content {
        gap: 12px !important;
    }
    
    .header-controls-section {
        gap: 12px !important;
        max-width: 100% !important;
        margin-top: 8px !important;
    }
    
    .header-search-container {
        max-width: 100% !important;
        flex: 1 !important;
        width: 100%;
    }
    
    .header-search-input {
        padding: 10px 12px 10px 40px !important;
        font-size: 14px !important;
        height: 44px !important;
        border-radius: 8px !important;
    }
    
    .header-search-icon {
        left: 12px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    .map-toggle-container {
        flex-shrink: 0 !important;
        width: 100%;
    }
    
    .map-toggle-btn {
        padding: 10px 14px !important;
        font-size: 14px !important;
        height: 44px !important;
        border-radius: 8px !important;
    }
    
    .map-btn-content {
        gap: 6px !important;
    }
    
    .map-icon {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 8px !important;
    }
    
    .header-controls-section {
        gap: 8px !important;
        margin-top: 6px !important;
    }
    
    .header-search-input {
        padding: 8px 10px 8px 36px !important;
        font-size: 13px !important;
        height: 40px !important;
        border-radius: 6px !important;
        width: 87% !important;
    }
    
    .header-search-icon {
        left: 10px !important;
        width: 16px !important;
        height: 16px !important;
    }
    
    .map-toggle-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        height: 40px !important;
        border-radius: 6px !important;
        width: 100%;
    }
    
    .map-btn-content {
        gap: 4px !important;
    }
    
    .map-icon {
        width: 14px !important;
        height: 14px !important;
    }
    
    .map-text {
        font-size: 13px !important;
    }
}

@media (min-width: 768px) {
    .header-controls-section {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    
    .header-search-container {
        flex: 1;
    }
    
    .map-toggle-container {
        flex-shrink: 0;
        width: 50%;
    }
}

/* Desktop and tablet: Keep title and reviews on same line */
@media (min-width: 769px) {
    .restaurant-info {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }
    
    .rating-section {
        align-self: center !important;
    }
}

/* Restaurant Map Popup Modal Styles */
.restaurant-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.restaurant-popup-modal.show {
    display: flex;
    opacity: 1;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.popup-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    margin: auto;
    background: white;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: none;
    transition: transform 0.3s ease;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:20px;
    background: linear-gradient(135deg, #fff700 0%, #e2e8f0 100%);
    border-bottom: 2px solid #e5e7eb;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a4d40;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.close-icon {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.popup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.popup-map-container {
    flex: 1;
    width: 100%;
    min-height: 400px;
    background: #f9fafb;
    position: relative;
}

.popup-map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.popup-control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(255, 0, 0);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-control-btn:hover {
    background: #f9fafb;
    border-color: #e71e0f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-icon {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.popup-results-counter {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(255, 0, 0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Responsive popup styles */
@media (max-width: 768px) {
    .popup-container {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .popup-header {
        padding: 1rem 1.5rem;
    }
    
    .popup-title {
        font-size: 1.25rem;
    }
    
    .popup-map-controls {
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.5rem;
    }
    
    .popup-control-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .popup-results-counter {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Fullscreen modal for map (shared with JS handlers) */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
}

#fullscreen-map {
    width: 100%;
    height: 100%;
}

.fullscreen-map-close {
    position: absolute;
    top: 10px;
    right: 60px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9999px;
    background: rgba(15, 23, 41, 0.85);
    color: #f9fafb;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 41, 0.35);
    z-index: 10001;
}

.fullscreen-map-close:hover,
.fullscreen-map-close:focus {
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-1px);
    outline: none;
}

.fullscreen-map-close:focus-visible {
    outline: 3px solid rgba(254, 220, 0, 0.8);
    outline-offset: 2px;
}

.fullscreen-map-close svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 640px) {
    .fullscreen-map-close {
        top: 10px;
        right: 60px;
        width: 40px;
        height: 40px;
    }

    .fullscreen-map-close svg {
        width: 20px;
        height: 20px;
    }
}

.leaflet-popup.fullscreen-map-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 41, 0.25);
    padding: 0;
}

.leaflet-popup.fullscreen-map-popup .leaflet-popup-content {
    margin: 0;
    padding: 12px;
}

.leaflet-popup.fullscreen-map-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.97);
}

@media (max-width: 480px) {
    .popup-container {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .popup-header {
        padding: 0.75rem 1rem;
    }
    
    .popup-title {
        font-size: 1.125rem;
    }
}

/* Custom Map Markers */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.custom-marker-with-label {
    background: transparent !important;
    border: none !important;
}

.marker-with-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.marker-icon--custom {
    width: 40px;
    height: 40px;
}

.marker-label {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 6px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    pointer-events: none;
    margin-bottom: 4px;
}

.marker-label::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-left: 1px solid rgba(15, 23, 41, 0.08);
    border-bottom: 1px solid rgba(15, 23, 41, 0.08);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 8px 16px rgba(15, 23, 41, 0.18);
}

.marker-label .marker-title,
.marker-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0a4d40;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.marker-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.marker-stars {
    display: flex;
    gap: 1px;
    line-height: 1;
}

.marker-rating-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: #0a4d40;
}

.marker-review-count {
    font-size: 0.65rem;
    color: #6b7280;
}

.marker-with-label:hover .marker-icon {
    transform: scale(1.1);
}

.marker-with-label:hover .marker-label {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.marker-icon:hover {
    transform: scale(1.1);
}

.google-marker-label {
    position: absolute;
    pointer-events: none;
    transform-origin: center bottom;
    z-index: 1000;
}

.google-marker-label .marker-label {
    pointer-events: none;
}

.leaflet-popup.fullscreen-map-popup .leaflet-popup-content {
    margin: 0;
    padding: 12px;
}

.leaflet-popup.fullscreen-map-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.97);
}


@keyframes currentMarkerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(15, 106, 88, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(179, 52, 43, 0.5);
    }
}

/* Popup Link Styling */
.popup-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-light) 100%);
    color: #fffaf2;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: 90% !important;
}

.popup-link:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 106, 88, 0.25);
}

@media screen and (max-width: 1023px) {
    .popup-link {
        width: 75% !important;
    }
}