/* Sipmao.com v4 */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-glow: rgba(231,76,60,0.12);
    --accent: #f39c12;
    --dark: #0f0f1a;
    --darker: #0a0a14;
    --surface: #161628;
    --card: #1c1c35;
    --card-hover: #24243f;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #eeeef5;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b8a;
    --success: #2ecc71;
    --premium: #f1c40f;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.2);
    --header-h: 64px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* HEADER */
.top-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--darker);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.top-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    text-decoration: none;
    white-space: nowrap;
}
.logo span { color: var(--accent); }

.city-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 14px;
}

.city-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.city-picker:hover { background: var(--card); border-color: var(--border); }
.city-picker svg { color: var(--text-muted); transition: transform 0.2s; }
.city-picker.open svg { transform: rotate(180deg); }

/* City Dropdown */
.city-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    z-index: 1000;
    overflow: hidden;
}
.city-dropdown.open { display: block; }

.city-dropdown-search {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}
.city-dropdown-search input {
    width: 100%;
    padding: 9px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}
.city-dropdown-search input:focus { border-color: var(--primary); }

.city-dropdown-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--card) transparent;
}

.city-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 14px;
}
.city-option:hover { background: var(--card); }
.city-option.active { background: var(--primary-glow); color: var(--primary); }
.city-option-name { font-weight: 500; }
.city-option-region { font-size: 12px; color: var(--text-muted); margin-left: 6px; }
.city-option-count { font-size: 12px; color: var(--text-muted); }
.city-option.featured .city-option-name { font-weight: 700; }

.top-nav { display: flex; gap: 4px; }

.top-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.top-nav-link svg { width: 18px; height: 18px; }
.top-nav-link:hover { color: var(--text); background: var(--card); }
.top-nav-link.active { color: var(--primary); background: var(--primary-glow); }

.top-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar { position: relative; width: 240px; }
.search-bar svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
.search-bar input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-bar input::placeholder { color: var(--text-muted); }

/* BUTTONS */
.btn {
    padding: 9px 18px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(231,76,60,0.3); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--card); border-color: var(--border-hover); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-premium { background: linear-gradient(135deg, #f1c40f, #e67e22); color: var(--dark); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #27ae60; }
.btn-checkin { background: linear-gradient(135deg, #2ecc71, #27ae60); color: white; font-size: 14px; padding: 10px 20px; }
.btn-checkin:hover { box-shadow: 0 4px 16px rgba(46,204,113,0.3); transform: translateY(-1px); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-auth { gap: 8px; }

/* PAGES */
.page { display: none; }
.page.active { display: block; }

.page-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}
.page-header h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.page-header p { font-size: 15px; margin-top: 4px; }

.sort-controls select {
    padding: 9px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

/* MAP LAYOUT */
.map-layout { display: flex; height: calc(100vh - var(--header-h)); }

.map-sidebar {
    width: 380px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header { padding: 18px 18px 0; display: flex; justify-content: space-between; align-items: baseline; }
.sidebar-header h2 { font-size: 18px; font-weight: 700; }
.venue-count { font-size: 13px; color: var(--text-muted); }

.map-filters {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}
.map-filters::-webkit-scrollbar { display: none; }

.filter-chip {
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--card);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-hover); }
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }

.sidebar-venues {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--card) transparent;
}

.map-container { flex: 1; position: relative; }
#map { width: 100%; height: 100%; z-index: 1; }

/* Sidebar venue cards */
.sv-card {
    padding: 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}
.sv-card:hover { background: var(--card); }
.sv-card:last-child { border-bottom: none; }
.sv-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
.sv-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.sv-bottom { display: flex; align-items: center; justify-content: space-between; }
.sv-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.sv-rating { font-size: 12px; color: var(--accent); font-weight: 600; }
.sv-checkins { font-size: 11px; color: var(--success); font-weight: 600; }

/* VENUE GRID */
.venue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.venue-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid var(--border);
}
.venue-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-hover); }

