:root {
  --sim-blue: #07579a;
  --sim-blue-dark: #063f73;
  --sim-blue-light: #72a7df;
  --sim-navy: #10243e;
  --sim-red: #ed1c2e;
  --sim-green: #00a651;
  --sim-bg: #edf3f8;
  --sim-border: #c9d7e5;
  --sim-muted: #64748b;
  --sim-shadow: 0 14px 36px rgba(16, 36, 62, .14);
}
html { height: 100%; }
body {
  min-height: 100%;
  color: var(--sim-navy);
  background-color: #dceffa !important;
  background-image:
    linear-gradient(rgba(240, 248, 253, .34), rgba(234, 245, 252, .20)),
    url("/simitalia-modern/sky-background.png") !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  font-family: "Manrope", sans-serif;
  font-size: .9rem;
}
a { color: var(--sim-blue); font-weight: 600; transition: color .2s ease; }
a:hover { color: var(--sim-red); }
#page-container { min-height: 100vh; padding-bottom: 0; }
#page-contents { width: 100% !important; padding: 24px max(18px, 3vw) 56px; }
#page-contents:has(.sim-hero) { padding: 0 0 56px; }
#Dispo_NavBar {
  min-height: 72px;
  margin: 0;
  padding: 9px 0;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(223,232,242,.9);
  box-shadow: 0 4px 22px rgba(16,36,62,.06);
  backdrop-filter: blur(14px);
  z-index: 1030;
}
.sim-brand-logo { width: 178px; height: 48px; object-fit: contain; object-position: left center; }
#Dispo_NavBar .nav-link {
  color: var(--sim-navy);
  font-size: .84rem;
  font-weight: 700;
  padding: .7rem .55rem;
  border-radius: 9px;
}
#Dispo_NavBar .navbar-nav {
  align-items: stretch;
  gap: .1rem;
}
#Dispo_NavBar .nav-item {
  display: flex;
  align-items: center;
}
#Dispo_NavBar .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  white-space: nowrap;
}
#Dispo_NavBar .nav-link i,
#Dispo_NavBar .dropdown-item i {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
}
#Dispo_NavBar #utc_clock {
  display: inline-block;
  white-space: nowrap;
}
#Dispo_NavBar .nav-link:hover, #Dispo_NavBar .nav-link:focus { color: var(--sim-blue); background: #edf5fc; }
#Dispo_NavBar .dropdown-menu {
  padding: .55rem;
  background: #fff;
  border: 1px solid var(--sim-border);
  border-radius: 14px;
  box-shadow: var(--sim-shadow);
}
#Dispo_NavBar .dropdown-item { color: var(--sim-navy); padding: .62rem .75rem; border-radius: 8px; font-weight: 600; }
#Dispo_NavBar .dropdown-item:hover { color: var(--sim-blue); background: #edf5fc; }
.navbar-toggler { border: 0; color: var(--sim-blue); box-shadow: none !important; }

