/* =========================================================
   TOURS PAGE — Styles
   ========================================================= */

/* --- Page Hero Banner --- */
.tours-hero {
  position: relative;
  height: 340px;
  background: url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  padding-top: 60px;
}

.tours-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 78, 59, .65), rgba(6, 78, 59, .45));
}

.tours-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.tours-hero__tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 10px;
}

.tours-hero__heading {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.tours-hero__sub {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .85);
  max-width: 520px;
  margin: 0 auto;
}

/* --- Filter Bar --- */
.tours-filter {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  position: sticky;
  top: 60px;
  z-index: 100;
}

.tours-filter__container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 14px 40px;
}

.tours-filter__bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tours-filter__bar::-webkit-scrollbar {
  display: none;
}

.tours-filter__btn {
  flex-shrink: 0;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(6, 95, 70, .2);
  border-radius: 24px;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all .25s ease;
}

.tours-filter__btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.tours-filter__btn.active {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
}

/* --- Tours Grid --- */
.tours-grid-section {
  background: #f8f8f6;
  padding: 48px 0 64px;
}

.tours-grid__container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 40px;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.tours-grid__loading,
.tours-grid__empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--gray);
}

.tours-grid__loading i,
.tours-grid__empty i {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  color: var(--emerald);
}

.tours-grid__loading p,
.tours-grid__empty p {
  font-size: 0.82rem;
}

/* --- Tour Card --- */
.tour-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
}

.tour-card__img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.tour-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.tour-card:hover .tour-card__img img {
  transform: scale(1.05);
}

.tour-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tour-card__spots {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, .65);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.tour-card__body {
  padding: 18px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-card__region {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 6px;
}

.tour-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.tour-card__desc {
  font-size: 0.72rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.tour-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 16px;
}

.tour-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  color: var(--charcoal);
}

.tour-card__meta-item i {
  color: var(--emerald);
  font-size: 0.62rem;
  width: 14px;
  text-align: center;
}

.tour-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.tour-card__price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald);
}

.tour-card__price small {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--gray);
}

.tour-card__actions {
  display: flex;
  gap: 8px;
}

.tour-card__btn {
  padding: 8px 16px;
  font-size: 0.64rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}

.tour-card__btn--view {
  background: transparent;
  color: var(--emerald);
  border: 1px solid rgba(6, 95, 70, .25);
}

.tour-card__btn--view:hover {
  background: var(--emerald);
  color: var(--white);
}

.tour-card__btn--book {
  background: var(--orange);
  color: var(--white);
}

.tour-card__btn--book:hover {
  background: #c85f16;
}

/* --- Tour Detail Modal --- */
.tour-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.tour-modal.open {
  display: flex;
}

.tour-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.tour-modal__panel {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 12px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.18) transparent;
}

.tour-modal__panel::-webkit-scrollbar {
  width: 5px;
}

.tour-modal__panel::-webkit-scrollbar-track {
  background: transparent;
}

.tour-modal__panel::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18);
  border-radius: 10px;
}

.tour-modal__panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.3);
}

.tour-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--charcoal);
  cursor: pointer;
  z-index: 3;
  line-height: 1;
}

.tour-modal__body {
  padding: 0;
}

/* Modal inner layout */
.modal-hero {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.modal-content {
  padding: 28px 28px 24px;
}

.modal-region {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.modal-desc {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.modal-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--charcoal);
}

.modal-detail i {
  color: var(--emerald);
  font-size: 0.82rem;
  width: 20px;
  text-align: center;
}

.modal-highlights {
  margin-bottom: 24px;
}

.modal-highlights h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.modal-highlights ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.modal-highlights li {
  font-size: 0.72rem;
  color: var(--gray);
  padding-left: 16px;
  position: relative;
}

.modal-highlights li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-size: 0.58rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: #fafaf9;
  border-radius: 0 0 12px 12px;
}

.modal-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald);
}

.modal-price small {
  font-size: 0.64rem;
  font-weight: 400;
  color: var(--gray);
}

.modal-book-btn {
  padding: 12px 32px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .25s ease;
}

.modal-book-btn:hover {
  background: #c85f16;
}

/* --- Booking Form Modal --- */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

.booking-overlay.open {
  display: flex;
}

.booking-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.booking-form-panel {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 12px;
  max-width: 520px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  padding: 32px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.18) transparent;
}

.booking-form-panel::-webkit-scrollbar {
  width: 5px;
}

.booking-form-panel::-webkit-scrollbar-track {
  background: transparent;
}

.booking-form-panel::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18);
  border-radius: 10px;
}

.booking-form-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.3);
}

.booking-form-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.booking-form-panel .booking-tour-name {
  font-size: 0.72rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 20px;
}

.booking-form-panel .booking-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--charcoal);
  cursor: pointer;
  line-height: 1;
}

.booking-field {
  margin-bottom: 14px;
}

.booking-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.74rem;
  font-family: var(--font-body);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  background: #fafaf9;
  transition: border-color .25s ease;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  outline: none;
  border-color: var(--emerald);
}

.booking-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-submit {
  width: 100%;
  padding: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .25s ease;
  margin-top: 6px;
}

.booking-submit:hover {
  background: #c85f16;
}

.booking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.booking-msg {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 10px;
  min-height: 18px;
}

.booking-msg.success { color: var(--emerald); }
.booking-msg.error { color: #dc2626; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .tours-grid__container {
    padding: 0 24px;
  }

  .tours-filter__container {
    padding: 14px 24px;
  }
}

@media (max-width: 768px) {
  .tours-grid__container {
    padding: 0 10px;
  }

  .tours-filter__container {
    padding: 14px 10px;
  }

  .tours-hero {
    height: 260px;
    margin-top: 0;
    padding-top: 40px;
  }

  .tours-hero__heading {
    font-size: 1.8rem;
  }

  .tours-filter {
    top: 56px;
  }

  .modal-details {
    grid-template-columns: 1fr 1fr;
  }

  .modal-highlights ul {
    grid-template-columns: 1fr;
  }

  .booking-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tours-grid__container {
    padding: 0 6px;
  }

  .tours-filter__container {
    padding: 12px 6px;
  }

  .tours-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tours-hero__heading {
    font-size: 1.5rem;
  }

  .tours-hero__sub {
    font-size: 0.74rem;
  }

  .modal-details {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .modal-book-btn {
    width: 100%;
  }
}
