:root {
      --bg: #090b10;
      --sf: rgba(18, 22, 32, 0.65);
      --sf2: #121620;
      --bd: rgba(255, 255, 255, 0.05);
      --bd2: rgba(255, 255, 255, 0.08);
      --tx: #e8edf5;
      --mu: #6b7a94;
      --mu2: #48546a;
      --ac: #00c2ff;
      --a2: #00ff9d;
      --a3: #7c5cff;
      --rd: #ff3b5c;
      --wn: #ff9500;
      --font-display: 'Outfit', sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: var(--font-display);
    }

    body {
      background: var(--bg);
      color: var(--tx);
      height: 100vh;
      overflow: hidden;
      display: flex;
    }

    #app-container {
      display: flex;
      width: 100vw;
      height: 100vh;
      position: relative;
    }

    /* Glassmorphic Sidebar */
    #sidebar {
      width: 380px;
      height: 100%;
      background: var(--sf);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-right: 1px solid var(--bd);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    /* Map Area */
    #map-container {
      flex-grow: 1;
      height: 100%;
      position: relative;
    }

    #map {
      width: 100%;
      height: 100%;
      background: #0d1117;
    }

    /* Header in Sidebar */
    .sb-header {
      padding: 20px;
      border-bottom: 1px solid var(--bd);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .sb-logo-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .sb-logo {
      font-weight: 800;
      font-size: 1.25rem;
      letter-spacing: -0.5px;
      text-decoration: none;
      color: #fff;
    }

    .sb-logo span.w { color: var(--tx); }
    .sb-logo span.f { color: var(--ac); }

    .back-btn {
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--mu);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: color 0.2s;
    }

    .back-btn:hover {
      color: var(--ac);
    }

    /* Filters inside Sidebar */
    .sb-filters {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .search-wrapper {
      position: relative;
    }

    .search-input {
      width: 100%;
      background: rgba(0,0,0,0.3);
      border: 1px solid var(--bd);
      border-radius: 10px;
      padding: 10px 12px 10px 34px;
      color: #fff;
      font-size: 0.82rem;
      outline: none;
      transition: border-color 0.2s;
    }

    .search-input:focus {
      border-color: var(--ac);
    }

    .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.85rem;
      opacity: 0.5;
    }

    .select-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .sb-select {
      background: rgba(0,0,0,0.3);
      border: 1px solid var(--bd);
      border-radius: 8px;
      padding: 8px;
      color: var(--tx);
      font-size: 0.76rem;
      outline: none;
      cursor: pointer;
    }

    /* Vendor Scrollable List */
    .vendor-list-container {
      flex-grow: 1;
      overflow-y: auto;
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    /* Scrollbar Style */
    .vendor-list-container::-webkit-scrollbar {
      width: 6px;
    }
    .vendor-list-container::-webkit-scrollbar-track {
      background: transparent;
    }
    .vendor-list-container::-webkit-scrollbar-thumb {
      background: var(--bd2);
      border-radius: 3px;
    }

    /* Wash Card in Sidebar */
    .wi-card {
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--bd);
      border-radius: 12px;
      padding: 12px;
      cursor: pointer;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      transition: all 0.2s;
    }

    .wi-card:hover, .wi-card.active {
      background: rgba(255,255,255,0.04);
      border-color: rgba(0, 194, 255, 0.25);
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .wi-card.active {
      border-color: var(--ac);
      box-shadow: 0 0 10px rgba(0, 194, 255, 0.15);
    }

    .wi-logo {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(0, 194, 255, 0.2);
      flex-shrink: 0;
    }

    .wi-logo-text {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--ac), var(--a3));
      color: #000;
      font-weight: 800;
      font-size: 1.05rem;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .wi-info {
      flex-grow: 1;
      min-width: 0;
    }

    .wi-title-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2px;
      gap: 4px;
    }

    .wi-title {
      font-weight: 700;
      font-size: 0.8rem;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .wi-badge {
      font-size: 0.54rem;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: 4px;
      flex-shrink: 0;
    }

    .wi-badge.op { background: rgba(0, 255, 157, 0.1); color: var(--a2); border: 1px solid rgba(0, 255, 157, 0.15); }
    .wi-badge.bz { background: rgba(255, 149, 0, 0.1); color: var(--wn); border: 1px solid rgba(255, 149, 0, 0.15); }
    .wi-badge.fu { background: rgba(255, 59, 92, 0.1); color: var(--rd); border: 1px solid rgba(255, 59, 92, 0.15); }

    .wi-meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.65rem;
      color: var(--mu);
      margin-bottom: 4px;
    }

    .wi-star { color: #ffd700; font-weight: 600; }
    .wi-address {
      font-size: 0.68rem;
      color: var(--mu);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 6px;
    }

    .wi-occupancy-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-top: 4px;
    }

    .wi-track {
      flex-grow: 1;
      height: 3px;
      background: rgba(255,255,255,0.06);
      border-radius: 2px;
      overflow: hidden;
    }

    .wi-fill {
      height: 100%;
      border-radius: 2px;
    }

    .wi-pct {
      font-size: 0.56rem;
      color: var(--mu);
      min-width: 22px;
    }

    /* Mobile Sidebar Toggle Controls */
    #mobile-toggle {
      display: none;
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--sf2);
      border: 1px solid var(--bd2);
      border-radius: 30px;
      padding: 10px 20px;
      color: #fff;
      font-weight: 600;
      font-size: 0.82rem;
      cursor: pointer;
      z-index: 1005;
      box-shadow: 0 4px 20px rgba(0,0,0,0.6);
      align-items: center;
      gap: 6px;
      transition: all 0.2s;
    }

    /* Leaflet Popups Stylings override */
    .leaflet-popup-content-wrapper {
      background: var(--sf2) !important;
      color: var(--tx) !important;
      border: 1px solid var(--bd) !important;
      border-radius: 12px !important;
      box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
    }

    .leaflet-popup-tip {
      background: var(--sf2) !important;
      border: 1px solid var(--bd) !important;
    }

    .leaflet-container a.leaflet-popup-close-button {
      color: var(--mu) !important;
      font-size: 1.1rem !important;
      padding: 6px 8px 0 0 !important;
    }

    /* Details Modal (Glassmorphic) Replicated strictly from index.html */
    .detail-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(5,6,10,0.85);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .detail-modal {
      background: rgba(18,22,32,0.85);
      border: 1px solid var(--bd);
      border-radius: 20px;
      width: 100%;
      max-width: 680px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(0,0,0,0.6);
      position: relative;
    }

    .detail-close-btn {
      position: absolute;
      top: 15px; right: 15px;
      width: 36px; height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--bd2);
      color: #fff;
      font-size: 1.2rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2010;
      transition: all 0.2s;
    }

    .detail-close-btn:hover {
      background: rgba(255,59,92,0.15);
      border-color: rgba(255,59,92,0.3);
      color: var(--rd);
    }

    /* Modal Scrollable Content Container */
    .detail-content {
      overflow-y: auto;
      flex-grow: 1;
      padding: 24px;
    }

    .detail-header-row {
      display: flex;
      gap: 16px;
      align-items: center;
      margin-bottom: 20px;
    }

    #detLogoWrapper {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      overflow: hidden;
      border: 2.5px solid rgba(0, 194, 255, 0.3);
      flex-shrink: 0;
      box-shadow: 0 4px 10px rgba(0,0,0,0.4);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #detLogo {
      width: 100%; height: 100%; object-fit: cover;
    }

    .detail-logo-text {
      width: 100%; height: 100%;
      background: linear-gradient(135deg, var(--ac), var(--a3));
      color: #000; font-weight: 800; font-size: 1.6rem;
      display: flex; align-items: center; justify-content: center;
    }

    #detName {
      font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 4px;
    }

    #detRating {
      font-size: 0.78rem; color: #ffd700; font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
    }

    #detRating span { color: var(--mu); font-weight: 400; }

    /* Detail Grid Layout */
    .detail-stats {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
      margin-bottom: 20px;
    }

    .detail-stat-card {
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--bd);
      border-radius: 12px;
      padding: 12px;
      text-align: center;
    }

    .detail-stat-val { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
    .detail-stat-val.ac { color: var(--ac); }
    .detail-stat-val.a2 { color: var(--a2); }
    .detail-stat-lbl { font-size: 0.65rem; color: var(--mu); }

    .detail-info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
      margin-bottom: 20px;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--bd);
      border-radius: 12px;
      padding: 14px;
    }

    .detail-info-item {
      display: flex; gap: 8px; font-size: 0.76rem;
    }

    .detail-info-item span.icon { font-size: 1rem; flex-shrink: 0; }
    .detail-info-item div.lbl { font-size: 0.64rem; color: var(--mu); margin-bottom: 2px; }
    .detail-info-item div.val { color: #fff; font-weight: 500; }

    /* Contacts Buttons inside Modal */
    .detail-contacts {
      display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
    }

    .detail-btn {
      flex: 1; min-width: 130px;
      display: flex; align-items: center; justify-content: center; gap: 6px;
      padding: 10px; border-radius: 8px; font-size: 0.76rem; font-weight: 600;
      text-decoration: none; cursor: pointer; border: 1px solid transparent;
      transition: all 0.2s;
    }

    .detail-btn.phone { background: var(--ac); color: #000; }
    .detail-btn.social { background: rgba(255,255,255,0.03); border-color: var(--bd2); color: #fff; }
    .detail-btn.social.instagram:hover { border-color: rgba(225,48,108,0.3); background: rgba(225,48,108,0.1); color: #e1306c; }
    .detail-btn.social.tiktok:hover { border-color: rgba(0,242,234,0.3); background: rgba(0,242,234,0.1); color: #00f2ea; }

    /* Amenities Badge Layout */
    .section-title { font-size: 0.8rem; font-weight: 700; color: var(--ac); text-transform: uppercase; margin-bottom: 10px; letter-spacing: 0.5px; border-left: 2px solid var(--ac); padding-left: 6px; }
    .detail-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
    .detail-amenity-badge { font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }

    /* Services Pricing List */
    .detail-services-list { display: flex; flex-direction: column; gap: 6px; }
    .detail-service-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.01); border: 1px dashed var(--bd); padding: 8px 12px; border-radius: 8px; }
    .detail-service-name { font-size: 0.78rem; font-weight: 600; color: #fff; }
    .detail-service-price { font-size: 0.78rem; font-weight: 700; color: var(--a2); }

    /* Empty state */
    .empty-state {
      padding: 30px; text-align: center; color: var(--mu); font-size: 0.8rem;
    }

    /* Responsive collapsing style strictly built */
    @media (max-width: 768px) {
      body { flex-direction: column-reverse; }
      #sidebar {
        width: 100%;
        height: 50vh;
        border-right: none;
        border-top: 1px solid var(--bd);
        transform: translateY(0);
      }
      
      #sidebar.hidden {
        transform: translateY(100%);
      }

      #map-container {
        height: 50vh;
        flex-grow: 0;
        width: 100%;
      }

      #mobile-toggle {
        display: flex;
      }
    }
    @keyframes goldPulse {
      0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
      70% { box-shadow: 0 0 0 8px rgba(255, 215, 0, 0); }
      100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
    }