.sim-hero {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: linear-gradient(90deg, #eef8ff 0%, rgba(238,248,255,.95) 36%, rgba(238,248,255,.08) 72%), url("/simitalia-modern/hero.jpg") center 44%/cover no-repeat;
}
.sim-hero-overlay { position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, rgba(245,248,252,.85)); }
.min-vh-50 { min-height: 500px; }
.sim-eyebrow, .sim-kicker {
  color: var(--sim-blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sim-hero h1 { margin: 18px 0; color: var(--sim-navy); font-size: clamp(2.8rem, 5vw, 5rem); line-height: .98; font-weight: 800; letter-spacing: -.055em; }
.sim-hero h1 span { color: var(--sim-blue); }
.sim-hero-copy { max-width: 590px; color: #314966; font-size: 1.08rem; line-height: 1.7; }
.btn { border-radius: 10px; font-weight: 700; }
.btn-primary { background: var(--sim-blue); border-color: var(--sim-blue); }
.btn-primary:hover { background: var(--sim-blue-dark); border-color: var(--sim-blue-dark); }
.btn-outline-primary { color: var(--sim-blue); border-color: var(--sim-blue); background: rgba(255,255,255,.76); }
.btn-danger { background: var(--sim-red); border-color: var(--sim-red); }
.sim-flight-search { position: relative; z-index: 4; margin-top: -44px; }
.sim-search-card { border: 0 !important; border-radius: 16px !important; box-shadow: 0 20px 45px rgba(16,36,62,.16) !important; }
.sim-search-card .card-body { padding: 18px 20px; }
.sim-search-card .col-lg { position: relative; min-height: 54px; padding-left: 56px; border-right: 1px solid var(--sim-border); }
.sim-search-card small, .sim-search-card strong { display: block; }
.sim-search-card small { margin-bottom: 4px; color: var(--sim-muted); font-size: .66rem; letter-spacing: .08em; }
.sim-search-card strong { color: var(--sim-navy); font-size: .86rem; }
.sim-search-icon { position: absolute; left: 18px; top: 10px; color: var(--sim-blue); font-size: 1.35rem; }
.sim-section { margin-top: 34px; }
.sim-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.sim-section-heading h2 { margin: 4px 0 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em; }
.sim-stat { display: flex; align-items: center; gap: 15px; min-height: 98px; padding: 19px; background: #fff; border: 1px solid var(--sim-border); border-radius: 14px; box-shadow: 0 6px 20px rgba(16,36,62,.055); }
.sim-stat > i { display: grid; place-items: center; width: 48px; height: 48px; color: var(--sim-blue); background: #eaf4fc; border-radius: 12px; font-size: 1.25rem; }
.sim-stat strong, .sim-stat span { display: block; }
.sim-stat strong { color: var(--sim-navy); font-size: 1.2rem; font-weight: 800; }
.sim-stat span { color: var(--sim-muted); font-size: .72rem; }
.card {
  color: var(--sim-navy);
  background: #fff;
  border: 1px solid var(--sim-border);
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(16,36,62,.065);
  overflow: hidden;
}
.card .card-header {
  min-height: 47px;
  padding: 13px 16px !important;
  color: var(--sim-navy);
  background: #fff;
  border-bottom: 1px solid var(--sim-border);
}
.card .card-header h5 { color: var(--sim-navy); font-size: .92rem; font-weight: 800; }
.card .card-footer { background: #f9fbfd; border-top-color: var(--sim-border); }
.sim-map-shell { overflow: hidden; min-height: 440px; background: #fff; border: 1px solid var(--sim-border); border-radius: 14px; box-shadow: 0 7px 24px rgba(16,36,62,.065); }
.sim-map-shell > .card { margin: 0 !important; border: 0; border-radius: 0; box-shadow: none; }
.sim-pilot-row { display: flex; align-items: center; gap: 11px; padding: 11px 15px; color: var(--sim-navy); border-bottom: 1px solid #edf1f5; }
.sim-pilot-row:last-child { border-bottom: 0; }
.sim-pilot-row:hover { background: #f4f8fc; }
.sim-pilot-row img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.sim-pilot-row strong, .sim-pilot-row small { display: block; }
.sim-pilot-row small { color: var(--sim-muted); font-size: .7rem; }
.table { color: var(--sim-navy); }
.table > :not(caption) > * > * { padding: .68rem .7rem; border-bottom-color: #edf1f5; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: #f8fbfe; color: var(--sim-navy); }
.form-control, .form-select, .input-group-text, .select2-container .select2-selection--single {
  min-height: 40px;
  border-color: #dbe5ef;
  border-radius: 9px;
}
.form-control:focus, .form-select:focus { border-color: var(--sim-blue-light); box-shadow: 0 0 0 .2rem rgba(7,87,154,.11); }
.input-group-text { color: var(--sim-blue-dark); background: #eff6fc; font-weight: 700; }
.nav-pills .nav-link { color: var(--sim-blue) !important; background: #eaf4fc !important; border-radius: 9px; }
.nav-pills .active { color: #fff !important; background: var(--sim-blue) !important; }
.nav-tabs { border-bottom-color: var(--sim-border); }
.nav-tabs .nav-link { color: var(--sim-muted) !important; background: transparent !important; border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { color: var(--sim-blue) !important; border-bottom-color: var(--sim-blue); }
.alert { border: 0; border-radius: 11px; }
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--sim-shadow); overflow: hidden; }
.modal .modal-header { color: #fff; background: var(--sim-blue); }
.modal .modal-body, .modal .modal-footer { background: #fff; }
.accordion-item { background: #fff !important; border-color: var(--sim-border); }
.accordion .accordion-button { color: var(--sim-navy) !important; background: #fff !important; box-shadow: none; font-weight: 700; }
.accordion .accordion-button:not(.collapsed) { color: var(--sim-blue) !important; background: #edf5fc !important; }
.sim-login-logo { display: block; width: min(330px, 86%); max-height: 130px; margin: 24px auto 5px; object-fit: contain; }
#footer { position: static; height: auto; padding: 0; color: rgba(255,255,255,.82); background: #073968; font-size: .76rem; }
#footer .sim-footer { background: linear-gradient(135deg, #073968, #042b4f); }
#footer a { color: #fff; }
.pagination .page-link { color: var(--sim-blue); border-color: var(--sim-border); }
.pagination .active .page-link { color: #fff; background: var(--sim-blue); border-color: var(--sim-blue); }
.map-info-box, .map-info-label { background: rgba(255,255,255,.94); }
@media (max-width: 991.98px) {
  #Dispo_NavBar .navbar-collapse { max-height: calc(100vh - 80px); overflow-y: auto; padding: 12px 0; }
  #Dispo_NavBar .navbar-nav { align-items: stretch; }
  #Dispo_NavBar .nav-item { display: block; }
  #Dispo_NavBar .nav-link { justify-content: flex-start; width: 100%; }
  .sim-hero { min-height: 470px; background-position: 58% center; }
  .sim-hero::after { content: ""; position: absolute; inset: 0; background: rgba(241,248,253,.72); }
  .sim-hero .container-xl { z-index: 1; }
  .sim-flight-search { margin-top: -30px; padding-inline: 18px; }
  .sim-search-card .col-lg { border-right: 0; border-bottom: 1px solid var(--sim-border); padding-bottom: 12px; }
}
@media (max-width: 575.98px) {
  .sim-brand-logo { width: 145px; height: 42px; }
  .sim-hero h1 { font-size: 2.65rem; }
  .sim-hero-copy { font-size: .94rem; }
  .sim-stat { min-height: 116px; padding: 14px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .sim-section-heading { align-items: flex-start; flex-direction: column; }
  #page-contents { padding-inline: 12px; }
  #page-contents:has(.sim-hero) { padding-inline: 0; }
}
#footer .card {
  margin: 0 !important;
  color: rgba(255,255,255,.82);
  background: linear-gradient(135deg, #073968, #042b4f);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#footer .card a { color: #fff; }
.badge.bg-primary, .bg-primary { background-color: var(--sim-blue) !important; }
.text-primary { color: var(--sim-blue) !important; }
.progress-bar { background-color: var(--sim-blue); }
.list-group-item { color: var(--sim-navy); border-color: var(--sim-border); }

/* Stronger hierarchy and contrast */
.card {
  border-color: #c6d5e4;
  box-shadow: 0 9px 26px rgba(16, 36, 62, .11);
}
.card:hover { border-color: #adc2d7; }
.card .card-header {
  background: linear-gradient(180deg, #fff 0%, #f1f6fa 100%);
  border-bottom-color: #c9d7e5;
}
.card .card-header a,
.card .card-header h5 a {
  color: var(--sim-blue-dark) !important;
  font-weight: 800;
}
.card .card-header a:hover,
.card .card-header h5 a:hover { color: var(--sim-red) !important; }
.card .card-body { background-color: #fff; }
.table > :not(caption) > * > * { border-bottom-color: #d7e1eb; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: #eaf0f6; }
.table-striped > tbody > tr:nth-of-type(even) > * { background-color: #fff; }
.nav-pills .nav-link {
  border: 1px solid #c8d9e9;
  box-shadow: 0 2px 7px rgba(16, 36, 62, .05);
}
.nav-pills .nav-link:hover {
  color: var(--sim-blue-dark) !important;
  background: #dcebf7 !important;
  border-color: #9ebbd4;
}
.nav-pills .nav-link.active {
  border-color: var(--sim-blue) !important;
  box-shadow: 0 5px 14px rgba(7, 87, 154, .22);
}

/* DisposableSpecial tours */
#activet .card,
#futuret .card,
#closedt .card {
  height: calc(100% - .5rem);
  border: 1px solid #b9cada;
  border-top: 4px solid var(--sim-blue);
  box-shadow: 0 10px 26px rgba(16, 36, 62, .12);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#activet .card:hover,
#futuret .card:hover,
#closedt .card:hover {
  transform: translateY(-3px);
  border-color: #8fabc4;
  box-shadow: 0 16px 34px rgba(16, 36, 62, .17);
}
#activet .card-header,
#futuret .card-header,
#closedt .card-header {
  min-height: 82px;
  padding: 10px 14px !important;
  background: linear-gradient(135deg, #f8fbfe 0%, #e5eff8 100%);
  border-bottom: 1px solid #bdccda;
}
#activet .card-header table,
#futuret .card-header table,
#closedt .card-header table { height: 100%; }
#activet .card-header h5,
#futuret .card-header h5,
#closedt .card-header h5 {
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 800;
}
#activet .card-header h5 a,
#futuret .card-header h5 a,
#closedt .card-header h5 a {
  color: #073f70 !important;
  text-shadow: none;
}
#activet .card-header h5 a:hover,
#futuret .card-header h5 a:hover,
#closedt .card-header h5 a:hover { color: var(--sim-red) !important; }
#activet .card-header img,
#futuret .card-header img,
#closedt .card-header img {
  padding: 4px 8px;
  background: var(--sim-blue);
  border-radius: 6px;
}
#activet .card-body,
#futuret .card-body,
#closedt .card-body {
  color: #152c46;
  background: #fff;
}
#activet .card-body th,
#futuret .card-body th,
#closedt .card-body th {
  color: #0b2745;
  font-weight: 800;
}
#activet .card-body .table-striped > tbody > tr:nth-of-type(odd) > *,
#futuret .card-body .table-striped > tbody > tr:nth-of-type(odd) > *,
#closedt .card-body .table-striped > tbody > tr:nth-of-type(odd) > * {
  background: #e5ebf1;
}
#activet .card-body td[colspan],
#futuret .card-body td[colspan],
#closedt .card-body td[colspan] {
  padding: 14px 12px;
  border-top: 1px solid #c8d5e2;
}
#activet .card-body td[colspan] img,
#futuret .card-body td[colspan] img,
#closedt .card-body td[colspan] img {
  max-width: 100%;
  border: 4px solid #173b60;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(16, 36, 62, .16);
}
