/* City Batam Page Specific Styles */

/* Hero Small */
.hero-small {
  padding: 2rem 0 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--blue-700);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--blue-800);
}

.hero-content-small {
  max-width: 48rem;
}

.hero-content-small h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content-small p {
  color: var(--slate-600);
}

/* Section Styles */
.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: var(--slate-50);
}

.section-header-left {
  margin-bottom: 2rem;
}

.section-header-left h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-description {
  color: var(--slate-600);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.section-divider {
  height: 0.25rem;
  width: 5rem;
  border-radius: 0.125rem;
}

.section-divider.blue {
  background-color: var(--blue-700);
}

.section-divider.orange {
  background-color: var(--orange-500);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  gap: 1.5rem;
}

.stat-card {
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  background-color: var(--white);
}

.stat-card.blue {
  border-left: 4px solid var(--blue-700);
}

.stat-card.orange {
  border-left: 4px solid var(--orange-500);
}

.stat-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Business Grid */
.business-grid {
  display: grid;
  gap: 1.5rem;
}

.business-total,
.business-categories {
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  background-color: var(--white);
}

.business-total h3,
.business-categories h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.business-count {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 0.5rem;
}

.business-total p {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
}

.category-header span:last-child {
  color: var(--slate-500);
}

.category-bar {
  width: 100%;
  height: 0.625rem;
  background-color: var(--slate-200);
  border-radius: 9999px;
  overflow: hidden;
}

.category-progress {
  height: 100%;
  border-radius: 9999px;
}

.category-progress.blue {
  background-color: var(--blue-700);
}

.category-progress.orange {
  background-color: var(--orange-500);
}

@media (min-width: 1024px) {
  .business-grid {
    grid-template-columns: 1fr 2fr;
  }
}

/* Filter Grid */
.filter-grid {
  display: grid;
  gap: 1.5rem;
}

.filter-card {
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  background-color: var(--white);
}

.filter-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-card-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 0.75rem;
  color: var(--white);
  font-size: 0.875rem;
}

.filter-card-icon.blue {
  background-color: var(--blue-700);
}

.filter-card-icon.orange {
  background-color: var(--orange-500);
}

.filter-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.filter-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: var(--white);
}

.selected-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  border-radius: 9999px;
}

.filter-badge.blue {
  background-color: var(--blue-700);
}

.filter-badge.orange {
  background-color: var(--orange-500);
}

.radius-slider-container {
  width: 100%;
}

.radius-slider {
  width: 100%;
  margin-bottom: 0.75rem;
  -webkit-appearance: none;
  appearance: none;
  height: 0.5rem;
  background: var(--slate-200);
  border-radius: 9999px;
  outline: none;
}

.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--orange-500);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.radius-slider::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--orange-500);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.radius-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.radius-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.radius-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.radius-labels span:nth-child(2) {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--orange-500);
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Map and Insights */
.map-insights-grid {
  display: grid;
  gap: 1.5rem;
}

.map-container,
.insights-container {
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  background-color: var(--white);
  height: 100%;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--slate-200);
}

.map-header h3 {
  font-size: 1.25rem;
}

.map-location {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.map-content {
  padding: 1.5rem;
}

.map {
  width: 100%;
  height: 400px;
  border-radius: 0.375rem;
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.map-instruction {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 1rem;
}

.insights-container {
  display: flex;
  flex-direction: column;
}

.insights-container h3 {
  font-size: 1.25rem;
  padding: 1.5rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--slate-200);
}

.insights-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.insight-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.insight-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
}

.insight-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.insight-number {
  font-size: 1.5rem;
  font-weight: 700;
}

.insight-number.blue {
  color: var(--blue-700);
}

.insight-number.orange {
  color: var(--orange-500);
}

.insight-unit {
  font-size: 0.875rem;
  color: var(--slate-500);
}

@media (min-width: 1024px) {
  .map-insights-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* CTA Section - Matching homepage style */
.cta {
  padding: 4rem 0;
  background-color: var(--blue-700);
  color: var(--white);
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--blue-100);
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 400px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* 3D Element */
.element-3d-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: -50px;
  margin-bottom: 50px;
  padding: 0 2rem;
  z-index: 10;
}

.element-3d-image {
  max-width: 400px;
  height: auto;
}

@media (max-width: 768px) {
  .element-3d-container {
    justify-content: center;
    margin-top: 2rem;
  }

  .element-3d-image {
    max-width: 300px;
  }
}

/* Custom Map Markers */
.custom-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-map-marker div {
  transition: transform 0.2s, box-shadow 0.2s;
}

.custom-map-marker:hover div {
  transform: scale(1.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