.venue-card-cover { height: 140px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; overflow: hidden; }
.venue-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.venue-card-badge { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: white; }
.venue-card-checkins { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(46,204,113,0.9); color: white; }
.venue-card-body { padding: 14px; }
.venue-card-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 5px; }
.venue-card-area { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.venue-card-footer { display: flex; justify-content: space-between; align-items: center; }
.venue-card-price { font-size: 14px; font-weight: 700; color: var(--success); }
.venue-card-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.venue-card-stars { color: var(--accent); }
.venue-card-rating-num { font-weight: 700; }
.venue-card-rating-count { color: var(--text-muted); font-size: 12px; }

/* Tags */
.tag { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.tag-category { background: rgba(231,76,60,0.15); color: var(--primary); }
.tag-price { background: rgba(46,204,113,0.15); color: var(--success); }
.tag-happy { background: rgba(241,196,15,0.15); color: var(--premium); }
.tag-checkins { background: rgba(46,204,113,0.15); color: var(--success); }
.verified-badge { color: var(--success); }

/* VENUE DETAIL */
.detail-container { max-width: 900px; }
.venue-hero { height: 300px; background: var(--card); position: relative; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 72px; color: var(--text-muted); margin-bottom: 24px; }
.venue-hero img { width: 100%; height: 100%; object-fit: cover; }
.venue-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 24px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }
.back-btn { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); border: none; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; }
.back-btn:hover { background: rgba(0,0,0,0.7); }
.venue-detail-header { margin-bottom: 24px; }
.venue-detail-name { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.venue-detail-area { font-size: 15px; color: var(--text-secondary); }
.venue-rating { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.stars { color: var(--accent); font-size: 14px; }
.rating-num { font-weight: 700; font-size: 15px; }
.rating-count { font-size: 13px; color: var(--text-muted); }

.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.info-card { background: var(--surface); padding: 16px; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); }
.info-card-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 600; }
.info-card-value { font-size: 20px; font-weight: 800; }
.info-card-value.price { color: var(--success); }
.info-card-value.happy { color: var(--premium); }
.info-card-value.checkins { color: var(--success); }

