/* Homepage typography follows begoo.com.tr; booking data and shared panel styles stay intact. */
/* Match the homepage width even when a legacy page imports style.css. */
@media (min-width: 1400px) {
  body.portal-home-page .container { max-width: 1320px; }
  body.portal-home-page .portal-nav-actions {
    flex-wrap: nowrap !important;
    flex-shrink: 0;
  }
}
body.portal-home-page.portal-refined-page {
  --portal-font: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--portal-font) !important;
  font-size: 14.72px;
  font-weight: 500;
}
body.portal-refined-page :is(a, p, span, label, h1, h2, h3, h4, h5, h6, button, input, select, textarea) {
  font-family: inherit !important;
}
body.portal-home-page.portal-refined-page :is(.portal-nav-link, .footer-link-modern) {
  font-size: 14.72px !important;
  font-weight: 600;
}
body.portal-home-page.portal-refined-page :is(.portal-nav-link, .btn-login-selector) {
  color: var(--bego-navy) !important;
}
body.portal-home-page.portal-refined-page :is(.btn-login-selector, .portal-language-menu .dropdown-item, .login-card-content h6, .login-card-content p) {
  font-size: 14.08px !important;
}
body.portal-home-page.portal-refined-page :is(.section-sub-modern, .service-box-desc, .journey-card-desc, .journey-partner-features p) {
  font-size: 14.4px !important;
  font-weight: 500;
}
body.portal-home-page.portal-refined-page :is(.btn-brand-glow, .dtp-btn-primary, .hourly-btn-primary),
body.portal-home-page.portal-refined-page .journey-partner .btn-brand-glow,
body.portal-home-page.portal-refined-page #booking-hub .hub-tab-pane .btn-brand-glow {
  background: var(--bego-orange) !important;
  border-color: var(--bego-orange) !important;
  color: #fff !important;
  font-size: 14.08px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}
body.portal-home-page.portal-refined-page :is(.btn-brand-glow, .dtp-btn-primary, .hourly-btn-primary):is(:hover, :focus, :active),
body.portal-home-page.portal-refined-page .journey-partner .btn-brand-glow:hover {
  background: var(--bego-orange) !important;
  border-color: var(--bego-orange) !important;
  color: #fff !important;
}
body.portal-refined-page #booking-hub .hub-segment-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.portal-refined-page #returnSlot[hidden] { display: none !important; }

/* Center on the viewport, with safe space and scrolling on short screens. */
body.portal-home-page.portal-refined-page :is(.dtp-modal, .hourly-modal) {
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
body.portal-home-page.portal-refined-page :is(.dtp-panel, .hourly-panel) {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  font-family: var(--portal-font);
}
body.portal-home-page.portal-refined-page .dtp-day-btn.is-selected:not(:disabled) {
  background: var(--bego-orange);
  color: #fff;
}
body.portal-refined-page .dtp-time-columns { grid-template-columns: 1fr 1fr; }
body.portal-refined-page .dtp-time-columns::before { content: none; }
body.portal-refined-page .dtp-time-col:last-child { grid-column: 2; }
body.portal-refined-page .dtp-time-label {
  font-size: 14.08px;
  margin-bottom: 4px;
  text-align: center;
}
body.portal-refined-page .dtp-stepper {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-areas: 'minus value plus';
}
body.portal-refined-page :is(.dtp-stepper-btn, .dtp-stepper-value) {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bego-navy);
}

/* Booking fields keep the same scale, spacing and visible focus treatment. */
body.portal-refined-page #booking-hub input::placeholder {
  font-size: 14px;
  font-weight: 500;
  color: #747583;
  opacity: 1;
}
body.portal-refined-page #searchForm #pickupOpenBtn {
  height: auto;
  min-height: 48px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
}
body.portal-refined-page #searchForm .reservation-slot-search {
  margin-top: 22px !important;
}
body.portal-refined-page #pane-booking .hub-booking-note {
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  margin-top: 10px;
  font-size: 13px;
}
body.portal-refined-page #booking-hub .hub-segment-switcher {
  padding: 4px;
  gap: 4px;
  background: #f1f2f5;
  border: 1px solid #e3e3e9;
  border-radius: 9px;
}
body.portal-refined-page #booking-hub .hub-segment-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #666878;
  box-shadow: none;
}
body.portal-refined-page #booking-hub .hub-segment-btn[aria-pressed='true'] {
  border-color: #c9cbd5;
  background: #fff;
  color: var(--bego-navy);
  box-shadow: 0 1px 3px #20233e0a;
  font-weight: 700;
}

