/* ═══════════════════════════════════════════════════════════
   MAP PAGE — Foodie Adventures
   Colors: #FFD700, #000, #111, #1C1C1C, #FFC107, #E53935
   ═══════════════════════════════════════════════════════════ */

/* ── Map Hero ── */
.map-hero {
    position: relative;
    padding-top: 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d0800 0%, #1a1008 40%, #0d0800 70%, #1a0a00 100%);
    min-height: 320px;
}

.map-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(255,180,50,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 70%, rgba(255,100,0,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.map-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 30px;
    position: relative;
    z-index: 1;
}

.map-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.map-hero-text {
    flex: 1;
    max-width: 550px;
}

.map-hero-headline {
    font-size: 42px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.map-hero-headline .highlight-yellow {
    display: block;
    color: #FFD700;
    text-decoration: underline;
    text-decoration-color: #FFD700;
    text-underline-offset: 4px;
}

.map-hero-subtext {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.map-hero-right {
    flex-shrink: 0;
    width: 300px;
}

.map-hero-image-area {
    position: relative;
}

.hero-food-collage {
    width: 100%;
    height: auto;
}

/* ── Stats Cards ── */
.map-hero-stats {
    display: flex;
    gap: 16px;
}

.map-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1C1C1C;
    border-radius: 12px;
    padding: 16px 20px;
    flex: 1;
    transition: transform 0.2s;
}

.map-stat-card:hover {
    transform: translateY(-2px);
}

.map-stat-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-stat-icon svg {
    width: 24px;
    height: 24px;
}

.map-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.map-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #9E9E9E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Search Bar ── */
.search-bar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    transform: translateY(-20px);
    position: relative;
    z-index: 2;
}

.search-bar {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 52px;
}

.search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #9E9E9E;
}

.search-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.search-filter-btn:hover {
    background: #F5F5F5;
}

/* ═══════════════════════════════════════════════════════════
   3-COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════ */
.map-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ── Filter Sidebar ── */
.filter-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.filter-title {
    font-size: 16px;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23757575'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:focus {
    border-color: #FFD700;
}

/* Food Type Grid */
.food-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.food-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: #F5F5F5;
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.food-type-btn:hover {
    border-color: #E0E0E0;
    background: #EEEEEE;
}

.food-type-btn.active {
    background: #000000;
    border-color: #000000;
}

.food-type-btn.active .ft-icon,
.food-type-btn.active .ft-label {
    color: #FFFFFF;
}

.ft-icon {
    font-size: 16px;
    line-height: 1;
}

.ft-label {
    font-size: 8px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.2;
}

/* Price Range */
.price-range-btns {
    display: flex;
    gap: 6px;
}

.price-btn {
    flex: 1;
    background: #FFFFFF;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.price-btn:hover {
    border-color: #BDBDBD;
}

.price-btn.active {
    background: #000000;
    border-color: #000000;
    color: #FFFFFF;
}

/* Rating Slider */
.rating-slider-wrap {
    padding: 0 4px;
}

.rating-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #E0E0E0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFD700;
    border: 3px solid #FFFFFF;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.rating-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFD700;
    border: 3px solid #FFFFFF;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.rating-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #9E9E9E;
    font-weight: 500;
}

.rating-value {
    font-weight: 700;
    color: #FFD700;
    font-size: 13px;
}

/* Apply Filters */
.btn-apply-filters {
    width: 100%;
    background: #000000;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-apply-filters:hover {
    background: #222222;
}

/* ── Map Area ── */
.map-area {
    flex: 1;
    min-width: 0;
    position: relative;
}

.foodie-map {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    z-index: 1;
}

/* Leaflet custom styles */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 220px !important;
}

.map-popup-card {
    overflow: hidden;
    border-radius: 12px;
}

.map-popup-image {
    width: 100%;
    height: 120px;
    background: #1a1206;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-popup-image svg {
    width: 100%;
    height: 100%;
}

.map-popup-body {
    padding: 12px 16px;
}

.map-popup-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 4px;
}

.map-popup-rating {
    font-size: 13px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 2px;
}

.map-popup-meta {
    font-size: 12px;
    color: #757575;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
}

