/* =========================================================================
   css/home-improvements.css — only loaded on index.php
   Amaç: ana sayfada daha modern görünüm (hero, search-card, section spacing)
   Not: Görseller ZIP'te yok; bu CSS görselsiz de şık görünür.
   ========================================================================= */

/* Safe-area helpers (iPhone notch / landscape + bazı Android cihazlar)
   Not: Bu dosya sadece index.php'de yüklendiği için global sayfaları etkilemez. */
:root{
  --ta-safe-left: max(env(safe-area-inset-left), 0px);
  --ta-safe-right: max(env(safe-area-inset-right), 0px);
}

/* =========================================================================
   Home: full-width + responsive (navbar/top-bar etkilenmesin diye .home-main ile sınırlı)
   ========================================================================= */
.home-page .home-main {
  --home-gutter: clamp(14px, 3vw, 34px);
  --glass-dark: rgba(12, 12, 16, 0.55);
  --glass-light: rgba(255, 255, 255, 0.60);
  --glass-border: rgba(255, 255, 255, 0.16);
  --home-section-pad: 44px;
  width: 100%;
  overflow-x: hidden;
}

/* Home içindeki tüm container'lar fluid olsun (style.css: 1600px override'unu home-main içinde ez) */
.home-page .home-main .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: var(--home-gutter);
  padding-right: var(--home-gutter);
}

/* Tüm home section'ları tam genişlikte aksın */
.home-page .home-main section,
.home-page .home-main .service-row,
.home-page .home-main .stats-strip {
  width: 100%;
}

/* Genel bölüm aralıkları (home’da biraz daha sıkı) */
.home-page .turlar-section,
.home-page .fleet-section,
.home-page .reviews-footer,
.home-page .trustpilot-section,
.home-page .service-row,
.home-page .how-it-works,
.home-page .home-highlights {
  padding-top: var(--home-section-pad);
  padding-bottom: var(--home-section-pad);
}

/* HERO (Home) */
.home-page .hero.hero--home {
  margin-top: 0;
  min-height: 520px;
  height: 68vh;
  display: flex;
  align-items: center;
  /* Background is provided by the hero background slider (see .hero-bg-slider) */
  background: none !important;
}

/* HERO background slider (homepage only) */
.home-page .hero--home .hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-page .hero--home .hero-bg-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 900ms ease;
  will-change: opacity;
}
.home-page .hero--home .hero-bg-slide.is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero--home .hero-bg-slide {
    transition: none;
  }
}

.home-page .hero.hero--home::before {
  /* style.css içinde transparent; home'da SADECE hafif okunabilirlik overlay (hero görseli görünür kalsın) */
  background:
    radial-gradient(1100px 520px at 15% 25%, rgba(255,255,255,0.14), transparent 58%),
    linear-gradient(135deg, rgba(0,0,0,0.32), rgba(0,0,0,0.10));
}

.home-page .hero-overlay {
  position: absolute;
  inset: 0;
  /* Daha hafif: görsel “neredeyse görünmüyor” hissini kaldır */
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.34));
  z-index: 1;
}

.home-page .hero-container {
  position: relative;
  z-index: 2;
}

.home-page .hero-content {
  max-width: 820px;
  padding: 18px 0;
}

.home-page .hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px 0;
  text-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.home-page .hero-subtitle {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 18px 0;
  opacity: 0.92;
  text-shadow: 0 10px 26px rgba(0,0,0,0.30);
}

.home-page .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px 0;
}

.home-page .hero-cta .btn {
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
}

.home-page .hero-cta .btn.btn-primary {
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.home-page .hero-cta .btn.hero-secondary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.home-page .hero-cta .btn.hero-secondary:hover,
.home-page .hero-cta .btn.hero-secondary:focus {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.home-page .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.home-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 600;
}

.home-page .hero-badge i {
  opacity: 0.95;
}

/* Search-card: daha premium kart hissi */
.home-page .search-card.search-card--home {
  border-radius: 22px;
  width: calc(100% - (var(--home-gutter) * 2));
  max-width: none;
  background: var(--glass-dark);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 70px rgba(0,0,0,0.26);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px 18px;
}

/* Search card içindeki inputlar: daha modern (sadece home) */
.home-page .search-card.search-card--home .form-control,
.home-page .search-card.search-card--home input[type="text"],
.home-page .search-card.search-card--home input[type="search"],
.home-page .search-card.search-card--home input[type="date"],
.home-page .search-card.search-card--home input[type="time"],
.home-page .search-card.search-card--home input[type="number"] {
  border-radius: 14px;
  height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.home-page .search-card.search-card--home .swap-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 51, 0, 0.35);
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

/* Search-card layout: tüm ekranlarda sıkıştırma yerine wrap + min-width */
.home-page .search-card.search-card--home .form-row {
  flex-wrap: wrap;
  align-items: flex-end;
  row-gap: 12px;
}

.home-page .search-card.search-card--home .location-row {
  /* Pickup & Destination alanları daha rahat okunabilsin diye biraz daha geniş */
  flex: 2 1 720px;
  min-width: 420px;
}

.home-page .search-card.search-card--home .date-row {
  flex: 1 1 520px;
  min-width: 320px;
  flex-wrap: wrap !important; /* style.css iPhone nowrap override */
  align-items: flex-start;
  gap: 10px;
}
.home-page .search-card.search-card--home .date-row .field-group {
  flex: 1 1 210px;
  min-width: 210px;
}

.home-page .search-card.search-card--home .trip-type-inline {
  flex: 0 1 170px;
  justify-content: center;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-page .search-card.search-card--home .btn-search {
  width: auto;
  min-width: 180px;
  height: 48px;
  border-radius: 14px;
  margin-left: 0;
}

@media (max-width: 991px) {
  .home-page .search-card.search-card--home {
    padding: 18px 14px;
  }
  .home-page .search-card.search-card--home .location-row,
  .home-page .search-card.search-card--home .date-row {
    flex: 1 1 100%;
    min-width: 0;
  }
  .home-page .search-card.search-card--home .trip-type-inline {
    flex: 1 1 100%;
  }
  .home-page .search-card.search-card--home .btn-search {
    width: 100%;
  }
}

/* toggle-group style.css'te absolute; home'da kart içinde düzgün */
.home-page .search-card.search-card--home .toggle-group {
  position: static;
  transform: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px 0;
}

.home-page .search-card.search-card--home .toggle-group .btn-toggle {
  border-radius: 10px;
}

/* Map: full-width + glass frame */
.home-page .home-map-section {
  padding-top: 18px;
  padding-bottom: 18px;
}

.home-page .home-map-container {
  width: 100%;
  padding-left: var(--home-gutter);
  padding-right: var(--home-gutter);
}

.home-page .home-glass.home-map-card {
  background: var(--glass-light);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,0.12);
}

.home-page #map {
  width: 100% !important;
  height: clamp(280px, 48vh, 620px);
  min-height: 280px;
  border-radius: 0; /* radius wrapper'da */
  box-shadow: none; /* shadow wrapper'da */
}

