.tacografos-header {
  margin-top: 140px;
  text-align: center;
  padding: 2rem 1rem 0 1rem;
  animation: fadeIn 0.8s ease-out;
}

.tacografos-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}

.tacografos-intro {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
}

.tacografos-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-top: 7rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #aaa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.tacografos-subtitle::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  color: transparent;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  background-size: 60% 100%;
  background-repeat: no-repeat;
  background-position: -150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  pointer-events: none;
  will-change: background-position, opacity;
}

.tacografos-subtitle.is-visible::after {
  opacity: 1;
  animation: tacografos-shimmer 3.2s ease-in-out infinite;
}

.tacografos-map-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.map-container {
  flex: 2;
  min-width: 300px;
  height: 600px;
  border-radius: 1rem;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-panel {
  flex: 1;
  min-width: 300px;
  background: rgba(13, 7, 22, 0.8);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 600px;
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.search-panel h2 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

.partner-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  background: white; /* Fallback if transparent logo needs bg */
  padding: 2px;
}

.search-group {
  display: flex;
  gap: 0.5rem;
}

#searchInput {
  flex: 1;
  min-width: 0; /* Prevents overflow in flex container */
  padding: 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1rem;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#searchBtn {
  padding: 0.8rem 1.2rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

#searchBtn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.locate-button {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: background 0.2s;
}

.locate-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.results-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 1rem;
  padding-right: 0.5rem;
}

.results-list::-webkit-scrollbar {
  width: 6px;
}

.results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.result-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.8rem;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.result-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.result-item h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.result-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.tacografos-footer {
  text-align: center;
  padding: 3rem 1rem 6rem;
  background: transparent;
  margin-bottom: 0;
}

.tacografos-footer h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.tacografos-footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .tacografos-map-section {
    flex-direction: column-reverse;
  }

  .map-container,
  .search-panel {
    width: 100%;
    min-width: 0;
  }

  .search-panel {
    padding: 1.5rem; /* Reduce padding on mobile */
  }

  .map-container {
    height: 400px;
    min-height: 400px; /* Force height so it doesn't collapse */
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button 4 Style - Selected for Contact Support */
.btn-support {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-transform: uppercase;
  background-color: #0d1428;
  color: #fff;
  font-weight: 700;
  transition: 0.6s;
  box-shadow: 0px 0px 30px rgba(23, 103, 232, 0.4);
  font-family: inherit;
  letter-spacing: 1px;
}
/* Province Carousel styles */
.province-carousel-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.province-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  white-space: nowrap;
  flex: 1;
}

.province-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.province-pill {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.province-pill:hover,
.province-pill.active {
  background: #fff;
  color: #0b1021;
  border-color: #fff;
  font-weight: 600;
}

.carousel-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s;
  min-width: 24px;
}

.carousel-arrow:hover {
  color: #fff;
}

.carousel-arrow .material-symbols-outlined {
  font-size: 1.5rem;
}
.btn-support:hover {
  background: linear-gradient(90deg, #1767e8, #4d8df5);
  color: #fff;
  box-shadow: 0px 0px 50px rgba(23, 103, 232, 0.7);
}

@keyframes tacografos-shimmer {
  0% {
    background-position: -160% 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  45% {
    background-position: 160% 0;
    opacity: 1;
  }

  60% {
    opacity: 0;
  }

  100% {
    background-position: 160% 0;
    opacity: 0;
  }
}
