/* Index-only refinements; load after the page's presentation styles. */
body.portal-refined-page {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
}
body.portal-refined-page :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea) {
  font-family: inherit !important;
}

/* Let grid/flex children shrink and long text wrap instead of widening the page. */
body.portal-refined-page :is(.hero-layout > div, .journey-section-heading > *,
  .journey-solutions > *, .journey-benefits li, .journey-partner-features li > div,
  .fleet-card-modern > *, .hub-input-inner) { min-width: 0; }
body.portal-refined-page :is(p, h1, h2, h3, h4, h5, h6, .footer-link-modern) {
  overflow-wrap: break-word;
}

body.portal-refined-page :is(.top-notice-bar, .top-notice-badge, .top-notice-link,
  .portal-language-menu, .login-menu-title, .login-card-content p,
  .hero-kicker-badge, .section-kicker-modern, .journey-card-eyebrow,
  .hub-eyebrow, .footer-badge-item, .footer-bottom-bar) { font-size: 14px; }
body.portal-refined-page .top-notice-bar .dropdown-toggle { font-size: 14px !important; }
body.portal-refined-page :is(.portal-language-menu .dropdown-item,
  .top-notice-link, .top-notice-bar .dropdown-toggle) { min-height: 44px; }
body.portal-refined-page :is(.portal-nav-link, .btn-login-selector, .portal-user-chip) {
  font-size: 14px;
}
body.portal-refined-page .portal-nav-link {
  padding-inline: 8px !important;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 650;
}
body.portal-refined-page .portal-nav-brand { margin-right: 20px; }
body.portal-refined-page .portal-brand-logo { width: 180px; }
body.portal-refined-page :is(.login-card-content h6, .journey-partner-mark strong,
  .journey-partner-features strong, .footer-col-title-modern) { font-size: 16px; }
body.portal-refined-page :is(.journey-partner-mark span,
  .testimonial-author-role, .journey-photo-caption) { font-size: 14px; }

body.portal-refined-page .hero-main-title { font-size: clamp(32px, 3vw, 44px); }
/* Text-only carousel: every message reserves the same space to prevent jumps. */
body.portal-refined-page .hero-slides { display: grid; }
body.portal-refined-page .hero-slide {
  grid-area: 1 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  visibility: hidden;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
body.portal-refined-page .hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
body.portal-refined-page .hero-slide .hero-main-title { max-width: 100%; text-wrap: balance; }
body.portal-refined-page .hero-slide .hero-main-subtitle { max-width: 510px; }
body.portal-refined-page .hero-slide .hero-actions { margin-top: auto; gap: 12px 20px; }
body.portal-refined-page .hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
body.portal-refined-page .hero-slider-controls[hidden] { display: none; }
body.portal-refined-page :is(.hero-slider-pages, .hero-slider-arrows) { display: flex; gap: 8px; }
body.portal-refined-page .hero-slider-controls button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #ffffff36;
  border-radius: 7px;
  background: #20233e66;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  transition: background .18s ease, border-color .18s ease;
}
body.portal-refined-page .hero-slider-controls button:hover { background: #ffffff20; border-color: #ffbd70; }
body.portal-refined-page .hero-slider-page.is-active { background: var(--bego-orange); border-color: var(--bego-orange); color: var(--bego-navy); font-weight: 800; }
body.portal-refined-page .hero-store-icons { gap: 24px; }
body.portal-refined-page .hero-store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  color: #fff;
  font-size: 32px;
}
@media (prefers-reduced-motion: reduce) {
  body.portal-refined-page .hero-slide { transition: none; transform: none; }
}
body.portal-refined-page :is(.hero-main-subtitle, .section-sub-modern,
  .split-card-desc, .journey-card-desc, .journey-partner-features p,
  .service-box-desc, .step-card-desc, .testimonial-quote,
  .faq-accordion-modern .accordion-button, .faq-accordion-modern .accordion-body,
  .footer-link-modern, .portal-footer-modern .small, #sss .small,
  .executive-cta-card .text-secondary) { font-size: 16px; line-height: 1.7; }
body.portal-refined-page :is(.hero-secondary-link, .hero-assurances span,
  .hero-partner-note p, .hero-partner-note a, .journey-benefits li,
  .journey-text-link, .split-card-list li, .testimonial-author-name) { font-size: 15px; }
body.portal-refined-page .hero-partner-note strong { font-size: 16px; }
body.portal-refined-page #hizmetlerimiz > .container > .row > div:first-child .service-box-desc {
  font-size: 16px;
}
body.portal-refined-page .footer-link-modern { min-height: 44px; }
body.portal-refined-page #sss > .container > .row { --bs-gutter-x: 24px; }
body.portal-refined-page .executive-cta-card .badge { font-size: 14px; }

