:root {
  /* Colors */
  --color-primary: #FF9A9E;
  --color-secondary: #FECFEF;
  --color-accent: #A18CD1;
  --color-bg: #FDFBFB;
  --color-text-main: #2D3748;
  --color-text-muted: #718096;
  --color-card-bg: rgba(255, 255, 255, 0.7);
  --color-card-border: rgba(255, 255, 255, 0.5);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --sidebar-width: 400px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background: linear-gradient(135deg, var(--color-bg) 0%, #ebedee 100%);
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(to bottom, rgba(255, 241, 242, 0.8), rgba(243, 232, 255, 0.8));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--color-card-border);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.05);
  z-index: 10;
}

.sidebar-header {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--color-card-border);
}

.sidebar-header h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(45deg, #FF9A9E, #A18CD1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.sidebar-header p {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.vendor-list {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Scrollbar styling */
.vendor-list::-webkit-scrollbar {
  width: 6px;
}
.vendor-list::-webkit-scrollbar-track {
  background: transparent;
}
.vendor-list::-webkit-scrollbar-thumb {
  background: rgba(161, 140, 209, 0.4);
  border-radius: 10px;
}

/* Vendor Card */
.vendor-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.vendor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(161, 140, 209, 0.15);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-secondary);
}

.vendor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.vendor-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.vendor-rating {
  display: flex;
  align-items: center;
  background: #FFF5F5;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #E53E3E;
}

.vendor-rating::before {
  content: "★";
  margin-right: 4px;
}

.vendor-details {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.vendor-details div {
  margin-bottom: 4px;
}

/* Flavors Section */
.flavors-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(161, 140, 209, 0.3);
}

.flavor-week {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(161, 140, 209, 0.1);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: inline-block;
}

.flavor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flavor-tag {
  font-size: 11px;
  background: #F7FAFC;
  color: #4A5568;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

/* Map */
.map-container {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  background: #E2E8F0;
}

/* Custom Popup Styles */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.leaflet-popup-content {
  font-family: var(--font-body);
  margin: 12px;
}
.popup-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--color-text-main);
}
.popup-desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column-reverse;
  }
  
  .sidebar {
    width: 100%;
    height: 50vh;
    border-right: none;
    border-top: 1px solid var(--color-card-border);
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
  }
  
  .map-container {
    height: 50vh;
  }
}

/* Hours Dropdown */
.hours-details {
  margin-top: 6px;
}
.hours-details summary {
  cursor: pointer;
  outline: none;
  font-weight: 500;
  color: var(--color-text-main);
  transition: color 0.2s;
}
.hours-details summary:hover {
  color: var(--color-accent);
}
.hours-list {
  margin-top: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  font-size: 12px;
}
.hour-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.hour-row.current-day {
  font-weight: 700;
  color: var(--color-primary);
}