.map-popup-btn {
    display: block;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Custom map pin markers */
.custom-pin {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid #fff;
}

.custom-pin-inner {
    transform: rotate(45deg);
    font-size: 12px;
    line-height: 1;
}

/* Map Filter Tags */
.map-filter-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.map-tag {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.map-tag:hover {
    border-color: #BDBDBD;
}

.map-tag.active {
    background: #000000;
    border-color: #000000;
    color: #FFFFFF;
}

/* ── Top Rated Sidebar ── */
.top-rated-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.top-rated-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.top-rated-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    padding: 10px 12px;
    position: relative;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.top-rated-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tr-rank {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #FFD700;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

.tr-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.tr-thumb svg {
    width: 100%;
    height: 100%;
}

.tr-info {
    min-width: 0;
}

.tr-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin-bottom: 2px;
}

.tr-rating {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 1px;
}

.tr-meta {
    display: block;
    font-size: 11px;
    color: #9E9E9E;
    font-weight: 500;
}

.btn-view-all {
    width: 100%;
    background: #000000;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.btn-view-all:hover {
    background: #222;
}

/* Top Picks Card */
.top-picks-card {
    background: #1C1C1C;
    border-radius: 12px;
    overflow: hidden;
}

.top-picks-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.top-picks-image svg {
    width: 100%;
    height: 100%;
}

.top-picks-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    padding: 12px 16px 4px;
}

.top-picks-sub {
    font-size: 12px;
    color: #757575;
    padding: 0 16px 12px;
}

.btn-watch-now {
    display: block;
    margin: 0 16px 16px;
    background: #FFD700;
    color: #000000;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.btn-watch-now:hover {
    background: #e6c200;
}

/* ═══════════════════════════════════════════════════════════
   LOWER SECTION
   ═══════════════════════════════════════════════════════════ */
.map-lower {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Favorite Spots */
.favorite-spots-card {
    width: 300px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.favorite-spots-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.fav-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.fav-image svg {
    width: 100%;
    height: 100%;
}

.must-try-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #FFD700;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(-3deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-family: 'Montserrat', sans-serif;
}

.fav-text {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.heart-icon {
    flex-shrink: 0;
}

.fav-text h3 {
    font-size: 13px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.fav-link {
    font-size: 12px;
    font-weight: 600;
    color: #FFD700;
    white-space: nowrap;
}

/* Recommended Section */
.recommended-section {
    flex: 1;
    min-width: 0;
}

.recommended-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.recommended-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-nav {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.carousel-btn:hover {
    background: #EEEEEE;
    color: #000;
}

.recommended-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.recommended-carousel::-webkit-scrollbar {
    display: none;
}

.rec-card {
    min-width: 200px;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    scroll-snap-align: start;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.rec-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.rec-thumb {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.rec-thumb svg {
    width: 100%;
    height: 100%;
}

.rec-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rec-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 20px;
    color: #BDBDBD;
    cursor: pointer;
    transition: color 0.2s;
}

.rec-heart:hover,
.rec-heart.favorited {
    color: #E53935;
}

.rec-name {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    padding: 10px 12px 2px;
    line-height: 1.3;
}

.rec-rating {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #FFD700;
    padding: 0 12px;
}

.rec-meta {
    display: block;
    font-size: 11px;
    color: #9E9E9E;
    padding: 2px 12px 12px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER BADGES
   ═══════════════════════════════════════════════════════════ */
.footer-badges {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: center;
    gap: 48px;
    border-top: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
    background: #FAFAFA;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    font-size: 28px;
    line-height: 1;
}

.badge-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.badge-desc {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #757575;
}

/* ═══════════════════════════════════════════════════════════
   MAP PAGE RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .map-main { flex-direction: column; }
    .filter-sidebar { width: 100%; }
    .food-type-grid { grid-template-columns: repeat(6, 1fr); }
    .top-rated-sidebar { width: 100%; }
    .top-rated-list { flex-direction: row; overflow-x: auto; }
    .top-rated-card { min-width: 200px; }
    .map-lower { flex-direction: column; }
    .favorite-spots-card { width: 100%; }
    .map-hero-content { flex-direction: column; text-align: center; }
    .map-hero-text { max-width: 100%; }
    .map-hero-right { width: 100%; }
}

@media (max-width: 768px) {
    .map-hero-headline { font-size: 28px; }
    .map-hero-stats { flex-direction: column; }
    .map-stat-card { justify-content: center; }
    .map-main { padding: 0 20px 20px; }
    .search-bar-wrapper { padding: 0 20px; }
    .map-lower { padding: 0 20px 30px; }
    .footer-badges { flex-wrap: wrap; gap: 24px; }
    .footer-inner { grid-template-columns: 1fr; }
    .food-type-grid { grid-template-columns: repeat(4, 1fr); }
}