/* Services: kart görünümü */
.home-page .service-row {
  background: #fafafa;
}
.home-page .service-row .service-col {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  min-height: 210px;
}
.home-page .service-row .service-col i {
  font-size: 28px;
  margin-bottom: 10px;
}

/* Stats strip: daha okunur */
.home-page .stats-strip {
  background: linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.88));
}
.home-page .stats-strip .stat h3 {
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* Highlights (home) — stats yerine daha etkili “güvence” şeridi */
.home-page .home-highlights {
  background:
    radial-gradient(900px 520px at 12% 15%, rgba(255,51,0,.10), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(0,173,255,.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}
.home-page .home-highlights-head { margin-bottom: 18px; }
.home-page .home-highlights-title {
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 8px 0;
}
.home-page .home-highlights-subtitle {
  margin: 0;
  color: rgba(0,0,0,0.65);
  font-size: 15px;
}
.home-page .home-highlights-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}
.home-page .home-highlight{
  flex: 1 1 220px;
  min-width: 200px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-page .home-highlight-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,51,0,0.10);
  color: #ff3300;
  flex: 0 0 auto;
}
.home-page .home-highlight-title{
  font-weight: 800;
  letter-spacing: -0.2px;
}
.home-page .home-highlights-cta{
  margin-top: 18px;
}
.home-page .home-highlights-cta .btn{
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

/* How it works: kart görünümü */
.home-page .how-it-works {
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(255,51,0,.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}
.home-page .how-it-works .how-step {
  position: relative;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.08);
  min-height: 210px;
}
.home-page .how-it-works .how-step i{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,51,0,0.10);
  color: #ff3300;
  font-size: 24px;
}
.home-page .how-it-works .how-step h5{
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-top: 10px;
}
.home-page .how-it-works .how-step p{
  color: rgba(0,0,0,0.64);
  font-size: 13px;
}
.home-page .how-it-works .how-step::before{
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}
.home-page .how-it-works .row .how-step:nth-child(1)::after,
.home-page .how-it-works .row .how-step:nth-child(2)::after,
.home-page .how-it-works .row .how-step:nth-child(3)::after,
.home-page .how-it-works .row .how-step:nth-child(4)::after{
  position:absolute;
  top: 20px;
  right: 14px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-weight: 900;
  color: rgba(0,0,0,0.55);
}
.home-page .how-it-works .row .how-step:nth-child(1)::after{ content:"1"; }
.home-page .how-it-works .row .how-step:nth-child(2)::after{ content:"2"; }
.home-page .how-it-works .row .how-step:nth-child(3)::after{ content:"3"; }
.home-page .how-it-works .row .how-step:nth-child(4)::after{ content:"4"; }

/* Tours (home): full-width + glass scroll panel */
.home-page .turlar-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}
.home-page .turlar-section .tours-scroll-wrapper {
  padding: 14px 10px 12px;
  border-radius: 24px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 16px 44px rgba(0,0,0,0.08);
}

/* Başlık + kaydırma UX */
.home-page .turlar-section h2 {
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.home-page .turlar-section .tours-scroll-container {
  gap: 16px;
  padding: 4px;
  scroll-snap-type: x mandatory;
}
.home-page .turlar-section .tour-item {
  scroll-snap-align: start;
  width: clamp(280px, 34vw, 520px);
}

/* Kart: daha modern (glass + round) — sadece home */
.home-page .turlar-section .thumbnail.treasure-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-page .turlar-section .tour-item:hover .thumbnail.treasure-card,
.home-page .turlar-section .tour-item:focus-within .thumbnail.treasure-card {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.16);
}

/* İç düzen: wrapper shadow'u home'da kapat (shadow kartta) */
.home-page .turlar-section .treasure-wrapper {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
}

/* Görsel alanı ve buton */
.home-page .turlar-section .treasure-image {
  height: 360px;
}
.home-page .turlar-section .treasure-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-page .turlar-section .treasure-image .btn {
  border-radius: 14px;
  font-weight: 700;
}

/* Mobilde “treasure” tasarımını daha okunur yap */
@media (max-width: 768px) {
  .home-page .turlar-section .tours-scroll-wrapper {
    padding: 12px 8px 10px;
    border-radius: 20px;
  }
  .home-page .turlar-section .tour-item {
    width: 86vw;
  }

  /* Dikey kart: logo+başlık üstte, resim altta */
  .home-page .turlar-section .treasure-wrapper {
    flex-direction: column;
  }
  .home-page .turlar-section .treasure-info {
    flex: none;
    width: 100%;
    background: transparent;
    padding: 12px 12px 0;
    align-items: flex-start;
  }
  .home-page .turlar-section .trip-ad-logo {
    max-width: 70px;
    margin: 0 0 10px 0;
  }
  .home-page .turlar-section .treasure-title-block {
    position: static;
    transform: none;
    width: auto;
    max-height: none;
    white-space: normal;
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 6px 0;
    color: #ff4500;
  }
  .home-page .turlar-section .treasure-url {
    display: none;
  }
  .home-page .turlar-section .treasure-image {
    height: 190px;
  }
  .home-page .turlar-section .treasure-image .btn {
    width: calc(100% - 24px);
    margin: 10px 12px 12px;
  }
}

