/* Modern homepage — premium/editorial layer, scoped to .modern-home so other pages are untouched */

.modern-home {
  --mh-dark: #05073c;
  --mh-dark-2: #06082f;
  --mh-accent: #eb662b;
  --mh-accent-2: #ff8f5c;
}

/* ---------- Section header / eyebrow ---------- */

.modern-home .sectionHead {
  margin-bottom: 6px;
}

.modern-home .sectionHead__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mh-accent);
  margin-bottom: 10px;
}

.modern-home .sectionHead__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--mh-accent);
  border-radius: 2px;
}

.modern-home section h2.text-30 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */

.modern-home .hero.-type-10 {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 150px;
  padding-bottom: 70px;
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .modern-home .hero.-type-10 {
    padding-top: 110px;
    padding-bottom: 50px;
  }
}

.modern-home .hero.-type-10 > .container {
  width: 100%;
}

.modern-home .hero.-type-10 .hero__bg {
  overflow: hidden;
}

.modern-home .hero.-type-10 .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-home .hero.-type-10 .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 60, 0.75) 0%,
    rgba(5, 7, 60, 0.35) 45%,
    rgba(5, 7, 60, 0.85) 100%
  );
}

.modern-home .hero.-type-10 .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modern-home .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 200px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.modern-home .hero__eyebrow i {
  color: var(--mh-accent);
}

.modern-home .hero__headline {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 16px;
  text-wrap: balance;
}

@media (max-width: 991px) {
  .modern-home .hero__headline {
    font-size: 36px;
  }
}

@media (max-width: 575px) {
  .modern-home .hero__headline {
    font-size: 28px;
  }
}

.modern-home .hero__sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.6;
}

.modern-home .hero.-type-10 .hero__search {
  flex-shrink: 0;
  width: 60%;
  max-width: 420px;
  height: 48px;
  margin-top: 28px;
  margin-bottom: 0;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.5);
  border-radius: 200px;
}

@media (max-width: 575px) {
  .modern-home .hero.-type-10 .hero__search {
    width: 90%;
    max-width: 100%;
  }
}

.modern-home .hero.-type-10 .hero__search .autocomplete {
  position: static;
  transform: none;
  margin-left: 0;
  width: 100%;
  height: 100%;
  border-radius: 200px;
}

.modern-home .hero.-type-10 .hero__search .autocomplete-input {
  height: 100%;
  padding: 0 14px 0 40px;
  background-position: 14px center;
  background-size: 16px 16px;
  font-size: 13.5px;
  border-radius: 200px;
}

.modern-home .hero.-type-10 .heroTags {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.modern-home .hero.-type-10 .heroTags__tags {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 8px;
  margin: 0;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

@media (min-width: 768px) {
  .modern-home .hero.-type-10 .heroTags__tags {
    justify-content: center;
  }
}

.modern-home .hero.-type-10 .heroTags__tags::-webkit-scrollbar {
  height: 4px;
}

.modern-home .hero.-type-10 .heroTags__tags::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 200px;
}

.modern-home .hero.-type-10 .heroTags__tags > * {
  padding: 0;
  flex: 0 0 auto;
}

.modern-home .hero.-type-10 .heroTags__tags button {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.modern-home .hero.-type-10 .heroTags__tags button:hover {
  background: var(--mh-accent);
  border-color: var(--mh-accent);
  transform: translateY(-2px);
}

/* ---------- About / trust band ---------- */

.modern-home .aboutBand {
  position: relative;
  z-index: 6;
  margin-top: 40px;
}

@media (max-width: 767px) {
  .modern-home .aboutBand {
    margin-top: 30px;
  }
}

.modern-home .aboutBand__card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(5, 7, 60, 0.25);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 991px) {
  .modern-home .aboutBand__card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

.modern-home .aboutBand__title {
  font-size: 26px;
  font-weight: 600;
  color: var(--mh-dark);
}

.modern-home .aboutBand__text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #555776;
}

.modern-home .aboutBand__text p {
  margin: 0 0 14px;
}

.modern-home .aboutBand__text p:last-of-type {
  margin-bottom: 0;
  display: inline;
}

.modern-home .aboutBand__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  color: var(--mh-accent);
  font-weight: 600;
  white-space: nowrap;
}

