/* home.css - homepage sections rebuilt as static, self-styled blocks in place
   of the theme's jet-carousel / dt-instagram widgets (which depended on
   slider JS and theme grid CSS that never applied here). Relies only on the
   global --DT* tokens like blog.css / packages.css. */

/* ================================================================
   Explore Destinations
   ================================================================ */

.home-dest-grid {
  width: 100%; /* direct child of Elementor's flex .elementor-widget-wrap */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-dest-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #10221b;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(16, 34, 27, 0.12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.home-dest-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16, 34, 27, 0.2); }

.home-dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.home-dest-card:hover img { transform: scale(1.08); }

.home-dest-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 34, 27, 0.92) 0%, rgba(16, 34, 27, 0.45) 45%, rgba(16, 34, 27, 0) 75%);
}

.home-dest-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px 22px 24px;
}
.home-dest-country {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--DTPrimaryColor, #f29727);
  margin-bottom: 6px;
}
.home-dest-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
  color: #fff;
}
.home-dest-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-dest-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  transition: background .2s ease, border-color .2s ease;
}
.home-dest-cta i { font-size: 11px; transition: transform .2s ease; }
.home-dest-card:hover .home-dest-cta { background: var(--DTPrimaryColor, #f29727); border-color: var(--DTPrimaryColor, #f29727); }
.home-dest-card:hover .home-dest-cta i { transform: translateX(3px); }

/* ================================================================
   #abenosafaris photo grid
   ================================================================ */

.dt-sc-custom-insta-title .elementor-widget-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 22px;
}
.dt-sc-custom-insta-title .elementor-heading-title { margin: 0; }

.home-insta-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--DTSecondaryColor, #10221b);
  text-decoration: none;
}
.home-insta-follow i { font-size: 11px; transition: transform .2s ease; }
.home-insta-follow:hover { color: var(--DTPrimaryColor, #f29727); }
.home-insta-follow:hover i { transform: translateX(3px); }

.home-insta-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.home-insta-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #ece7e2;
}
.home-insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.home-insta-item:hover img { transform: scale(1.08); }

.home-insta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  color: #fff;
  background: rgba(16, 34, 27, 0.62);
  opacity: 0;
  transition: opacity .25s ease;
}
.home-insta-overlay i { font-size: 26px; }
.home-insta-overlay small { font-size: 12px; line-height: 1.4; }
.home-insta-item:hover .home-insta-overlay,
.home-insta-item:focus-visible .home-insta-overlay { opacity: 1; }

/* ================================================================
   Traveler Stories (testimonials)
   ================================================================ */

.home-stories-grid {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.home-story {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 26px 28px 24px;
  box-shadow: 0 2px 18px rgba(16, 34, 27, 0.07);
  border: 1px solid #f0ece7;
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-story:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(16, 34, 27, 0.12); }

.home-story-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.home-story-stars { display: inline-flex; gap: 3px; font-size: 13px; color: #e3ded8; }
.home-story-stars i.is-on { color: var(--DTPrimaryColor, #f29727); }
.home-story-mark { font-size: 28px; color: rgba(34, 105, 78, 0.18); }

.home-story blockquote {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 17.5px;
  line-height: 1.75;
  color: #4c4444;
  font-style: normal;
  flex: 1;
}
.home-story blockquote::before, .home-story blockquote::after { content: none; }

.home-story figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #f0ece7; }
.home-story-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 46px;
}
.home-story-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22694e;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}
.home-story-who { display: flex; flex-direction: column; line-height: 1.3; }
.home-story-who strong { font-size: 16px; color: var(--DTSecondaryColor, #10221b); }
.home-story-who small { font-size: 13px; color: #948d8d; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.home-story-who small i { color: var(--DTPrimaryColor, #f29727); font-size: 11px; }

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1024px) {
  .home-dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-insta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .home-stories-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-story { padding: 22px 20px 20px; }
  .home-dest-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-dest-card { aspect-ratio: 4 / 3; }
  .home-dest-card h3 { font-size: 22px; }
  .home-insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-insta-item { border-radius: 8px; }
}
