/**
 * Single Experience Page Styles
 * Responsive design for mobile, tablet, and desktop
 * 
 * @package TablyClub
 */

/* ===== ARCHIVE HERO (Shared between blog and experiences) ===== */
.tc-archive-hero {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--tc-background-alt);
  /* Remove rounded corners for rectangular shape */
  border-radius: 0;
  position: relative;
}

/* ===== EXPERIENCE HERO ===== */
.tc-experience-hero {
  background-color: var(--tc-color-1);
  padding: clamp(2rem, 6vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}

/* Gradient overlay to separate from header/logo */
.tc-experience-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.tc-experience-hero > .tc-container {
  position: relative;
  z-index: 2;
}

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

@media (min-width: 768px) {
  .tc-experience-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .tc-experience-hero__grid {
    gap: 3rem;
  }
}

.tc-experience-hero__title {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1rem;
  color: var(--tc-color-2);
  line-height: 1.2;
}

/* Single Experience Hero - Always centered */
.tc-single-experience-hero {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 1.25rem;
  position: relative;
}

.tc-single-experience-hero .tc-container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.tc-single-experience-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  color: var(--tc-color-2);
}

/* Enhanced text readability when hero has background image */
.tc-single-experience-hero[style*="background-image"] h1 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Meta items styles with background image are now controlled by customizer inline styles */

.tc-experience-hero__excerpt {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--tc-color-2);
  opacity: 0.8;
  line-height: 1.6;
}

/* Experience Meta Grid - 2x2 centered layout for all screens */
.tc-experience-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.875rem, 2vw, 1.5rem);
  max-width: min(100%, clamp(380px, 50vw, 680px));
  margin: 0 auto;
}

/* Hide separators (not needed in grid) */
.tc-meta-separator {
  display: none;
}

/* Meta Item Card - Unified design */
.tc-meta-item {
  background: rgba(255, 255, 255, 0.25);
  padding: clamp(0.875rem, 2vw, 1.25rem) clamp(0.75rem, 2vw, 1rem);
  border-radius: clamp(12px, 2vw, 14px);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: clamp(85px, 10vw, 100px);
  contain: layout style paint;
}

/* Hover effect (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .tc-meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
}

/* Active/Touch feedback */
.tc-meta-item:active {
  transform: scale(0.98);
}

/* Icon */
.tc-meta-icon {
  font-size: clamp(1.625rem, 3vw, 2rem);
  display: block;
  line-height: 1;
}

/* Price - Enhanced style */
.tc-meta-price {
  background: rgba(255, 255, 255, 0.35) !important;
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: clamp(1.75rem, 3.5vw, 2rem) !important;
  font-weight: 800 !important;
}

.tc-meta-price span:first-child {
  display: block;
  line-height: 1;
}

.tc-meta-price span:last-child {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem) !important;
  opacity: 0.9;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  display: block;
}

.tc-experience-hero__image {
  border-radius: 12px;
  overflow: hidden;
  order: -1;
}

/* ===== BOOKING FORM STYLING ===== */
.tc-availability-info {
  color: #666;
  margin-top: 5px;
  display: block;
  font-size: 0.9rem;
}

.tc-booking-disclaimer {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.tc-booking-message {
  display: none;
  padding: 1rem;
  border-radius: var(--tc-radius-sm);
  margin-top: 1rem;
  font-weight: 500;
}

.tc-booking-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.tc-booking-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.tc-message-error {
  color: #dc3545;
}

.tc-message-warning {
  color: #ff9800;
}

.tc-message-success {
  color: #28a745;
}

@media (min-width: 768px) {
  .tc-experience-hero__image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
}

.tc-experience-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== MODERN GALLERY SLIDESHOW ===== */
.tc-experience-gallery {
  margin-bottom: 40px;
  
  /* Prevent overflow on all screens */
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

/* Gallery Grid - Modern Design */
.tc-gallery-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  position: relative;
}

/* Desktop: Optional horizontal scroll for many images */
@media (min-width: 769px) {
  .tc-gallery-grid-modern.tc-gallery-scrollable {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    gap: 16px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
  }
  
  .tc-gallery-grid-modern.tc-gallery-scrollable::-webkit-scrollbar {
    height: 8px;
  }
  
  .tc-gallery-grid-modern.tc-gallery-scrollable::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
  }
  
  .tc-gallery-grid-modern.tc-gallery-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
  }
  
  .tc-gallery-grid-modern.tc-gallery-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
  }
  
  .tc-gallery-grid-modern.tc-gallery-scrollable .tc-gallery-item-modern {
    flex-shrink: 0;
    width: 320px;
    scroll-snap-align: start;
  }
}

