/* =========================
       FONT SETUP
       ========================= */
    /* Replace src with your licensed Halyard files if you have them */
    @font-face {
      font-family: 'Halyard Display';
      src: local('Halyard Display');
      font-weight: 400 700;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --bg: #f4f7fb;
      --surface: #ffffff;
      --surface-2: #f8fafc;
      --surface-3: #eef2f7;
      --sidebar: #0b1220;
      --sidebar-2: #111827;
      --border: #e5e7eb;
      --border-soft: rgba(255,255,255,0.08);
      --text: #111827;
      --text-soft: #6b7280;
      --text-light: rgba(255,255,255,0.72);
      --heading: #0f172a;
      --accent: #1ba365;
      --accent-dark: #068a4f;
      --success: #10b981;
      --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
      --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
      --radius-xl: 20px;
      --radius-lg: 16px;
      --radius-md: 12px;
      --sidebar-w: 320px;
      --header-h: 76px;
    }

    * {
      box-sizing: border-box;
    }

    html, body {
      height: 100%;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: 'Poppins', sans-serif;
      overflow: hidden;
    }

    h1, h2, h3, h4, h5, h6,
    .brand-title,
    .section-title,
    .store-name,
    .popup-title {
      font-family: 'Halyard Display', 'Poppins', sans-serif;
      color: var(--heading);
      letter-spacing: -0.02em;
    }

    .app-shell {
      height: 100vh;
    }

    .app-frame {
      height: 100%;
      background: var(--surface);
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    }

    /* =========================
       SIDEBAR
       ========================= */
    .sidebar {
      width: var(--sidebar-w);
      background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
      color: #fff;
      border-right: 1px solid var(--border-soft);
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }

    .sidebar-top {
      padding: 18px 18px 14px;
      border-bottom: 1px solid var(--border-soft);
    }

    .brand-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 14px;
    }
    .brand-title img{width: 150px !important;}

    .brand-logo {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: linear-gradient(135deg, #fef3c7, #facc15);
      color: #111827;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 15px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
      flex-shrink: 0;
    }

    .brand-title {
      font-size: 17px;
      font-weight: 600;
      color: #fff;
      margin: 0;
      line-height: 1.1;
          padding-right: 20px;
    border-right: 1px solid #fff;
    }

    .brand-subtitle {
      font-size: 12px;
      color: var(--text-light);
      margin:0px 0px 0px 10px;
    }

    .sidebar-section {
      padding: 18px;
      border-bottom: 1px solid var(--border-soft);
    }

    .sidebar-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.45);
      margin-bottom: 10px;
    }

    .search-wrap {
      position: relative;
    }

    .search-input {
      width: 100%;
      height: 48px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.06);
      color: #fff;
      padding: 0 48px 0 16px;
      outline: none;
      font-size: 12px;
      transition: all 0.2s ease;
    }

    .search-input::placeholder {
      color: rgba(255,255,255,0.45);
    }

    .search-input:focus {
      border-color: rgba(250, 204, 21, 0.4);
      box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
    }

    .leaflet-control-container{display: none !important;}

    .search-btn {
      position: absolute;
      top: 50%;
      right: 8px;
      transform: translateY(-50%);
      width: 34px;
      height: 34px;
      border: 0;
background: transparent;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .search-btn img{width: 20px;}

    .search-btn:hover {
      transform: translateY(-50%) scale(1.03);
    }

    .filter-row {
      display: flex;
      gap: 10px;
      margin-top: 12px;
    }

    /* .state-filter {
      width: 100%;
      height: 46px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.06);
      color: #fff;
      padding: 0 14px;
      outline: none;
      font-size: 14px;
    } */

    .state-filter {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background-color: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0 42px 0 14px;
  outline: none;
  font-size: 14px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

    .state-filter option {
      color: #111827;
      background: #fff;
    }

    .count-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 8px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 14px;
    }

    .count-label {
      font-size: 12px;
      color: rgba(255,255,255,0.55);
      margin-bottom: 4px;
    }

    .count-value {
      font-size: 22px;
      font-weight: 700;
      line-height: 1;
      color: #fff;
    }

    /* .count-badge {
      min-width: 46px;
      height: 46px;
      border-radius: 14px;
      background: rgba(250,204,21,0.15);
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      border: 1px solid rgba(250,204,21,0.18);
    } */

    .count-badge img{width: 20px;}

    .store-list {
      flex: 1;
      min-height: 0;
      max-height: calc(100vh - 326px);
      overflow-y: auto;
      overflow-x: hidden;
      padding: 12px 14px 14px;
      scroll-behavior: smooth;
    }

    .store-list::-webkit-scrollbar {
      width: 6px;
    }

    .store-list::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.12);
      border-radius: 999px;
    }

    .store-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 8px;
      padding: 14px;
      margin-bottom: 12px;
      cursor: pointer;
      transition: all 0.22s ease;
      position: relative;
      overflow: hidden;
    }

    .store-card:hover {
      transform: translateY(-2px);
      background: rgba(255,255,255,0.07);
      box-shadow: 0 16px 30px rgba(0,0,0,0.14);
    }

    .store-card.active {
      background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.06));
      border-color: rgba(250,204,21,0.22);
      box-shadow: 0 20px 40px rgba(0,0,0,0.16);
    }

    .store-card.active::before {
      content: "";
      position: absolute;
      left: 0;
      top: 14px;
      bottom: 14px;
      width: 4px;
      border-radius: 999px;
      background: #1ba365;
    }

    .store-card-top {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    /* .store-icon {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: rgba(250, 204, 21, 0.12);
      border: 1px solid rgba(250, 204, 21, 0.14);
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    } */

    .store-icon img{width:20px}

    .store-name {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin: 0 0 6px;
    }

    .store-meta {
      font-size: 13px;
      line-height: 1.55;
      color: rgba(255,255,255,0.68);
      margin: 0;
    }

    .store-footer {
      margin-top: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .store-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 10px;
      border-radius: 10px;
      background: #1ba365;
      font-size: 12px;
      font-weight: 500;
      color: #fff;
      border: 1px solid rgba(255,255,255,0.06);
    }

    .store-arrow {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: rgba(255,255,255,0.06);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.7);
      font-size: 16px;
    }

    .sidebar-bottom {
      padding: 16px 18px;
      border-top: 1px solid var(--border-soft);
    }

    .profile-box {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border-radius: 16px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.06);
    }

    .profile-avatar {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: linear-gradient(135deg, #d1d5db, #9ca3af);
      color: #111827;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      flex-shrink: 0;
    }

    .profile-name {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      margin: 0;
    }

    .profile-role {
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      margin-top: 2px;
    }

    /* =========================
       MAIN PANEL
       ========================= */
    .main-panel {
      background: var(--surface);
      min-width: 0;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .topbar {
      height: var(--header-h);
      border-bottom: 1px solid var(--border);
      background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      gap: 20px;
      flex-shrink: 0;
    }

    .topbar-left {
      min-width: 0;
    }

    .page-eyebrow {
      font-size: 12px;
      font-weight: 400;
      color: rgba(255,255,255,0.6);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 3px;
    }

    .page-title {
      font-size: 24px;
      font-weight: 600;
      line-height: 1.1;
      margin: 0;
      color: #fff;
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .topbar-chip {
      height: 40px;
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--surface);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--text);
      font-size: 13px;
      font-weight: 500;
      box-shadow: var(--shadow-sm);
    }

    .topbar-chip.active {
      background: #fff8db;
      border-color: #f5df7b;
      color: #7c5e00;
    }

    .map-layout {
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    .map-card {
      height: 100%;
      border: 1px solid var(--border);
      border-radius: 22px;
      overflow: hidden;
      background: var(--surface);
      box-shadow: var(--shadow-sm);
      position: relative;
    }

    .map-toolbar {
      position: absolute;
      top: 18px;
      right: 18px;
      z-index: 999;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .map-toolbar .toolbar-btn {
      height: 40px;
      padding: 0 14px;
      border: 1px solid rgba(17,24,39,0.06);
      background: rgba(255,255,255,0.94);
      color: #fff;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 500;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      backdrop-filter: blur(8px);
    }

    .leaflet-popup-close-button span{color: #fff;}

    .map-toolbar .toolbar-btn.active {
      background: #fff8db;
      border-color: #f5df7b;
      color: #7c5e00;
    }

    #map {
      width: 100%;
      height: 100%;
      background: #edf2f7;
    }
	
	
	.store-icon {
    width: 28px !important;
	}
	.store-card .flex-grow-1 {
		width: 100%;
	}

    /* =========================
       LEAFLET CUSTOM
       ========================= */
    .leaflet-control-zoom {
      border: none !important;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
      overflow: hidden;
      border-radius: 14px !important;
    }

    .leaflet-control-zoom a {
      width: 40px !important;
      height: 40px !important;
      line-height: 40px !important;
      background: rgba(255,255,255,0.96) !important;
      color: #111827 !important;
      border-bottom: 1px solid rgba(17,24,39,0.06) !important;
      font-size: 18px !important;
    }

    .leaflet-control-attribution {
      font-size: 10px !important;
      background: rgba(255,255,255,0.82) !important;
      border-radius: 8px 0 0 0;
    }

    .leaflet-container a.leaflet-popup-close-button {
    right: 10px;
    top: 10px;}

    .leaflet-popup-content-wrapper {
      border-radius: 18px !important;
      box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16) !important;
      padding: 0 !important;
      overflow: hidden;
    }

    .leaflet-popup-content {
      margin: 0 !important;
    }

    .leaflet-popup-tip {
      box-shadow: none !important;
    }

    .popup-card {
      min-width: 260px;
      background: rgba(60,82,140,1);
      padding: 16px;
    }

    .popup-label {
      display: inline-flex;
      align-items: center;
      padding: 6px 10px;
      border-radius: 8px;
      background: #1ba365;
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .popup-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0 0 8px;
      color: #fff;
    }

    .popup-text {
      font-size: 13px;
      color: #fff;
      line-height: 1.65;
      margin: 10px 0px !important;
    }

    .custom-cluster {
      background: transparent !important;
      border: 0 !important;
    }

    .custom-cluster-inner {
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: rgba(60,82,140,1);
      color: #fff;
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      border: 3px solid rgba(255,255,255,0.35);
      box-shadow: 0 16px 30px rgba(0,0,0,0.16);
    }

    /* =========================
       LOADER / EMPTY
       ========================= */
    .status-wrap {
      min-height: 240px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;
      gap: 14px;
      color: rgba(255,255,255,0.6);
      padding: 20px;
    }

    .status-wrap.light {
      color: var(--text-soft);
    }

    .spinner {
      width: 34px;
      height: 34px;
      border: 3px solid rgba(255,255,255,0.12);
      border-top-color: var(--accent);
      border-radius: 999px;
      animation: spin 0.75s linear infinite;
    }

    .spinner.light {
      border-color: #e5e7eb;
      border-top-color: var(--accent-dark);
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* =========================
       RESPONSIVE
       ========================= */
    @media (max-width: 1199.98px) {
      .sidebar {
        width: 290px;
      }
    }

    @media (max-width: 991.98px) {
      body {
        overflow: auto;
      }

      .app-shell {
        height: auto;
        min-height: 100vh;
        padding: 10px;
      }

      .app-frame {
        height: auto;
      }

      .sidebar {
        width: 100%;
        min-height: auto;
      }

      .main-panel {
        min-height: 680px;
      }

      .topbar {
        height: auto;
        padding: 18px;
        align-items: flex-start;
        flex-direction: column;
      }

      .topbar-right {
        width: 100%;
        justify-content: flex-start;
      }

      .map-layout {
        height: 620px;
      }
    }

    @media (max-width: 575.98px) {
      .app-shell {
        padding: 0;
      }

      .app-frame {
        border-radius: 0;
        border: none;
      }

      .page-title {
        font-size: 24px;
      }

      .map-layout {
        padding: 12px;
        height: 540px;
      }

      .map-toolbar {
        top: 12px;
        left: 12px;
        right: 12px;
      }

      .map-toolbar .toolbar-btn {
        flex: 1 1 auto;
        justify-content: center;
      }
    }

/* =========================
   CUSTOM MAP PIN
   ========================= */
/* .pin-marker {
  width: 22px;
  height: 22px;
  background: #111827;
  border: 4px solid #facc15;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(0,0,0,0.20);
  position: relative;
}

.pin-marker .pin-tail {
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 8px;
  height: 8px;
  background: #111827;
  transform: translateX(-50%) rotate(45deg);
  display: block;
} */

.pin-marker img{width: 42px !important;}

@media (max-width: 991.98px) {
  .store-list {
    max-height: 420px;
  }
}
