/**
 * Tour Cards CSS - All 3 Styles
 * Comprehensive styling for GLIZWP tour card layouts
 * 
 * @package GLIZWP
 * @version 1.0.0
 */

/* ================================
   BASE TOUR CARD STYLES
   ================================ */

.tour-card {
  position: relative;
  /*overflow: hidden;*/
  transition: all 0.3s ease;
  cursor: pointer;
  height: fit-content;
}

/* Image Container Base */
.tour-image-container {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  /* Height will be set by aspect ratio or card-specific rules */
}

/* Apply aspect ratios when specified */
.tour-image-container.ratio-square {
  height: auto;
  aspect-ratio: 1/1;
  position: relative;
  min-height: 150px;
}

.tour-image-container.ratio-16-9 {
  height: auto;
  aspect-ratio: 16/9;
  position: relative;
  /* Ensure absolute children position correctly */
  /*  min-height: 150px;*/
  /* Minimum height for very small screens */
}

.tour-image-container.ratio-4-3 {
  height: auto;
  aspect-ratio: 4/3;
  position: relative;
  min-height: 150px;
}

.tour-image-container.ratio-3-2 {
  height: auto;
  aspect-ratio: 3/2;
  position: relative;
  min-height: 150px;
}

.tour-image-container.custom-ratio {
  height: auto;
  position: relative;
  min-height: 150px;
  /* Custom aspect ratio will be added via inline CSS */
}

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

.tour-card:hover .tour-image-single img,
.tour-card:hover .slide img {
  transform: scale(1.05);
}

/* Image Placeholder */
.tour-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #dee2e6;
  min-height: 200px;
}

/* ================================
   ASPECT RATIO CLASSES
   ================================ */

.ratio-square {
  aspect-ratio: 1/1;
}

.ratio-16-9 {
  aspect-ratio: 16/9;
}

.ratio-4-3 {
  aspect-ratio: 4/3;
}

.ratio-3-2 {
  aspect-ratio: 3/2;
}

/* ================================
   IMAGE SLIDER STYLES
   ================================ */

.tour-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide.active {
  opacity: 1;
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 5px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0.9;
  /* Made visible by default for debugging */
}

.tour-card:hover .slider-nav {
  opacity: 1;
}

.slider-nav:hover {
  background: white;
}

.slider-nav.prev {
  left: 8px;
}

.slider-nav.next {
  right: 8px;
}

/* Slider Dots */
.slider-dots {
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

/* ================================
   TOUR  BADGES
   ================================ */

.tour-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 15;
}

