/**
 * Region CPT Styles
 * Responsive card-based layout for region pages
 */

/* Header - 2 Column Layout */
.rd-region-page {
  width: 100%;
}

.rd-header-wrapper {
  margin-bottom: 2rem;
}

.rd-region-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  max-width: 1400px;
  margin: 0 auto;
}

.rd-header-content {
  padding: 1rem;
}

.rd-region-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.rd-region-breadcrumb a {
  color: #52c5ff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.rd-region-breadcrumb a:hover {
  opacity: 0.8;
}

.rd-region-breadcrumb .sep {
  margin: 0 0.5rem;
}

.rd-region-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  color: #1a1a1a;
}

.rd-region-tagline {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 1rem 0;
  color: #444;
}

.rd-region-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.rd-region-type {
  display: inline-block;
  background: #52c5ff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.rd-header-thumbnail-column {
  width: 100%;
}

.rd-header-thumbnail {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rd-header-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tab Navigation - Sticky with proper z-index */
.region-tabs {
  position: sticky;
  top: 0;
  background-color: #fff;
  border-bottom: 2px solid #e5e7eb;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 20px 20px 0 0;
  position: relative;
}

.content-section-all {
  margin-top: 40px;
  margin-bottom: 40px;
}

.region-tabs-toggle {
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-weight: 500;
  color: #52c5ff;
  font-size: 1rem;
  position: relative;
  transition: background 0.2s;
}

.region-tabs-toggle:hover {
  background: #f9fafb;
  color: #52c5ff;
}

.region-tabs-toggle::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280;
  transition: transform 0.3s;
}

.region-tabs-toggle[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

.region-tabs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
  -webkit-overflow-scrolling: touch;
}

/* Improved scrollbar styling */
.region-tabs-container::-webkit-scrollbar {
  height: 4px;
}

.region-tabs-container::-webkit-scrollbar-track {
  background: transparent;
}

.region-tabs-container::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 20px;
}

.region-tabs-container::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

.region-tab {
  padding: 0.875rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  color: #6b7280;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.region-tab:hover {
  color: #111827;
}

.region-tab.active {
  color: #52c5ff;
  border-bottom-color: #52c5ff;
  background: none;
}

/* Content Area */
.region-content {
  background-color: #fff;
}

.region-content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

.region-tab-content {
  display: none;
}

.region-tab-content.active {
  display: block;
}

/* Content Blocks - Text + Image Pairs */
.region-tab-content .content-section {
  margin-bottom: 3rem;
  border-top: 0;
  border-bottom: 1px;
  border-color: #52c5ff;
  border-style: solid;
  margin: 0 0 2rem;
  padding: 0;
}

/* Consistent h2 styling for all tab sections */
.content-section h2,
.featured-content-section h2,
.itineraries-section h2,
.custom-links-section h2,
.updates-section h2,
.products-section h2,
.region-poi-section h2,
.region-map-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111827;
}

.region-explainer {
  font-size: 12px;
  color: #999;
  margin-bottom: 1rem;
}
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.content-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
}