/* Checkin button area in detail */
.checkin-area {
    background: linear-gradient(135deg, rgba(46,204,113,0.08), rgba(39,174,96,0.08));
    border: 1px solid rgba(46,204,113,0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.checkin-info { flex: 1; }
.checkin-info h3 { font-size: 16px; margin-bottom: 4px; }
.checkin-info p { font-size: 13px; color: var(--text-muted); }
.checkin-count { font-size: 28px; font-weight: 800; color: var(--success); margin-right: 20px; text-align: center; }
.checkin-count small { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

.section-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; margin-top: 32px; }
.action-bar { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }

.review-card { background: var(--surface); padding: 16px; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid var(--border); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-user { font-weight: 600; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* TOP TABS */
.top-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.top-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.top-tab:hover { color: var(--text); }
.top-tab.active { background: var(--primary); color: white; }

/* EVENTS */
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.event-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-2px); }
.event-card[data-type="balloon_party"] { border-left-color: #e74c3c; }
.event-card[data-type="ladies_night"] { border-left-color: #e91e8b; }
.event-card[data-type="live_music"] { border-left-color: #9b59b6; }
.event-card[data-type="pool_party"] { border-left-color: #3498db; }
.event-card[data-type="sports_event"] { border-left-color: #2ecc71; }
.event-top { display: flex; gap: 14px; margin-bottom: 12px; }
.event-date-badge { display: flex; flex-direction: column; align-items: center; background: var(--primary); color: white; border-radius: 10px; padding: 8px 12px; flex-shrink: 0; }
.event-date-day { font-size: 22px; font-weight: 800; line-height: 1; }
.event-date-month { font-size: 10px; text-transform: uppercase; font-weight: 700; }
.event-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.event-meta { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.event-rsvp { display: flex; gap: 8px; margin-top: 12px; }

/* LEADERBOARD */
.leaderboard { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.leaderboard-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.leaderboard-item:hover { background: var(--card); }
.leaderboard-item:last-child { border-bottom: none; }
.rank { width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.rank.gold { background: linear-gradient(135deg, #f1c40f, #e67e22); color: var(--dark); }
.rank.silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6); color: var(--dark); }
.rank.bronze { background: linear-gradient(135deg, #e67e22, #d35400); color: white; }
.leaderboard-info { flex: 1; }
.leaderboard-name { font-weight: 700; font-size: 15px; }
.leaderboard-area { font-size: 13px; color: var(--text-muted); }
.leaderboard-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.leaderboard-stats .stat-checkins { color: var(--success); font-weight: 600; }
.leaderboard-stats .stat-rating { color: var(--accent); font-weight: 600; }
.sipmao-score { font-weight: 800; font-size: 20px; color: var(--accent); text-align: right; }
.sipmao-score small { display: block; font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

/* TOAST */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.error { background: var(--primary); }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: 90%; max-width: 480px; max-height: 85vh; overflow-y: auto; padding: 28px; animation: fadeScale 0.25s ease; border: 1px solid var(--border); box-shadow: var(--shadow); }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-handle { display: none; }
.modal h2 { font-size: 22px; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px; font-family: inherit; outline: none; transition: border 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* LEAFLET OVERRIDES */
.leaflet-popup-content-wrapper { background: var(--card) !important; color: var(--text) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; border: 1px solid var(--border) !important; }
.leaflet-popup-tip { background: var(--card) !important; }
.leaflet-popup-content { margin: 14px !important; font-family: inherit !important; }
.map-popup-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.map-popup-category { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.map-popup-price { font-weight: 700; color: var(--success); }
.map-popup-rating { color: var(--accent); }
.map-popup-checkins { color: var(--success); font-size: 12px; }
.custom-marker { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; border: 2px solid white; box-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.custom-marker span { transform: rotate(45deg); font-size: 15px; }

/* MOBILE NAV */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--darker); display: none; justify-content: space-around; align-items: center; padding: 6px 0; padding-bottom: max(6px, env(safe-area-inset-bottom)); z-index: 1000; border-top: 1px solid var(--border); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-muted); font-size: 10px; padding: 4px 12px; border-radius: 8px; cursor: pointer; border: none; background: none; font-family: inherit; transition: color 0.2s; }
.nav-item.active, .nav-item:hover { color: var(--primary); }
.nav-item svg { width: 22px; height: 22px; }

/* PWA */
.pwa-banner { position: fixed; bottom: 70px; left: 16px; right: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius); padding: 14px 16px; display: none; align-items: center; gap: 12px; z-index: 999; box-shadow: var(--shadow); }
.pwa-banner.show { display: flex; }
.pwa-banner-text { flex: 1; font-size: 14px; font-weight: 600; }
.pwa-banner-close { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }

/* UTILITY */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state p { font-size: 15px; }
.skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* MOBILE */
@media (max-width: 767px) {
    :root { --header-h: 56px; }
    .top-nav { display: none; }
    .btn-label { display: none; }
    .top-header-inner { gap: 8px; padding: 0 12px; }
    .search-bar { width: auto; flex: 1; }
    .btn-auth { width: 38px; height: 38px; padding: 0; justify-content: center; }
    .city-divider { margin: 0 8px; height: 20px; }
    .city-picker { font-size: 14px; padding: 4px 8px; }
    .city-dropdown { width: 280px; left: -40px; }
    .bottom-nav { display: flex; }
    .page { padding-bottom: 60px; }
    .map-layout { flex-direction: column; height: calc(100dvh - var(--header-h) - 56px); }
    .map-sidebar { display: none; }
    .map-container { flex: 1; }
    .map-filters { position: absolute; top: 0; left: 0; right: 0; z-index: 500; padding: 8px 12px; background: linear-gradient(var(--dark), transparent); }
    .page-container { padding: 16px 12px; }
    .page-header { flex-direction: column; }
    .page-header h1 { font-size: 22px; }
    .venue-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .venue-hero { height: 200px; border-radius: 0; margin-bottom: 16px; }
    .venue-detail-name { font-size: 22px; }
    .detail-container { padding: 0 12px 16px; }
    .checkin-area { flex-direction: column; text-align: center; gap: 12px; }
    .checkin-count { margin-right: 0; }
    .modal-overlay { align-items: flex-end; }
    .modal { border-radius: 20px 20px 0 0; width: 100%; max-width: 100%; padding: 20px 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); animation: slideUp 0.3s ease; }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .modal-handle { display: block; width: 40px; height: 4px; background: var(--text-muted); border-radius: 2px; margin: 0 auto 16px; }
    .form-row { flex-direction: column; gap: 0; }
    .pwa-banner { bottom: 66px; }
    .top-tabs { overflow-x: auto; }
    .top-tab { font-size: 12px; padding: 8px 12px; }
    .toast { bottom: 70px; }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
    .top-nav { display: none; }
    .bottom-nav { display: flex; }
    .page { padding-bottom: 60px; }
    .map-sidebar { width: 300px; }
    .map-layout { height: calc(100vh - var(--header-h) - 56px); }
    .venue-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1400px) {
    .map-sidebar { width: 420px; }
    .page-container { max-width: 1400px; }
    .venue-grid { grid-template-columns: repeat(4, 1fr); }
}
