/* ═══════════════════════════════════════════════
   VisitKashi — Responsive CSS
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
═══════════════════════════════════════════════ */

/* ── Destination page tabs: always horizontal-scroll, never wrap ── */
.tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: calc(100% - 40px);
  border-radius: 40px;
  gap: 6px;
  padding: 8px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { flex: 0 0 auto; white-space: nowrap; }

/* ── Card grid base ── */
.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Hero base ── */
.hero { min-height: 220px; }
.hero-title { color: #fff; }

/* ── Hamburger button ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #5a0101;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-nav.is-open {
  max-height: 90vh;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  outline: none;
}

.mobile-arrow {
  font-size: .7rem;
  transition: transform 0.3s;
  margin-left: 8px;
}

.mobile-dropdown.dd-open .mobile-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, .25);
}

.mobile-dropdown.dd-open .mobile-dropdown-menu {
  max-height: 400px;
}

.mobile-dropdown-item {
  display: block;
  padding: 12px 36px;
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: color 0.2s, background 0.2s;
}

.mobile-dropdown-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.mobile-nav-cta {
  display: block;
  margin: 16px 20px 20px;
  padding: 14px 20px;
  background: #f59e0b;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.mobile-nav-cta:hover {
  background: #d97706;
}

/* ═══════════════════════════════════════
   TABLET  ≤ 1024px
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-container {
    padding: 10px 4%;
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-link {
    font-size: .88rem;
  }

  .logo-img {
    height: 52px;
  }

  /* Hero */
  .hero-search {
    height: 52vh;
  }

  .hero-search-title {
    font-size: 2.8rem;
  }

  /* Destinations */
  .circle-container {
    gap: 8px;
    padding: 0 12px;
  }

  .circle-item {
    width: 120px;
  }

  .circle-box {
    width: 110px;
    height: 110px;
  }

  .circle-label {
    font-size: 1rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  /* Explore */
  .explore-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .explore-nav {
    align-self: flex-end;
  }

  /* Cards */
  .ecard {
    flex: 0 0 240px;
  }

  .ecard-img-wrap {
    height: 180px;
  }

  /* Misc */
  .section-title {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* ═══════════════════════════════════════
   MOBILE  ≤ 768px
═══════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Header ── */
  .header-container {
    padding: 10px 16px;
    position: relative;
  }

  .nav-menu {
    display: none !important;
  }

  /* hide desktop nav */
  .desktop-only {
    display: none !important;
  }

  /* hide desktop-only "Plan My Trip" */
  .menu-toggle {
    display: flex;
  }

  /* show hamburger */
  .mobile-nav {
    display: flex;
  }

  /* enable mobile nav */

  .logo-img {
    height: 44px;
  }

  /* ── main padding offset for fixed header ── */
  main {
    padding-top: 62px;
  }

  /* ── Hero ── */
  .hero-search {
    height: 56vh;
    min-height: 300px;
  }

  .hero-search-title {
    font-size: 2rem;
    letter-spacing: -.5px;
  }

  .hero-search-subtitle {
    font-size: .85rem;
    margin-bottom: 20px;
    letter-spacing: .3px;
  }

  .search-bar-container {
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
  }

  .search-input {
    font-size: .95rem;
    min-width: 0;
    flex: 1 1 140px;
  }

  .search-icon {
    padding: 10px 12px;
  }

  .btn-search {
    flex: 0 0 auto;
    padding: 10px 20px;
    font-size: .95rem;
    border-radius: 6px;
  }

  /* ── Destinations ── */
  .circle-container {
    gap: 9px 9px;
    padding: 0 10px;
  }

  .circle-item {
    width: 80px;
  }

  .circle-box {
    width: 76px;
    height: 76px;
    margin-bottom: 8px;
  }

  .circle-label {
    font-size: .78rem;
  }

  .section {
    padding: 48px 0 24px;
  }

  /* ── Services ── */
  .services-section {
    padding: 48px 0 40px;
  }

  .services-title {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .svc-label {
    font-size: .95rem;
    bottom: 14px;
  }

  /* ── Explore sections ── */
  .explore-section {
    padding: 40px 0;
  }

  .explore-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
  }

  .explore-nav {
    align-self: flex-start;
  }

  .explore-title {
    font-size: 1.25rem;
  }

  .explore-sub {
    font-size: .82rem;
  }

  .ecard {
    flex: 0 0 200px;
    border-radius: 10px;
  }

  .ecard-img-wrap {
    height: 148px;
  }

  .ecard-body {
    padding: 10px 12px 14px;
  }

  .ecard-title {
    font-size: .85rem;
  }

  .ecard-price {
    font-size: .8rem;
  }

  .ecard-cat {
    font-size: .68rem;
  }

  .ecard-stars {
    font-size: .72rem;
  }

  .explore-scroll {
    gap: 12px;
  }

  /* ── Floating actions ── */
  .floating-actions {
    bottom: 20px;
    right: 16px;
    gap: 10px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
  }

  .float-whatsapp {
    padding: 0 14px;
    height: 50px;
    font-size: .82rem;
  }

  .float-call {
    width: 50px;
    height: 50px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-main {
    padding: 40px 0;
  }

  .footer-seo {
    padding: 32px 0;
  }

  /* ── Destination pages ── */
  .hero { height: 48vw; min-height: 200px; }
  .hero-title { font-size: 1.9rem; }
  .hero-content p { font-size: .88rem; }

  .tabs {
    margin: -20px auto 28px;
    max-width: calc(100% - 24px);
    padding: 6px;
    gap: 4px;
  }
  .tab-btn { font-size: .78rem; padding: 8px 14px; }

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

  .card { min-width: unset; height: 280px; }

  .section-title { font-size: 1.25rem; margin-bottom: 16px; }

  .pb-80 { padding-bottom: 40px; }

  /* Inline CTA banner inside cab tab */
  .container [style*="display:flex"][style*="justify-content:space-between"] {
    flex-direction: column !important;
    padding: 24px 20px !important;
    border-radius: 16px !important;
    gap: 16px !important;
  }
}

/* ═══════════════════════════════════════
   SMALL MOBILE  ≤ 480px
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-search-title {
    font-size: 1.65rem;
  }

  .hero-search {
    height: 35vh;
  }

  .circle-item {
    width: 72px;
  }

  .circle-box {
    width: 68px;
    height: 68px;
  }

  .circle-label {
    font-size: .72rem;
  }

  .services-grid {
    gap: 8px;
  }

  .svc-label {
    font-size: .82rem;
    bottom: 10px;
  }

  .ecard {
    flex: 0 0 174px;
  }

  .ecard-img-wrap {
    height: 128px;
  }

  .ecard-title {
    font-size: .8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Slightly smaller tab for section padding */
  .tab-btn {
    flex: 1 1 calc(50% - 10px);
    font-size: .8rem;
    padding: 8px 10px;
  }
}

/* ═══════════════════════════════════════
   VERY SMALL  ≤ 360px
═══════════════════════════════════════ */
@media (max-width: 360px) {
  .logo-img {
    height: 38px;
  }

  .hero-search-title {
    font-size: 1.4rem;
  }

  .circle-container {
    gap: 6px 4px;
  }

  .circle-item {
    width: 64px;
  }

  .circle-box {
    width: 60px;
    height: 60px;
  }

  .circle-label {
    font-size: .68rem;
  }
}