.content-text p {
  margin-bottom: 1rem;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Main Content (Post Content) */
.region-main-content {
  margin: 2rem 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
}

/* Gallery */
.region-gallery {
  margin: 3rem 0;
}

.region-gallery h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Quick Facts Grid */
.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.quick-fact-card {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.fact-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.fact-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fact-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

/* Highlights */
.highlights-section {
  margin: 3rem 0;
}

.highlights-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.highlight-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.highlight-content {
  padding: 1.5rem;
}

.highlight-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #111827;
}

.highlight-content p {
  color: #6b7280;
  line-height: 1.6;
}

/* Content Section Headers - Consistent sizing */
#tab-content section > h2,
.content-section-all > h2,
.videos-section > h2,
.playlists-section > h2,
.featured-content-section > h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

/* Content Grid - For journeys, guides, campsites */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.content-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.content-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.content-card.featured {
  /* Featured styling removed - no border distinction */
}

.card-image {
  position: relative;
  display: block;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Video card play icon overlay */
.video-card .card-image .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: all 0.3s;
  pointer-events: none;
}

.video-card:hover .card-image .play-icon {
  background: rgba(220, 38, 38, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-content h3 a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s;
}

.card-content h3 a:hover {
  color: #2563eb;
}

.card-excerpt {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Phrases Table */
.phrases-table {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.phrase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.phrase-row:last-child {
  border-bottom: none;
}

.phrase-local {
  font-weight: 600;
  color: #111827;
}

.phrase-translation {
  color: #6b7280;
}

/* Updates List */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.update-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.update-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.update-content {
  flex: 1;
}

.update-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.update-header h3 a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s;
}

.update-header h3 a:hover {
  color: #2563eb;
}

.update-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.update-excerpt {
  color: #374151;
  line-height: 1.6;
}

.update-image {
  flex-shrink: 0;
  width: 120px;
}

.update-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* No Content Message */
.no-content {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .region-title {
    font-size: 2.5rem;
  }

  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .rd-region-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .rd-header-content {
    padding: 0;
  }

  .rd-region-title {
    font-size: 2rem;
  }

  .region-tabs {
    border-radius: 12px 12px 0 0;
  }

  .region-tabs-toggle {
    display: block;
  }

  .region-tabs-container {
    padding: 0;
    gap: 0;
    flex-direction: column;
    overflow-x: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid #e5e7eb;
  }

  .region-tabs-container.open {
    max-height: 500px;
  }

  .region-tab {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    min-width: auto;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    border-left: 3px solid transparent;
  }

  .region-tab:last-child {
    border-bottom: none;
  }

  .region-tab.active {
    border-left-color: #52c5ff;
    background: #f9fafb;
  }

  .region-content-container {
    padding: 2rem 1rem;
  }

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

  .content-section h2,
  .featured-content-section h2,
  .itineraries-section h2,
  .custom-links-section h2,
  .updates-section h2,
  .products-section h2 {
    font-size: 1.5rem;
  }

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

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

  .quick-facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .update-card {
    flex-direction: column;
  }

  .update-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .region-hero-content {
    padding: 0 1rem;
  }

  .region-title {
    font-size: 1.75rem;
  }

  .region-tab {
    padding: 0.75rem 0.875rem;
    font-size: 0.85rem;
  }

  .quick-facts-grid {
    grid-template-columns: 1fr;
  }
}

/* Content Map */
.region-geographic-map {
  margin: 3rem 0;
}

.region-geographic-map h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.region-content-map {
  margin: 3rem 0;
}

.content-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.content-map-card {
  background: linear-gradient(135deg, #52c5ff 0%, #3ba3e0 100%);
  color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.content-map-card.regions {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  cursor: default;
}

.map-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.map-card-count {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.map-card-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.child-regions-list {
  margin-top: 3rem;
}

.child-regions-list h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Gallery Section (Campsite Pattern) */
.rd-region-gallery-section {
  overflow: visible;
  margin: 3rem 0;
}

.rd-gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -28px;
  padding: 0 28px;
}

.rd-gallery-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  margin: 0 -28px;
  padding: 8px 28px;
}

.rd-gallery-scroll-container::-webkit-scrollbar {
  display: none;
}

.rd-gallery-grid {
  display: flex;
  gap: 12px;
}

.rd-gallery-item {
  flex: 0 0 auto;
}

.rd-gallery-thumb {
  display: block;
  width: 200px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.rd-gallery-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.rd-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-gallery-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  color: #333;
  z-index: 10;
}

.rd-gallery-nav:hover {
  background: #f5f5f5;
  transform: scale(1.1);
}

.rd-gallery-nav svg {
  width: 24px;
  height: 24px;
}

/* Lightbox */
.rd-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.rd-lightbox.rd-lightbox-active {
  opacity: 1;
}

.rd-lightbox-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.rd-lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  z-index: 10001;
  border-radius: 4px;
  background: transparent;
  display: block;
  object-fit: contain;
}

.rd-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 10002;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}

.rd-lightbox-close:hover {
  transform: scale(1.1);
}

.rd-lightbox-prev,
.rd-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10002;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 32px;
  color: #333;
  border-radius: 4px;
  transition: all 0.2s;
}

.rd-lightbox-prev:hover,
.rd-lightbox-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.rd-lightbox-prev {
  left: 24px;
}

.rd-lightbox-next {
  right: 24px;
}

/* Mobile Gallery Adjustments */
@media (max-width: 768px) {
  .rd-gallery-wrapper {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .rd-gallery-scroll-container {
    margin: 0 -16px;
    padding: 8px 16px;
  }

  .rd-gallery-thumb {
    width: 160px;
    height: 112px;
  }

  .rd-gallery-nav {
    width: 36px;
    height: 36px;
  }

  .rd-gallery-nav svg {
    width: 20px;
    height: 20px;
  }

  .content-map-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .map-card-icon {
    font-size: 2rem;
  }

  .map-card-count {
    font-size: 1.5rem;
  }

  .rd-lightbox-prev,
  .rd-lightbox-next {
    padding: 12px 16px;
    font-size: 24px;
  }

  .rd-lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .content-map-card {
    padding: 1.5rem 1rem;
  }
}

/* Content Archive Link */
.content-archive-link {
  margin-bottom: 1.5rem;
  text-align: right;
}

.btn-show-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #52c5ff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(82, 197, 255, 0.2);
}

.btn-show-all:hover {
  background: #3daee6;
  box-shadow: 0 4px 8px rgba(82, 197, 255, 0.3);
  transform: translateY(-1px);
}

/* Content Filters */
.content-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #52c5ff;
  color: #52c5ff;
}