/* Readable form controls on every screen, including native mobile selects. */
body.portal-refined-page .hub-card-heading h2 { font-size: clamp(22px, 2vw, 26px); }
body.portal-refined-page .hub-nav-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.portal-refined-page .hub-nav-tab {
  min-width: 0;
  min-height: 48px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
}
body.portal-refined-page .hub-nav-tab span { min-width: 0; }
body.portal-refined-page .hub-segment-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.portal-refined-page .hub-segment-btn {
  min-width: 0;
  min-height: 48px;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
}
body.portal-refined-page .hub-field-label { font-size: 14px; }
body.portal-refined-page .hub-input-control,
body.portal-refined-page #searchForm select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 48px;
  font-size: 16px;
}
body.portal-refined-page .hub-tab-pane h5 { font-size: 20px; line-height: 1.5; }
body.portal-refined-page .hub-tab-pane .small { font-size: 16px; line-height: 1.6; }
body.portal-refined-page :is(.hub-booking-note, .agency-perk-badge) {
  font-size: 14px;
  line-height: 1.6;
}
body.portal-refined-page .hub-booking-note { align-items: baseline; }
body.portal-refined-page .hub-tab-pane .badge { font-size: 14px; white-space: normal; }
body.portal-refined-page #pane-agency > .d-flex { flex-wrap: wrap; gap: 8px; }
body.portal-refined-page :is(.btn-brand-glow, .btn-login-selector,
  .section-pad-spacious .btn, .btn-fleet-select),
body.portal-refined-page #booking-hub .hub-tab-pane .btn-brand-glow,
body.portal-refined-page #filomuz .fleet-card-modern .btn-fleet-select {
  min-height: 48px;
  font-size: 16px !important;
  line-height: 1.5;
  white-space: normal;
}
body.portal-refined-page .portal-nav-actions > .btn-brand-glow { font-size: 14px !important; }

body.portal-refined-page .ticker-stat-label { font-size: 14px; line-height: 1.5; }
body.portal-refined-page .ticker-stat-num { font-size: 26px; }
body.portal-refined-page #filomuz :is(.section-sub-modern, .fleet-card-class,
  .fleet-filter-btn, .fleet-spec-item) { font-size: 16px; }
body.portal-refined-page #filomuz :is(.section-kicker-modern, .fleet-card-tag,
  .fleet-feature-pill) { font-size: 14px; }
body.portal-refined-page #filomuz .fleet-card-name { font-size: 22px; }
body.portal-refined-page #filomuz .fleet-filter-bar { max-width: 100%; }
body.portal-refined-page #filomuz .fleet-filter-btn { white-space: normal; }
body.portal-refined-page #filomuz .fleet-card-modern { height: auto !important; min-height: 100%; }

/* Collapse navigation before larger labels run out of room. */
@media (max-width: 1399.98px) {
  body.portal-refined-page .portal-navbar-modern .navbar { padding: 12px 0 !important; }
  body.portal-refined-page .portal-brand-logo { width: 160px; }
  body.portal-refined-page .portal-nav-link { font-size: 18px; min-height: 48px; }
  body.portal-refined-page .portal-nav-actions { flex-wrap: wrap; padding-bottom: 12px; }
  body.portal-refined-page .portal-login-menu {
    position: static !important;
    transform: none !important;
    margin-top: 8px !important;
  }
  body.portal-refined-page .navbar-collapse.show {
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
  }
}

/* The stacked layout starts with the working transfer hub, without the promo column. */
@media (max-width: 991.98px) {
  body.portal-refined-page .hero-intro { display: none; }
  body.portal-refined-page .hero-executive-section { padding: 20px 0 28px; }
  body.portal-refined-page .hero-layout { --bs-gutter-y: 0; }
  body.portal-refined-page #booking-hub { max-width: 720px; margin-inline: auto; }
  body.portal-refined-page .hub-tab-pane { min-height: 0; }
  /* Footer and utility-bar contact links remain available without covering the form. */
  body.portal-refined-page .floating-whatsapp-btn { display: none; }
}

@media (max-width: 575.98px) {
  body.portal-refined-page .top-notice-bar .container > .d-flex > .d-flex:first-child {
    display: none !important;
  }
  body.portal-refined-page .top-notice-bar .container > .d-flex > .d-flex:last-child {
    width: 100%;
    justify-content: space-between;
  }
  body.portal-refined-page .top-notice-bar .top-divider-dot { display: none; }
  body.portal-refined-page .hub-card-heading { padding: 20px 16px 0; }
  body.portal-refined-page .hub-nav-tabs { margin-inline: 16px; }
  body.portal-refined-page .hub-nav-tab { flex-direction: column; gap: 5px; padding: 10px 2px; }
  body.portal-refined-page .hub-tab-pane { padding: 16px; }
  body.portal-refined-page .hub-segment-btn { padding: 8px 4px; }
  body.portal-refined-page #searchForm .col-sm-6 { width: 100%; }
  body.portal-refined-page .hub-info-box .col-6 { width: 100%; }
  body.portal-refined-page .journey-benefits { grid-template-columns: 1fr; }
  body.portal-refined-page .ticker-stat-item { flex-wrap: wrap; gap: 10px; }
  body.portal-refined-page .ticker-stat-num { font-size: 24px; }
  body.portal-refined-page .portal-footer-modern .col-6 { width: 100%; }
  body.portal-refined-page .footer-bottom-bar { flex-wrap: wrap; gap: 16px; }
}
