/* CSS Custom Properties */
:root {
  --color-primary: #090435;
  --color-secondary: #003375;
  --color-accent: #1bb674;
  --color-white: #ffffff;
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;

  --font-family-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  font-size: 18px;
  vertical-align: middle;
  margin-right: 4px;
  position: relative;
  top: -1px;
}

/* Layout Components */
.sales-points_component {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 80vh;
  margin: 0 auto;
  background: transparent;
  box-shadow: var(--shadow-xl);
  font-family: var(--font-family-primary);
  grid-column-gap: 5rem;
  grid-row-gap: 4rem;
}

.sales-points_sidebar {
  flex: 1;
  overflow-y: auto;
  /* background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  ); */
  color: var(--color-white);
  border-radius: 4px;
}

.sales-points_map-container {
  flex: 2;
  position: relative;
  overflow: clip;
  border-radius: 4px;
}

/* Header Section */
.sidebar_header {
  padding: 2rem 1.5rem;
  /* background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  ); */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  /* background blur */
  backdrop-filter: blur(20px);
}

.header_title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.header_subtitle {
  opacity: 0.9;
  font-size: 1rem;
  color: var(--color-white);
}

/* Search Component */
.search_wrapper {
  /* margin: 1.25rem 1.5rem; */
  position: relative;
}

.search_input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: none;
  border-radius: var(--border-radius-2xl);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search_input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search_input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.search_icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  z-index: 1;
}

/* Sales Point Cards */
.sales-point_card {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sales-point_card::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.sales-point_card:hover::before {
  left: 100%;
}

.sales-point_card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(0.25rem);
}

.sales-point_card.is-active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(0.5rem);
  box-shadow: inset 4px 0 0 var(--color-accent);
}

.card_name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  color: var(--color-white);
}

.card_location-icon {
  margin-right: 0.625rem;
  font-size: 1.125rem;
  color: var(--color-accent);
}

.card_details {
  margin-bottom: 1rem;
}

.card_company {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.card_address {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.card_contact {
  /* display: flex;
  flex-direction: column;
  gap: 0.5rem; */
  display: none;
}

.contact_item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.8);
}

.contact_item a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact_item a:hover {
  opacity: 0.8;
}

.contact_icon {
  margin-right: 0.5rem;
  font-size: 1rem;
  color: var(--color-accent);
}

/* Remove status badge styles */
.card_status,
.status_active,
.status_inactive {
  display: none;
}

/* Map Components */
.map_element {
  height: 100%;
  width: 100%;
}

.map_loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--color-neutral-50);
  font-size: 1.125rem;
  color: var(--color-neutral-600);
}

.loading_spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 4px solid var(--color-neutral-200);
  border-top: 4px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}

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

.map_info-card {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--color-white);
  padding: 1.25rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 20rem;
  transform: translateY(-0.625rem);
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid var(--color-neutral-200);
}

.map_info-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.info-card_title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-neutral-900);
  margin-bottom: 0.625rem;
}

.info-card_address {
  color: var(--color-neutral-600);
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.info-card_address a:hover {
  text-decoration: underline;
  color: var(--color-accent);
}

.info-card_contact {
  font-size: 0.8125rem;
  color: var(--color-neutral-500);
  line-height: 1.5;
}

.info-card_contact a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.info-card_icon {
  color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sales-points_component {
    grid-template-columns: 1fr;
    height: auto;
  }

  .card_name {
    font-size: 1rem;
  }

  .sales-points_sidebar {
    max-width: none;
    max-height: 400px;
  }

  .sales-points_map-container {
    height: 400px;
  }

  .map_info-card {
    position: relative;
    top: auto;
    right: auto;
    margin: 1.25rem;
    max-width: none;
  }

  .sidebar_header {
    position: static;
  }

  .header_title {
    font-size: 1.5rem;
  }

  .sales-point_card {
    padding: 1rem 1.25rem;
  }
}

img[alt="Google"] {
  display: none !important;
}

.gmnoprint {
  display: none !important;
}

#salesPointsList {
  overflow: clip;
}
