/* ========================================
   Popular Routes Shortcode Styles
   These styles are for the [ota_popular_routes] shortcode
   Do NOT modify these unless you want to affect the shortcode
   ======================================== */

.ota-popular-routes {
  margin: 0 auto;
  max-width: 1200px;
}

.ota-popular-routes__title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
}

.ota-routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Large screens: 2 columns */
@media (max-width: 1024px) {
  .ota-routes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium screens: 1 column */
@media (max-width: 768px) {
  .ota-routes-grid {
    grid-template-columns: 1fr;
    padding: 0 !important;
    margin: 0 !important;
  }
}

.ota-route-card {
  display: block;
  border: 1px solid rgb(var(--border));
  border-radius: 12px;
  padding: 0;
  text-decoration: none;
  background: rgb(var(--background));
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

/* Legacy shortcode styles (for backward compatibility) */
.ota-route-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.ota-route-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: block;
}

/* Favorite Route Label */
.ota-route-card__favorite-label {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 20;
  background: rgb(var(--primary));
  color: rgb(var(--background));
  padding: 6px 16px 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0 20px 20px 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hide Rating Section Temporarily */
.ota-route-card__rating {
  display: none !important;
}

/* Image Overlay - Dark Green Gradient using colors.css */
.ota-route-card__image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(var(--primary)/0.85) 0%, rgba(var(--primary)/0.6) 50%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* Route Info on Image Overlay */
.ota-route-card__image-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  z-index: 10;
  pointer-events: none;
}

.ota-route-card__vehicle-type {
  font-size: var(--ota-font-sm);
  color: rgba(var(--background)/0.9);
  margin-bottom: 4px;
  font-weight: var(--ota-font-normal);
}

.ota-route-card__route-name {
  font-size: var(--ota-font-2xl);
  font-weight: var(--ota-font-bold);
  color: rgb(var(--background));
  line-height: var(--ota-leading-tight);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ota-route-card__favorite-label {
    font-size: 11px;
    padding: 5px 12px 5px 10px;
  }
  
  .ota-route-card__route-name {
    font-size: 18px;
  }
  
  .ota-route-card__vehicle-type {
    font-size: 11px;
  }
  
  .ota-route-card__route {
    font-size: var(--ota-font-xl);
  }
  
  .ota-route-card__meta {
    font-size: var(--ota-font-sm);
  }
  
  .ota-route-card__price-main {
    font-size: 18px;
  }
}

/* Archive template overrides - image with aspect ratio */
.ota-route-archive .ota-route-card__image {
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ota-route-card__badge {
  position: absolute;
  z-index: 10;
  top: 5px;
  right: 5px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgb(var(--shadow));
  border-radius: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.5);
}

/* Hide badge in new design */
.ota-route-card .ota-route-card__badge {
  display: none;
}

/* Archive template badge positioning */
.ota-route-archive .ota-route-card__image-wrapper {
  position: relative;
}

.ota-route-archive .ota-route-card__badge {
  top: 16px;
  right: 16px;
}

.ota-route-card__badge svg {
  width: 48px;
  height: 48px;
  display: block;
}

.ota-route-card__content {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
}

/* Rating Section */
.ota-route-card__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ota-route-card__rating-pill {
  background: rgb(var(--success));
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}

/* Rating Section - Hidden */
.ota-route-card__rating-text {
  display: none;
}

.ota-route-card__rating-label {
  display: none;
}

.ota-route-card__rating-separator {
  display: none;
}

.ota-route-card__rating-count {
  display: none;
}

/* Amenities Section - Hidden for now */
.ota-route-card__amenities {
  display: none;
}

.ota-route-card__amenity {
  display: none;
}

.ota-route-card__amenity-bullet {
  display: none;
}

.ota-route-card__amenity-text {
  display: none;
}

/* Footer Section - Hidden, using old price display instead */
.ota-route-card__footer {
  display: none;
}

.ota-route-card__price-section {
  display: none;
}

.ota-route-card__price-label {
  display: none;
}

.ota-route-card__price-value {
  display: none;
}

.ota-route-card__button {
  display: none;
}

/* Route Card Header - Using colors from colors.css */
.ota-route-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ota-route-card__header-main {
  flex: 1;
}

.ota-route-card__route {
  font-size: 18px;
  font-weight: var(--ota-font-semibold);
  color: rgb(var(--foreground));
  margin-bottom: 8px;
  line-height: var(--ota-leading-normal);
}

.ota-route-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--ota-font-md);
  color: rgb(var(--muted));
}

