:root {
  --primary: #F29402;
  --primary-hover: #e08701;
  --primary-light: rgba(242, 148, 2, 0.1);
  --bg-color: #f7f9fa;
  --text-dark: #2c2c2e;
  --text-light: #8e8e93;
  --white: #ffffff;
  --border-color: #ebebeb;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-nav {
  background-color: var(--primary);
  width: 100%;
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-logo {
  max-width: 140px;
  height: auto;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
  /* makes the logo white */
}

.nav-logo:hover {
  transform: scale(1.05);
}

h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  transition: color 0.3s ease;
}

#searchInput {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 3.5rem;
  font-size: 1.1rem;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Outfit', sans-serif;
  outline: none;
  color: var(--text-dark);
}

#searchInput::placeholder {
  color: var(--text-light);
}

#searchInput:focus {
  border-color: var(--primary);
  box-shadow: 0 8px 30px var(--primary-light);
  transform: translateY(-2px);
}

#searchInput:focus+.search-icon {
  color: var(--primary);
}

/* ------------------------
   GRID AND CARD LAYOUT 
   ------------------------ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pos-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pos-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.pos-card-header {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.pos-name {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.pos-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pos-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pos-label {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pos-value {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: right;
}

.pos-card-footer {
  margin-top: auto;
  display: flex;
}

/* Maps Button */
.maps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.maps-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  font-size: 1.2rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.hidden {
  display: none !important;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  margin-top: 1rem;
}

.pagination-btn {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--primary);
  color: var(--white);
}

.pagination-btn:disabled {
  border-color: var(--text-light);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.page-info {
  font-weight: 600;
  color: var(--text-dark);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  #searchInput {
    font-size: 1rem;
    padding: 1rem 1rem 1rem 3rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}