:root {
  --primary-blue: #0D74B9;
  --primary-blue-light: #3b82f6;
  --secondary-color: #986627;
  --background: #f1f5f9;
  --sidebar-bg: #0D74B9;
  --card-bg: #ffffff;
  --white: #ffffff;
  --text-dark: #231F20;
  --text-muted: #7e8a92;
  --border: #e2e8f0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  --transition: all 0.2s ease-in-out;
  --blur: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  font-size: 15px;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: #cbd5e15f;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #cbd5e1;
}

h1 {
  font-size: 1rem;
}

.max-width-container {
  /* max-width: 1920px; */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 64px 1fr;
  height: 100vh;
}

header {
  grid-column: 1 / -1;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  z-index: 5;
  position: relative;
}

header span {
  color: #000;
  cursor: pointer;
  display: none;
}

header h1{
  color: var(--primary-blue);
}

.logo {
  max-height: 3rem;
}

aside {
  background-color: var(--sidebar-bg);
  backdrop-filter: blur(var(--blur));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  /* border-right: 1px solid var(--border); */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.02);
  z-index: 4;
}

.search-box input,
select {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--card-bg);
  font-size: 14px;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-blue-light);
  background-color: var(--white);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.button-group {
  display: flex;
  gap: 0.5rem;
}

.button {
  flex: 1;
  padding: 0.45rem 0.75rem;
  background-color: var(--primary-blue-light);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.button:hover {
  background-color: var(--primary-blue);
}

.reset-btn {
  background-color: #e5e7eb;
  color: var(--text-dark);
}

.reset-btn:hover {
  background-color: #d1d5db;
}

.results {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: clamp(20rem, 70vh, 60rem);
  max-height: calc(100vh - 114px);
}

.result-item {
  /* background-color: var(--card-bg); */
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 14px;
  color: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  gap: 0.3rem;
  text-overflow: ellipsis;
  overflow-x: hidden;
  min-height: 38px;
  white-space: nowrap;
}

.result-item svg {
  vertical-align: text-bottom;
}

.result-item:hover {
  background-color: var(--white);
  border-color: var(--primary-blue-light);
  color: var(--secondary-color);
  font-weight: 600;
}

main {
  background-color: var(--background);
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.map {
  flex-grow: 1;
}

.store-info-card {
  background-color: var(--card-bg);
  /* margin: 1rem 1rem 0; */
  padding: 1.25rem 1.5rem;
  /* border-radius: 0.75rem 0.75rem 0 0; */
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.store-info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--primary-blue);
}

.store-info-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.store-info-card li {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.store-info-card li strong {
  color: var(--text-muted);
  margin-right: 4px;
}

/* 🔹 For screens wider than 1920px (up to 2560px) */
@media (min-width: 1921px) and (max-width: 2560px) {
  .max-width-container {
    max-width: 2304px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .store-info-card h3 {
    font-size: 1.2rem;
  }

  .store-info-card li {
    font-size: 15px;
  }

  .button {
    font-size: 14px;
  }

  .search-box input,
  select {
    font-size: 15px;
  }
}

/* ====================================== */
/* Responsiv Code */
/* ====================================== */

@media (min-width: 2560px) {
  .max-width-container {
    grid-template-columns: 500px 1fr;
    grid-template-rows: 140px 1fr;
  }

  .logo {
    max-height: 7rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  .results {
    max-height: 86vh;
  }

  .result-item {
    font-size: 26px;
    min-height: 58px;
  }

  .store-info-card h3 {
    font-size: 2.2rem;
  }

  .store-info-card li {
    font-size: 1.8rem;
  }

  .store-info-card ul {
    gap: 1rem;
  }

  .search-box input,
  select {
    font-size: 1.6rem;
  }
}

@media (max-width: 1199px) {
  header {
    padding: 0 1.1rem;
  }
  aside {
    padding: 1rem;
  }

  h1 {
    font-size: 0.8rem;
  }
  .store-info-card {
    margin: 1rem 1rem 0;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 992px) {
  .max-width-container {
    grid-template-columns: 1fr;
    grid-template-rows: 64px auto;
  }

  header {
    padding: 0 0.8rem;
  }

  h1 {
    display: none;
  }

  aside {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.8rem;
    gap: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: absolute;
    bottom: 0;
    top: 64px;
    width: 100%;
    left: -100%;
    transition: all 0.3s ease-in-out;
  }

  aside.open {
    left: 0%;
  }

  .results {
    order: 2;
    flex: 1 1 100%;
    max-height: 100%;
  }

  header span {
    display: block;
  }

  .map {
    height: calc(100vh - 36vh);
  }

  .store-info-card {
    margin: 1rem 0.8rem 0;
    padding: 0.8rem;
  }

  .store-info-card ul {
    grid-template-columns: 1fr;
  }

  .store-info-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .store-info-card li {
    font-size: 12px;
    color: var(--text-dark);
  }
}