.ota-route-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ota-route-card__meta .ota-icon-small {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: rgb(var(--muted));
}

.ota-route-card__meta span+span {
  margin-left: 12px;
}

/* Price Section - Using colors from colors.css */
.ota-route-card__price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgb(var(--border));
}

.ota-route-card__price-main {
  font-size: 20px;
  font-weight: var(--ota-font-bold);
  color: rgb(var(--warning));
}

.ota-route-card__price-range {
  font-size: 14px;
  color: rgb(var(--muted));
  font-weight: var(--ota-font-normal);
}

/* Trip Count - Using colors from colors.css */
.ota-route-card__trips {
  margin-top: 12px;
  font-size: var(--ota-font-sm);
  color: rgb(var(--muted));
}

.ota-routes-list {
  display: grid;
  gap: 12px;
}

.ota-route-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgb(var(--border));
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  background: rgb(var(--background));
  transition: all 0.3s ease;
}

.ota-route-item__main {
  flex: 1;
}

.ota-route-item__route {
  font-size: 16px;
  font-weight: 600;
  color: rgb(var(--foreground));
  margin-bottom: 4px;
}

.ota-route-item__meta {
  font-size: 13px;
  color: rgb(var(--muted));
}

.ota-route-item__meta span+span::before {
  content: " · ";
}

.ota-route-item__price {
  text-align: right;
  margin-left: 20px;
}

.ota-route-item__price-main {
  font-size: 18px;
  font-weight: 700;
  color: rgb(var(--primary));
}

.ota-route-item__price-range {
  font-size: 12px;
  color: rgb(var(--muted)) !important;
}

.ota-popular-routes__more {
  text-align: center;
  margin-top: 30px;
}

.ota-popular-routes__more-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 2px solid rgb(var(--primary));
  border-radius: 10px;
  text-decoration: none;
  color: rgb(var(--primary));
  font-weight: 600;
  transition: all 0.3s ease;
}

.ota-route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: rgb(var(--border));
}

.ota-route-item:hover {
  border-color: rgb(var(--primary));
  background: rgb(var(--surface));
}

/* ========================================
   Archive Template Styles
   ======================================== */

/* Archive Container */
.ota-route-archive {
  min-height: 100vh;
}

.ota-route-archive__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.ota-route-archive__hero {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.ota-route-archive__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.ota-route-archive__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
}

.ota-route-archive__title {
  font-size: 3rem;
  font-weight: 700;
  margin: 20px 0 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .ota-route-archive__hero {
    min-height: 300px;
  }

  .ota-route-archive__title {
    font-size: 2rem;
  }

  .ota-route-archive__hero-content {
    padding: 60px 0;
  }
}

/* Breadcrumbs */
.ota-route-archive__breadcrumbs {
  margin-bottom: 20px;
}

.ota-route-archive__breadcrumbs-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  font-size: 14px;
}

.ota-route-archive__breadcrumbs-item {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.ota-route-archive__breadcrumbs-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ota-route-archive__breadcrumbs-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ota-route-archive__breadcrumbs-separator {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.6);
}

.ota-route-archive__breadcrumbs-current {
  color: #ffffff;
  font-weight: 500;
}

/* Main Content */
.ota-route-archive__main {
  padding: 0 0 80px;
}

/* ========================================
   Archive Template Specific Styles
   Scoped to .ota-route-archive to avoid conflicts with shortcode
   ======================================== */

