/* Marsata Phase 5 — secondary discovery pages & restrained cross-role usability polish. */
body.ms5-discovery-body.ui-customer .site-main { width:100%; max-width:none; margin:0; padding:0 0 48px; }
body.ms5-discovery-body .ms5-discovery { color:#173e37; background:#f7faf7; min-width:0; padding-bottom:45px; }
body.ms5-discovery-body .ms5-hero { background:linear-gradient(90deg,rgba(7,55,48,.96),rgba(11,72,62,.87) 55%,rgba(13,75,67,.40)),url('../images/home/marsata-hero-landscape.svg') center 45%/cover no-repeat; color:#fff; isolation:isolate; position:relative; overflow:hidden; }
body.ms5-discovery-body .ms5-hero-inner { width:min(1200px,100%); padding:clamp(26px,4.5vw,64px) clamp(18px,4vw,42px) clamp(34px,5.2vw,72px); margin:auto; }
body.ms5-discovery-body .ms5-hero-compact .ms5-hero-inner { padding-block:clamp(26px,4vw,52px) clamp(33px,4.6vw,60px); }
body.ms5-discovery-body .ms5-crumb { display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:clamp(22px,4vw,43px);font-size:13px;font-weight:650;color:#e1f2ed; }
body.ms5-discovery-body .ms5-crumb a { color:#fff;text-decoration:none; }
body.ms5-discovery-body .ms5-crumb a:hover { text-decoration:underline;text-underline-offset:3px; }
body.ms5-discovery-body .ms5-eyebrow { display:block;color:#ffc2ad;letter-spacing:.15em;font-size:11px;font-weight:850;margin-bottom:12px; }
body.ms5-discovery-body .ms5-hero h1 { color:#fff!important; font-size:clamp(36px,5.5vw,67px)!important;letter-spacing:-.05em!important;line-height:1.08;max-width:750px;margin:0!important;font-weight:850; }
body.ms5-discovery-body .ms5-hero h1 em { color:#ffbcaa;font-style:normal; }
body.ms5-discovery-body .ms5-hero p { max-width:610px;color:#e2f1ed;font-size:clamp(15px,1.4vw,18px);line-height:1.7;margin:16px 0 0; }
body.ms5-discovery-body .ms5-hero-actions { display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:24px; }
body.ms5-discovery-body .ms5-hero-button,body.ms5-discovery-body .ms5-button { background:#e9795f; color:#fff!important; border:1px solid #e9795f;border-radius:12px;padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;text-decoration:none;font-weight:800;font-size:14px; }
body.ms5-discovery-body .ms5-hero-button:hover,body.ms5-discovery-body .ms5-button:hover { background:#cc6249;border-color:#cc6249; }
body.ms5-discovery-body .ms5-hero-link { color:#fff;font-size:14px;font-weight:750;padding:12px;text-underline-offset:3px; }
body.ms5-discovery-body .ms5-hero-link:hover { text-decoration:underline; }
body.ms5-discovery-body .ms5-content,body.ms5-discovery-body .ms5-crosslink { width:min(1200px,100%);margin-inline:auto;padding-inline:clamp(18px,4vw,42px); }
body.ms5-discovery-body .ms5-content { padding-block:clamp(28px,4vw,55px); }
body.ms5-discovery-body .ms5-section-head { display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:14px 24px;margin-bottom:23px; }
body.ms5-discovery-body .ms5-kicker { color:#d46b53;font-size:11px;letter-spacing:.13em;font-weight:850; }
body.ms5-discovery-body .ms5-section-head h2 { color:#143f36!important;letter-spacing:-.035em!important;font-size:clamp(26px,3.4vw,38px)!important;margin:6px 0 4px;line-height:1.14; }
body.ms5-discovery-body .ms5-section-head p { color:#5b7069;line-height:1.6;font-size:15px;margin:0; }
body.ms5-discovery-body .ms5-count { border-radius:30px;background:#e9f5ee;color:#215c4c;font-size:13px;font-weight:800;padding:10px 14px;white-space:nowrap; }
body.ms5-discovery-body .ms5-category-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px; }
body.ms5-discovery-body .ms5-category-card { display:flex; flex-direction:column;overflow:hidden;border:1px solid #dce9e1;border-radius:20px;background:#fff;box-shadow:0 9px 28px #10382a0b;text-decoration:none;color:#153f35;transition:transform .18s ease,box-shadow .18s ease; }
body.ms5-discovery-body .ms5-category-card:hover { transform:translateY(-3px);box-shadow:0 15px 32px #10382a1c; }
body.ms5-discovery-body .ms5-category-cover { display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#d1ece3,#bee6e3 55%,#ffe2c4); }
body.ms5-discovery-body .ms5-category-cover img { width:100%;height:100%;object-fit:cover;transition:transform .24s ease; }
body.ms5-discovery-body .ms5-category-card:hover .ms5-category-cover img { transform:scale(1.045); }
body.ms5-discovery-body .ms5-category-decoration { color:#1c806a;font-size:68px;line-height:1;opacity:.75; }
body.ms5-discovery-body .ms5-category-body { display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;padding:19px 20px; }
body.ms5-discovery-body .ms5-category-body strong { font-size:19px;line-height:1.3;overflow-wrap:anywhere; }
body.ms5-discovery-body .ms5-category-body>span { font-weight:750;font-size:13px;color:#0f7660; }
body.ms5-discovery-body .ms5-tour-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch; }
body.ms5-discovery-body .ms5-tour-grid .tour-card { border-radius:18px;gap:0;box-shadow:0 8px 26px #163d300b; }
body.ms5-discovery-body .ms5-tour-grid .tour-media { height:205px; }
body.ms5-discovery-body .ms5-tour-grid .tour-media img { width:100%;height:100%;object-fit:cover; }
body.ms5-discovery-body .ms5-tour-grid .tour-body { padding:17px; }
body.ms5-discovery-body .ms5-tour-grid .tour-body h3 { font-size:17px!important;line-height:1.35; }
body.ms5-discovery-body .ms5-tour-grid .tour-card .tour-actions a { min-height:42px; }
body.ms5-discovery-body .ms5-empty { grid-column:1/-1;background:#fff;border:1px dashed #afcabe;border-radius:18px;padding:32px;text-align:center; }
body.ms5-discovery-body .ms5-empty h3 { font-size:20px!important;color:#174e40;margin:0 0 7px; }
body.ms5-discovery-body .ms5-empty p { color:#62786f;margin:0 0 20px; }
body.ms5-discovery-body .ms5-pagination { margin:30px 0 0; }
body.ms5-discovery-body .ms5-pagination :is(a,button) { min-height:40px; }
body.ms5-discovery-body .ms5-crosslink { display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:#e5f1ed;border-radius:0;padding-block:26px; }
body.ms5-discovery-body .ms5-crosslink strong { display:block;color:#134d3e;font-size:21px; }
body.ms5-discovery-body .ms5-crosslink p { color:#536d61;margin:6px 0 0;line-height:1.5; }
body.ms5-discovery-body .ms5-crosslink a { font-weight:800;color:#126f59;padding:12px 0; }
/* Accessibility: augment existing role-specific styles, avoid replacing layouts. */
body.ui-customer :is(#main-content, [id^="mtg-"][id$="title"],#browse-destinations),
body.ui-operator #operator-main,body.ui-admin #adminMain,body.ui-driver #driver-content {scroll-margin-top:96px;}
body.ui-customer :is(.destinations-primary-btn,.mtg-coral-btn,.mtg-category-pill),
body.ui-operator :is(.op-nav-link,.opbook-tab),body.ui-admin .ad-nav a {min-height:42px;}
body.marsata-tips-body .mtg-article-section p {font-size:16px;line-height:1.8;}
body.marsata-tips-body .mtg-intro p {font-size:16px;line-height:1.75;}
body.ui-operator :is(.content, .operator-main) :is(table, pre),body.ui-admin .admin-main :is(table, pre) {max-width:100%;}
@media(max-width:960px) {
  body.ms5-discovery-body .ms5-category-grid,body.ms5-discovery-body .ms5-tour-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:630px) {
  body.ms5-discovery-body .ms5-hero {background-position:58% center;}
  body.ms5-discovery-body .ms5-hero-inner {padding:24px 18px 37px;}
  body.ms5-discovery-body .ms5-crumb {margin-bottom:24px;}
  body.ms5-discovery-body .ms5-hero h1 {font-size:clamp(34px,8.3vw,46px)!important;}
  body.ms5-discovery-body .ms5-hero-actions {align-items:stretch;}
  body.ms5-discovery-body .ms5-hero-button {width:100%;}
  body.ms5-discovery-body .ms5-content {padding:25px 16px 35px;}
  body.ms5-discovery-body .ms5-section-head {align-items:flex-start;}
  body.ms5-discovery-body .ms5-category-grid,body.ms5-discovery-body .ms5-tour-grid {grid-template-columns:1fr;gap:16px;}
  body.ms5-discovery-body .ms5-tour-grid .tour-media {height:215px;}
  body.ms5-discovery-body .ms5-crosslink {padding:22px 16px;}
  body.ms5-discovery-body .ms5-category-body {padding:17px;}
}
@media(prefers-reduced-motion:reduce) {
  body.ms5-discovery-body .ms5-category-card,body.ms5-discovery-body .ms5-category-cover img {transition:none;transform:none!important;}
}
