@import url('variables.css');
@import url('base.css');
@import url('components.css');
@import url('layout.css');

/* Lazy load placeholder */
img[loading="lazy"] {
  background: var(--color-gray-200);
}

/* Top bar for contact info on desktop */
.top-bar {
  display: none;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__contact {
  display: flex;
  gap: var(--space-xl);
}

.top-bar__contact a {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar__contact a:hover {
  color: var(--color-accent);
}

@media (min-width: 1024px) {
  .top-bar {
    display: block;
  }

  :root {
    --header-height: 120px;
  }

  .header {
    top: 36px;
  }

  .header.is-scrolled {
    top: 0;
  }

  body.has-topbar .hero__content,
  body.has-topbar .page-hero__content {
    padding-top: calc(var(--header-height) + 36px);
  }
}

/* Destination & tour card variants */
.destination-card .card__image {
  aspect-ratio: 3 / 4;
}

.tour-card .card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-gray-200);
}

/* Testimonials slider */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonials-track .testimonial {
  flex: 0 0 100%;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .testimonials-track .testimonial {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonials-track .testimonial {
    flex: 0 0 33.333%;
  }
}

/* Gallery preview on home */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .gallery-preview {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
  }

  .gallery-preview__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-preview__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 150px;
  transition: transform var(--transition-slow);
}

.gallery-preview__item:hover img {
  transform: scale(1.06);
}

/* Values section */
.values-list {
  display: grid;
  gap: var(--space-lg);
}

.values-list__item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.values-list__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
}

/* Team placeholder */
.team-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  text-align: center;
}

.team-card__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
  aspect-ratio: 1;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  margin-bottom: var(--space-xs);
}

.team-card__role {
  font-size: 0.875rem;
  color: var(--color-accent-dark);
  font-weight: 600;
}

/* Hours table */
.hours-table {
  width: 100%;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-gray-200);
}

.hours-table td {
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--color-gray-900);
}

/* Loading spinner for forms */
.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  color: var(--color-gray-900);
}

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

/* Print styles */
@media print {
  .header, .footer, .whatsapp-float, .scroll-top, .hero__controls {
    display: none !important;
  }
}