.modern-home .aboutBand__more:hover {
  text-decoration: underline;
}

.modern-home .aboutBand__reviews {
  border-left: 1px solid #eceafb;
  padding-left: 40px;
}

@media (max-width: 991px) {
  .modern-home .aboutBand__reviews {
    border-left: none;
    border-top: 1px solid #eceafb;
    padding-left: 0;
    padding-top: 28px;
  }
}

.modern-home .aboutBand__reviews-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a8cad;
  margin-bottom: 14px;
}

.modern-home .aboutBand__reviews-label i {
  color: var(--mh-accent);
}

/* ---------- Destination cards ---------- */

.modern-home .featureCard.-type-7 .featureCard__image {
  position: relative;
  box-shadow: 0 18px 34px -18px rgba(5, 7, 60, 0.4);
}

.modern-home .featureCard.-type-7 .featureCard__image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(5, 7, 60, 0) 45%, rgba(5, 7, 60, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-home .featureCard.-type-7:hover .featureCard__image::after {
  opacity: 1;
}

.modern-home .featureCard.-type-7 .featureCard__image img {
  transition: transform 0.5s ease;
}

.modern-home .featureCard.-type-7:hover .featureCard__image img {
  transform: scale(1.08);
}

/* ---------- Tour / trekking cards ---------- */

.modern-home .tourCard.-type-1 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-home .tourCard.-type-1:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -20px rgba(5, 7, 60, 0.3);
}

.modern-home .tourCard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--mh-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 200px;
  box-shadow: 0 8px 16px -6px rgba(235, 102, 43, 0.6);
}

/* ---------- Departures table ---------- */

.modern-home .departuresCard {
  border-radius: 24px !important;
  box-shadow: 0 24px 50px -24px rgba(5, 7, 60, 0.25);
  border: 1px solid #f0f0fa;
}

.modern-home .tableTest thead th {
  background: var(--mh-dark);
  color: #fff;
  font-weight: 600;
  border: none;
}

.modern-home .tableTest tbody tr {
  transition: background 0.2s ease;
}

.modern-home .tableTest tbody tr:hover {
  background: #fbf4ef;
}

.modern-home .availabilityBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 200px;
  font-size: 13px;
  font-weight: 500;
}

.modern-home .availabilityBadge.-open {
  background: #e9f8ee;
  color: #1f8a4c;
}

.modern-home .availabilityBadge.-limited {
  background: #fff3e2;
  color: #b06a12;
}

.modern-home .availabilityBadge.-full {
  background: #fdecec;
  color: #c23b3b;
}

.modern-home .availabilityBadge.-unknown {
  background: #eef0fa;
  color: #4a4c7a;
}

.modern-home .joinGroupBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 200px;
  border: none;
  background: linear-gradient(135deg, var(--mh-accent), var(--mh-accent-2));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 20px -8px rgba(235, 102, 43, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease;
}

.modern-home .joinGroupBtn i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.modern-home .joinGroupBtn:hover {
  transform: translateY(-2px);
  gap: 14px;
  box-shadow: 0 14px 26px -8px rgba(235, 102, 43, 0.65);
}

.modern-home .joinGroupBtn:hover i {
  transform: translateX(2px);
}

.modern-home .joinGroupBtn:active {
  transform: translateY(0);
}

/* Mobile — the base .tableTest stack (shared with dashboard.html and
   trip.html) is plain/generic; give the homepage departures table a
   proper card treatment that matches the polished desktop version. */