.filter-btn.active {
  background: #52c5ff;
  border-color: #52c5ff;
  color: #fff;
}

/* Video and Playlist Blocks */
.videos-container,
.playlists-section {
  margin-top: 2rem;
}

.video-block,
.playlist-block {
  margin-bottom: 2rem;
}

.video-block h3,
.playlist-block h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Content Links */
.content-links {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.content-links h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #374151;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 0.5rem;
}

.link-list a {
  color: #52c5ff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.link-list a:hover {
  opacity: 0.7;
}

.link-list a::before {
  content: "→ ";
  margin-right: 0.25rem;
}

/* =====================================================
   Content Carousel
   ===================================================== */

.content-carousel {
  position: relative;
  margin-bottom: 1rem;
}

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

.carousel-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.carousel-header .show-all-link {
  color: #52c5ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.carousel-header .show-all-link:hover {
  text-decoration: underline;
}

.carousel-wrapper {
  position: relative;
}

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

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

.carousel-track .content-card {
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 280px;
}

/* Carousel navigation buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #374151;
  transition: all 0.2s;
  z-index: 10;
}

.carousel-nav:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.carousel-prev {
  left: -20px;
}

.carousel-next {
  right: -20px;
}

/* Loading spinner */
.carousel-loader {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.carousel-loader .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #52c5ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-track .content-card {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
  }

  .carousel-nav {
    display: none; /* Hide buttons on mobile, use swipe */
  }

  .carousel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .carousel-track .content-card {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
  }
}

/* Region Gallery Styles */
.region-gallery-section {
  margin: 2rem 0;
}

.region-gallery-swiper {
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
}

.region-gallery-swiper .swiper-slide {
  height: 400px;
}

.region-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-gallery-swiper .swiper-slide a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.region-gallery-swiper .gallery-overlay,
.gallery-grid-item .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.region-gallery-swiper .swiper-slide:hover .gallery-overlay,
.gallery-grid-item:hover .gallery-overlay {
  opacity: 1;
}

.region-gallery-swiper .gallery-overlay svg,
.gallery-grid-item .gallery-overlay svg {
  color: white;
  width: 24px;
  height: 24px;
}

.gallery-grid-item .gallery-overlay svg {
  width: 20px;
  height: 20px;
}

/* Gallery Grid */
.region-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-grid-item:hover {
  transform: scale(1.05);
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid-item a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Swiper Navigation */
.region-gallery-swiper .swiper-button-next,
.region-gallery-swiper .swiper-button-prev {
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-top: -20px;
}

.region-gallery-swiper .swiper-button-next::after,
.region-gallery-swiper .swiper-button-prev::after {
  font-size: 20px;
}

.region-gallery-swiper .swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
}

.region-gallery-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .region-gallery-swiper .swiper-slide {
    height: 300px;
  }

  .region-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .region-gallery-swiper .swiper-slide {
    height: 250px;
  }

  .region-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
  }
}
