/**
 * HeroContent Component Styles
 * Hero section with content on left side
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  z-index: 1;
}

.hero-content__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background-image,
.hero-background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradient from left (dark) to right (lighter) for text readability */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
}

.hero-content__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 80px 60px;
}

.hero-content__text {
  color: #ffffff;
  max-width: 600px;
  font-family: var(--mss-font-serif);
}

.hero-content__label {
  display: block;
  font-family: var(--mss-font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-content__title {
  font-family: var(--mss-font-serif);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 24px 0;
  text-transform: none;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content__title:focus {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.hero-content__description {
  font-family: var(--mss-font-serif);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px 0;
  opacity: 0.9;
  max-width: 500px;
}

/* CTA Button Row */
.hero-content__cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-content__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  -webkit-text-decoration: none;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  line-height: 1.2;
}

.hero-content__cta--primary {
  background: #c4a35a;
  color: #ffffff;
  border-color: #c4a35a;
}

.hero-content__cta--primary:hover {
  background: #b4934c;
  border-color: #b4934c;
  transform: translateY(-1px);
}

.hero-content__cta--secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.95);
}

.hero-content__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.hero-content__cta:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.hero-content__cta-arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.hero-content__cta--primary:hover .hero-content__cta-arrow {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-content__inner {
    padding: 60px 50px;
  }
  
  .hero-content__title {
    font-size: 30px;
  }
}

@media (max-width: 1024px) {
  .hero-content__inner {
    padding: 50px 40px;
  }
  
  .hero-content__title {
    font-size: 26px;
  }
  
  .hero-content__description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .hero-content__inner {
    padding: 40px 24px;
    align-items: flex-start;
    padding-top: 100px;
  }
  
  .hero-content__title {
    font-size: 21px;
  }
  
  .hero-content__description {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .hero-content__cta {
    padding: 12px 18px;
    font-size: 11px;
  }
  
  .hero-content__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }
}

@media (max-width: 480px) {
  .hero-content__inner {
    padding: 30px 20px;
  }
  
  .hero-content__title {
    font-size: 18px;
  }
  
  .hero-content__label {
    font-size: 12px;
  }
  
  .hero-content__description {
    font-size: 13px;
  }
  
  .hero-content__cta {
    padding: 12px 18px;
    font-size: 11px;
    width: 100%;
    justify-content: center;
  }
  
  .hero-content__cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content__cta {
    transition: none;
  }
  
  .hero-content__cta:hover {
    transform: none;
  }
  
  .hero-content__cta--primary:hover .hero-content__cta-arrow {
    transform: none;
  }
}

/**
 * ProgressiveImage Component Styles
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

.progressive-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.progressive-image__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    #f0f0f0 25%,
    transparent 25%,
    transparent 50%,
    #f0f0f0 50%,
    #f0f0f0 75%,
    transparent 75%
  );
  background-size: 20px 20px;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

.progressive-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progressive-image__img--loaded {
  opacity: 1;
}

.progressive-image__error {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  color: #666;
  font-size: 14px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .progressive-image__placeholder {
    animation: none;
  }
  
  .progressive-image__img {
    transition: none;
  }
}

/**
 * DestinationCard Component Styles
 * Full-bleed image card with text overlay
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

.destination-card {
  position: relative;
  width: 200px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  transform-origin: center center;
  will-change: transform, opacity;
  z-index: 1;
  pointer-events: auto;
  background: #1a1a1a;
  
  /* Subtle glass border effect */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.destination-card:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.destination-card--hovering {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.destination-card--active {
  transform: scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
  z-index: 10;
}

/* Expanding animation state */
.destination-card.expanding {
  will-change: transform, width, height, border-radius, opacity;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.destination-card--disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Image fills entire card */
.destination-card__image-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.destination-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.destination-card--hovering .destination-card__image {
  transform: scale(1.08);
}

/* Gradient overlay for text readability */
.destination-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    transparent 100%
  );
  pointer-events: none;
}

/* Text content at bottom over the image */
.destination-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  color: #ffffff;
  z-index: 2;
}

/* Location label with accent bar */
.destination-card__location {
  display: flex;
  align-items: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.9;
}

.destination-card__location::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: #f5a623;
  margin-right: 8px;
  border-radius: 1px;
}

