/* ============================================================
   Amar — Transfer fleet: slider, detail blocks, price matrix
   Load after transfer.css
   ============================================================ */

/* ---------- Slider shell ---------- */
.tf-slider {
  position: relative;
  margin-top: 18px;
}

.tf-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tf-track::-webkit-scrollbar { display: none; }

.tf-nav {
  position: absolute;
  top: 38%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--pine);
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(31, 77, 61, .14);
  transition: background .15s, opacity .15s;
}
.tf-nav:hover:not([disabled]) { background: var(--pine-soft); }
.tf-nav[disabled] { opacity: .32; cursor: default; }
.tf-prev { left: -8px; }
.tf-next { right: -8px; }

/* ---------- Vehicle card ---------- */
.tf-card {
  position: relative;
  flex: 0 0 268px;
  min-width: 268px;
  scroll-snap-align: start;
  display: block;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.tf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(31, 77, 61, .12);
}
.tf-card.active {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(31, 77, 61, .13);
}

.tf-class {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}
.tf-class-comfort  { background: #4E7F68; }
.tf-class-business { background: #1F4D3D; }
.tf-class-minivan  { background: #A34B1E; }
.tf-class-premium  { background: #7A4B9E; }

.tf-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--pine-soft);
  overflow: hidden;
}
.tf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.tf-card:hover .tf-media img { transform: scale(1.05); }

.tf-body {
  display: block;
  padding: 12px 14px 14px;
}

.tf-name {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--pine);
  line-height: 1.25;
}

.tf-tagline {
  display: block;
  font-size: 12.5px;
  color: var(--muted-text, #5C6159);
  margin-top: 2px;
}

.tf-specs {
  display: flex;
  gap: 12px;
  margin-top: 9px;
  font-size: 13px;
  color: var(--muted-text, #5C6159);
}
.tf-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tf-specs i { font-size: 16px; color: #A89370; }
.tf-specs .tf-ev {
  color: #2E8B57;
  font-weight: 700;
  font-size: 12px;
}
.tf-specs .tf-ev i { color: #2E8B57; }

.tf-price {
  display: block;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #A34B1E;
}

/* ---------- Detail blocks ---------- */
.tf-detail { display: none; margin-top: 22px; }
.tf-detail.active { display: block; animation: tfFade .25s ease both; }

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

.tf-desc {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 4px;
}

/* ---------- Price matrix ---------- */
.tf-price-wrap { overflow-x: auto; }

.tf-price-table th:not(:first-child),
.tf-price-table td:not(:first-child) {
  text-align: right;
  min-width: 112px;
}
.tf-price-table th:first-child,
.tf-price-table td:first-child {
  min-width: 230px;
}

.tf-prices { display: none; }
.tf-prices.active { display: block; animation: tfFade .25s ease both; }

.tf-prices-car {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.tf-price-table tbody td b { color: #A34B1E; }
.tf-price-table .tf-route-link { color: inherit; text-decoration: none; }
.tf-price-table .tf-route-link b { color: var(--ink); }
.tf-price-table .tf-route-link:hover { text-decoration: underline; }

.tf-wait {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .tf-card { flex: 0 0 232px; min-width: 232px; }
  .tf-name { font-size: 15px; }
  .tf-nav { width: 34px; height: 34px; font-size: 17px; }
  .tf-prev { left: -4px; }
  .tf-next { right: -4px; }
  .tf-desc { font-size: 14px; }
  .tf-price-table th:first-child,
  .tf-price-table td:first-child { min-width: 180px; font-size: 13px; }
  .tf-price-table th:not(:first-child),
  .tf-price-table td:not(:first-child) { min-width: 96px; font-size: 13px; }
}

/* ============================================================
   Amar — Hero two-column layout with transfer fleet slider
   Load after transfer.css
   ============================================================ */

/* ---------- Two-column hero top ---------- */
.hero-top {
    display: grid;
    gap: 28px;
    align-items: center;
    margin-bottom: 26px;
}

@media (min-width: 900px) {
    .hero-top {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
        gap: 40px;
    }
}

.hero-top h1 { margin-top: 0; }
.hero-top .lead { margin-bottom: 0; }

/* ---------- Promo card ---------- */
.hero-promo {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.hero-promo:hover,
.hero-promo:focus-within {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .13);
}

/* Badge */
.hp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #C9622B;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(201, 98, 43, .4);
}
.hp-badge i { font-size: 14px; }

/* ---------- Slides ---------- */
.hp-slides {
    position: relative;
    display: block;
    aspect-ratio: 640 / 323;
    background: rgba(0, 0, 0, .2);
    overflow: hidden;
}

.hp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .55s ease;
    pointer-events: none;
}
.hp-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s linear;
}
.hp-slide.active img { transform: scale(1.06); }

/* ---------- Body ---------- */
.hp-body {
    position: relative;
    display: block;
    padding: 14px 16px 15px;
}

/* Stretched link makes the whole card clickable while the dots stay usable */
.hp-link {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 6px;
    text-decoration: none;
}
.hp-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hp-link:hover { color: #FFF1E3; }

/* ---------- Rotating vehicle name ---------- */
.hp-names {
    position: relative;
    min-height: 40px;
    margin-bottom: 10px;
}

.hp-name {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
}
.hp-name.active {
    opacity: 1;
    transform: none;
}

.hp-name b {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #F6C89A;
    line-height: 1.3;
}
.hp-name small {
    display: block;
    font-size: 12.5px;
    color: #E4D6BE;
    margin-top: 2px;
}
.hp-name small i { font-size: 14px; vertical-align: -2px; }

/* ---------- Foot: dots + arrow ---------- */
.hp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hp-dots {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.hp-dot {
    width: 22px;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    cursor: pointer;
    transition: background .25s ease, width .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.hp-dot:hover { background: rgba(255, 255, 255, .5); }
.hp-dot.active {
    background: #C9622B;
    width: 30px;
}

/* Bigger tap target without changing the visual size */
.hp-dot::before {
    content: '';
    position: absolute;
    margin: -10px 0 0 -4px;
    width: 30px;
    height: 24px;
}

.hp-arrow {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    background: #C9622B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: transform .18s ease, background .18s ease;
}
.hero-promo:hover .hp-arrow {
    background: #A34B1E;
    transform: translateX(3px);
}

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
    .hero-promo {
        display: flex;
        align-items: stretch;
        border-radius: 14px;
    }
    .hp-slides {
        width: 136px;
        min-width: 136px;
        aspect-ratio: auto;
    }
    .hp-badge {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 3px 8px;
    }
    .hp-body {
        flex: 1;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hp-link { font-size: 16px; margin-bottom: 4px; }
    .hp-names { min-height: 36px; margin-bottom: 8px; }
    .hp-name b { font-size: 13.5px; }
    .hp-name small { font-size: 11.5px; }
    .hp-arrow { width: 30px; height: 30px; min-width: 30px; font-size: 15px; }
}

@media (max-width: 420px) {
    .hp-slides { width: 112px; min-width: 112px; }
    .hp-name small { display: none; }
    .hp-names { min-height: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hp-slide,
    .hp-slide img,
    .hp-name { transition: none; }
    .hp-slide.active img { transform: none; }
}

