/* Base reset aligned with monsite.taxi + extras for calc / languages / modals */
:root {
  --ink: #28241f;
  --paper: #f8f5ee;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.tx-brand img {
  width: auto !important;
  height: 68px !important;
  max-width: 170px !important;
  object-fit: contain !important;
  background: transparent !important;
  transform: scale(var(--tx-logo-scale, 1.15));
  transform-origin: left center;
}
.tx-brand span strong {
  display: none;
}
.tx-brand span small {
  margin-top: 0;
}

.tx-lang {
  display: flex;
  gap: 4px;
  align-items: center;
}
.tx-lang button {
  border: 1px solid #d6d0c4;
  background: #fff;
  border-radius: 4px;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #24221f;
}
.tx-lang button.active {
  background: #24221f;
  border-color: #24221f;
  color: #fff;
}

.tx-calc-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 8px;
}
.maison-reservation #calc-form .tx-route-field,
.maison-reservation #calc-form .sim-banner,
.maison-reservation #calc-form .fare-board,
.maison-reservation #calc-form .tx-form-note,
.maison-reservation #calc-form .tx-check,
.maison-reservation #calc-form .tx-submit {
  grid-column: 1 / -1;
}
.maison-reservation #request-form .tx-route-field {
  grid-column: 1 / -1;
}
.tx-calc-tabs button {
  border: 1px solid #d8cdbb;
  background: rgba(255,255,255,.72);
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, background .18s, color .18s, border-color .18s;
}
.tx-calc-tabs button:hover { transform: translateY(-1px); }
.tx-calc-tabs button.active {
  background: var(--tx-brand, #24221f);
  border-color: var(--tx-brand, #24221f);
  color: #fff;
}
.tx-booking-card.is-sim-mode .tx-calc-tabs button[data-pane="calc"].active {
  background: #0f6e56;
  border-color: #0f6e56;
}

.tx-estimate {
  grid-column: 1 / -1;
  background: #f3eee3;
  border: 1px solid #e0d4bf;
  border-radius: 5px;
  padding: 16px;
  display: none;
}
.tx-estimate.show { display: block; }
.tx-estimate strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 600;
  margin: 4px 0 8px;
}
.tx-estimate ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: #6a6256;
  font-size: 13px;
}
.tx-estimate li + li { margin-top: 4px; }

.tx-booking-premium {
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,252,248,.97), rgba(255,252,248,.94)),
    url("../img/corolla-paris.png") center/cover !important;
  box-shadow: 0 30px 80px rgba(36, 34, 31, 0.16) !important;
  overflow: visible;
  transition: background .25s ease, box-shadow .25s ease;
}
.tx-booking-premium.is-sim-mode {
  background:
    linear-gradient(165deg, rgba(232, 247, 241, 0.97) 0%, rgba(255, 252, 246, 0.96) 42%, rgba(255, 248, 236, 0.96) 100%),
    url("../img/corolla-paris.png") center/cover !important;
  box-shadow: 0 30px 80px rgba(15, 110, 86, 0.18) !important;
  outline: 2px solid rgba(15, 110, 86, 0.18);
}
.tx-booking-premium .tx-booking-heading h2 {
  font-size: clamp(28px, 3vw, 40px) !important;
}
.sim-banner {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(15, 110, 86, 0.12), rgba(213, 188, 145, 0.22)),
    #fff;
  border: 1px solid rgba(15, 110, 86, 0.18);
  margin-bottom: 4px;
}
.sim-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0f6e56;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tx-sim-lead {
  grid-column: 1 / -1;
  color: #3d5a50;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
#calc-form input,
#calc-form select {
  border-color: #b7d5c9 !important;
  background: #f4fbf8 !important;
}
#calc-form .maps-input[data-verified="1"] {
  border-color: #0f6e56 !important;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.14);
}
.sim-seat {
  display: inline-flex !important;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: #fff7ea;
  border: 1px solid #e4c89a;
  color: #6b4e24;
}
.sim-cta {
  background: linear-gradient(135deg, #0f6e56, #14906f) !important;
  border-color: #0f6e56 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(15, 110, 86, 0.28);
}
.maps-suggest-wrap {
  position: relative;
  width: 100%;
}
.maps-suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #d8cdbb;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(36, 34, 31, 0.14);
  max-height: 240px;
  overflow: auto;
}
.maps-suggest-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  border-bottom: 1px solid #f0ebe2;
}
.maps-suggest-item:hover {
  background: #eef8f3;
}
.fare-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.fare-board article {
  background: #fff;
  border: 1px solid #e4d8c4;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
.fare-board .fare-distance {
  background: linear-gradient(180deg, #e8f7f1, #fff);
  border-color: #9dceb9;
}
.fare-board .fare-duration {
  background: linear-gradient(180deg, #fff4e4, #fff);
  border-color: #e4c89a;
}
.fare-board span {
  display: block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: #7a705f;
  margin-bottom: 8px;
}
.fare-board strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  color: #24221f;
}
.fare-board small {
  display: block;
  margin-top: 8px;
  color: #8d6b43;
  font-size: 12px;
}
.fare-board .fare-distance span,
.fare-board .fare-distance small { color: #0f6e56; }
.fare-board .fare-duration span,
.fare-board .fare-duration small { color: #8d6b43; }
.fare-board .fare-price {
  background: linear-gradient(145deg, #0f6e56, #14906f 55%, #1aa37e);
  border-color: #0f6e56;
  box-shadow: 0 14px 30px rgba(15, 110, 86, 0.25);
}
.fare-board .fare-price span,
.fare-board .fare-price small { color: #d8f5ea; }
.fare-board .fare-price strong { color: #fff; }

.tx-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 16, 14, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}
.tx-modal.show { display: grid; }
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}
body.modal-open .tx-floating-wa,
body.modal-open .tx-mobile-contact {
  visibility: hidden !important;
  pointer-events: none !important;
}
.tx-confirm-card {
  width: min(640px, 100%) !important;
  max-height: min(86vh, 760px);
  max-height: min(86dvh, 760px);
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column;
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.35) !important;
  background:
    linear-gradient(180deg, #fffefb 0%, #f7f1e8 100%) !important;
}
#prepared-summary {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.confirm-hero {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 22px 16px;
  background:
    linear-gradient(135deg, rgba(15, 110, 86, 0.12), rgba(213, 188, 145, 0.28)),
    #fff;
  border-bottom: 1px solid rgba(15, 110, 86, 0.12);
}
.confirm-hero img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #eadfce;
  padding: 8px;
}
.confirm-kicker {
  margin: 0 0 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: #0f6e56;
  font-weight: 700;
}
.confirm-hero h3 {
  margin: 0 0 6px;
  font-size: 28px;
}
.confirm-hero p:last-child {
  margin: 0;
  color: #6a6256;
  font-size: 14px;
}
.confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 22px;
}
.confirm-grid div {
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(36, 34, 31, 0.04);
  min-width: 0;
}
.confirm-grid span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a705f;
  margin-bottom: 6px;
}
.confirm-grid strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.confirm-price {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #0f6e56, #14906f) !important;
  border-color: #0f6e56 !important;
  box-shadow: 0 14px 28px rgba(15, 110, 86, 0.22);
}
.confirm-price span { color: #d8f5ea !important; }
.confirm-price strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 30px !important;
}
.confirm-raw {
  margin: 0 22px 8px;
  border-top: 1px solid #eadfce;
  padding-top: 10px;
}
.confirm-raw summary {
  cursor: pointer;
  color: #6a6256;
  font-size: 13px;
}
.confirm-raw pre {
  margin-top: 10px;
  white-space: pre-wrap;
  background: #f8f5ee;
  border: 1px solid #e5ddd0;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  max-height: 18vh;
  overflow: auto;
}
.confirm-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1.1fr auto;
  gap: 10px;
  padding: 12px 22px 18px;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(255,254,251,.92), #fffefb 40%);
  border-top: 1px solid #eadfce;
}
.confirm-actions a,
.confirm-actions button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px !important;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.confirm-actions a:hover,
.confirm-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.confirm-wa {
  background: #128c7e !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(18, 140, 126, 0.28);
}
.confirm-wa svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}
.confirm-mail {
  background: #8d6b43 !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(141, 107, 67, 0.22);
}
.confirm-close {
  background: #fff !important;
  border: 1px solid #cfc4b2 !important;
  color: #24221f !important;
  min-width: 110px;
}
.tx-booking-premium .tx-booking-form {
  position: relative;
  z-index: 1;
}
.tx-sim-form .tx-route-field {
  grid-column: span 1;
}
.maison-reservation .maps-input[data-verified="1"] {
  border-color: #8d6b43;
  box-shadow: 0 0 0 3px rgba(141, 107, 67, 0.12);
}