/* Grid for archive (shared with shortcode, but refined for archive) */
.ota-route-archive .ota-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .ota-route-archive .ota-route-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .ota-route-archive .ota-route-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Archive Card Image Wrapper with Hover Zoom */
.ota-route-archive .ota-route-card__image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.ota-route-archive .ota-route-card__image-link {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 66.666%;
  /* 3:2 Aspect Ratio */
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.ota-route-archive .ota-route-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.ota-route-archive .ota-route-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Archive Hover Zoom Effect */
.ota-route-archive .ota-route-card:hover .ota-route-card__image img,
.ota-route-archive .ota-route-card:hover .ota-route-card__image {
  transform: scale(1.1);
}

.ota-route-archive .ota-route-card__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ota-route-archive .ota-route-card:hover .ota-route-card__image-overlay {
  opacity: 1;
}

/* Archive Card Title */
.ota-route-archive .ota-route-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.4;
}

.ota-route-archive .ota-route-card__title-link {
  color: rgb(var(--foreground));
  text-decoration: none;
  transition: color 0.3s ease;
}

.ota-route-archive .ota-route-card__title-link:hover {
  color: rgb(var(--primary));
}

/* Archive Card Meta Items */
.ota-route-archive .ota-route-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgb(var(--muted));
}

.ota-route-archive .ota-route-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Archive Card Price */
.ota-route-archive .ota-route-card__price {
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid rgb(var(--border));
}

.ota-route-archive .ota-route-card__price-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(var(--primary));
  line-height: 1.2;
}

.ota-route-archive .ota-route-card__price-range {
  font-size: 1rem;
  color: rgb(var(--muted));
  font-weight: 400;
}

/* Archive Card Frequency */
.ota-route-archive .ota-route-card__frequency {
  margin-top: 12px;
  margin-bottom: 16px;
}

.ota-route-archive .ota-route-card__frequency-text {
  font-size: 13px;
  color: rgb(var(--muted));
}

/* Archive Book Now Button */
.ota-route-archive .ota-route-card__actions {
  margin-top: auto;
  padding-top: 16px;
}

.ota-route-archive .ota-route-card__button {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: rgb(var(--primary));
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.ota-route-archive .ota-route-card__button:hover {
  background-color: transparent;
  color: rgb(var(--primary));
  border-color: rgb(var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Archive Card Content Layout */
.ota-route-archive .ota-route-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgb(var(--background));
}

.ota-route-archive .ota-route-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

/* Pagination */
.ota-route-archive__pagination {
  margin-top: 60px;
  text-align: center;
}

.ota-route-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ota-route-archive__pagination .page-numbers li {
  display: inline-block;
}

.ota-route-archive__pagination .page-numbers a,
.ota-route-archive__pagination .page-numbers span {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 4px;
  border: 1px solid rgb(var(--border));
  border-radius: 6px;
  color: rgb(var(--foreground));
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
}

.ota-route-archive__pagination .page-numbers a:hover {
  background-color: rgb(var(--primary));
  color: #ffffff;
  border-color: rgb(var(--primary));
}

.ota-route-archive__pagination .page-numbers .current {
  background-color: rgb(var(--primary));
  color: #ffffff;
  border-color: rgb(var(--primary));
}

.ota-route-archive__pagination .page-numbers .dots {
  border: none;
  padding: 10px 8px;
}

/* Empty State */
.ota-route-archive__empty {
  padding: 80px 20px;
  text-align: center;
}

.ota-route-archive__empty-content {
  max-width: 600px;
  margin: 0 auto;
}

.ota-route-archive__empty-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: rgb(var(--foreground));
}

.ota-route-archive__empty-text {
  font-size: 1.125rem;
  color: rgb(var(--muted));
  margin: 0 0 32px;
  line-height: 1.6;
}

.ota-route-archive__empty-link {
  display: inline-block;
  padding: 14px 32px;
  background-color: rgb(var(--primary));
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.ota-route-archive__empty-link:hover {
  background-color: transparent;
  color: rgb(var(--primary));
  border: 2px solid rgb(var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}