body.portal-refined-page #searchForm .reservation-slot-passenger {
  width: 100%;
}
body.portal-refined-page #searchForm .reservation-slot-passenger .reservation-caption {
  color: #4f5060;
  font-size: 14px;
  font-weight: 600;
}
body.portal-refined-page #searchForm .passenger-field {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  height: 52px;
  padding: 3px;
  border: 1px solid #d9d9e1;
  border-radius: 7px;
  background: #fff;
}
body.portal-refined-page #searchForm .passenger-step {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: #f5f5f8;
  color: var(--bego-navy);
}
body.portal-refined-page #searchForm .passenger-step:hover:not(:disabled) {
  background: #fff3e3;
  color: var(--bego-orange-ink);
}
body.portal-refined-page #searchForm .passenger-step:disabled {
  background: #f8f8fa;
  color: #b4b7c3;
}
body.portal-refined-page #searchForm .passenger-count-input {
  width: 100%;
  height: 44px;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  background: transparent;
  color: var(--bego-navy);
  font-size: 16px;
  font-weight: 700;
}
body.portal-refined-page #searchForm .passenger-field:focus-within,
body.portal-refined-page #searchForm .stop-item .reservation-field:focus-within {
  border-color: var(--bego-orange);
  box-shadow: 0 0 0 3px #f58b111f;
}

/* Numbered stop fields stack directly after the destination, at its full width. */
body.portal-refined-page #searchForm .stop-add-link {
  top: -3px;
  right: 4px;
  min-height: 28px;
  padding: 2px 6px;
  gap: 5px;
  color: var(--bego-orange-ink);
  font-size: 13px;
  line-height: 1.5;
}
body.portal-refined-page #searchForm .stops-strip {
  order: initial;
  align-items: stretch;
  gap: 12px;
  padding: 4px 4px 8px;
  margin: 0;
}
body.portal-refined-page #searchForm .stop-add-link:disabled {
  color: #a2a5b2;
  text-decoration: none;
}
body.portal-refined-page #searchForm .stops-links { display: none; }
body.portal-refined-page #searchForm .stop-item {
  width: 100%;
  margin-left: 0;
}
body.portal-refined-page #searchForm .stop-item .reservation-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  min-height: 48px;
  padding: 0 2px 0 10px;
  border: 1px solid #d9d9e1;
  border-radius: 7px !important;
  background: #fff;
}
body.portal-refined-page #searchForm .stop-item .reservation-field > .position-relative {
  flex: 1;
  min-width: 0;
  width: 0;
}
body.portal-refined-page #searchForm .stop-item input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0 !important;
  box-shadow: none;
  border-radius: 0;
  font-size: 16px;
  background: transparent;
  color: var(--bego-navy);
}
body.portal-refined-page #searchForm .stop-badge {
  width: 26px;
  height: 26px;
  border: 0;
  background: #fff3e3;
  color: var(--bego-orange-ink);
  font-size: 12px;
}
body.portal-refined-page #searchForm .stop-remove {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  color: #777887;
  font-size: 13px;
}
body.portal-refined-page #searchForm .stop-remove:hover {
  background: #fff3e3;
  color: var(--bego-orange-ink);
}

/* Raise the entire edited stop above following rows, including its suggestions. */
body.portal-refined-page #searchForm .stop-item:focus-within {
  z-index: 30;
}

/* Tracking and agency tabs use the booking form's field and supporting-text scale. */
body.portal-refined-page #booking-hub #pane-agency { min-height: 0; }
body.portal-refined-page #booking-hub #pane-tracking > .mb-3 { margin-bottom: 22px !important; }
body.portal-refined-page #booking-hub :is(#pane-tracking, #pane-agency) h5 {
  font-size: 18px;
  line-height: 1.5;
}
body.portal-refined-page #booking-hub :is(#pane-tracking, #pane-agency) :is(p, .small, .agency-perk-badge, .hub-form-footer) {
  font-size: 13px;
  line-height: 1.6;
}
body.portal-refined-page #booking-hub :is(#pane-tracking, #pane-agency) .hub-field-label {
  font-size: 14px;
  margin-bottom: 6px;
}
body.portal-refined-page #heroTrackingForm .hub-field-wrap {
  margin-bottom: 20px !important;
}
body.portal-refined-page #heroTrackingForm .hub-input-control {
  height: 48px;
  font-size: 16px;
}
body.portal-refined-page #heroTrackingForm .hub-info-box {
  margin-bottom: 22px !important;
}
body.portal-refined-page #heroTrackingForm .hub-info-box .row { --bs-gutter-y: 12px; }
body.portal-refined-page #booking-hub #pane-tracking .hub-field-label { margin-bottom: 8px; }
body.portal-refined-page #booking-hub :is(#pane-tracking, #pane-agency) .hub-form-footer {
  margin-top: 10px !important;
  text-align: left;
}
body.portal-refined-page #booking-hub #pane-tracking .hub-form-footer { margin-top: 14px !important; }
body.portal-refined-page #booking-hub :is(#pane-tracking, #pane-agency) .hub-form-footer a {
  font-size: 13px;
  line-height: 1.6;
  color: var(--bego-orange-ink) !important;
}
body.portal-refined-page #booking-hub #pane-agency .hub-info-box strong {
  font-size: 14px;
  font-weight: 600;
}
body.portal-refined-page #booking-hub #pane-agency .agency-portal-badge {
  background: var(--bego-orange) !important;
  border: 1px solid var(--bego-orange);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
}