/* Fleet (home): glass scroll panel */
.home-page .fleet-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}
.home-page .fleet-section .fleet-scroll-wrapper {
  margin: 0;
  padding: 14px 10px 12px;
  border-radius: 24px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 16px 44px rgba(0,0,0,0.08);
}
.home-page .fleet-section h2{
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.home-page .fleet-section .fleet-scroll-container{
  scroll-snap-type: x mandatory;
  padding: 4px;
}
.home-page .fleet-section .vehicle-item {
  padding: 0 10px;
  width: clamp(280px, 30vw, 460px);
  scroll-snap-align: start;
  float: none !important;
  max-width: none !important;
}
.home-page .fleet-section .thumbnail{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-page .fleet-section .thumbnail:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.14);
}
.home-page .fleet-section .vehicle-img{
  height: 240px;
}
.home-page .fleet-section .caption h4{
  font-weight: 900;
  letter-spacing: -0.2px;
  margin: 6px 0 8px;
}
.home-page .fleet-section .caption p{
  color: rgba(0,0,0,0.68);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 60px;
}
.home-page .fleet-section .fleet-learn-more{
  width: 100%;
  border-radius: 14px;
  font-weight: 800;
}

/* Reviews (home): premium testimonials */
.home-page .reviews-footer{
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(255,51,0,.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}
.home-page .reviews-footer h2{
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.home-page #reviews-container.row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}
.home-page #reviews-container.row > div{
  padding: 0 !important;
  float: none !important;
  flex: 1 1 calc(50% - 14px);
  max-width: calc(50% - 14px);
}
.home-page .reviews-footer .card{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}
.home-page .reviews-footer .card-body{
  padding: 16px 16px 14px;
}
.home-page .reviews-footer .card-text{
  color: rgba(0,0,0,0.70);
  font-size: 14px;
  line-height: 1.55;
}
.home-page .reviews-footer .card-footer{
  background: rgba(255,51,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
  font-weight: 800;
}
.home-page .reviews-footer .review-btn{
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 800;
}

/* Trustpilot (home): stronger CTA + glass card */
.home-page .trustpilot-section{
  background:
    radial-gradient(900px 520px at 88% 10%, rgba(0,182,122,.12), transparent 60%),
    linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
}
.home-page .trustpilot-section .tp-card{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px 14px;
  border-radius: 26px;
  background: var(--glass-light);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.10);
  backdrop-filter: blur(14px);
}
.home-page .trustpilot-section .tp-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.home-page .trustpilot-section .tp-brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-page .trustpilot-section .tp-mark{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #00b67a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(0,182,122,0.22);
}
.home-page .trustpilot-section .tp-name{
  font-weight: 900;
  letter-spacing: -0.2px;
  font-size: 18px;
  color: rgba(0,0,0,0.88);
}
.home-page .trustpilot-section .tp-stars{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.home-page .trustpilot-section .tp-star{
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #00b67a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}
.home-page .trustpilot-section .tp-body{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.home-page .trustpilot-section .tp-copy{
  flex: 1 1 520px;
  min-width: 260px;
}
.home-page .trustpilot-section .tp-title{
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.3px;
  font-size: 22px;
  color: rgba(0,0,0,0.92);
}
.home-page .trustpilot-section .tp-subtitle{
  margin: 0;
  color: rgba(0,0,0,0.68);
  font-size: 14px;
  line-height: 1.5;
}
.home-page .trustpilot-section .tp-cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #00b67a;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0,182,122,0.22);
  white-space: nowrap;
}
.home-page .trustpilot-section .tp-cta-btn:hover,
.home-page .trustpilot-section .tp-cta-btn:focus{
  background: #009e6b;
  color: #fff;
  text-decoration: none;
}
.home-page .trustpilot-section .tp-widget-wrap{
  padding-top: 12px;
}

@media (max-width: 768px) {
  .home-page .home-highlights-grid{ padding: 12px; border-radius: 20px; }
  .home-page .home-highlight{ flex: 1 1 calc(50% - 12px); min-width: 0; }

  /* Trustpilot: mobilde stack + CTA full width */
  .home-page .trustpilot-section .tp-card{ padding: 14px; border-radius: 20px; }
  .home-page .trustpilot-section .tp-head{ flex-direction: column; align-items: flex-start; }
  .home-page .trustpilot-section .tp-body{ flex-direction: column; align-items: stretch; }
  .home-page .trustpilot-section .tp-cta-btn{ width: 100%; }
  .home-page .trustpilot-section .tp-body{ justify-content: flex-start; gap: 12px; }
  .home-page .trustpilot-section .tp-copy{ flex: 0 0 auto; min-width: 0; }
  .home-page .trustpilot-section .tp-subtitle{ margin-bottom: 2px; }

  /* Reviews: mobilde yatay scroll + snap */
  .home-page #reviews-container.row{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .home-page #reviews-container.row > div{
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: start;
  }

  /* Fleet: mobilde daha akıcı */
  .home-page .fleet-section .vehicle-item{ width: 86vw; }
  .home-page .fleet-section .vehicle-img{ height: 210px; }
}

@media (min-width: 769px) and (max-width: 991px) {
  .home-page #reviews-container.row > div{
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Mobile optimizasyon */
@media (max-width: 768px) {
  .home-page .hero.hero--home {
    min-height: 440px;
    height: auto;
    padding-top: 26px;
    padding-bottom: 10px;
  }
  .home-page .hero-content h1 {
    font-size: 36px;
  }
  .home-page .hero-subtitle {
    font-size: 16px;
  }
  .home-page .search-card.search-card--home {
    margin-top: -70px; /* hero ile daha iyi otursun */
  }
  .home-page .home-map-container {
    padding-left: var(--home-gutter);
    padding-right: var(--home-gutter);
  }
}

@media (max-width: 480px) {
  .home-page .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================================
   HOME — TOURS (mobile polish)
   ========================================================================= */
@media (max-width: 768px) {
  .home-page .turlar-section h2{ font-size: 26px; margin-bottom: 14px; }

  .home-page .turlar-section .tours-scroll-container{
    padding: 6px 2px 12px;
    gap: 14px;
  }

  /* Kart: daha kompakt, daha az yükseklik */
  .home-page .turlar-section .thumbnail.treasure-card{ border-radius: 20px; }
  .home-page .turlar-section .treasure-wrapper{ gap: 0; }
  .home-page .turlar-section .treasure-info{ padding: 12px 12px 0; }
  .home-page .turlar-section .treasure-title-block{ font-size: 18px; line-height: 1.25; }
  .home-page .turlar-section .treasure-image{ height: 210px; }

  /* Buton: daha premium, tam genişlik */
  .home-page .turlar-section .treasure-image .btn{
    border-radius: 16px;
    padding: 12px 14px;
  }
}

@media (max-width: 420px) {
  .home-page .turlar-section .tour-item{ width: 92vw; }
  .home-page .turlar-section .treasure-image{ height: 190px; }
}

/* =========================================================================
   HOME — QUICK ROUTES
   ========================================================================= */
.home-page .home-quick-routes{
  background:
    radial-gradient(900px 520px at 10% 20%, rgba(255,51,0,.10), transparent 60%),
    radial-gradient(900px 520px at 90% 20%, rgba(52,152,219,.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  padding: 42px 0 32px;
}
.home-page .home-quick-routes-title{
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.home-page .home-quick-routes-subtitle{
  margin: 0 auto;
  max-width: 860px;
  color: rgba(0,0,0,0.68);
}
.home-page .qr-scroll{
  margin: 18px auto 10px;
  max-width: 1100px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 12px;
  scroll-snap-type: x mandatory;
}
.home-page .qr-chip{
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 240px;
  text-align: left;
  box-shadow: 0 16px 44px rgba(0,0,0,0.08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.home-page .qr-chip:hover,
.home-page .qr-chip:focus{
  transform: translateY(-2px);
  border-color: rgba(255,51,0,0.26);
  box-shadow: 0 20px 56px rgba(0,0,0,0.12);
  outline: none;
}
.home-page .qr-chip-title{
  display:block;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: rgba(0,0,0,0.90);
}
.home-page .qr-chip-tag{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,51,0,0.10);
  color: rgba(0,0,0,0.78);
}
.home-page .home-quick-routes-foot{ margin-top: 10px; }
.home-page .qr-go-search{ border-radius: 16px; padding: 12px 18px; font-weight: 900; }

/* =========================================================================
   HOME — Tours note + badge
   ========================================================================= */
.home-page .home-tours-note{
  margin: 6px auto 14px;
  max-width: 920px;
  color: rgba(0,0,0,0.62);
}
.home-page .home-tours-note i{ margin-right: 6px; color: rgba(255,51,0,0.85); }
.home-page .home-tour-badges{ margin: 8px 0 10px; }
.home-page .home-tour-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.78);
}

/* =========================================================================
   HOME — FAQ PREVIEW
   ========================================================================= */
.home-page .home-faq-preview{
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(0,182,122,.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  padding: 46px 0 40px;
}
.home-page .home-faq-title{
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.home-page .home-faq-subtitle{
  margin: 0 auto;
  max-width: 880px;
  color: rgba(0,0,0,0.68);
}
.home-page .home-faq-grid{
  max-width: 980px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.home-page .home-faq-item{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}
.home-page .home-faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-page .home-faq-item summary::-webkit-details-marker{ display: none; }
.home-page .home-faq-q{ display:flex; gap:10px; align-items:flex-start; }
.home-page .home-faq-num{
  background: rgba(0,182,122,0.16);
  color: rgba(0,0,0,0.80);
  border-radius: 10px;
  padding: 4px 10px;
  font-weight: 900;
  flex: 0 0 auto;
}
.home-page .home-faq-qtext{
  font-weight: 900;
  color: rgba(0,0,0,0.88);
  line-height: 1.35;
}
.home-page .home-faq-chevron{ color: rgba(0,0,0,0.42); transition: transform .18s ease; }
.home-page details[open] .home-faq-chevron{ transform: rotate(180deg); }
.home-page .home-faq-a{
  padding: 0 16px 16px 16px;
  color: rgba(0,0,0,0.72);
  line-height: 1.6;
}
.home-page .home-faq-cta{ margin-top: 18px; }

@media (max-width: 768px) {
  .home-page .home-faq-grid{ grid-template-columns: 1fr; }
}

/* =========================================================================
   HOME — CONTACT STRIP + STICKY BAR
   ========================================================================= */
.home-page .home-help{
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
  padding: 44px 0 40px;
}
.home-page .home-help-card{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.10);
  backdrop-filter: blur(14px);
}
.home-page .home-help-title{ font-weight: 900; letter-spacing: -0.4px; margin-bottom: 10px; }
.home-page .home-help-subtitle{ color: rgba(0,0,0,0.68); margin: 0 auto 6px; max-width: 880px; }
.home-page .home-help-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.home-page .home-help-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.home-page .home-help-item:hover,
.home-page .home-help-item:focus{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 18px 48px rgba(0,0,0,0.12);
  outline: none;
}
.home-page .home-help-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,51,0,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(0,0,0,0.78);
}
.home-page .home-help-label{ font-weight: 900; color: rgba(0,0,0,0.70); font-size: 12px; }
.home-page .home-help-value{ font-weight: 900; color: rgba(0,0,0,0.90); }
.home-page .home-help-go{ margin-left: auto; color: rgba(0,0,0,0.34); }
.home-page .home-help-cta{ margin-top: 16px; }

@media (max-width: 768px) {
  .home-page .home-help-grid{ grid-template-columns: 1fr; }
}

/* Sticky bar (mobile only) */
.home-page .home-sticky-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 999;
  padding: 10px 10px;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(14px);
  gap: 10px;
}
.home-page .home-sticky-bar .hsb-btn{
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  text-decoration: none;
  font-weight: 900;
  color: rgba(0,0,0,0.86);
  background: rgba(255,255,255,0.90);
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}
.home-page .home-sticky-bar .hsb-primary{
  border-color: rgba(255,51,0,0.22);
}

@media (max-width: 768px) {
  .home-page .home-sticky-bar{ display: flex; }
  .home-page .home-main{ padding-bottom: 84px; }
}

/* Flash when quick-route applies */
.home-page .search-card--home.home-search-flash{
  animation: homeFlash 1.2s ease;
}
@keyframes homeFlash{
  0%{ box-shadow: 0 0 0 rgba(255,51,0,0.0); }
  25%{ box-shadow: 0 0 0 6px rgba(255,51,0,0.16); }
  60%{ box-shadow: 0 0 0 10px rgba(255,51,0,0.10); }
  100%{ box-shadow: 0 0 0 rgba(255,51,0,0.0); }
}
/* -----------------------------------------
   Home HERO: daha kompakt + kayan slaytlar (mobil)
   NOT: Bazı sayfalarda <body class="home-page"> gelmeyebiliyor.
   Bu yüzden görünürlük kuralını sadece .home-page ile değil, .hero--home ile de sabitle.
   ----------------------------------------- */
.home-page .hero-slider{ display: none; }
/* ✅ Desktop'ta slider kesin gizli (badge'ler 2 kere görünmesin) */
.hero.hero--home .hero-slider{ display: none !important; }

@media (max-width: 768px) {
  /* Hero alanını ~yarıya indir (rezervasyon kartı daha üstte görünsün) */
  /*
    NOTE:
    index.css içinde `body.home-page .hero.hero--home { min-height: 420px; }`
    gibi daha yüksek specificity'li bir kural var.
    Bu yüzden burada body.home-page + !important ile mobil hero yüksekliğini
    kesin şekilde düşürüyoruz.
  */
  body.home-page .hero.hero--home{
    /* Mobilde üst alan daha kompakt olsun; arama kartı ilk ekranda tam görünsün */
    min-height: 220px !important;
    height: 42vh !important;
    padding: 10px 0 14px !important;
    align-items: flex-start;
  }
  .home-page .hero-content h1{ font-size: 34px; }
  .home-page .hero-subtitle{ font-size: 16px; margin-bottom: 12px; }
  .home-page .hero-cta{ margin-bottom: 10px; }

  /* Desktop rozetlerini gizle, mobil slider'ı göster */
  .home-page .hero-badges{ display: none; }
  .home-page .hero-slider{ display: block; margin-top: 6px; }

  /* ✅ home-page class yoksa bile mobilde aynı davranış */
  .hero.hero--home .hero-badges{ display: none !important; }
  .hero.hero--home .hero-slider{ display: block !important; margin-top: 6px; }

  .home-page .hero-slider-track{
    position: relative;
    min-height: 42px;
  }
  .home-page .hero-slide{ display: none; }
  .home-page .hero-slide.is-active{ display: inline-flex; }

  /* ✅ home-page class yoksa bile slider animasyonu bozulmasın */
  .hero.hero--home .hero-slider-track{
    position: relative;
    min-height: 42px;
  }
  .hero.hero--home .hero-slide{ display: none; }
  .hero.hero--home .hero-slide.is-active{ display: inline-flex; }

  .home-page .hero-slider-dots{
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
  }
  .home-page .hero-slider-dots .hero-dot{
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
  }
  .home-page .hero-slider-dots .hero-dot.is-active{
    background: rgba(255,255,255,0.85);
  }

  .hero.hero--home .hero-slider-dots{
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
  }
  .hero.hero--home .hero-slider-dots .hero-dot{
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
  }
  .hero.hero--home .hero-slider-dots .hero-dot.is-active{
    background: rgba(255,255,255,0.85);
  }

  /* Rezervasyon kartını daha yukarı al + mobilde daha kompakt yap
     Hedef: "Transfer Ara" butonu dahil kartın tamamı ilk ekranda görünsün. */
  body.home-page .search-card.search-card--home{
    /* index.css içinde margin !important olduğu için burada da !important */
    margin: -138px auto 16px !important;
    position: relative;
    z-index: 10;
    padding: 14px 12px !important;
  }

  /* Toggle butonları biraz daha kompakt */
  body.home-page .search-card.search-card--home .toggle-group{
    gap: 8px !important;
    margin: 0 0 10px 0 !important;
  }
  body.home-page .search-card.search-card--home .toggle-group .btn-toggle{
    height: 44px !important;
    border-radius: 12px !important;
  }

  /* Form genel boşluklarını küçült */
  body.home-page .search-card.search-card--home .form-row{
    gap: 10px !important;
  }

  /* Lokasyon (legacy glass card): swap sağda (absolute) — yükseklik büyümesin
     NOT: Beige search-card kendi layout'unu kullanır. */
  body.home-page .search-card.search-card--home:not(.search-card--beige) .location-row{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    position: relative !important;
    padding-right: 66px !important; /* swap için alan */
    min-width: 0 !important;
  }
  body.home-page .search-card.search-card--home:not(.search-card--beige) .location-row .swap-btn{
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(90deg) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 16px !important;
    z-index: 4 !important;
    margin: 0 !important;
  }
  body.home-page .search-card.search-card--home:not(.search-card--beige) .location-row .field-group .clear-icon{
    right: 62px !important; /* swap alanına taşmasın */
  }
  body.home-page .search-card.search-card--home:not(.search-card--beige) .location-row .field-group .form-control{
    padding-right: 92px !important;
  }

  /* Tarih/Saat (legacy glass card): Mobilde ALT ALTA */
  body.home-page .search-card.search-card--home:not(.search-card--beige) .date-row{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px !important;
    align-items: stretch;
  }
  body.home-page .search-card.search-card--home:not(.search-card--beige) .date-row .field-group{
    width: auto !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  /* Date/Time alanlarında mobil label (Samsung/Android dahil).
     Android'de bazı cihazlarda date/time placeholder boş görünebildiği için label'ı kapatmıyoruz. */
  body.home-page .search-card.search-card--home:not(.search-card--beige) .mobile-label{ display: inline-block !important; }
  body.home-page .search-card.search-card--home:not(.search-card--beige) input:focus + .mobile-label{ opacity: 0; }
  body.home-page .search-card.search-card--home:not(.search-card--beige) input:valid + .mobile-label{ display: none !important; }


  /* Input ve buton yükseklikleri biraz düşsün */
  body.home-page .search-card.search-card--home .field-group .form-control{
    height: 42px !important;
    line-height: 42px !important;
  }
  body.home-page .search-card.search-card--home .btn-search{
    height: 44px !important;
    border-radius: 16px !important;
    font-size: 16px !important;
  }

  /* Gidiş–Dönüş satırı daha sıkı */
  body.home-page .search-card.search-card--home .trip-type-inline{
    padding: 10px 12px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 480px) {
  body.home-page .hero.hero--home{
    min-height: 200px !important;
    height: 40vh !important;
  }
  .home-page .hero-content h1{ font-size: 30px; }
  /* Dar ekranlarda kartı yine yukarı al ama çok taşırma */
  body.home-page .search-card.search-card--home{ margin: -120px auto 14px !important; }
}

/* =========================================================
   Modern / Beige Search Card (example-like)
   ========================================================= */

body.home-page .search-card.search-card--home.search-card--beige{
  background: rgba(250, 242, 234, 0.96) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16) !important;
  padding: 22px 18px 18px !important;
  max-width: 720px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.home-page .search-card.search-card--home.search-card--beige .form-row{
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  align-items: stretch !important;
}

body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige{
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 6px !important;
  gap: 26px !important;
  justify-content: flex-start !important;
  margin-bottom: 6px !important;
}

body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige .btn-toggle{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 6px !important;
  border-radius: 14px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: rgba(0, 0, 0, 0.55) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige .btn-toggle i{
  font-size: 22px !important;
}

body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige .btn-toggle.active{
  color: #ff3300 !important;
}

/* Location: 2 rows + swap column */
/*
  IMPORTANT (functional):
  .location-row elements are toggled (show/hide) by JS (transfer vs hourly).
  Therefore we MUST NOT force display with !important, otherwise inline
  display:none (or jQuery .hide()) will not work and both rows become visible.
*/
body.home-page .search-card.search-card--home.search-card--beige .location-row{
  display: grid;
  /* Desktop/tablet: 3 columns (from | swap | to) */
  grid-template-columns: 1fr 56px 1fr !important;
  gap: 14px 16px !important;
  align-items: stretch !important;
}

body.home-page .search-card.search-card--home.search-card--beige .location-row .swap-btn{
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 52px !important;
  height: 52px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 51, 0, 0.35) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10) !important;
}

body.home-page .search-card.search-card--home.search-card--beige .location-row .swap-btn i{
  color: #ff3300 !important;
  font-size: 18px !important;
}

/* Mobile: stack From/To close, keep swap at the far right BETWEEN them (example UI) */
@media (max-width: 767px) {
  body.home-page .search-card.search-card--home.search-card--beige .location-row{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    position: relative !important;
    padding-right: 0 !important; /* input kartları sağa kadar uzasın; swap üstte/sağda overlay */
    overflow: visible !important;
    align-items: stretch !important;
  }

  body.home-page .search-card.search-card--home.search-card--beige .location-row .swap-btn{
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 6 !important;
  }

  /* Mobilde de masaüstü ile aynı davranış:
     - Clear (X) en sağda kalsın
     - Metin kutu genişliğine kadar gelsin ve "..." ile bitsin
     (Swap butonu iki kutu arasında ortalanır, X ile çakışmaz.) */
  body.home-page .search-card.search-card--home.search-card--beige .location-row .field-group i.clear-icon{
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 7 !important;
  }
}

/* =========================================================
   Desktop/Tablet: responsive horizontal layout (beige card)
   - 768–991px: tablet portrait -> location row full width, date+button side-by-side
   - 992px+:   desktop & large tablets -> single-row: location | date | button
   ========================================================= */

/* Card genişlesin (desktop/tablet) */
@media (min-width: 768px) {
  body.home-page .search-card.search-card--home.search-card--beige{
    /* Desktop/Tablet: ekranın ~%95'i kadar geniş */
    /* iPhone landscape çentik güvenliği için safe-area düş */
    width: calc(95vw - var(--ta-safe-left) - var(--ta-safe-right)) !important;
    max-width: calc(95vw - var(--ta-safe-left) - var(--ta-safe-right)) !important;
  }
}

/* 768–991px (tablet portrait / küçük ekranlar): taşma olmadan ferah düzen */
@media (min-width: 768px) and (max-width: 991px) {
  body.home-page .search-card.search-card--home.search-card--beige{
    padding: 22px 18px 18px !important;
  }

  body.home-page .search-card.search-card--home.search-card--beige .form-row{
    display: grid !important;
    grid-template-columns: 1fr minmax(160px, 200px);
    grid-template-rows: auto auto auto;
    column-gap: 14px !important;
    row-gap: 14px !important;
    align-items: end !important;
  }

  /* Transfer/Hourly location blokları aynı slotu paylaşır (JS ile show/hide) */
  body.home-page .search-card.search-card--home.search-card--beige #mainLocationRow,
  body.home-page .search-card.search-card--home.search-card--beige #hourlyLocationRow{
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.home-page .search-card.search-card--home.search-card--beige .date-row{
    grid-column: 1;
    grid-row: 2;
  }

  /* Arama butonu sağda, date/time ile aynı satır */
  body.home-page .search-card.search-card--home.search-card--beige .btn-search{
    grid-column: 2;
    grid-row: 2;
    align-self: stretch !important;
    height: 64px;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    margin: 0 !important;
  }

  /* Dönüş ekle satırı altta tam genişlik */
  body.home-page .search-card.search-card--home.search-card--beige .trip-type-inline--beige{
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 10px 8px !important;
  }

  /* Lokasyon satırı: tabletlerde biraz daha sıkı */
  body.home-page .search-card.search-card--home.search-card--beige .location-row{
    grid-template-columns: 1fr 52px 1fr !important;
    gap: 12px 12px !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .location-row .swap-btn{
    width: 48px !important;
    height: 48px !important;
  }
}

/* 992px+ (desktop & geniş tabletler): tek satır yatay düzen */
@media (min-width: 992px) {
  body.home-page .search-card.search-card--home.search-card--beige{
    padding: 24px 22px 20px !important;
    /* iPhone landscape çentik güvenliği için safe-area düş */
    width: calc(95vw - var(--ta-safe-left) - var(--ta-safe-right)) !important;
    max-width: calc(95vw - var(--ta-safe-left) - var(--ta-safe-right)) !important;
  }

  body.home-page .search-card.search-card--home.search-card--beige .form-row{
    display: grid !important;
    grid-template-columns: minmax(320px, 2.2fr) minmax(300px, 1.6fr) minmax(180px, 0.9fr);
    grid-template-rows: auto auto;
    column-gap: 14px !important;
    row-gap: 14px !important;
    align-items: end !important;
  }

  /* Transfer/Hourly location blokları aynı slotu paylaşır (JS ile show/hide) */
  body.home-page .search-card.search-card--home.search-card--beige #mainLocationRow,
  body.home-page .search-card.search-card--home.search-card--beige #hourlyLocationRow{
    grid-column: 1;
    grid-row: 1;
  }

  body.home-page .search-card.search-card--home.search-card--beige .date-row{
    grid-column: 2;
    grid-row: 1;
  }

  /* Arama butonu en sağda, aynı satırda */
  body.home-page .search-card.search-card--home.search-card--beige .btn-search{
    grid-column: 3;
    grid-row: 1;
    align-self: stretch !important;
    height: 64px;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    margin: 0 !important;
  }

  /* Dönüş ekle satırı altta tek satır boyunca */
  body.home-page .search-card.search-card--home.search-card--beige .trip-type-inline--beige{
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 10px 8px !important;
  }
}


/* Field cards */
/*
  IMPORTANT (functional):
  .field-group blocks (return fields, rental hours, etc.) are toggled by JS.
  Do NOT use display:... !important here, otherwise hidden blocks will appear.
*/
body.home-page .search-card.search-card--home.search-card--beige .field-group{
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
  padding: 14px 16px !important;
  display: flex;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
  min-width: 0 !important;
}

body.home-page .search-card.search-card--home.search-card--beige .field-group .map-icon{
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  font-size: 22px !important;
  color: rgba(0, 0, 0, 0.78) !important;
}

body.home-page .search-card.search-card--home.search-card--beige .field-group .field-text{
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

body.home-page .search-card.search-card--home.search-card--beige .field-group .field-label{
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: rgba(0, 0, 0, 0.45) !important;
}

body.home-page .search-card.search-card--home.search-card--beige .field-group .form-control,
body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="text"],
body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="search"],
body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="date"],
body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="time"],
body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="number"]{
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  color: rgba(0, 0, 0, 0.92) !important;
  height: 32px !important;
  min-width: 0 !important;
  box-shadow: none !important;
}

body.home-page .search-card.search-card--home.search-card--beige .field-group .form-control::placeholder{
  color: rgba(0, 0, 0, 0.35) !important;
  font-weight: 550 !important;
}


/* Date/Time inputs: labels removed, use compact typography (keep other fields unchanged) */
body.home-page .search-card.search-card--home.search-card--beige .date-row .date-group input[type="date"],
body.home-page .search-card.search-card--home.search-card--beige .date-row .time-group input[type="time"]{
  font-size: 18px !important;
  height: 30px !important;
  /*
    Padding MUST scale with input width.
    Goal: keep ~90% of the field usable for the value (especially on mobile time input).
    Using % + clamp avoids overly large fixed padding on narrow time fields.
  */
  padding-right: clamp(14px, 10%, 26px) !important;
  cursor: pointer;
}

/* Remove extra webkit affordances that may appear on some Android builds */
body.home-page .search-card.search-card--home.search-card--beige .date-row .date-group input[type="date"]::-webkit-clear-button,
body.home-page .search-card.search-card--home.search-card--beige .date-row .time-group input[type="time"]::-webkit-clear-button,
body.home-page .search-card.search-card--home.search-card--beige .date-row .date-group input[type="date"]::-webkit-inner-spin-button,
body.home-page .search-card.search-card--home.search-card--beige .date-row .time-group input[type="time"]::-webkit-inner-spin-button{
  -webkit-appearance: none !important;
  display: none !important;
}

@media (max-width: 991px){
  body.home-page .search-card.search-card--home.search-card--beige .date-row .date-group input[type="date"],
  body.home-page .search-card.search-card--home.search-card--beige .date-row .time-group input[type="time"]{
    font-size: 17px !important;
  }
}

@media (max-width: 767px){
  body.home-page .search-card.search-card--home.search-card--beige .date-row .date-group input[type="date"],
  body.home-page .search-card.search-card--home.search-card--beige .date-row .time-group input[type="time"]{
    font-size: 16px !important;
    height: 28px !important;
  }
}

@media (max-width: 380px){
  body.home-page .search-card.search-card--home.search-card--beige .date-row .date-group input[type="date"],
  body.home-page .search-card.search-card--home.search-card--beige .date-row .time-group input[type="time"]{
    font-size: 15px !important;
  }
}

body.home-page .search-card.search-card--home.search-card--beige .field-group i.clear-icon{
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  display: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: rgba(0, 0, 0, 0.45) !important;
}

/* Location inputs: remove label row; keep clear (X) flush-right and prevent text overlap
   - X is positioned to the far right
   - Input text uses full width and truncates with "..." where supported */
body.home-page .search-card.search-card--home.search-card--beige .location-row .field-group i.clear-icon{
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
}

body.home-page .search-card.search-card--home.search-card--beige .location-row .field-group .form-control,
body.home-page .search-card.search-card--home.search-card--beige .location-row .field-group input[type="text"],
body.home-page .search-card.search-card--home.search-card--beige .location-row .field-group input[type="search"]{
  /* leave room for the clear icon without reducing the field-group width */
  padding-right: 46px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

body.home-page .search-card.search-card--home.search-card--beige .field-group.show-clear .clear-icon{
  display: inline-flex !important;
}

body.home-page .search-card.search-card--home.search-card--beige .field-group.field-error{
  border-color: rgba(255, 51, 0, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(255, 51, 0, 0.12), 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

/* Date/Time grid (example-like: side-by-side) */
body.home-page .search-card.search-card--home.search-card--beige .date-row{
  display: grid !important;
  /* Tarih solda daha geniş, saat sağda daha dar (mobil dahil) */
  /* Oran sabit kalsın: yüzde ile (her ekranda aynı oran) */
  grid-template-columns: 62% 38% !important;
  gap: 14px 14px !important;
  align-items: stretch !important;
}

/* Time field: reduce horizontal padding so entered time is fully readable (keeps height consistent) */
body.home-page .search-card.search-card--home.search-card--beige .date-row .time-group{
  /* Keep time readable: shrink card inner padding proportionally */
  padding-left: clamp(10px, 6%, 14px) !important;
  padding-right: clamp(10px, 6%, 14px) !important;
}

/* (No extra mobile override needed; clamp handles it.) */

/* Mobile safety: index.css (<=991px) forces date-row to flex-column and
   reorders time before date. Beige card should ALWAYS keep: Date left, Time right. */
@media (max-width: 991px){
  body.home-page .search-card.search-card--home.search-card--beige .date-row{
    display: grid !important;
    grid-template-columns: 62% 38% !important;
    grid-auto-flow: row !important;
  }

  /* Extra guard if any flex rules leak in */
  body.home-page .search-card.search-card--home.search-card--beige .date-row .date-group:not(.return-date-wrapper){ order: 1; }
  body.home-page .search-card.search-card--home.search-card--beige .date-row .time-group:not(.return-time-wrapper){ order: 2; }
  body.home-page .search-card.search-card--home.search-card--beige .date-row .return-date-wrapper{ order: 3; }
  body.home-page .search-card.search-card--home.search-card--beige .date-row .return-time-wrapper{ order: 4; }
}

body.home-page .search-card.search-card--home.search-card--beige .date-row .duration-group{
  grid-column: 1 / -1;
}

body.home-page .search-card.search-card--home.search-card--beige .unit-label{
  position: static !important;
  margin-left: 8px !important;
  font-weight: 800 !important;
  color: rgba(0, 0, 0, 0.55) !important;
}

/* Return toggle row */
/*
  IMPORTANT (functional):
  .trip-type-inline is hidden on hourly mode.
  Do NOT force display with !important.
*/
body.home-page .search-card.search-card--home.search-card--beige .trip-type-inline--beige{
  display: flex;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 4px !important;
}

/* Toggle labels should NEVER truncate with "..." on mobile. */
body.home-page .search-card.search-card--home.search-card--beige .toggle-group{
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
}
body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige .btn-toggle{
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
}
body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige .btn-toggle .btn-label{
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Beige layout: desktop/tablet swap button should behave as a grid item.
   (Mobile uses an absolute “between fields” placement.) */
@media (min-width: 768px) {
  body.home-page .search-card.search-card--home.search-card--beige .location-row .swap-btn{
    position: static !important;
    transform: none !important;
    margin: 0 !important;
  }
}

/* Switch (Dönüş Ekle) – example-like */
body.home-page .search-card.search-card--home.search-card--beige .switch{
  position: relative;
  display: inline-block;
  width: 58px;
  height: 34px;
}
body.home-page .search-card.search-card--home.search-card--beige .switch input{
  opacity: 0;
  width: 0;
  height: 0;
}
body.home-page .search-card.search-card--home.search-card--beige .switch .slider{
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.12);
  transition: 0.2s;
  border-radius: 999px;
}
body.home-page .search-card.search-card--home.search-card--beige .switch .slider:before{
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: 0.2s;
  border-radius: 999px;
}
body.home-page .search-card.search-card--home.search-card--beige .switch input:checked + .slider{
  background: rgba(255,51,0,0.18);
  border-color: rgba(255,51,0,0.25);
}
body.home-page .search-card.search-card--home.search-card--beige .switch input:checked + .slider:before{
  transform: translate(24px, -50%);
}

body.home-page .search-card.search-card--home.search-card--beige .trip-type-inline--beige .trip-type-left{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.home-page .search-card.search-card--home.search-card--beige .trip-type-inline--beige .trip-plus{
  font-size: 30px !important;
  line-height: 1 !important;
  color: rgba(0, 0, 0, 0.92) !important;
}

body.home-page .search-card.search-card--home.search-card--beige .trip-type-inline--beige .label{
  font-size: 20px !important;
  font-weight: 900 !important;
  color: rgba(0, 0, 0, 0.92) !important;
}

/* Search button */
body.home-page .search-card.search-card--home.search-card--beige .btn-search{
  width: 100% !important;
  min-width: 0 !important;
  border-radius: 20px;
  padding: 16px 14px;
  font-size: 20px;
  font-weight: 900 !important;
  margin: 0;
}

body.home-page .search-card.search-card--home.search-card--beige .btn-search i{
  font-size: 18px !important;
  margin-left: 10px !important;
}

/* iPhone 11/13 ve 360–420px Android cihazlar:
   Mevcut görünümü koru ama sıkışmayı azalt (daha kompakt padding/font). */
@media (max-width: 420px){
  body.home-page .search-card.search-card--home.search-card--beige{
    padding: 18px 14px 14px !important;
    border-radius: 26px !important;
  }

  body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige{
    gap: 18px !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige .btn-toggle{
    font-size: 18px !important;
    gap: 8px !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige .btn-toggle i{
    font-size: 20px !important;
  }

  body.home-page .search-card.search-card--home.search-card--beige .field-group{
    padding: 12px 14px !important;
    gap: 10px !important;
    border-radius: 16px !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .field-group .map-icon{
    font-size: 20px !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .field-group .field-label{
    font-size: 13px !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .field-group .form-control,
  body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="text"],
  body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="search"],
  body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="date"],
  body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="time"],
  body.home-page .search-card.search-card--home.search-card--beige .field-group input[type="number"]{
    font-size: 18px !important;
    height: 30px !important;
  }

  /* Mobilde (<=767) swap overlay alanı biraz daralt */
  body.home-page .search-card.search-card--home.search-card--beige .location-row .swap-btn{
    width: 48px !important;
    height: 48px !important;
    right: 12px !important;
  }

  body.home-page .search-card.search-card--home.search-card--beige .location-row .field-group{
    padding-right: 86px !important;
  }

  body.home-page .search-card.search-card--home.search-card--beige .location-row .field-group input[type="text"],
  body.home-page .search-card.search-card--home.search-card--beige .location-row .field-group input[type="search"]{
    padding-right: 0 !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .location-row .field-group i.clear-icon{
    right: 62px !important;
    width: 32px !important;
    height: 32px !important;
  }

  body.home-page .search-card.search-card--home.search-card--beige .trip-type-inline--beige .trip-plus{
    font-size: 28px !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .trip-type-inline--beige .label{
    font-size: 18px !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .btn-search{
    font-size: 18px !important;
    padding: 14px 12px !important;
  }
}

/* Very small devices: avoid squeezing */
@media (max-width: 340px){
  body.home-page .search-card.search-card--home.search-card--beige .date-row{ grid-template-columns: 1fr !important; }
  body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige{ gap: 14px !important; }
  body.home-page .search-card.search-card--home.search-card--beige .toggle-group--beige .btn-toggle{ font-size: 18px !important; }
}

/* =======================================================================
   MOBILE FIX: Round-trip (return) date/time must mirror pickup layout
   - Date on the LEFT (wide)
   - Time on the RIGHT (narrow)
   - Return fields appear as the 2nd row of the same 2-col grid
   (home-improvements.css is loaded last on index.php)
   ======================================================================= */
@media (max-width: 991px){
  body.home-page .search-card.search-card--home.search-card--beige .date-row{
    grid-template-columns: minmax(0, 1fr) clamp(96px, 28vw, 140px) !important;
    grid-auto-flow: row dense !important;
  }

  /* Pickup row (row 1) */
  body.home-page .search-card.search-card--home.search-card--beige .date-row .date-group:not(.return-date-wrapper){
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .date-row .time-group:not(.return-time-wrapper){
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  /* Return row (row 2) */
  body.home-page .search-card.search-card--home.search-card--beige .date-row .return-date-wrapper{
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: auto !important;
  }
  body.home-page .search-card.search-card--home.search-card--beige .date-row .return-time-wrapper{
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: auto !important;
  }

  /* Hourly mode: duration takes row 2 full width (return fields are hidden in hourly mode) */
  body.home-page .search-card.search-card--home.search-card--beige .date-row .duration-group{
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
}