@media (max-width: 767px) {
  .modern-home .departuresCard {
    padding: 26px 16px !important;
  }

  .modern-home .tableTest tbody tr {
    margin-bottom: 14px;
    border: 1px solid #f0f0fa;
    border-radius: 16px;
    padding: 16px 16px;
    background: #fff;
    box-shadow: 0 10px 24px -14px rgba(5, 7, 60, 0.25);
  }

  .modern-home .tableTest td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f7;
  }

  .modern-home .tableTest td:last-child {
    border-bottom: none;
  }

  /* Some tour titles run 80+ characters — stacking label-above-value
     instead of sharing a row avoids overflow/squeeze regardless of
     content length. */
  .modern-home .tableTest td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #9a9ab8;
  }

  .modern-home .tableTest td[data-label="Join Group"] {
    padding-top: 14px;
    width: 100%;
  }

  .modern-home .tableTest td[data-label="Join Group"]::before {
    display: none;
  }

  .modern-home .tableTest td[data-label="Join Group"] form,
  .modern-home .joinGroupBtn {
    width: 100%;
  }

  .modern-home .joinGroupBtn {
    justify-content: center;
  }
}

/* ---------- Service cards ---------- */

.modern-home .featureCard.-type-3 .featureCard__image::after {
  background: linear-gradient(180deg, rgba(5, 7, 60, 0.1) 20%, rgba(5, 7, 60, 0.92) 100%);
}

.modern-home .featureCard.-type-3 {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.modern-home .featureCard.-type-3:hover {
  transform: translateY(-6px);
}

/* ---------- Carousel nav ---------- */

.modern-home .navAbsolute__button {
  background: #fff;
  box-shadow: 0 12px 24px -10px rgba(5, 7, 60, 0.35);
  border: 1px solid #f0f0fa;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.modern-home .navAbsolute__button:hover {
  background: var(--mh-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Last minute deals (ticket-style cards) ---------- */

.modern-home .dealCard {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(5, 7, 60, 0.35);
  border: 1px solid #f0f0fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-home .dealCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -20px rgba(5, 7, 60, 0.32);
}

.modern-home .dealCard__media {
  position: relative;
  flex: 0 0 42%;
  max-width: 42%;
  min-height: 190px;
  overflow: hidden;
}

@media (max-width: 575px) {
  .modern-home .dealCard__media {
    flex: 0 0 100%;
    max-width: 100%;
    min-height: 160px;
  }
}

.modern-home .dealCard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modern-home .dealCard:hover .dealCard__media img {
  transform: scale(1.08);
}

.modern-home .dealCard__ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mh-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 200px;
  box-shadow: 0 8px 16px -6px rgba(235, 102, 43, 0.6);
}

.modern-home .dealCard__stub {
  position: relative;
  flex: 0 0 0;
  width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 0;
}

@media (max-width: 575px) {
  .modern-home .dealCard__stub {
    display: none;
  }
}

.modern-home .dealCard__stub span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mh-dark-2, #f6f7fb);
  background: #f4f4fb;
  margin-left: -7px;
}

.modern-home .dealCard__body {
  flex: 1;
  min-width: 0;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border-left: 1px dashed #e1e1f0;
}

@media (max-width: 575px) {
  .modern-home .dealCard__body {
    border-left: none;
    border-top: 1px dashed #e1e1f0;
  }
}

.modern-home .dealCard__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mh-accent);
  margin-bottom: 6px;
}

.modern-home .dealCard__title {
  font-size: 19px;
  font-weight: 600;
  color: var(--mh-dark);
  line-height: 1.35;
}

.modern-home .dealCard__price {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modern-home .dealCard__price-label {
  font-size: 12.5px;
  color: #8a8cad;
}

.modern-home .dealCard__price-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--mh-dark);
}

.modern-home .dealCard__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 200px;
  background: var(--mh-dark);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.25s ease, gap 0.25s ease;
}

.modern-home .dealCard:hover .dealCard__cta {
  background: var(--mh-accent);
  gap: 14px;
}

/* ---------- Blog cards ---------- */

.modern-home .blogCard.-type-1 .blogCard__image {
  border-radius: 16px;
  overflow: hidden;
}

.modern-home .blogCard.-type-1 .blogCard__image img {
  transition: transform 0.5s ease;
}

.modern-home .blogCard.-type-1:hover .blogCard__image img {
  transform: scale(1.06);
}

.modern-home .blogCard.-type-1 .blogCard__title {
  transition: color 0.2s ease;
}

.modern-home .blogCard.-type-1:hover .blogCard__title {
  color: var(--mh-accent);
}
