/*locations popup*/

  /* Remove Google Maps InfoWindow default styles */
  .gm-style .gm-style-iw-c {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .gm-style .gm-style-iw-d {
    overflow: hidden !important;
  }

  .gm-style .gm-style-iw-t::after {
    display: none !important;
  }

  /* Hide the default close button */
  .gm-style-iw button.gm-ui-hover-effect {
    display: none !important;
  }

  .gm-style-iw-chr {
    display: none !important;
  }

  .map-popup {
    display: flex;
    align-items: center;
    background: #172C4B;
    color: white;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: "Segoe UI", Arial, sans-serif;
    max-width: 320px;
    min-width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    opacity: 92%!important;
  }

  .popup-close {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.2s ease;
  }

  .popup-close:hover {
    background: rgba(255, 255, 255, 0.4);
  }

  .popup-img {
    width: 90px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
  }

  .popup-content {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .popup-title {
    font-size: 15px;
    color: #9ED11D; /* bright green similar to the one in the image */
    font-weight: 500;
    margin: 0 0 4px 0;
    line-height: 1.3;
  }

  .popup-address {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #f0f0f0;
    line-height: 1.4;
  }

  .popup-directions-btn {
    margin-top: 0;
    padding: 8px 14px;
    background: #9ED11D;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
    width: 100%;
  }

  .popup-directions-btn:hover {
    background: #a3e835;
    transform: translateY(-1px);
  }

  .popup-directions-btn:active {
    transform: translateY(0);
  }

  .popup-directions-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Parent Category Header Styles */
  .parent-category-header {
    background: #fff;
    color: #172C4B;
    padding: 10px 10px;
    margin: 3px 0 5px 0;
    border-radius: 5px;
    font-weight: 600;
  }

  .parent-category-header:first-child {
    margin-top: 0;
  }

  .parent-category-header h3 {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 700;
  }

  /* Adjust list-category spacing when grouped */
  .parent-category-header + .list-category {
    margin-top: 5px;
  }

  .list-category {
    margin-bottom: 3px;
  }
  /* Map Loader */
  .map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 8px;
  }

  .loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #172C4B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .map-loader p {
    margin-top: 15px;
    color: #172C4B;
    font-weight: 600;
    font-size: 16px;
  }

  /* Mobile responsive styles for info window */
  @media (max-width: 500px) {
    .gm-style-iw
    {
      max-width: 90vw!important;
    }
    .map-popup {
      max-width: 90vw;
      min-width: 280px;
      padding: 14px 16px;
    }

    .popup-img {
      width: 100px;
      height: 80px;
    }

    .popup-title {
      font-size: 16px;
    }

    .popup-address {
      font-size: 14px;
    }

    .popup-directions-btn {
      padding: 10px 16px;
      font-size: 15px;
    }
  }

  /* Navigation Modal */
  .navigation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
  }

  .navigation-modal {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 90%;
    width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
  }

  .navigation-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
  }

  .navigation-modal-close:hover {
    color: #172C4B;
  }

  .navigation-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #172C4B;
    margin: 0 0 8px 0;
    padding-right: 20px;
  }

  .navigation-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
  }

  .navigation-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .navigation-modal-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
  }

  .navigation-modal-btn-waze {
    background: #9ED11D;
    color: white;
  }

  .navigation-modal-btn-waze:hover {
    background: #9ED11D;
    transform: translateY(-1px);
  }

  .navigation-modal-btn-google {
    background: #0656C3;
    color: white;
  }

  .navigation-modal-btn-google:hover {
    background: #0656C3;
    transform: translateY(-1px);
  }

  .navigation-modal-btn-apple {
    background: #0656C3;
    color: white;
  }

  .navigation-modal-btn-apple:hover {
    background: #0656C3;
    transform: translateY(-1px);
  }