.destination-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.destination-card__description {
  display: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .destination-card {
    width: 180px;
    height: 260px;
  }
  
  .destination-card__title {
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .destination-card {
    width: 165px;
    height: 240px;
  }
  
  .destination-card__content {
    padding: 16px 14px;
  }
  
  .destination-card__title {
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .destination-card {
    width: 150px;
    height: 220px;
  }
  
  .destination-card__content {
    padding: 14px 12px;
  }
  
  .destination-card__title {
    font-size: 12px;
  }
  
  .destination-card__location {
    font-size: 8px;
  }
}

@media (max-width: 768px) {
  .destination-card {
    width: 140px;
    height: 200px;
  }
  
  .destination-card__content {
    padding: 12px 10px;
  }
  
  .destination-card__title {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .destination-card {
    width: 120px;
    height: 170px;
  }
  
  .destination-card__content {
    padding: 10px 8px;
  }
  
  .destination-card__title {
    font-size: 10px;
  }
  
  .destination-card__location {
    font-size: 7px;
    margin-bottom: 4px;
  }
  
  .destination-card__location::before {
    width: 10px;
    margin-right: 5px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .destination-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .destination-card--hovering {
    transform: none;
  }
  
  .destination-card--active {
    transform: none;
  }
  
  .destination-card__image {
    transition: none;
  }
  
  .destination-card--hovering .destination-card__image {
    transform: none;
  }
}

/**
 * CardCarousel Component Styles
 * Portrait tiles under the hero on a light strip (matches homepage mockup)
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

.card-carousel-container {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 14px 12px 16px;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
  background: #f4efe6;
}

.card-carousel-container * {
  pointer-events: auto;
}

.card-carousel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  max-width: none;
  height: auto;
  gap: 8px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.card-carousel--transitioning {
  pointer-events: none;
}

.card-carousel__item {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-carousel__item--visible,
.card-carousel__item--active {
  opacity: 1;
}

.card-carousel__item--active .destination-card {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* Tall portrait tiles — not square */
.card-carousel .destination-card {
  width: 100% !important;
  max-width: none !important;
  height: 110px !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.card-carousel .destination-card--hovering {
  transform: translateY(-4px) scale(1.015);
}

.card-carousel .destination-card--active {
  transform: scale(1.02);
}

.card-carousel--desktop {
  gap: 8px;
}

.card-carousel--tablet {
  gap: 6px;
}

.card-carousel--mobile {
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.card-carousel--mobile .card-carousel__item {
  flex: 0 0 38%;
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .card-carousel-container {
    padding: 12px 10px 14px;
  }

  .card-carousel {
    gap: 6px;
  }

  .card-carousel .destination-card {
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .card-carousel-container {
    padding: 10px 8px 12px;
  }

  .card-carousel--mobile .card-carousel__item {
    flex: 0 0 42%;
  }
}

@media (max-width: 480px) {
  .card-carousel-container {
    padding: 8px 6px 10px;
  }

  .card-carousel {
    gap: 5px;
  }

  .card-carousel .destination-card {
    border-radius: 12px;
  }

  .card-carousel--mobile .card-carousel__item {
    flex: 0 0 52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-carousel__item {
    transition: opacity 0.3s ease;
  }
}

/**
 * NavigationControls Component Styles
 * Bottom-centered navigation with slide counter
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

.navigation-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 150;
  pointer-events: auto;
}

/* Circular nav buttons */
.nav-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.nav-button:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-button__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nav-button:hover:not(:disabled) .nav-button__icon {
  transform: scale(1.1);
}

/* Slide Counter - large style in bottom right of hero stage */
.slide-counter {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  align-items: baseline;
  color: #ffffff;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 150;
}

.slide-counter__current {
  font-size: 64px;
  font-weight: 200;
  letter-spacing: -2px;
}

.slide-counter__separator {
  font-size: 24px;
  margin: 0 8px;
  opacity: 0.5;
}

.slide-counter__total {
  font-size: 24px;
  opacity: 0.6;
}

/* Slide Indicators - dots between nav buttons */
.slide-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 8px;
}

.slide-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slide-indicator--active {
  background: #ffffff;
  transform: scale(1.25);
}

.slide-indicator:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.7);
}

.slide-indicator:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.slide-indicator:disabled {
  cursor: default;
}

/* Progress bar under navigation (optional) */
.navigation-progress {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  overflow: hidden;
}

.navigation-progress__bar {
  height: 100%;
  background: #ffffff;
  transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .slide-counter {
    right: 40px;
  }
  
  .slide-counter__current {
    font-size: 52px;
  }
  
  .slide-counter__separator,
  .slide-counter__total {
    font-size: 20px;
  }
}

@media (max-width: 1024px) {
  .navigation-controls {
    bottom: 30px;
  }
  
  .nav-button {
    width: 46px;
    height: 46px;
  }
  
  .slide-counter {
    right: 30px;
    bottom: 30px;
  }
  
  .slide-counter__current {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .navigation-controls {
    bottom: 24px;
  }
  
  .nav-button {
    width: 42px;
    height: 42px;
  }
  
  .slide-indicators {
    display: none;
  }
  
  .slide-counter {
    right: 24px;
    bottom: 24px;
  }
  
  .slide-counter__current {
    font-size: 36px;
  }
  
  .slide-counter__separator,
  .slide-counter__total {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .navigation-controls {
    bottom: 20px;
    gap: 12px;
  }
  
  .nav-button {
    width: 38px;
    height: 38px;
    border-width: 1px;
  }
  
  .slide-counter {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-button,
  .slide-indicator,
  .navigation-progress__bar {
    transition: none;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/**
 * AutoPlayControls Styles
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

.autoplay-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 20;
}

.autoplay-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 0;
}

.autoplay-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.autoplay-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.autoplay-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.autoplay-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.autoplay-progress-bg {
  opacity: 0.3;
}

.autoplay-progress-fill {
  transition: stroke-dashoffset 0.1s linear;
}

.autoplay-icon {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.autoplay-icon svg {
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .autoplay-controls {
    bottom: 20px;
    right: 20px;
  }
  
  .autoplay-toggle {
    width: 48px;
    height: 48px;
  }
  
  .autoplay-icon {
    width: 16px;
    height: 16px;
  }
}

/**
 * LoadingState Component Styles
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

.th-slider-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 400px;
  background: #f9f9f9;
}

.th-slider-loading__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.th-slider-loading p {
  margin-top: 20px;
  color: #666;
  font-size: 14px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .th-slider-loading__spinner {
    animation: none;
  }
}

/**
 * ErrorState Component Styles
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

.th-slider-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 400px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.th-slider-error__content {
  text-align: center;
  max-width: 500px;
}

.th-slider-error__content h3 {
  margin: 0 0 12px 0;
  color: #dc3232;
  font-size: 20px;
}

.th-slider-error__content p {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 14px;
}

.th-slider-error__content .button {
  display: inline-block;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  -webkit-text-decoration: none;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.th-slider-error__content .button:hover {
  background: #005a87;
}

.th-slider-error__content .button-primary {
  background: #0073aa;
}

.th-slider-error__content .button-primary:hover {
  background: #005a87;
}

/**
 * HeroSlider Component Styles
 * Hero + full-width tiles share the first viewport (below site header)
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

.hero-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background-color: #f4efe6;
  margin: 0;
  padding: 0;
}

.hero-slider__stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background-color: #000;
}

.hero-slider--transitioning {
  pointer-events: none;
}

.hero-slider--transitioning .destination-card:not(.expanding) {
  pointer-events: none;
}

.hero-slider--mobile {
  touch-action: pan-y;
}

.hero-slider--mobile.hero-slider--transitioning {
  touch-action: none;
}

/* Accessibility */
.hero-slider:focus-within {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/**
 * Public Styles
 *
 * @package TravelHeroSlider
 * @since 2.0.0
 */

/* Break out of WordPress theme constraints for full-width slider */
.th-slider-container {
  position: relative;
  width: 100vw !important;
  max-width: none !important;
  height: var(--th-slider-height, calc(100vh - var(--wp-admin--admin-bar--height, 0px))) !important;
  min-height: 420px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  /* Break out of content wrapper */
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  left: 0 !important;
  right: 0 !important;
}

/* Ensure full width on all screen sizes */
.th-slider-container,
.th-slider-container * {
  box-sizing: border-box;
}

/* Override WordPress theme constraints - more aggressive */
body .th-slider-container,
.entry-content .th-slider-container,
.wp-block-group .th-slider-container,
.wp-block-columns .th-slider-container,
.wp-block .th-slider-container,
.container .th-slider-container,
.wrapper .th-slider-container,
.site-content .th-slider-container,
.content-area .th-slider-container {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure hero slider fills container */
.hero-slider {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
}

.th-slider-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 400px;
}

.th-slider-loading p {
  margin-top: 20px;
  color: #666;
}

.th-slider-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 400px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.th-slider-error__content {
  text-align: center;
  max-width: 500px;
}

.th-slider-error h3 {
  margin: 0 0 12px 0;
  color: #dc3232;
}

.th-slider-error p {
  margin: 0 0 20px 0;
  color: #666;
}

/* Screen reader only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus styles */
*:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-slider {
    border: 2px solid currentColor;
  }
  
  .destination-card {
    border: 2px solid currentColor;
  }
  
  .hero-content__overlay {
    background: rgba(0, 0, 0, 0.9) !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link */
.th-slider-skip-link:focus {
  clip: auto !important;
  height: auto !important;
  width: auto !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
}

