@import url('https://rsms.me/inter/inter.css');

/* ------------------------------------------- */
/* 🎨 COLOR VARIABLES - OCEAN SUNSET THEME */
/* ------------------------------------------- */

:root {
    /* OCEAN SUNSET (Red/Orange Focus) - Based on your preference */
    --primary-accent: #bb3e03;      /* Deep Coral (Headers, Links, Map/Container Red Focus) */
    --secondary-accent: #ee9b00;    /* Sunset Orange (Deals, Hover Borders, Subtle Warm Accent) */
    --highlight-color: #bb3e03;     /* Hot Pink/Coral (Icon Flair, Active Pin - Maximum Pop) */
    --text-color: #1F384B;          /* Midnight Navy (General Text, Cool Grounding) */
    --link-hover: #ee9b00;          /* Sunset Orange */
    --dropdown-arrow: #bb3e03;      /* Deep Coral */
}

/* ------------------------------------------- */
/* --- 1. GLOBAL LAYOUT STYLES --- */
/* ------------------------------------------- */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    color: var(--text-color); 
}

/* Standard H1 Header Style (Configured for icon alignment) */
h1 {
    margin: 0;
    padding: 12px 18px;
    font-size: 1.6em;
    background: var(--primary-accent); 
    color: white; /* Ensures text is white */
    font-weight: 900;
    display: flex; 
    align-items: center;
}

/* Styles for the custom icon container in the header */
.header-icon {
    display: flex; 
    width: 28px; 
    height: 28px; 
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Ensures the referenced image file (martini_icon.png) fills the container */
.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.map-container {
    display: flex;
    height: calc(100vh - 50px);
}

#map {
    flex-grow: 1;
    height: 100%;
}

/* ------------------------------------------- */
/* --- 2. SIDEBAR CONTAINER & FILTER STYLES --- */
/* ------------------------------------------- */

#listings {
    width: 420px;
    height: 100%;
    padding: 0; 
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    background: #FFF5F5; 
    display: flex;
    flex-direction: column;
}

#neighborhood-filter-container {
    padding: 15px;
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    z-index: 10;
}

.custom-filter-dropdown {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    color: var(--primary-accent);
    background-color: #fff;
    /* Custom arrow for dropdown - fill color updated to match --primary-accent */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23bb3e03" d="M7 10l5 5 5-5z"/></svg>'); 
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.custom-filter-dropdown:focus {
    outline: none;
    border-color: var(--secondary-accent);
}

/* ------------------------------------------- */
/* --- 3. LIST AND ITEM STYLES --- */
/* ------------------------------------------- */

#restaurant-list {
    list-style: none;
    padding: 15px;
    margin: 0;
    overflow-y: scroll;
    flex-grow: 1; 
}

.listing-item {
    padding: 20px; 
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.listing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    border-color: var(--secondary-accent);
}

.listing-item.active {
    transform: translateY(-2px); 
    border: 2px solid var(--primary-accent); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
    background-color: #fff;
}

/* Card Section Separation */
.tile-content {
    padding-top: 15px; 
    border-top: 1px solid #f0f0f0; 
    margin-top: 15px;
}

/* 🏆 Restaurant Name */
.restaurant-name {
    margin: 0 0 5px 0;
    font-size: 1.6em;
    font-weight: 800;
    color: var(--primary-accent);
}

/* 🏷️ Neighborhood Tag (Location text) */
.listing-neighborhood {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    font-weight: 500;
}

.neighborhood-tag {
    color: var(--text-color); 
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

/* 🍹 Happy Hour Details */
.happy-hour-details {
    font-size: 0.95em;
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.deal-day {
    font-weight: 700;
    color: var(--primary-accent); 
    margin-right: 5px;
    white-space: nowrap;
}

/* The actual deal value (The `<strong>` tag) */
.happy-hour-details strong {
    color: var(--secondary-accent); 
    font-weight: 700;
    word-wrap: break-word;
}

/* Deal Icon Style (Flaticon) */
.icon-flair {
    color: var(--highlight-color); 
    font-size: 1.1em;
    margin-right: 8px;
    flex-shrink: 0;
}

/* 🔗 Google Maps Link Styles */

.google-map-link-container {
    margin-top: 8px; 
    margin-bottom: 0;
    padding-left: 0; 
    font-size: 0.95em;
}

.styled-map-link {
    text-decoration: none !important; 
    color: var(--primary-accent); 
    display: flex;
    align-items: center; 
    gap: 5px; 
}

.styled-map-link .icon-flair {
    color: var(--primary-accent); 
    font-size: 1.1em; 
    margin-right: 0; 
}

.styled-map-link:hover {
    color: var(--link-hover);
    opacity: 1;
}

/* ------------------------------------------- */
/* --- 4. CUSTOM MARKER ICON STYLES --- */
/* ------------------------------------------- */

.happy-house-map-marker {
    background-color: var(--primary-accent);
    color: white;
    width: 15px; 
    height: 15px;
    line-height: 15px; 
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, background-color 0.2s, opacity 0.2s, border-color 0.2s;
}

/* Match the marker icon in the listing item for visual continuity */
.happy-house-map-marker.listing-icon {
    width: 10px;
    height: 10px;
    line-height: 10px;
    border-width: 1px;
    margin-right: 5px;
    vertical-align: middle;
}

/* 1. Style for pins that are NOT in the active filter (Greyed Out) */
.marker-inactive {
    background-color: #aaaaaa !important;
    border-color: #f0f0f0 !important;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    transform: scale(0.8); 
    opacity: 0.7;
}

/* 2. Style for the currently selected/active pin (Highlight) */
.highlighted-marker {
    background-color: var(--highlight-color) !important;
    transform: scale(1.4);
    z-index: 1000 !important;
    opacity: 1;
}

/* ------------------------------------------- */
/* --- 5. POPUP STYLES (Placeholder) --- */
/* ------------------------------------------- */

.leaflet-popup-content-wrapper {
    background: white; 
    color: var(--text-color); 
    border-radius: 8px;
    padding: 0; 
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-tip {
    background: white; 
}

.popup-content {
    padding: 15px 20px; 
    max-width: 300px; 
}

.popup-title {
    margin: 0 0 5px 0;
    font-size: 1.5em; 
    font-weight: 800;
    color: var(--primary-accent);
}

.popup-divider {
    border: 0;
    height: 1px;
    background: #f0f0f0; 
    margin: 10px 0;
}

.popup-happy-hour-detail {
    font-size: 0.95em;
    margin: 5px 0 0 0;
    color: var(--text-color); 
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.popup-icon-flair {
    color: var(--highlight-color);
    font-size: 1.1em;
    margin-right: 8px;
    flex-shrink: 0;
}

.popup-value {
    color: var(--secondary-accent);
    font-weight: 700;  
    word-wrap: break-word;
}

.popup-content a {
    color: var(--primary-accent); 
    font-weight: 600;
    text-decoration: none;
    display: block; 
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #f0f0f0;
    transition: color 0.2s;
}

.popup-content a:hover {
    color: var(--secondary-accent);
}

/* Mobile block styling */
.mobile-blocked-body {
    overflow: hidden;
    background-color: #ffffff;
}