/* =========================================================
   DESTINATIONS PAGE — Styles
   ========================================================= */

/* --- Page Hero Banner --- */
.dest-hero {
  position: relative;
  height: 360px;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?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;
}

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

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

.dest-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;
}

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

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

/* --- Destinations Grid Section --- */
.dest-page-grid-section {
  background: #f8f8f6;
  padding: 52px 0 72px;
}

.dest-page__container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 40px;
}

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

/* --- Destination Card --- */
.dest-page-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: pointer;
}

.dest-page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .1);
}

/* Card Image */
.dest-page-card__img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.dest-page-card__img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.dest-page-card:hover .dest-page-card__img > img {
  transform: scale(1.06);
}

.dest-page-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--emerald);
  border-radius: 3px;
}

.dest-page-card__badge--hot {
  background: var(--orange);
}

.dest-page-card__tours-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 4px 12px;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(0, 0, 0, .5);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Card Body */
.dest-page-card__body {
  padding: 22px 24px 24px;
}

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

.dest-page-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 10px;
}

.dest-page-card__desc {
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card highlights pills */
.dest-page-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.dest-page-card__pill {
  padding: 4px 10px;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--emerald);
  background: rgba(6, 95, 70, .07);
  border-radius: 20px;
}

/* Card Footer */
.dest-page-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.dest-page-card__meta {
  display: flex;
  gap: 14px;
}

.dest-page-card__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--gray);
}

.dest-page-card__meta-item i {
  font-size: 0.6rem;
  color: var(--orange);
}

.dest-page-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--white);
  background: var(--emerald);
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .3s ease;
}

.dest-page-card__btn:hover {
  background: var(--orange);
}

/* --- Loading / Empty States --- */
.dest-page__loading,
.dest-page__empty {
  display: none;
  text-align: center;
  padding: 64px 20px;
  color: var(--gray);
  font-size: 0.84rem;
}

.dest-page__loading {
  display: block;
}

.dest-page__loading i,
.dest-page__empty i {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--emerald);
}

/* --- Detail Modal --- */
.dest-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.dest-modal.open {
  visibility: visible;
  opacity: 1;
}

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

.dest-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  max-width: 780px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  transform: translateY(20px);
  transition: transform .3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.18) transparent;
}

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

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

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

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

.dest-modal.open .dest-modal__panel {
  transform: translateY(0);
}

.dest-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: var(--white);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}

.dest-modal__close:hover {
  background: var(--orange);
}

/* Modal inner content */
.dest-modal .modal-hero {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.dest-modal .modal-content {
  padding: 28px 32px 8px;
}

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

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

.dest-modal .modal-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 20px;
}

.dest-modal .modal-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

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

.dest-modal .modal-info-item i {
  font-size: 0.72rem;
  color: var(--orange);
  width: 18px;
  text-align: center;
}

/* Highlights in modal */
.dest-modal .modal-highlights {
  margin-bottom: 22px;
}

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

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

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

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

/* Modal footer */
.dest-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 24px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.dest-modal .modal-best-time {
  font-size: 0.74rem;
  color: var(--gray);
}

.dest-modal .modal-best-time strong {
  color: var(--charcoal);
}

.dest-modal .modal-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--white);
  background: var(--orange);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .3s ease;
}

.dest-modal .modal-book-btn:hover {
  background: var(--emerald);
}

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

@media (max-width: 768px) {
  .dest-hero {
    height: 280px;
    padding-top: 56px;
  }

  .dest-hero__heading {
    font-size: 1.9rem;
  }

  .dest-page__container {
    padding: 0 10px;
  }

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

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

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

@media (max-width: 600px) {
  .dest-page-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dest-page__container {
    padding: 0 6px;
  }

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

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

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

  .dest-modal .modal-book-btn {
    width: 100%;
    justify-content: center;
  }
}