.tc-gallery-item-modern {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-gallery-item-modern:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.tc-gallery-item-modern:hover img {
  transform: scale(1.1);
}

.tc-gallery-overlay-modern {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tc-gallery-item-modern:hover .tc-gallery-overlay-modern {
  opacity: 1;
}

.tc-gallery-overlay-modern svg {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ===== LIGHTBOX SLIDESHOW ===== */
.tc-lightbox-slideshow {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Close Button */
.tc-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: white;
}

.tc-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Navigation Buttons */
.tc-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: white;
}

.tc-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.tc-lightbox-prev {
  left: 20px;
}

.tc-lightbox-next {
  right: 20px;
}

/* Main Image Container */
.tc-lightbox-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 80px 120px;
}

.tc-lightbox-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Counter */
.tc-lightbox-counter {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thumbnails */
.tc-lightbox-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  max-width: calc(100% - 40px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
  scroll-behavior: smooth;
}

.tc-lightbox-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.tc-lightbox-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.tc-lightbox-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}

.tc-thumb-item {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.tc-thumb-item:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.tc-thumb-item.active {
  border-color: white;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.tc-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== MOBILE/TABLET OPTIMIZATIONS ===== */

/* Visual indicator that gallery is scrollable (fade edges) */
.tc-experience-gallery {
  position: relative;
}

@media (max-width: 768px) {
  /* Gradient fade indicator on right edge (mobile only) - REMOVED MASK TO PREVENT ISSUES */
  .tc-experience-gallery::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 20px;
    width: 50px;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.85) 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
  }
  
  /* Hide indicator when scrolled to end */
  .tc-experience-gallery.scrolled-end::after {
    opacity: 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet: 3 column grid (not scrollable by default) */
  .tc-gallery-grid-modern {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .tc-lightbox-main {
    padding: 70px 20px 100px;
  }
  
  .tc-lightbox-nav {
    width: 48px;
    height: 48px;
  }
  
  .tc-lightbox-prev {
    left: 10px;
  }
  
  .tc-lightbox-next {
    right: 10px;
  }
  
  .tc-thumb-item {
    width: 70px;
    height: 52px;
  }
}

@media (max-width: 768px) {
  /* FORCE: No horizontal overflow on page */
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  /* Fix all main containers */
  .tc-main,
  .tc-experience-single,
  .tc-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* Mobile: Horizontal scrollable carousel - ABSOLUTE FIX */
  .tc-experience-gallery {
    margin-bottom: 40px;
    
    /* CRITICAL: Prevent page overflow */
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    
    /* Force containment */
    position: relative;
    contain: layout style paint;
  }
  
  .tc-gallery-grid-modern {
    display: flex;
    flex-direction: row;
    gap: 12px;
    
    /* CRITICAL OVERFLOW FIX */
    overflow-x: scroll;
    overflow-y: hidden;
    max-width: 100%;
    width: 100%;
    
    /* PREVENT PAGE EXPANSION */
    margin: 0;
    padding: 0 0 12px 0;
    
    /* Box sizing fix */
    box-sizing: border-box;
    
    /* CRITICAL: Allow only horizontal scroll on touch devices */
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    
    /* Smooth scrolling */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Visual feedback */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) transparent;
    
    /* Performance */
    will-change: scroll-position;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Scrollbar styles - more visible on mobile */
  .tc-gallery-grid-modern::-webkit-scrollbar {
    height: 8px;
  }
  
  .tc-gallery-grid-modern::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
    margin: 0 10px;
  }
  
  .tc-gallery-grid-modern::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    transition: background 0.3s ease;
  }
  
  .tc-gallery-grid-modern::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
  }
  
  .tc-gallery-item-modern {
    flex-shrink: 0;
    
    /* CRITICAL: Size based on viewport */
    width: calc(85vw - 20px);
    max-width: 320px;
    min-width: 240px;
    
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    
    /* Prevent text selection during scroll */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  
  .tc-lightbox-slideshow {
    padding: 10px;
  }
  
  .tc-lightbox-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
  
  .tc-lightbox-close svg {
    width: 24px;
    height: 24px;
  }
  
  .tc-lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .tc-lightbox-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .tc-lightbox-prev {
    left: 5px;
  }
  
  .tc-lightbox-next {
    right: 5px;
  }
  
  .tc-lightbox-main {
    padding: 60px 10px 90px;
  }
  
  .tc-lightbox-counter {
    top: 15px;
    padding: 6px 16px;
    font-size: 12px;
  }
  
  .tc-lightbox-thumbnails {
    bottom: 10px;
    padding: 8px;
    gap: 6px;
    max-width: calc(100% - 20px);
  }
  
  .tc-thumb-item {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  /* Very small mobile: smaller carousel items */
  .tc-gallery-grid-modern {
    gap: 10px;
    padding: 0 0 12px 0;
  }
  
  .tc-gallery-item-modern {
    /* Smaller items for very small screens */
    width: calc(80vw - 15px);
    max-width: 280px;
    min-width: 220px;
    border-radius: 8px;
  }
  
  /* More visible scrollbar on very small screens */
  .tc-gallery-grid-modern::-webkit-scrollbar {
    height: 6px;
  }
  
  /* Hide navigation buttons on very small screens (swipe only) */
  .tc-lightbox-nav {
    display: none;
  }
  
  .tc-lightbox-main {
    padding: 50px 5px 80px;
  }
  
  .tc-thumb-item {
    width: 50px;
    height: 38px;
  }
}

/* ===== EXPERIENCE GRID SECTION ===== */
.tc-experiences-grid {
  padding: clamp(0.75rem, 2vw, 1.5rem) 0 clamp(2rem, 4vw, 3rem);
}

/* ===== EXPERIENCE CONTENT ===== */
.tc-experience-content {
  padding: clamp(2rem, 6vw, 4rem) 0;
  /* Background color set via Customizer inline styles */
  
  /* Prevent gallery overflow */
  max-width: 100%;
  overflow-x: hidden;
}

.tc-experience-main {
  max-width: 100%;
  overflow-x: hidden;
}

.tc-experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .tc-experience-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

/* Left Column - Main Content */
.tc-experience-main {
  order: 1; /* Content FIRST on mobile */
}

@media (min-width: 1024px) {
  .tc-experience-main {
    order: 1;
  }
}

.tc-experience-description,
.tc-experience-included,
.tc-experience-important {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  /* NO background/border - seamless design */
  background: transparent;
  border: none;
  padding: 0;
}

.tc-experience-description h2,
.tc-experience-included h2,
.tc-experience-important h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
  color: var(--tc-color-2);
}

.tc-content {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.8;
  color: #555;
}

.tc-included-list,
.tc-important-list {
  list-style: none;
  padding: 0;
}

.tc-included-list li,
.tc-important-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tc-included-list li span:first-child {
  color: var(--tc-color-3);
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.tc-important-list li span:first-child {
  color: var(--tc-color-2);
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.tc-included-list li span:last-child,
.tc-important-list li span:last-child {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
}

.tc-experience-dietary {
  background: var(--tc-color-1);
  padding: 1.5rem;
  border-radius: 12px;
}

.tc-experience-dietary h3 {
  margin-bottom: 0.75rem;
  color: var(--tc-color-2);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.tc-experience-dietary p {
  margin: 0;
  color: var(--tc-color-2);
  opacity: 0.8;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

/* ===== BOOKING WIDGET ===== */
.tc-experience-sidebar {
  order: 2; /* Booking form AFTER content on mobile */
}

@media (min-width: 1024px) {
  .tc-experience-sidebar {
    order: 2;
  }
}

.tc-booking-widget {
  background: #fff;
  border: 2px solid var(--tc-color-3);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2rem);
  position: relative;
}

@media (min-width: 1024px) {
  .tc-booking-widget {
    position: sticky;
    top: 20px;
  }
}

.tc-booking-widget h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
  color: var(--tc-color-2);
}

/* Form Styles */
.tc-form-group {
  margin-bottom: 1.25rem;
}

.tc-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--tc-color-2);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.tc-form-group input,
.tc-form-group select,
.tc-form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.3s ease;
}

.tc-form-group input:focus,
.tc-form-group select:focus,
.tc-form-group textarea:focus {
  outline: none;
  border-color: var(--tc-color-3);
  box-shadow: 0 0 0 3px rgba(244, 168, 159, 0.1);
}

/* Date picker with Flatpickr */
.tc-form-group input#booking-date {
  cursor: pointer;
  background: white;
  user-select: none;
}