@media (max-width: 700px) {
  .fare-board {
    grid-template-columns: 1fr;
  }
  .tx-modal#modal,
  .tx-modal#ask-modal {
    align-items: end;
    justify-items: center;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  }
  .tx-confirm-card,
  .tx-modal#ask-modal .tx-modal-card {
    width: min(100%, 520px) !important;
    max-height: min(78vh, 640px);
    max-height: min(78dvh, 640px);
    border-radius: 20px !important;
    margin-bottom: 0;
  }
  .confirm-hero {
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 14px 14px 10px;
  }
  .confirm-hero img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    padding: 4px;
  }
  .confirm-hero h3 {
    font-size: 20px;
    line-height: 1.15;
  }
  .confirm-hero p:last-child {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .confirm-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px 6px;
  }
  .confirm-grid div { padding: 10px; }
  .confirm-grid strong {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .confirm-price strong { font-size: 24px !important; }
  .confirm-raw { margin: 0 14px 6px; }
  .confirm-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  }
  .confirm-wa {
    grid-column: 1 / -1;
    min-height: 48px;
  }
  .confirm-mail,
  .confirm-close {
    min-height: 46px;
    min-width: 0;
    font-size: 13px;
    padding: 0 10px;
  }
}

.tx-gallery {
  padding-block: 80px;
}
.tx-gallery header { margin-bottom: 28px; }
.tx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tx-gallery-grid button {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.tx-gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.tx-gallery-grid figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--tx-muted, #6a6256);
}

.tx-modal-card {
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  max-height: min(86dvh, 760px);
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe1d7;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 16px 45px #00000022;
  -webkit-overflow-scrolling: touch;
}
.tx-modal-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.tx-modal-card pre {
  white-space: pre-wrap;
  background: #f8f5ee;
  border: 1px solid #e5ddd0;
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  max-height: 40vh;
  overflow: auto;
}
.tx-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tx-modal-card .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  font-size: 12px;
  font-weight: 700;
}
.tx-modal-card input,
.tx-modal-card textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ccd6cd;
  border-radius: 5px;
  background: #f8faf7;
  padding: 10px 12px;
}
.tx-modal-card textarea { min-height: 110px; resize: vertical; }
.tx-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.taxi-experience h1,
.taxi-experience h2 { white-space: pre-line; }
.tx-header .tx-lang { margin-right: 4px; }

@media (max-width: 980px) {
  .tx-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-lang { order: -1; }
}
@media (max-width: 700px) {
  .tx-gallery-grid { grid-template-columns: 1fr; }
}
