/* Regions Page Specific Styles */
.regions-hero {
  background: linear-gradient(135deg, var(--background) 0%, var(--secondary) 100%);
  padding: 4rem 0;
  text-align: center;
}

.regions-hero .hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.regions-hero .hero-content h1 span {
  color: var(--primary);
}

.regions-hero .hero-content p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Regions Grid Section */
.regions-grid-section {
  padding: 5rem 0;
  background: var(--background);
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Region Card */
.region-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

.region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.region-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.region-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.region-card:hover .region-image img {
  transform: scale(1.05);
}

.region-content {
  padding: 1.5rem;
}

.region-header {
  margin-bottom: 1rem;
}

.region-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.region-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Region Highlights */
.region-highlights {
  margin-bottom: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.highlight-dot {
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Region Stats */
.region-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-icon {
  width: 1rem;
  height: 1rem;
}

.stat-icon.star {
  color: #fbbf24;
}

/* Transfers Count */
.transfers-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.transfers-count svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Region Footer */
.region-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.region-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.price-amount {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.price-currency {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.region-actions {
  display: flex;
  gap: 0.5rem;
}

.region-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* CTA Section */
.regions-cta {
  padding: 5rem 0;
  background: var(--muted);
}

.cta-card {
  background: var(--background);
  border-radius: calc(var(--radius) * 2);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.cta-card p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Loading State */
.regions-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Filter Section */
.filter-section {
  padding: 2rem 0;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.filter-container {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
}

.filter-group,
.search-group {
  flex: 1;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.filter-label svg {
  color: var(--primary);
}

.filter-select,
.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: white;
  transition: all 0.2s;
}

.filter-select:focus,
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

/* Responsive Design */
@media (max-width: 768px) {
  .regions-hero .hero-content h1 {
    font-size: 2rem;
  }

  .regions-hero .hero-content p {
    font-size: 1rem;
  }

  .regions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .region-stats {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .region-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .region-actions {
    width: 100%;
  }

  .region-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .cta-card {
    padding: 2rem 1rem;
  }

  .cta-card h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .filter-options {
    justify-content: center;
  }

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

  .filter-group,
  .search-group {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .regions-hero {
    padding: 2rem 0;
  }

  .regions-grid-section {
    padding: 3rem 0;
  }

  .regions-cta {
    padding: 3rem 0;
  }

  .region-content {
    padding: 1rem;
  }

  .region-stats {
    font-size: 0.75rem;
  }

  .price-value {
    font-size: 1.25rem;
  }
}

/* Animation for region cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.region-card {
  animation: fadeInUp 0.6s ease-out;
}

.region-card:nth-child(1) {
  animation-delay: 0.1s;
}
.region-card:nth-child(2) {
  animation-delay: 0.2s;
}
.region-card:nth-child(3) {
  animation-delay: 0.3s;
}
.region-card:nth-child(4) {
  animation-delay: 0.4s;
}
.region-card:nth-child(5) {
  animation-delay: 0.5s;
}
.region-card:nth-child(6) {
  animation-delay: 0.6s;
}
.region-card:nth-child(7) {
  animation-delay: 0.7s;
}
.region-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  grid-column: 1 / -1;
}

.no-results h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* iPhone Specific Regions Optimizations */
@media screen and (max-width: 414px) and (-webkit-min-device-pixel-ratio: 2) {
  .regions-hero .hero-content h1 {
    font-size: 2rem;
  }
  
  .regions-hero .hero-content p {
    font-size: 1rem;
  }
  
  .region-card {
    padding: 1rem;
  }
  
  .region-card h3 {
    font-size: 1.125rem;
  }
  
  .region-card p {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  .regions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media screen and (max-width: 375px) and (-webkit-min-device-pixel-ratio: 2) {
  .regions-hero .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .region-card {
    padding: 0.75rem;
  }
  
  .btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 320px) and (-webkit-min-device-pixel-ratio: 2) {
  .regions-hero .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .region-card {
    padding: 0.5rem;
  }
  
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}