.tc-form-group input#booking-date:hover {
  border-color: var(--tc-color-3);
  background: #fafafa;
}

.tc-form-group input#booking-date:disabled {
  cursor: not-allowed;
  background: #f5f5f5;
  color: #999;
}

.tc-form-group small {
  display: block;
  margin-top: 0.375rem;
  color: #666;
  font-size: 0.875rem;
}

/* Price Summary */
.tc-price-summary {
  background: var(--tc-color-1);
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.tc-price-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tc-price-summary > div:not(:last-child) {
  margin-bottom: 0.75rem;
}

.tc-price-summary > div:nth-child(2) {
  font-size: 0.9rem;
  color: #666;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

.tc-price-summary > div:last-child {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  color: var(--tc-color-3);
}

/* Submit Button */
.tc-btn-booking {
  width: 100%;
  padding: 1rem;
  background: var(--tc-color-3);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tc-btn-booking:hover {
  background: var(--tc-color-2) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tc-btn-booking:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Booking Message */
#booking-message {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 8px;
}

#booking-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#booking-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .tc-archive-hero {
    padding: 1.5rem 1rem 0.625rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .tc-archive-hero h1 {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.2 !important;
  }
  
  .tc-archive-hero p {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
  }
  
  .tc-experience-hero {
    padding: 3.5rem 0 2rem;
  }
  
  .tc-experience-hero::before {
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 100%);
  }
  
  .tc-booking-widget {
    margin-bottom: 2rem;
  }
  
  /* ===== MOBILE EXPERIENCE - OPTIMIZED ===== */
  
  /* Meta grid - tighter on mobile */
  .tc-experience-meta {
    max-width: 400px;
    gap: 0.875rem;
  }
  
  /* Price emphasis on mobile */
  .tc-meta-price {
    font-size: 2rem !important;
  }
  
  /* Main Content - Single column */
  .tc-experience-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  /* Image - HUGE, prominent with proper spacing and rounded corners */
  .tc-experience-hero__image {
    margin: 2rem 0 2.5rem 0 !important; /* Stacco dall'header */
    border-radius: 20px !important; /* Bordi arrotondati */
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    position: relative !important;
  }
  
  .tc-experience-hero__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
  }
  
  .tc-experience-hero__image img {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 360px;
    object-fit: cover;
    display: block;
  }
  
  /* Main content - Clean, spacious, professional */
  .tc-experience-content {
    padding: 0 !important;
    /* RIMOSSO background: #fafafa - usa customizer/dark theme */
  }
  
  .tc-experience-content .tc-container {
    padding: 0 1.25rem !important;
  }
  
  .tc-experience-main {
    padding: 0 0 2.5rem 0;
  }
  
  /* Section headings - Modern, bold with accent bar */
  .tc-experience-description,
  .tc-experience-included,
  .tc-experience-important {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 1.25rem !important;
  }
  
  .tc-experience-description h2,
  .tc-experience-included h2,
  .tc-experience-important h2 {
    font-size: 1.625rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: var(--tc-color-2) !important;
    padding-bottom: 0.75rem !important;
    border-bottom: none !important; /* ✅ Rimosso border */
    letter-spacing: -0.01em !important;
  }
  
  /* Body text - Perfect readability */
  .tc-content {
    font-size: 1.0625rem !important; /* 17px */
    line-height: 1.75 !important;
    color: #2a2a2a !important;
  }
  
  .tc-content p {
    margin-bottom: 1.25rem;
  }
  
  .tc-content p:last-child {
    margin-bottom: 0;
  }
  
  .tc-content strong {
    font-weight: 700;
    color: var(--tc-color-2);
  }
  
  /* Lists - Beautiful card-based design */
  .tc-included-list,
  .tc-important-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .tc-included-list li,
  .tc-important-list li {
    padding: 0.75rem 0 !important; /* ✅ Ridotto padding, no horizontal */
    font-size: 1rem !important;
    background: transparent !important; /* ✅ Rimosso background grigio */
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important; /* ✅ Sottile linea separatore */
    display: flex !important;
    align-items: center !important;
    gap: 0.875rem !important;
    transition: all 0.2s ease !important;
  }
  
  .tc-included-list li:active,
  .tc-important-list li:active {
    transform: scale(0.98) !important;
  }
  
  .tc-included-list li span:first-child {
    font-size: 1.375rem !important; /* ✅ Leggermente più piccolo */
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important; /* ✅ No background */
    border-radius: 0 !important;
    box-shadow: none !important; /* ✅ No shadow */
  }
  
  .tc-important-list li span:first-child {
    font-size: 1.375rem !important;
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important; /* ✅ No background */
    border-radius: 0 !important;
    box-shadow: none !important; /* ✅ No shadow */
  }
  
  .tc-included-list li span:last-child,
  .tc-important-list li span:last-child {
    flex: 1 !important;
    line-height: 1.5 !important;
  }
  
  /* Booking Widget - Premium card design */
  .tc-experience-sidebar {
    margin-top: 0.75rem;
    padding: 0 !important;
  }
  
  .tc-booking-widget {
    /* RIMOSSO background: white !important - permette dark theme */
    padding: 2.5rem 1.75rem !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    border: 3px solid var(--tc-color-3) !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  /* Premium badge */
  .tc-booking-widget::before {
    content: "📅 BOOK NOW";
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--tc-color-3) 0%, var(--tc-color-2) 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .tc-booking-widget h3 {
    font-size: 1.75rem !important;
    margin: 1rem 0 2rem 0 !important;
    font-weight: 800 !important;
    text-align: center !important;
    color: var(--tc-color-2) !important;
  }
  
  .tc-form-group {
    margin-bottom: 1.5rem !important;
  }
  
  .tc-form-group label {
    font-size: 1rem !important;
    margin-bottom: 0.625rem !important;
    font-weight: 600 !important;
    display: block;
  }
  
  .tc-form-group input,
  .tc-form-group select,
  .tc-form-group textarea {
    font-size: 1.0625rem !important;
    padding: 0.875rem 1rem !important;
    border-radius: 10px !important;
    border: 2px solid #e0e0e0 !important;
  }
  
  .tc-form-group input:focus,
  .tc-form-group select:focus,
  .tc-form-group textarea:focus {
    border-color: var(--tc-color-3) !important;
  }
  
  /* Price summary - Very prominent */
  .tc-price-summary {
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
  }
  
  .tc-price-summary > div {
    display: flex;
    justify-content: space-between;
    font-size: 1.0625rem !important;
    margin-bottom: 0.625rem;
  }
  
  .tc-price-summary > div:last-child {
    font-size: 1.375rem !important;
    padding-top: 1rem;
    margin-top: 0.75rem;
    border-top: 2px solid rgba(0,0,0,0.15);
    font-weight: 700 !important;
  }
  
  /* Submit button - VERY prominent */
  .tc-btn-booking {
    padding: 1.125rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
  
  .tc-booking-disclaimer {
    margin-top: 1rem !important;
    text-align: center !important;
    font-size: 0.9375rem !important;
    color: #666 !important;
    line-height: 1.5 !important;
  }
  
  /* Dietary info - Beautiful card */
  .tc-experience-dietary {
    background: white !important;
    padding: 1.75rem 1.5rem !important;
    border-radius: 16px !important;
    margin-bottom: 1.25rem !important;
    border-left: 4px solid var(--tc-color-4) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  }
  
  .tc-experience-dietary h3 {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    color: var(--tc-color-2) !important;
  }
  
  .tc-experience-dietary p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    color: #555 !important;
  }
  
  /* Smooth scroll behavior */
  html {
    scroll-behavior: smooth !important;
  }
  
  /* Add subtle animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .tc-experience-description,
  .tc-experience-included,
  .tc-experience-important,
  .tc-booking-widget {
    animation: fadeInUp 0.5s ease-out !important;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
  .tc-experience-hero__grid {
    gap: 2rem;
  }
  
  .tc-experience-grid {
    gap: 2.5rem;
  }
  
  .tc-booking-widget {
    max-width: 500px;
    margin: 0 auto 2rem;
  }
}

/* Extra small mobile optimizations */
@media (max-width: 480px) {
  .tc-archive-hero {
    padding: 1.25rem 0.875rem 0.5rem !important;
  }
  
  .tc-archive-hero h1 {
    font-size: 1.75rem !important;
    margin-bottom: 0.625rem !important;
  }
  
  .tc-archive-hero p {
    font-size: 0.9375rem !important;
  }
}

/* ===== PAGINATION ===== */
.tc-pagination {
  margin-top: 2rem;
  text-align: center;
}

.tc-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tc-pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--tc-background);
  border: 1px solid var(--tc-color-3);
  border-radius: var(--tc-radius-sm);
  text-decoration: none;
  color: var(--tc-text-primary);
  transition: all 0.3s ease;
}

.tc-pagination .page-numbers:hover,
.tc-pagination .page-numbers.current {
  background: var(--tc-color-3);
  color: white;
}

/* ===== PHONE COUNTRY SELECT ===== */
.tc-phone-country-select {
  font-size: 14px;
  padding: 10px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