.badge {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.discount {
  background: #28a745;
}

.badge.weekend-deal {
  background: #ff385c;
}

.badge.coupon {
  background: #ffc107;
  color: #212529;
}

.badge.seasonal {
  background: #17a2b8;
}

/* Feature Badges for Style 3 - DEPRECATED (replaced by dynamic tour labels) */
.feature-badges {
  /* This is deprecated - use .tour-labels instead */
  display: none;
}

.feature-badge {
  /* This is deprecated - use .tour-label instead */
  display: none;
}

/* ================================
   FAVORITES BUTTON
   ================================ */

.glizwp-favorite-btn {
  position: absolute;
  /*top: 12px;*/
  /*right: 12px;*/
  background: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 15;
  color: #6c757d;
}

.glizwp-favorite-btn:hover {
  background: white;
  color: #ff385c;
}

.glizwp-favorite-btn.favorited {
  color: #ff385c !important;
  background: white;
}

.glizwp-favorite-btn.favorited .heart-icon {
  color: rgba(var(--glizwp-primary-rgb)) !important;
  fill: rgba(var(--glizwp-primary-rgb)) !important;
}

/* ================================
   STYLE 1: CARD 1 DESIGN (Tailwind Hybrid)
   ================================ */

/* Style1 uses pure Tailwind utilities - only essential custom CSS below */

/* Card hover lift effect (complements Tailwind hover:shadow-xl) */

/* Image container with aspect ratio support */
.tour-card.style1 .ratio-16-9,
.tour-card.style1 .ratio-4-3,
.tour-card.style1 .ratio-3-2,
.tour-card.style1 .ratio-square {
  position: relative;
  height: auto;
}

.tour-card.style1 .ratio-16-9 {
  aspect-ratio: 16/9;
}

.tour-card.style1 .ratio-4-3 {
  aspect-ratio: 4/3;
}

.tour-card.style1 .ratio-3-2 {
  aspect-ratio: 3/2;
}

.tour-card.style1 .ratio-square {
  aspect-ratio: 1/1;
}

/* Image hover zoom effect */
.tour-card.style1:hover .tour-image-single img,
.tour-card.style1:hover .slide.active img {
  transform: scale(1.05);
}

/* Favorite button favorited state */
.tour-card.style1 .glizwp-favorite-btn.favorited .heart-icon {
  fill: #ef4444;
  color: #ef4444;
}

/* ================================
   STYLE 2: MODERN COMPACT (Tailwind Hybrid)
   ================================ */

/* Style2 uses pure Tailwind utilities - only essential custom CSS below */

/* Card hover lift effect */

/* Image container with aspect ratio support */
.tour-card.style2 .ratio-16-9,
.tour-card.style2 .ratio-4-3,
.tour-card.style2 .ratio-3-2,
.tour-card.style2 .ratio-square {
  position: relative;
  height: auto;
}

.tour-card.style2 .ratio-16-9 {
  aspect-ratio: 16/9;
}

.tour-card.style2 .ratio-4-3 {
  aspect-ratio: 4/3;
}

.tour-card.style2 .ratio-3-2 {
  aspect-ratio: 3/2;
}

.tour-card.style2 .ratio-square {
  aspect-ratio: 1/1;
}

/* Image hover zoom effect */
.tour-card.style2:hover .tour-image-single img,
.tour-card.style2:hover .slide.active img {
  transform: scale(1.05);
}

/* Favorite button favorited state */
.tour-card.style2 .glizwp-favorite-btn.favorited .heart-icon {
  fill: #ef4444;
  color: #ef4444;
}

/* ================================
   STYLE 3: PREMIUM (Tailwind Hybrid)
   ================================ */

/* Style3 uses pure Tailwind utilities - only essential custom CSS below */

/* Card hover lift effect (complements Tailwind hover:shadow-xl) */
.tour-card.style3:hover {
  transform: translateY(-2px);
}

/* Image container with aspect ratio support */
.tour-card.style3 .ratio-16-9,
.tour-card.style3 .ratio-4-3,
.tour-card.style3 .ratio-3-2,
.tour-card.style3 .ratio-square {
  position: relative;
  height: auto;
}

.tour-card.style3 .ratio-16-9 {
  aspect-ratio: 16/9;
}

.tour-card.style3 .ratio-4-3 {
  aspect-ratio: 4/3;
}

.tour-card.style3 .ratio-3-2 {
  aspect-ratio: 3/2;
}

.tour-card.style3 .ratio-square {
  aspect-ratio: 1/1;
}

/* Image hover zoom effect */
.tour-card.style3:hover .tour-image-single img,
.tour-card.style3:hover .slide.active img {
  transform: scale(1.05);
}

/* Favorite button favorited state */
.tour-card.style3 .glizwp-favorite-btn.favorited .heart-icon {
  fill: #ef4444;
  color: #ef4444;
}

/* Deal Card Styles - Aspect Ratio Support */
.tour-card.deal-card .ratio-16-9,
.tour-card.deal-card .ratio-4-3,
.tour-card.deal-card .ratio-3-2,
.tour-card.deal-card .ratio-square {
  position: relative;
  height: auto !important;
}

.tour-card.deal-card .ratio-16-9 {
  aspect-ratio: 16/9;
}

.tour-card.deal-card .ratio-4-3 {
  aspect-ratio: 4/3;
}

.tour-card.deal-card .ratio-3-2 {
  aspect-ratio: 3/2;
}

.tour-card.deal-card .ratio-square {
  aspect-ratio: 1/1;
}

/* Deal Card Image Container - Support for slider and single images */
.tour-card.deal-card .tour-image-slider,
.tour-card.deal-card .tour-image-single {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Deal Card Image Container - Support for slider and single images */
.tour-card.deal-card .tour-image-slider,
.tour-card.deal-card .tour-image-single {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tour-card.deal-card .slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tour-card.deal-card .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-card.deal-card .slide.active {
  opacity: 1;
}

/* Style 7 - Clean Design */
.tour-card.style7 .ratio-16-9,
.tour-card.style7 .ratio-4-3,
.tour-card.style7 .ratio-3-2,
.tour-card.style7 .ratio-square {
  position: relative;
  height: auto;
}

.tour-card.style7 .ratio-16-9 {
  aspect-ratio: 16/9;
}

.tour-card.style7 .ratio-4-3 {
  aspect-ratio: 4/3;
}

.tour-card.style7 .ratio-3-2 {
  aspect-ratio: 3/2;
}

.tour-card.style7 .ratio-square {
  aspect-ratio: 1/1;
}

/* Style 7 Image Container - Support for slider and single images */
.tour-card.style7 .tour-image-slider,
.tour-card.style7 .tour-image-single {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tour-card.style7 .slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tour-card.style7 .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-card.style7 .slide.active {
  opacity: 1;
}

/* Style 7 Image hover zoom effect */
.tour-card.style7:hover .tour-image-single img,
.tour-card.style7:hover .slide.active img {
  transform: scale(1.05);
}

/* Style 7 Favorite button */
.tour-card.style7 .glizwp-favorite-btn.favorited .heart-icon {
  fill: #ef4444;
  color: #ef4444;
}
.tour-card.style7 .glizwp-favorite-btn {
  background: transparent;
  box-shadow: none;
}
.tour-card.style7 .slider-nav{border-radius: 50%;}

.tour-card.style1 .original-price,
.tour-card.style2 .original-price {
  margin-right: 5px;
}

/* ================================
   TOUR  LABELS
   ================================ */

.tour-labels {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  /* flex-direction: column;*/
  gap: 6px;
  z-index: 3;
  max-width: calc(100% - 80px);
  /* Leave space for favorites button */
}

.tour-label {
  text-transform: uppercase;
  /*letter-spacing: 0.5px;
    line-height: 1;
     text-overflow: ellipsis;
     max-width: 120px;
    white-space: nowrap;
    overflow: hidden;*/
}

/* Individual label color overrides (optional) */
.tour-label-seasonal {
  background-color: #f4e9f9 !important;
  color: #6c3483 !important;
}

.tour-label-weekend {
  background-color: #e3f5e8 !important;
  color: #31956d !important;
}

.tour-label-last_minute,
.tour-label-discount,
.tour-label-early_bird,
.tour-label-smart_pricing,
.tour-label-coupon {
  color: #fff !important;
}

/* Hover effects */

/* Single Tour Page Labels */
.tour-labels-single {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tour-label-single {
  font-weight: 600;
  letter-spacing: 0.5px;
  /*  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);*/
  /* transition: transform 0.2s ease, box-shadow 0.2s ease;*/
  cursor: default;
}

/* .tour-label-single:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
} */

/* Mobile responsiveness */
@media (max-width: 768px) {
  .tour-labels {
  }

  .tour-label {
    font-size: 9px;
  }

  /* Single tour page labels mobile */
  .tour-labels-single {
    gap: 6px;
  }

  .tour-label-single {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 16px;
  }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
  .tour-card {
    border-radius: 12px;
  }

  .tour-card.style3 {
    border-radius: 16px;
  }

  .tour-card.style3 .tour-image-container {
    border-radius: 16px 16px 0 0;
  }

  /* Only set min-height for style3 when NO aspect ratio is set */
  .tour-card.style3 .tour-image-container:not([class*="ratio-"]) {
    min-height: 220px;
  }

  /* Style1 mobile adjustments - most handled by Tailwind responsive classes */
  .tour-card.style2 .tour-content {
    padding: 12px;
  }

  .tour-card.style3 .tour-content {
    padding: 14px;
  }

  /* Keep inline layout on mobile for style 3 */
  .premium-footer {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .btn-quick-book {
    text-align: center;
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Adjust detail icons for mobile */
  .detail-icons {
    gap: 12px;
  }

  /* Smaller badges on mobile */
  .tour-badges {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  .feature-badges {
    /* Deprecated - use .tour-labels instead */
    display: none;
  }

  .glizwp-favorite-btn {
    /*top: 8px;*/
    /*right: 8px;*/
    width: 32px;
    height: 32px;
  }

  /* Slider navigation adjustments */
  .slider-nav {
    width: 28px;
    height: 28px;
  }

  .slider-nav.prev {
    left: 6px;
  }

  .slider-nav.next {
    right: 6px;
  }
}

@media (max-width: 480px) {
  .tour-card.style2 .content-header {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .tour-card.style2 .content-left {
    padding-right: 0;
  }

  .tour-card.style2 .tour-price {
    text-align: left;
  }

  .detail-icons {
    gap: 8px;
  }

  .detail-item {
    gap: 4px;
    font-size: 12px;
  }
}

/* ================================
   LOADING STATES
   ================================ */

.tour-card.loading {
  pointer-events: none;
  opacity: 0.7;
}

.tour-card.loading .tour-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ================================
   GRID LAYOUTS
   ================================ */

.tour-grid {
  display: grid;
  gap: 24px;
}

.tour-grid.cols-1 {
  grid-template-columns: 1fr;
}

.tour-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tour-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.tour-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .tour-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tour-grid.cols-3,
  .tour-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tour-grid {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .tour-grid.cols-2,
  .tour-grid.cols-3,
  .tour-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .tour-grid {
    gap: 12px;
  }
}

/* ================================
   LIST LAYOUTS - STYLE 4 & 5
   ================================ */

/* Tour List - List Style 1 (Style 4) */
/* Note: Most styling is now handled by Tailwind classes in style4.php */
/* Keeping only essential structural and functional CSS */

/* Make list layout respect image ratio settings */
.tour-card.list-style-1 .tour-image-section {
  position: relative;
  min-height: 100%;
  align-self: stretch;
}

.tour-card.list-style-1 .tour-image-section .tour-image-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Remove aspect ratio constraints for list layouts - images should fill full height */
.tour-card.list-style-1 .tour-image-section .tour-image-container {
  aspect-ratio: unset !important;
  height: 100%;
}

/* Ensure sliders and images within ratio containers work properly */
.tour-card.list-style-1 .tour-image-container .tour-image-slider,
.tour-card.list-style-1 .tour-image-container .tour-image-single {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
}

/* Default height when no ratio container is used */
.tour-card.list-style-1 .tour-image-section:not(:has(.tour-image-container)) {
  height: 200px;
}

/* Ensure image slider works in list layout and fills full height */
.tour-card.list-style-1 .tour-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  overflow: hidden;
  border-radius: 0;
  flex: 1;
  display: flex;
  align-items: stretch;
}

.tour-card.list-style-1 .slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
}

.tour-card.list-style-1 .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tour-card.list-style-1 .slide.active {
  opacity: 1;
}

.tour-card.list-style-1 .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-card.list-style-1 .tour-image-single {
  width: 100%;
  height: 100%;
  min-height: 200px;
  flex: 1;
  display: flex;
  align-items: stretch;
}

.tour-card.list-style-1 .tour-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tour-card.list-style-1:hover .tour-image-section img {
  transform: scale(1.03);
}

/* Content section styling now handled by Tailwind classes */

/* Favorites button and labels styling now handled by Tailwind classes */

/* Tour List - List Style 2 (Style 5) - Compact */
/* Note: Most styling is now handled by Tailwind classes in style5.php */
/* Keeping only essential structural and functional CSS */

/* Make compact list layout respect image ratio settings */
.tour-card.list-style-2 .list-style-2-content > div:first-child {
  position: relative;
}

/* Mobile: Fixed height, Desktop: Stretch to content height */
@media (max-width: 767px) {
  .tour-card.list-style-2 .list-style-2-content > div:first-child {
    height: auto;
    min-height: 256px;
    /* h-64 equivalent */
  }
}

@media (min-width: 768px) {
  .tour-card.list-style-2 .list-style-2-content > div:first-child {
    min-height: 100%;
    align-self: stretch;
  }
}

.tour-card.list-style-2 .tour-image-section .tour-image-container {
  width: 100%;
  height: 100%;
}

/* Mobile: Absolute positioning within fixed height parent */
@media (max-width: 767px) {
  .tour-card.list-style-2 .tour-image-section .tour-image-container {
    position: absolute;
    inset: 0;
  }
}

/* Desktop: Relative positioning to stretch with content */
@media (min-width: 768px) {
  .tour-card.list-style-2 .tour-image-section .tour-image-container {
    position: relative;
    height: 100%;
  }
}

/* Remove aspect ratio constraints for list layouts - images should fill full height */
.tour-card.list-style-2 .tour-image-section .tour-image-container {
  aspect-ratio: unset !important;
}

/* Default height when no ratio container is used */
.tour-card.list-style-2 .tour-image-section:not(:has(.tour-image-container)) {
  height: 120px;
}

/* Ensure image slider works in compact list layout */
.tour-card.list-style-2 .tour-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

.tour-card.list-style-2 .slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  /* Remove fixed min-height to respect aspect ratios */
}

.tour-card.list-style-2 .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tour-card.list-style-2 .slide.active {
  opacity: 1;
}

.tour-card.list-style-2 .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove duplicate - already defined above */

.tour-card.list-style-2 .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tour-card.list-style-2 .slide.active {
  opacity: 1;
}

.tour-card.list-style-2 .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Compact content styling now handled by Tailwind classes */

/* ================================
   RESPONSIVE DESIGN FOR LIST LAYOUTS
   ================================ */

@media (max-width: 768px) {
  /* List Style 1 - Stack on mobile */
  .tour-card.list-style-1 {
    flex-direction: column;
    min-height: auto;
  }

  .tour-card.list-style-1 .tour-image-section {
    width: 100%;
    height: 200px;
  }

  .tour-card.list-style-1 .tour-content-section {
    padding: 20px;
    min-height: auto;
  }

  .tour-card.list-style-1 .location-tags-row {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .tour-card.list-style-1 .location-tags-left {
    width: 100%;
  }

  .tour-card.list-style-1 .tour-rating {
  }

  .tour-card.list-style-1 .tour-details-enhanced {
  }

  .tour-card.list-style-1 .list-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: 12px;
  }

  .tour-card.list-style-1 .btn-view-details {
    width: 100%;
    text-align: center;
  }

  /* List Style 2 - Compact mobile layout */
  .tour-card.list-style-2 .tour-image-section.compact {
    width: 120px;
    min-width: 120px;
  }

  .tour-card.list-style-2 .compact-content {
    padding: 12px;
  }

  .tour-card.list-style-2 .compact-main-row {
    flex-direction: column;
    gap: 8px;
  }

  .tour-card.list-style-2 .rating-price-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .tour-card.list-style-2 .compact-details-row {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  /* Further mobile optimizations */
  .tour-card.list-style-1 .tour-image-section {
    height: 180px;
  }

  .tour-card.list-style-2 {
    min-height: 100px;
  }

  .tour-card.list-style-2 .tour-image-section.compact {
    width: 100px;
    min-width: 100px;
  }

  .tour-card.list-style-2 .compact-title {
    font-size: 14px;
  }

  .tour-card.list-style-2 .compact-location {
    font-size: 12px;
  }

  .tour-card.list-style-2 .compact-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .tour-card.list-style-2 .compact-action-mobile {
    margin-left: 0;
    margin-top: 6px;
  }
}

/* List Layout Container Styles */
.tour-grid.list-layout {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
}

.tour-grid.list-layout .tour-card {
  width: 100%;
  margin-bottom: 0;
}

/* Fix for List Content Wrapper */
.tour-card.list-style-1 .list-style-1-content,
.tour-card.list-style-2 .list-style-2-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.tour-card.list-style-1 .list-style-1-content {
  flex-direction: row;
  min-height: 180px;
}

.tour-card.list-style-2 .list-style-2-content {
  flex-direction: row;
  min-height: 120px;
}

/* Layout toggle controls removed - layouts now controlled via admin settings only */

/* Tour Grid Container Classes */
.tour-list-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* Remove any grid behavior for list containers */
.tour-list-container.grid {
  display: flex !important;
  grid-template-columns: none !important;
}

/* Ensure list layout cards take full width */
.tour-list-container .tour-card {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 0;
}

/* Image Ratio Support for List Layouts */
.tour-card.list-style-1 .tour-image-section .tour-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tour-card.list-style-2 .tour-image-section .tour-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Ensure image containers maintain aspect ratios in list layouts */
.tour-card.list-style-1 .tour-image-section .ratio-square {
  aspect-ratio: 1 / 1;
}

.tour-card.list-style-1 .tour-image-section .ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.tour-card.list-style-1 .tour-image-section .ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.tour-card.list-style-1 .tour-image-section .ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.tour-card.list-style-2 .tour-image-section .ratio-square {
  aspect-ratio: 1 / 1;
}

.tour-card.list-style-2 .tour-image-section .ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.tour-card.list-style-2 .tour-image-section .ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.tour-card.list-style-2 .tour-image-section .ratio-3-2 {
  aspect-ratio: 3 / 2;
}

/* Single image in list layouts */
.tour-card.list-style-1 .tour-image-single img,
.tour-card.list-style-2 .tour-image-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Responsive fixes for List Layouts */
@media (max-width: 768px) {
  .tour-card.list-style-1 .list-style-1-content {
    flex-direction: column !important;
  }

  .tour-card.list-style-1 .tour-image-section {
    width: 100% !important;
    min-width: unset !important;
    min-height: 240px;
  }

  .tour-card.list-style-2 .list-style-2-content {
    flex-direction: column !important;
  }

  .tour-card.list-style-2 .tour-image-section.compact {
    width: 100% !important;
    min-width: unset !important;
    min-height: 150px;
  }
}
