:root {
  --ink: #143244;
  --muted: #526b79;
  --teal: #087f86;
  --line: #d7e5e9;
  --paper: #f5f8fb;
  --shadow: 0 8px 30px #15374c09;
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--paper);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden]:not([hidden="until-found"]) {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: #06767e;
  text-underline-offset: 4px;
}
a:hover {
  color: #054b57;
}
button,
a.button {
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--teal);
  color: white;
  cursor: pointer;
  min-height: 44px;
  padding: 11px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.16s,
    transform 0.12s,
    box-shadow 0.16s;
  line-height: 1.35;
}
button:hover,
.button:hover {
  background: #07646c;
  color: #fff;
  box-shadow: 0 5px 14px #087f8620;
}
button:active,
.button:active,
.pressed {
  transform: scale(0.97);
  filter: brightness(0.87);
}
button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
button[aria-busy="true"] {
  background: #3d6479;
  cursor: wait;
}
button[aria-busy="true"]:after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff60;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.secondary,
button.secondary,
.button.secondary {
  background: #eef5f7;
  color: #155063;
  border-color: var(--line);
}
button.danger {
  background: #ad3547;
}
.quiet,
button.quiet {
  padding: 8px;
  background: transparent;
  color: var(--teal);
  font-size: 0.86rem;
}
button.light,
.button.light {
  background: #fff;
  color: #145c67;
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  width: 100%;
  min-width: 0;
  border: 1px solid #bfcfd6;
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 46px;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-block: 12px;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 5px;
  font-weight: 400;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--teal);
  margin: 3px 0 0;
  flex-shrink: 0;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #50b9c5;
  outline-offset: 3px;
}
.feedback {
  color: #075e53;
  white-space: pre-wrap;
  font-size: 0.94rem;
  margin: 12px 0 0;
}
.feedback:empty {
  display: none;
}
.feedback.error, [data-photo-status].error {
  color: #a82742;
  background: #fff0f2;
  padding: 10px;
  border-radius: 8px;
}
.test-strip {
  background: #fff1d4;
  color: #644400;
  text-align: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
}
.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
  font-size: 19px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 14px;
}
header nav a {
  text-decoration: none;
}
main {
  max-width: 1220px;
  padding: 32px 20px 70px;
  margin: auto;
  min-height: 60vh;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(1.85rem, 4vw, 3.25rem);
}
h2 {
  font-size: 1.55rem;
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 10px 0 18px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 0.82rem;
}
strong {
  font-weight: 750;
}
section {
  margin-bottom: 30px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #113c4a;
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
}
.hero > div {
  padding: 45px;
}
.hero h1 {
  max-width: 500px;
  font-weight: 730;
}
.hero p {
  color: #d5e8ec;
  max-width: 400px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 750;
  display: block;
  margin-bottom: 15px;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h1,
.section-heading h2,
.section-heading h3 {
  margin-bottom: 5px;
}
.section-heading .search {
  width: 260px;
  margin: 0;
}
.trip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.trip {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}
.trip img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  display: block;
}
.trip-body {
  padding: 24px;
}
.trip-body h2 {
  margin: 5px 0 12px;
}
.trip-body h2 a {
  text-decoration: none;
  color: var(--ink);
}
.trip-body p {
  color: var(--muted);
}
.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.price-line strong {
  display: block;
  font-size: 1.35rem;
  color: #087680;
}
.price-line small {
  display: block;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.empty {
  grid-column: 1/-1;
}
.auth {
  max-width: 480px;
  margin: 20px auto 60px;
  padding: 30px;
}
.auth h1 {
  font-size: 2rem;
}
.auth form > button {
  width: 100%;
  margin-top: 10px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-top: 20px;
}
.password-field {
  display: flex;
  position: relative;
}
.password-field input {
  padding-inline-end: 70px;
}
.password-field button {
  position: absolute;
  inset-inline-end: 5px;
  top: 6px;
}
.package-intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: center;
}
.package-intro img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
}
.package-intro h1 {
  font-size: 2.5rem;
  margin: 8px 0 15px;
}
.breadcrumb {
  margin-bottom: 25px;
  font-size: 0.9rem;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: #fff;
}
th {
  text-align: start;
  background: #eaf4f5;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px;
}
td {
  padding: 18px 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td small {
  display: block;
}
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  background: #eaf0f8;
  color: #38567c;
  white-space: nowrap;
}
.badge.green {
  background: #e4f5ed;
  color: #22614a;
}
.badge.amber {
  background: #fff0d5;
  color: #7d5010;
}
.departure-mobile {
  display: none;
}
.disclosures {
  display: grid;
  gap: 10px;
}
.disclosures details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.disclosures details summary {
  padding: 17px 20px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.disclosures details summary::-webkit-details-marker {
  display: none;
}
.disclosures details summary span {
  transition: transform 0.15s;
}
.disclosures details[open] summary span {
  transform: rotate(180deg);
}
.disclosures .green summary {
  background: #eaf7f0;
  color: #27654d;
}
.disclosures .red summary {
  background: #fff0f1;
  color: #a33548;
}
.disclosures .blue summary {
  background: #edf3fe;
  color: #325c8d;
}
.disclosures details > p,
.disclosures details > ul {
  margin: 18px 25px 22px;
  white-space: pre-line;
}
.disclosures li {
  margin-bottom: 9px;
}
details.panel > summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.03rem;
}
details.panel[open] > summary {
  margin-bottom: 20px;
}
details.panel form {
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.wallet {
  padding: 14px 20px;
  border: 1px solid #aacfc4;
  border-radius: 14px;
  background: #e9f5ef;
  min-width: 175px;
}
.wallet span,
.wallet strong {
  display: block;
}
.wallet strong {
  font-size: 1.45rem;
  color: #27634d;
}
.booking-list .panel strong {
  display: block;
  margin-top: 6px;
}
.booking-list .panel p {
  margin-bottom: 4px;
}
.steps {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  color: #57717e;
  flex-wrap: wrap;
}
.steps li:first-child {
  color: #087680;
  font-weight: 700;
}
.room-card {
  border: 1px solid #b9d8dd;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  margin-block: 20px;
}
.room-heading {
  display: flex;
  gap: 15px;
  align-items: end;
}
.room-heading > label {
  flex: 1;
  margin: 0;
}
.room-heading button {
  flex: none;
}
.person {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}
.person h3 {
  color: #196773;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid label {
  min-width: 0;
}
.passenger-date-field {
  font-size: 0.9rem;
  font-weight: 600;
  margin-block: 12px;
}
.passenger-date-picker {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.8fr;
  gap: 7px;
  margin-top: 5px;
}
.passenger-date-picker select {
  font-size: 0.9rem;
  padding-inline: 7px;
}
.optional-guests {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: #f3f6fa;
  border-radius: 12px;
  padding: 12px;
  margin-top: 18px;
}
.optional-guests label {
  flex: 1;
  min-width: 110px;
  margin: 0;
}
.coupon {
  max-width: 600px;
  background: #f0f5ff;
  margin-top: 24px;
}
.sticky-action {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #fffffff5;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 -5px 25px #25435c0a;
  display: flex;
  align-items: center;
  gap: 15px;
}
.total {
  background: linear-gradient(120deg, #113d4f, #166b72);
  color: #fff;
  border: 0;
}
.total h2,
.total strong {
  color: #fff;
}
.total label {
  color: #fff;
}
.total .feedback {
  color: #fff;
}
.total .feedback.error {
  color: #9e253d;
}
.total button {
  background: #fff;
  color: #145763;
}
.total form {
  display: inline-block;
  margin-inline-end: 12px;
}
.total .check {
  margin-block: 18px;
}
.totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-block: 25px;
}
.totals dt {
  color: var(--muted);
}
.totals dd {
  font-weight: 700;
  margin: 0;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}
.actions form {
  margin: 0;
}
.note {
  background: #edf5fa;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #315366;
}
.prose {
  white-space: pre-wrap;
  max-width: 75ch;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.metrics article {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid #4fa8ab;
  border-radius: 14px;
  padding: 18px;
}
.metrics span {
  font-size: 0.85rem;
  color: var(--muted);
}
.metrics strong {
  display: block;
  font-size: 2rem;
}
.metrics article:nth-child(2) {
  border-top-color: #ce9968;
}
.metrics article:nth-child(3) {
  border-top-color: #8983c3;
}
.metrics article:nth-child(4) {
  border-top-color: #ce7788;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-block: 12px;
}
footer {
  background: #133746;
  color: #ddecef;
  padding: 35px max(20px, calc((100% - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
footer a {
  display: inline-block;
  margin: 6px 20px 6px 0;
  color: #cbf3ef;
  font-size: 0.9rem;
}
footer p {
  margin-block: 12px 5px;
}
.skip {
  position: fixed;
  top: -60px;
  left: 10px;
  background: #fff;
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  letter-spacing: 0;
}
@media (max-width: 760px) {
  header {
    padding: 14px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 17px;
  }
  header nav {
    gap: 14px;
    font-size: 13px;
  }
  main {
    padding: 20px 16px 45px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 18px;
  }
  .hero > div {
    padding: 28px 24px;
  }
  .hero img {
    height: 200px;
    min-height: 0;
    order: -1;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.94rem;
  }
  .trip-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .trip-body {
    padding: 18px;
  }
  .trip img {
    height: 220px;
  }
  .trip-body h2 {
    font-size: 1.4rem;
  }
  .price-line .button {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  .section-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .section-heading .search {
    width: 100%;
  }
  .package-intro {
    grid-template-columns: 95px 1fr;
    gap: 16px;
    align-items: start;
  }
  .package-intro img {
    height: 115px;
  }
  .package-intro h1 {
    font-size: 1.6rem;
  }
  .package-intro p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  .package-intro .button {
    font-size: 0.88rem;
  }
  .comparison {
    display: none;
  }
  .departure-mobile {
    display: grid;
    gap: 12px;
  }
  .departure {
    border: 1px solid #acd3d3;
    border-radius: 15px;
    background: #fff;
    padding: 17px;
  }
  .departure:nth-child(3n + 2) {
    border-color: #c6c2e3;
  }
  .departure:nth-child(3n) {
    border-color: #dacfaa;
  }
  .date-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.96rem;
    gap: 8px;
    direction: ltr;
    white-space: nowrap;
  }
  .date-line span {
    color: #527e88;
  }
  .facts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    gap: 10px;
    margin: 12px 0;
  }
  .departure .price-line {
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .departure .price-line strong {
    font-size: 1.15rem;
  }
  .departure .price-line small {
    font-size: 0.74rem;
  }
  .panel {
    padding: 20px;
    border-radius: 15px;
  }
  .auth {
    padding: 24px 20px;
    margin-top: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .room-card {
    padding: 16px;
  }
  .room-heading {
    align-items: center;
  }
  .room-heading button {
    font-size: 0.8rem;
    padding: 8px;
    min-width: 60px;
  }
  .steps {
    font-size: 0.75rem;
    gap: 12px;
  }
  .sticky-action {
    padding: 10px;
    bottom: env(safe-area-inset-bottom);
    flex-wrap: wrap;
  }
  .sticky-action button {
    flex: 1;
  }
  .sticky-action .feedback {
    width: 100%;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metrics article {
    padding: 14px;
  }
  .metrics span {
    font-size: 0.8rem;
  }
  .wallet {
    width: 100%;
  }
  .total form {
    display: block;
    margin: 12px 0;
  }
  .total form button {
    width: 100%;
  }
  .actions {
    flex-direction: column;
  }
  .actions > *,
  .actions form button {
    width: 100%;
  }
  footer {
    flex-direction: column;
    gap: 15px;
    padding: 28px 20px;
  }
  .auth-links {
    gap: 15px;
  }
  .booking-list .section-heading > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  header,
  footer,
  .test-strip,
  .no-print,
  main > a,
  .skip {
    display: none !important;
  }
  body {
    background: white;
    font-size: 12pt;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .voucher {
    box-shadow: none;
    border: 1px solid #aaa;
  }
  button {
    display: none !important;
  }
  section:not(.voucher) {
    display: none !important;
  }
}

.socials {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #dcedf0;
  font-size: 12px;
}
.social img {
  padding: 8px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 12px;
}
.social.inactive {
  opacity: 0.5;
}
.total a {
  color: inherit;
}

/* Let long names, translated controls and balances fit their containers. */
.hero>div,.trip-body,.package-intro>div,.metrics article,.room-heading>label {min-width:0;}
main :is(h1,h2,h3,p,dd,.feedback),footer a {overflow-wrap:anywhere;}
.price-line,.facts,.auth-links {flex-wrap:wrap;}
.price-line>div {min-width:0;}
.table-wrap {max-width:100%;}
.metrics {grid-template-columns:repeat(4,minmax(0,1fr));}
@media(max-width:760px) {
  header nav a {display:inline-flex;align-items:center;min-height:44px;}
  .metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
  .metrics strong {font-size:clamp(1.25rem,5vw,2rem);overflow-wrap:anywhere;}
  .passenger-date-picker select {font-size:16px;}
  .room-heading {flex-wrap:wrap;}
  .room-heading>label {flex:1 1 160px;}
  .date-line {white-space:normal;}
  .date-line>b {min-width:0;overflow-wrap:anywhere;}
}
@media(max-width:380px) {
  .price-line>.button {width:100%;}
  .package-intro {grid-template-columns:minmax(0,1fr);}
  .package-intro img {width:100%;height:160px;}
}

/* Account and agency controls share the marketplace's responsive shell. */
.account-nav{display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0 1.75rem;max-width:100%;}
.account-nav a{display:inline-flex;align-items:center;min-height:44px;padding:.55rem .8rem;border:1px solid #cbdce2;border-radius:9px;background:#fff;text-decoration:none;}
.registration-auth{max-width:850px;}
.profile-photo,.agency-logo{width:58px;height:58px;object-fit:contain;border-radius:8px;background:#fff;}
.invoice-logo{max-width:180px;max-height:90px;object-fit:contain;}
.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem;}
.permission-grid fieldset{min-width:0;border:1px solid #cadce2;border-radius:10px;padding:1rem;}
[data-registration] fieldset{min-width:0;}
[data-registration] [hidden],fieldset[hidden],img[hidden]{display:none!important;}
fieldset{margin:1rem 0;border:1px solid #cadce2;border-radius:10px;padding:1rem;}
legend{font-weight:700;padding:0 .4rem;}
select[multiple]{min-height:110px;}
.booking-contact p{font-size:.95rem;line-height:1.6;}
.account-nav+section,form,fieldset{max-width:100%;}
@media(max-width:600px){.registration-auth{padding:1rem;}.agency-logo{width:42px;height:42px;}.account-nav a{flex:1 1 auto;justify-content:center;}fieldset{padding:.75rem;}.permission-grid{grid-template-columns:1fr;}}

.profile-photo[data-photo-format="square"]{width:96px;height:96px;object-fit:contain;}
.profile-photo[data-photo-format="rectangle"]{width:240px;max-width:100%;height:80px;object-fit:contain;}
