@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@400;600;700;800&display=swap');

.nesh-most-searched-wrapper,
.nesh-most-searched-wrapper * {
  box-sizing: border-box;
}

.nesh-most-searched-wrapper {
  width: 100%;
  font-family: "Montserrat", "Liberation Sans", Arial, sans-serif;
  color: #0A1A16;
}

.nesh-most-searched-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.nesh-most-searched-intro {
  max-width: 760px;
}

.nesh-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C5A04B;
}

.nesh-most-searched-intro h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  color: #123424;
}

.nesh-most-searched-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #1C4B32;
  max-width: 700px;
}

.nesh-most-searched-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: #123424;
  color: #FAF7F0;
  border: 1px solid #C5A04B;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Montserrat", "Liberation Sans", Arial, sans-serif;
}

.nesh-most-searched-toggle:hover {
  background: #1C4B32;
  border-color: #DCB969;
  transform: translateY(-1px);
}

.nesh-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #C5A04B;
  color: #123424;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  flex-shrink: 0;
}

.nesh-scroll-controls {
  display: none;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.nesh-scroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #D6C39F;
  background: #FAF7F0;
  color: #123424;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nesh-scroll-btn:hover {
  background: #F5EEDC;
  border-color: #C5A04B;
}

.nesh-most-searched-cards-wrap {
  display: none;
}

.nesh-most-searched-cards-wrap.is-open {
  display: block;
  animation: neshFadeIn 0.35s ease;
}

@keyframes neshFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nesh-most-searched-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: #C5A04B #F5EEDC;
}

.nesh-most-searched-cards::-webkit-scrollbar {
  height: 10px;
}

.nesh-most-searched-cards::-webkit-scrollbar-track {
  background: #F5EEDC;
  border-radius: 999px;
}

.nesh-most-searched-cards::-webkit-scrollbar-thumb {
  background: #C5A04B;
  border-radius: 999px;
}

.nesh-safari-card {
  flex: 0 0 clamp(290px, 31vw, 365px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #123424;
  border: 1px solid rgba(197,160,75,0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(10,26,22,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nesh-safari-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(10,26,22,0.14);
}

.nesh-safari-image {
  position: relative;
  height: 248px;
  overflow: hidden;
  background: #E6DAC3;
}

.nesh-safari-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nesh-safari-top-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nesh-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #DCB969;
  color: #123424;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(10,26,22,0.08);
}

.nesh-chip-hot {
  background: #C5A04B;
}

.nesh-safari-content {
  padding: 16px 16px 15px;
  background: #123424;
}

.nesh-safari-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 11px;
  background: rgba(220,185,105,0.14);
  color: #DCB969;
  border: 1px solid rgba(220,185,105,0.24);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nesh-safari-content h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.18;
  color: #FAF7F0;
}

.nesh-safari-content p {
  margin: 0 0 13px;
  font-size: 14px;
  line-height: 1.62;
  color: #F5EEDC;
  opacity: 0.96;
}

.nesh-safari-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.nesh-safari-meta span {
  font-size: 12px;
  color: #DCB969;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.nesh-safari-meta strong {
  font-size: 18px;
  color: #DCB969;
  font-weight: 800;
}

.nesh-safari-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  text-decoration: none;
  color: #FAF7F0;
  background: transparent;
  border: 1px solid rgba(250,247,240,0.55);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nesh-safari-link:hover {
  background: #1C4B32;
  border-color: #DCB969;
  color: #FAF7F0;
}

@media (max-width: 1024px) {
  .nesh-safari-card {
    flex-basis: 330px;
  }
}

@media (max-width: 767px) {
  .nesh-most-searched-head {
    align-items: stretch;
  }

  .nesh-most-searched-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nesh-scroll-controls {
    justify-content: space-between;
  }

  .nesh-most-searched-cards {
    gap: 14px;
    padding-bottom: 8px;
  }

  .nesh-safari-card {
    flex-basis: 86vw;
  }

  .nesh-safari-image {
    height: 220px;
  }

  .nesh-safari-content {
    padding: 15px 15px 14px;
  }

  .nesh-safari-content h3 {
    font-size: 20px;
  }
}


/* v1.1.0: centered bottom controls */
.nesh-most-searched-head{
  justify-content:flex-start;
  align-items:flex-start;
}

.nesh-most-searched-footer-controls{
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:18px;
  margin:22px auto 0;
  text-align:center;
}

.nesh-most-searched-toggle{
  margin:0 auto;
  justify-content:center;
  align-self:center;
}

.nesh-scroll-controls{
  width:100%;
  display:none;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin:0 auto;
  text-align:center;
}

.nesh-most-searched-wrapper .nesh-scroll-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

@media (max-width: 767px){
  .nesh-most-searched-footer-controls{
    gap:14px;
    margin-top:18px;
  }
}


/* v1.1.1: center header content */
.nesh-most-searched-head{
  display:flex;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
  width:100%;
  margin:0 auto 20px;
}

.nesh-most-searched-intro{
  width:100%;
  max-width:900px;
  margin:0 auto;
  text-align:center !important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.nesh-most-searched-intro .nesh-eyebrow,
.nesh-most-searched-intro h2,
.nesh-most-searched-intro p{
  text-align:center !important;
  margin-left:auto;
  margin-right:auto;
}

@media (max-width: 767px){
  .nesh-most-searched-head{
    margin-bottom:16px;
  }
  .nesh-most-searched-intro{
    max-width:100%;
    padding-left:8px;
    padding-right:8px;
  }
}


/* v1.2.0: move scroll arrows above cards on the right */
.nesh-most-searched-top-controls{
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:0 0 14px;
}

.nesh-most-searched-top-controls .nesh-scroll-controls{
  display:none;
  width:auto;
  margin:0;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  text-align:right;
}

.nesh-most-searched-top-controls .nesh-scroll-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:999px;
  border:1px solid #D6C39F;
  background:#2F7D3C;
  color:#FFFFFF;
  font-size:18px;
  font-weight:700;
}

.nesh-most-searched-top-controls .nesh-scroll-btn:hover{
  background:#123424;
  border-color:#C5A04B;
}

.nesh-most-searched-footer-controls{
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:18px;
  margin:22px auto 0;
  text-align:center;
}

.nesh-most-searched-footer-controls .nesh-scroll-controls{
  display:none !important;
}

@media (max-width: 767px){
  .nesh-most-searched-top-controls{
    justify-content:center;
    margin:0 0 12px;
  }

  .nesh-most-searched-top-controls .nesh-scroll-controls{
    justify-content:center;
  }
}
