/* MAT quote-only pages. No styles are applied to paid booking tours. */
body.mat-quote-tour #booking_form_block,
body.mat-quote-tour form#booking_form,
body.mat-quote-tour .babe_booking_form_block { display: none !important; }
body.mat-quote-tour #mat-quote-form-source,
body.mat-quote-tour .mat-quote-form-source { box-sizing: border-box; width: 100%; }
.mat-quote-form-source *, .mat-quote-form-source *::before, .mat-quote-form-source *::after { box-sizing: border-box; }
.mat-qr-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #e8eceb; border-radius: 20px; box-shadow: 0 14px 38px rgba(4,34,46,.095); color: #133943; font-family: inherit; margin: 32px 0; }
.mat-quote-form-source.mat-quote-moved .mat-qr-card { margin: 0; }
.mat-qr-card::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, #e57d48, #edaa70); }
.mat-qr-top { padding: 27px 28px 20px; background: linear-gradient(135deg, #f4f9f8 0%, #fff 78%); border-bottom: 1px solid #edf0ee; }
.mat-qr-eyebrow { display: block; text-transform: uppercase; letter-spacing: .085em; font-size: 10px; font-weight: 800; color: #c56b3b; margin-bottom: 10px; line-height: 1.7; }
.mat-qr-top h3 { color: #073b49 !important; font-size: clamp(20px, 1.8vw, 25px) !important; line-height: 1.25 !important; letter-spacing: -.03em; margin: 0 0 10px !important; font-weight: 800; }
.mat-qr-top p { color: #536a6f; margin: 0; font-size: 13px; line-height: 1.7; }
.mat-qr-body { padding: 24px 28px 26px; }
.mat-qr-points { display: flex; flex-wrap: wrap; gap: 7px 15px; margin: 0 0 20px; font-size: 11px; font-weight: 700; color: #126255; }
.mat-qr-form { display: flex; flex-direction: column; gap: 14px; }
.mat-qr-field { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; font-weight: 400; }
.mat-qr-field > span { display: block; color: #193d48; font-size: 12px; font-weight: 700; line-height: 1.4; }
.mat-qr-field b { color: #db7547; font-weight: 700; }
.mat-qr-field em { font-style: normal; font-weight: 500; color: #8a989b; font-size: 11px; }
body.mat-quote-tour .mat-qr-field input,
body.mat-quote-tour .mat-qr-field select,
body.mat-quote-tour .mat-qr-field textarea { box-sizing: border-box; width: 100% !important; max-width: 100% !important; min-width: 0; display: block; appearance: auto; background: #fafcfb !important; color: #183a42 !important; border: 1px solid #d8e2df !important; border-radius: 9px !important; font: inherit !important; font-size: 13px !important; line-height: 1.4 !important; padding: 11px 12px !important; height: auto !important; min-height: 45px; margin: 0 !important; box-shadow: none !important; transition: border-color .2s, box-shadow .2s; }
body.mat-quote-tour .mat-qr-field textarea { resize: vertical; min-height: 94px; }
body.mat-quote-tour .mat-qr-field input:focus,
body.mat-quote-tour .mat-qr-field select:focus,
body.mat-quote-tour .mat-qr-field textarea:focus { outline: none !important; border-color: #14868a !important; box-shadow: 0 0 0 3px rgba(20,134,138,.11) !important; }
body.mat-quote-tour .mat-qr-field input::placeholder, body.mat-quote-tour .mat-qr-field textarea::placeholder { color: #98a7a7; opacity: 1; }
.mat-qr-two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.mat-qr-three { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.mat-qr-three input { text-align: center; }
.mat-qr-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.55; color: #627477; cursor: pointer; font-weight: 400; margin: 2px 0; }
body.mat-quote-tour .mat-qr-consent input { accent-color: #0b5360; flex: 0 0 auto; width: 16px !important; height: 16px; margin: 1px 0 0 !important; }
body.mat-quote-tour .mat-qr-submit { width: 100%; border: 0; border-radius: 10px; padding: 15px 16px; min-height: 50px; margin: 2px 0 0; background: #e2804b; color: #fff; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 7px 18px rgba(226,128,75,.17); transition: transform .15s, background .2s; }
body.mat-quote-tour .mat-qr-submit:hover { background: #d36f3a; transform: translateY(-1px); color: #fff; }
body.mat-quote-tour .mat-qr-submit:focus-visible { outline: 3px solid #0b6472; outline-offset: 3px; }
.mat-qr-footnote { font-size: 10px; color: #7b8c8d; text-align: center; line-height: 1.6; margin: -2px 0 0 !important; }
.mat-qr-feedback { background: #f0fbf7; border: 1px solid #afd9c9; border-radius: 10px; color: #205743; margin: 18px 24px 0; padding: 14px 16px; font-size: 12px; line-height: 1.5; }
.mat-qr-feedback p { margin: 5px 0 0; }
.mat-qr-feedback.is-error { background: #fff7f4; border-color: #f4c7af; color: #843a1f; }
.mat-qr-trap { position: absolute !important; left: -10000px !important; top: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden; }
.mat-qr-original-hidden { display: none !important; }
.mat-quote-form-source.mat-quote-moved { margin: 0; }
@media(max-width: 1100px) { .mat-qr-top { padding: 21px 20px 18px; } .mat-qr-body { padding: 21px 20px; } .mat-qr-two { grid-template-columns: 1fr; } }
@media(max-width: 570px) { .mat-qr-card { border-radius: 14px; margin: 25px 0; } .mat-qr-top { padding: 22px 18px 17px; } .mat-qr-body { padding: 20px 18px 24px; } .mat-qr-two { grid-template-columns: 1fr; } .mat-qr-three { gap: 7px; } .mat-qr-points { font-size: 10px; } }

/* V1.1 — A readable compact Triply sidebar CTA; full form opens in a spacious dialog.
   These rules are scoped to quote-only tours. Paid booking cards retain their styles. */
body.mat-quote-tour .mat-qr-side-card,
body.mat-quote-tour .mat-qr-side-card * { box-sizing: border-box; }
body.mat-quote-tour .mat-qr-side-card {
  width:100%; min-width:0; overflow:hidden; margin:0 0 28px;
  background:#fff; border:1px solid #e5ebeb; border-radius:18px;
  box-shadow:0 12px 36px rgba(2,35,48,.10); color:#093d4b;
  font-family:inherit; text-align:left;
}
body.mat-quote-tour .mat-qr-side-card::before {
  content:""; display:block; height:5px; background:#e2824d;
}
body.mat-quote-tour .mat-qr-side-head { padding:23px 22px 16px; background:linear-gradient(145deg,#f2f8f7,#fff 80%); }
body.mat-quote-tour .mat-qr-side-kicker {
  display:block; color:#c46c3d; font-size:10px; font-weight:800;
  letter-spacing:.075em; line-height:1.5; margin-bottom:10px;
}
body.mat-quote-tour .mat-qr-side-head h3 {
  color:#093b49 !important; font-size:clamp(19px, 2vw, 23px) !important;
  line-height:1.28 !important; font-weight:800; margin:0 0 10px !important;
  letter-spacing:-.025em; overflow-wrap:normal;
}
body.mat-quote-tour .mat-qr-side-head p {
  font-size:12px; line-height:1.7; color:#526b70; margin:0 !important; overflow-wrap:normal;
}
body.mat-quote-tour .mat-qr-side-bottom { padding:18px 22px 22px; }
body.mat-quote-tour .mat-qr-side-perk { color:#155c51; font-size:12px; line-height:1.55; font-weight:700; margin:0 0 6px !important; }
body.mat-quote-tour .mat-qr-side-perk span { margin-right:5px; color:#168072; }
body.mat-quote-tour .mat-qr-open {
  display:block; width:100% !important; max-width:100%; min-height:46px;
  background:#e2824d !important; color:#fff !important; border:0 !important;
  padding:12px 10px !important; border-radius:9px !important;
  font-size:13px !important; font-weight:800 !important; line-height:1.3 !important;
  white-space:normal; text-align:center; cursor:pointer;
  box-shadow:0 8px 18px rgba(226,130,77,.17); margin:19px 0 9px !important;
}
body.mat-quote-tour .mat-qr-open:hover { background:#cc6d3b !important; }
body.mat-quote-tour .mat-qr-open:focus-visible { outline:3px solid #0b7480; outline-offset:3px; }
body.mat-quote-tour .mat-qr-side-caption { font-size:10px; line-height:1.55; text-align:center; color:#788c8e; margin:0 !important; }

/* The original tour form remains hidden only on tours using this plugin. */
body.mat-quote-tour .mat-qr-original-hidden { display:none !important; }

/* Focused quote dialog, inserted directly under <body> to avoid sidebar clipping. */
body.mat-quote-tour .mat-qr-modal { display:none; position:fixed; z-index:2147483000; inset:0; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; }
body.mat-quote-tour .mat-qr-modal.is-open { display:flex; }
body.mat-quote-tour .mat-qr-backdrop { position:absolute; inset:0; background:rgba(6,32,43,.74); backdrop-filter:blur(5px); }
body.mat-quote-tour .mat-qr-dialog {
  position:relative; width:min(790px,100%); min-width:0; max-height:calc(100dvh - 40px);
  background:#fff; border-radius:18px; box-shadow:0 28px 90px rgba(3,21,31,.35);
  overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:thin; outline:none;
}
body.mat-quote-tour.mat-qr-dialog-open { overflow:hidden !important; }
body.mat-quote-tour .mat-qr-dialog-inner { min-width:0; }
body.mat-quote-tour .mat-qr-close {
  position:sticky; float:right; top:12px; right:12px; z-index:2; margin:12px 12px -56px 0;
  width:38px; height:38px; border-radius:50% !important; background:#fff !important;
  border:1px solid #d8e1e0 !important; box-shadow:0 2px 10px rgba(0,0,0,.08);
  color:#2b525c !important; font-size:27px !important; line-height:1 !important;
  text-align:center; cursor:pointer;
}
body.mat-quote-tour .mat-qr-close:hover { color:#0b3a46 !important; background:#eef6f4 !important; }
body.mat-quote-tour .mat-qr-close:focus-visible { outline:3px solid #0c8691; outline-offset:2px; }
body.mat-quote-tour .mat-quote-form-source.mat-qr-in-modal { width:100%; min-width:0; }
body.mat-quote-tour .mat-quote-form-source.mat-qr-in-modal .mat-qr-card {
  width:100%; margin:0 !important; border:0; border-radius:0; box-shadow:none; overflow:visible;
}
body.mat-quote-tour .mat-qr-modal .mat-qr-top { padding:30px 36px 22px; padding-right:72px; }
body.mat-quote-tour .mat-qr-modal .mat-qr-body { padding:24px 36px 34px; }
body.mat-quote-tour .mat-qr-modal .mat-qr-top h3 { font-size:25px !important; }
body.mat-quote-tour .mat-qr-modal .mat-qr-eyebrow { font-size:11px; }
body.mat-quote-tour .mat-qr-modal .mat-qr-top p { font-size:14px; line-height:1.6; }
body.mat-quote-tour .mat-qr-modal .mat-qr-field>span { font-size:13px; }
body.mat-quote-tour .mat-qr-modal .mat-qr-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
body.mat-quote-tour .mat-qr-modal .mat-qr-three { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
body.mat-quote-tour .mat-qr-modal .mat-qr-field input,
body.mat-quote-tour .mat-qr-modal .mat-qr-field select,
body.mat-quote-tour .mat-qr-modal .mat-qr-field textarea {
  font-size:14px !important; min-height:46px; padding:11px 14px !important; min-width:0 !important;
}
body.mat-quote-tour .mat-qr-modal .mat-qr-consent { font-size:13px; }
body.mat-quote-tour .mat-qr-modal .mat-qr-submit { font-size:15px; min-height:51px; }
body.mat-quote-tour .mat-qr-modal .mat-qr-footnote { font-size:11px; }
body.mat-quote-tour .mat-qr-modal .mat-qr-feedback { outline:none; }
@media (max-width:700px) {
  body.mat-quote-tour .mat-qr-modal { padding:0; align-items:stretch; }
  body.mat-quote-tour .mat-qr-dialog { width:100%; max-height:100dvh; border-radius:0; }
  body.mat-quote-tour .mat-qr-modal .mat-qr-top { padding:32px 22px 20px; padding-right:62px; }
  body.mat-quote-tour .mat-qr-modal .mat-qr-body { padding:23px 22px 30px; }
  body.mat-quote-tour .mat-qr-modal .mat-qr-two { grid-template-columns:1fr; gap:14px; }
  body.mat-quote-tour .mat-qr-modal .mat-qr-three { gap:10px; }
  body.mat-quote-tour .mat-qr-modal .mat-qr-top h3 { font-size:22px !important; }
}
@media (max-width:360px) {
  body.mat-quote-tour .mat-qr-side-head { padding:20px 16px 15px; }
  body.mat-quote-tour .mat-qr-side-bottom { padding:18px 16px; }
  body.mat-quote-tour .mat-qr-modal .mat-qr-body { padding:20px 16px 28px; }
  body.mat-quote-tour .mat-qr-modal .mat-qr-top { padding:26px 16px 18px; padding-right:60px; }
  body.mat-quote-tour .mat-qr-modal .mat-qr-three { gap:6px; }
  body.mat-quote-tour .mat-qr-modal .mat-qr-field input[type="number"] { padding:9px 5px !important; }
}
@media (prefers-reduced-motion:reduce) {
  body.mat-quote-tour .mat-qr-modal *, body.mat-quote-tour .mat-qr-open { transition:none !important; scroll-behavior:auto !important; }
}

/* MAT Quote Requests v1.2 — family-specific input section. */
body.mat-quote-tour .mat-qr-family-details {margin:0;display:grid;gap:10px;min-width:0;}
body.mat-quote-tour .mat-qr-family-details.is-hidden {display:none;}
body.mat-quote-tour .mat-qr-family-details .mat-qr-two {align-items:end;}
body.mat-quote-tour .mat-qr-family-hint {margin:-5px 0 1px !important;font-size:11px;line-height:1.55;color:#667d80;}

/* Dedicated quote-only cards for the Tours List Elementor page. */
.mat-qr-catalog, .mat-qr-catalog * {box-sizing:border-box;}
.mat-qr-catalog {font-family:inherit;width:100%;max-width:1250px;margin:40px auto 44px;padding:0 8px;color:#083b48;}
.mat-qr-catalog-head {margin-bottom:25px;}
.mat-qr-catalog-kicker {color:#c56c3c;font-size:11px;font-weight:800;letter-spacing:.14em;}
.mat-qr-catalog-head h2 {font-family:inherit;font-size:clamp(23px,3vw,33px);font-weight:800;letter-spacing:-.03em;line-height:1.25;color:#0a3b49;margin:8px 0 8px;}
.mat-qr-catalog-head p {font-family:inherit;font-size:15px;line-height:1.6;color:#657679;margin:0;}
.mat-qr-catalog-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch;}
.mat-qr-catalog-item {display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e9eded;border-radius:18px;box-shadow:0 10px 25px rgba(17,51,63,.06);overflow:hidden;}
.mat-qr-catalog-image {display:block;width:100%;height:225px;overflow:hidden;background:#eaf2f2;text-decoration:none;}
.mat-qr-catalog-image img.mat-qr-catalog-thumb {display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease;}
.mat-qr-catalog-image:hover img {transform:scale(1.03);}
.mat-qr-catalog-placeholder {display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:5px;background:linear-gradient(135deg,#e4f0ed,#cbdedb);color:#083b48;}
.mat-qr-catalog-placeholder span {font-size:60px;font-weight:900;line-height:1;letter-spacing:-.08em;}
.mat-qr-catalog-placeholder small {font-size:12px;font-weight:600;}
.mat-qr-catalog-info {padding:22px 24px 24px;display:flex;flex:1;flex-direction:column;gap:12px;min-width:0;}
.mat-qr-catalog-meta {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;color:#0d655d;font-size:11px;font-weight:800;}
.mat-qr-catalog-meta span:last-child {background:#f2f8f5;color:#13675a;border-radius:20px;padding:5px 10px;}
.mat-qr-catalog-item h3 {font-family:inherit;font-size:21px;font-weight:800;line-height:1.35;margin:0;color:#0a3947;overflow-wrap:anywhere;}
.mat-qr-catalog-item h3 a {color:inherit !important;text-decoration:none !important;}
.mat-qr-catalog-item h3 a:hover {color:#c96b39 !important;}
.mat-qr-catalog-info>p {font-family:inherit;color:#66787a;font-size:13px;line-height:1.7;margin:0 0 12px;flex:1;}
.mat-qr-catalog-cta {display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;border-radius:10px;padding:12px 14px;background:#e0804b;color:#fff !important;font-weight:800;font-size:13px;text-align:center;text-decoration:none !important;transition:background .2s;}
.mat-qr-catalog-cta:hover {background:#ce6c39;color:#fff !important;}
.mat-qr-catalog-cta:focus-visible {outline:3px solid #0b6773;outline-offset:3px;}
@media(max-width:767px) {.mat-qr-catalog {margin:28px auto;padding:0 8px;}.mat-qr-catalog-grid {grid-template-columns:1fr;gap:18px;}.mat-qr-catalog-image {height:200px;}.mat-qr-catalog-info {padding:20px;}}
@media(prefers-reduced-motion:reduce){.mat-qr-catalog-image img,.mat-qr-catalog-cta {transition:none;}}
