/*
Theme Name: Lopez Motos
Theme URI: https://lopezmotos.com/
Author: Angel Lopez
Description: The route-first marketplace theme for verified moto rentals and rides in Morocco. Designed for the Lopez Motos Marketplace plugin and authored EN, FR, ES and AR language trees.
Version: 1.0.8
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: lopez-motos
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #101b22;
  --ivory: #f7f2e9;
  --orange: #f15a2a;
  --orange-dark: #d94719;
  --teal: #147d7a;
  --slate: #657177;
  --white: #fff;
  --line: #e9e2d8;
  --shadow: 0 14px 34px rgba(16, 27, 34, .10);
  --content-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(20, 125, 122, .42); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; margin: 0; padding: 13px 20px; top: 8px; inset-inline-start: 8px; z-index: 100000; color: var(--ink); background: white; border-radius: 7px; box-shadow: var(--shadow); }

.site-header { min-height: 74px; padding: 0 3.2vw; background: rgba(255,255,255,.97); display: grid; grid-template-columns: minmax(230px, 1fr) auto minmax(250px, 1fr); align-items: center; gap: 28px; position: relative; z-index: 30; border-bottom: 1px solid rgba(16,27,34,.04); }
.brand { width: min(230px, 100%); min-width: 0; display: block; position: relative; z-index: 2; direction: ltr; }
.brand > img, .brand .custom-logo { width: 100%; max-width: 100%; height: auto; margin: 0; object-fit: contain; }
.brand .custom-logo-link { display: block; }
.desktop-nav, .desktop-nav > ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; }
.desktop-nav a { display: block; padding: 10px 0; }
.desktop-nav a:hover, .desktop-nav .current-menu-item > a { color: var(--orange); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
.language-switcher { position: relative; }
.language { border: 0; background: transparent; font-size: 12px; font-weight: 800; padding: 12px 8px; color: var(--ink); cursor: pointer; }
.language span { margin-inline-start: 3px; }
.language-switcher ul { position: absolute; top: calc(100% + 4px); inset-inline-end: 0; min-width: 115px; margin: 0; padding: 7px; list-style: none; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: var(--shadow); }
.language-switcher ul[hidden] { display: none; }
.language-switcher a { display: block; padding: 8px 10px; border-radius: 5px; font-size: 12px; font-weight: 800; }
.language-switcher a:hover, .language-switcher a[aria-current="page"] { color: var(--orange); background: var(--ivory); }

.button, button.button, input.button { min-height: 47px; padding: 0 25px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-weight: 800; font-size: 14px; line-height: 1.2; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(241,90,42,.18); }
.button-primary, button.button-primary { background: var(--orange); color: white; }
.button-primary:hover { color: white; background: var(--orange-dark); }
.button-outline { border-color: var(--orange); color: var(--orange); background: rgba(255,255,255,.7); }
.button-ghost { border-color: #aab2b5; color: var(--ink); background: white; }
.compact { min-height: 39px; padding: 0 17px; border-radius: 7px; font-size: 12px; }

.hero { min-height: 527px; position: relative; display: grid; grid-template-columns: 47% 53%; background: #fbf8f2; }
.hero-copy { padding: 83px 5vw 118px; position: relative; z-index: 2; background: linear-gradient(90deg, #fbf8f2 72%, rgba(251,248,242,.85) 88%, rgba(251,248,242,0)); }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 560px; font-size: clamp(48px, 5.15vw, 78px); line-height: .99; letter-spacing: -.052em; font-weight: 850; }
.hero-lead { margin: 24px 0 28px; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; color: #32434a; }
.hero-buttons { display: flex; gap: 12px; }
.hero-photo { background-image: linear-gradient(90deg, rgba(251,248,242,.75), transparent 24%), url('assets/images/hero-tangier.png'); background-size: cover; background-position: center; }
.search-panel { position: absolute; z-index: 4; bottom: -38px; inset-inline: 4.3vw; min-height: 86px; border-radius: 12px; background: white; padding: 14px 16px; display: grid; grid-template-columns: 1.6fr 1fr 1fr .9fr auto; gap: 11px; box-shadow: var(--shadow); }
.search-field { min-width: 0; height: 58px; border: 1px solid #dfe3e2; border-radius: 8px; padding: 8px 13px; display: flex; flex-direction: column; gap: 2px; }
.search-field span { font-size: 11px; font-weight: 800; color: #45545a; }
.search-field input, .search-field select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; height: 26px; padding: 0; }
.search-destination input::placeholder { color: #9aa3a6; }
.search-button { height: 58px; align-self: center; }

.trust-row { max-width: 1110px; margin: 78px auto 56px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 24px; }
.trust-row > div { min-height: 45px; display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; border-inline-end: 1px solid #d9d8d2; }
.trust-row > div:last-child { border-inline-end: 0; }
.mark-icon { width: 34px; height: 34px; border: 2px solid var(--teal); border-radius: 9px; display: grid; place-items: center; color: var(--teal); font-weight: 900; font-size: 18px; flex: 0 0 auto; }

.content-section { max-width: var(--content-width); margin: 0 auto; padding: 0 32px 56px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2, .partner-band h2, .final-cta h2 { margin: 0; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-card { min-height: 286px; position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(16,27,34,.09); background: var(--ink); }
.route-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .35s ease; }
.route-card:hover img { transform: scale(1.025); }
.route-shade { position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(5,13,17,.92)); }
.route-copy { position: absolute; inset-inline: 20px; bottom: 18px; color: white; display: flex; flex-direction: column; gap: 6px; }
.route-copy strong { font-size: 25px; letter-spacing: -.025em; }
.route-copy small { font-size: 12px; font-weight: 700; opacity: .93; }

.rides-section { padding-top: 6px; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-note { max-width: 400px; color: var(--slate); font-size: 12px; line-height: 1.55; text-align: end; }
.ride-list { display: grid; gap: 16px; }
.launch-listing-state { min-height: 190px; padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 3vw, 34px); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 22px rgba(16,27,34,.07); }
.launch-listing-state h3 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
.launch-listing-state p { max-width: 620px; margin: 0; color: var(--slate); line-height: 1.65; }
.launch-mark { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: white; background: var(--teal); font-size: 15px; font-weight: 900; letter-spacing: .08em; }
.ride-card { background: white; min-height: 186px; border-radius: 13px; display: grid; grid-template-columns: 32% 68%; overflow: hidden; box-shadow: 0 8px 22px rgba(16,27,34,.07); }
.ride-image-wrap { position: relative; min-height: 186px; display: block; overflow: hidden; background: #e7e4dc; }
.ride-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.listing-image-placeholder { width: 100%; height: 100%; min-height: 186px; display: block; background: linear-gradient(135deg, #e8e4db, #c6d5d2); }
.heart { position: absolute; inset-inline-start: 12px; top: 12px; width: 31px; height: 31px; border-radius: 50%; background: white; display: grid; place-items: center; font-size: 21px; }
.ride-main { padding: 22px 25px 16px; }
.ride-title-row { display: flex; justify-content: space-between; gap: 20px; }
.ride-card h3 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.top-pick { font-size: 9px; padding: 4px 6px; vertical-align: middle; border-radius: 4px; color: var(--teal); background: #d9f1ee; letter-spacing: 0; }
.ride-sub { margin: 7px 0 0; font-size: 12px; color: var(--slate); }
.stars { color: #f4a51c; margin-inline-start: 16px; letter-spacing: 1px; white-space: nowrap; }
.price { text-align: end; min-width: 105px; display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; gap: 3px; }
.price strong { font-size: 30px; }
.price span { font-size: 12px; }
.price small { grid-column: 1 / -1; font-size: 11px; color: var(--slate); }
.ride-facts { margin-top: 21px; border-top: 1px solid var(--line); padding-top: 13px; display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 14px; }
.ride-facts > span { font-size: 10px; color: var(--slate); line-height: 1.45; }
.ride-facts b { font-size: 17px; color: var(--ink); float: inline-start; margin-inline-end: 7px; }
.ride-facts strong { color: var(--ink); font-size: 10px; }

.how-section { padding-top: 24px; }
.centered { text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-grid article { background: white; border-radius: 14px; padding: 28px; border: 1px solid var(--line); }
.steps-grid article > span { color: var(--orange); font-weight: 900; font-size: 12px; letter-spacing: .15em; }
.steps-grid h3 { font-size: 20px; margin: 14px 0 8px; }
.steps-grid p { color: var(--slate); line-height: 1.65; margin: 0; font-size: 14px; }

.partner-band { max-width: var(--content-width); margin: 12px auto 64px; border-radius: 17px; min-height: 420px; padding: 50px 38px 38px; background: var(--ink); color: white; display: grid; grid-template-columns: 36% 64%; gap: 28px; overflow: hidden; }
.partner-copy { padding: 8px 0 0 8px; }
.eyebrow.light { color: #7fcac5; }
.partner-copy p:not(.eyebrow) { color: #c4cdd0; line-height: 1.65; max-width: 310px; margin: 22px 0; }
.dashboard-preview { background: #f8f7f2; color: var(--ink); border-radius: 13px; overflow: hidden; display: grid; grid-template-columns: 120px 1fr; box-shadow: 0 10px 35px rgba(0,0,0,.22); }
.dashboard-preview aside { background: #10252c; color: #dce6e8; display: flex; flex-direction: column; padding: 22px 14px; gap: 13px; font-size: 11px; }
.dashboard-preview aside img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.dashboard-preview aside b { background: rgba(255,255,255,.11); color: white; margin: -4px -7px; padding: 9px 7px; border-radius: 5px; }
.calendar { padding: 25px 23px; min-width: 0; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.calendar-head h3 { margin: 0; font-size: 18px; }
.calendar-head small { font-size: 8px; display: flex; gap: 6px; align-items: center; color: var(--slate); }
.calendar-head i { width: 7px; height: 7px; background: var(--teal); display: inline-block; }
.calendar-head i:nth-of-type(2) { background: var(--orange); }
.calendar-head i:nth-of-type(3) { background: #dfe4e3; }
.calendar-grid { margin-top: 25px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-grid span { height: 34px; display: grid; place-items: center; border-radius: 3px; background: var(--teal); color: white; font-size: 10px; font-weight: 800; }
.calendar-grid span.pending { background: var(--orange); }
.calendar-grid span.blank { background: white; border: 1px solid #dfe4e3; color: var(--slate); }

.stay-band { max-width: var(--content-width); min-height: 430px; margin: 0 auto 64px; display: grid; grid-template-columns: minmax(0, 58%) minmax(320px, 42%); overflow: hidden; border-radius: 17px; color: white; background: #0a2028; box-shadow: var(--shadow); }
.stay-photo { min-height: 430px; overflow: hidden; }
.stay-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stay-copy { padding: clamp(38px, 5vw, 66px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.stay-copy h2 { margin: 0; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.04; letter-spacing: -.045em; }
.stay-copy > p:not(.eyebrow) { margin: 22px 0 27px; color: #c7d2d5; line-height: 1.7; }

.final-cta { text-align: center; padding: 58px 24px 72px; background: white; }
.final-cta h2 { max-width: 720px; margin: 0 auto 28px; }
.final-cta > div { display: flex; justify-content: center; gap: 12px; }

.site-footer { padding: 55px max(5vw, 30px) 24px; color: white; background: #0a171d; }
.footer-brand { display: flex; align-items: center; gap: 30px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 32px; }
.footer-logo-frame { width: min(300px, 100%); aspect-ratio: 982 / 301; overflow: hidden; display: block; flex: 0 0 auto; direction: ltr; }
.footer-logo-frame img { width: calc(100% * 1000 / 982); max-width: none; height: auto; transform: translate(-1.8%, -11.47%); }
.footer-brand p { color: #aebbc0; max-width: 380px; }
.network { padding: 34px 0; }
.footer-kicker { color: #7fcac5; text-transform: uppercase; font-size: 10px; letter-spacing: .17em; font-weight: 900; }
.network-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.network-grid a { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.network-grid a:hover { border-color: var(--orange); }
.network-grid strong { font-size: 14px; }
.network-grid span { color: #9fadb1; font-size: 11px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; color: #89999f; font-size: 11px; }
.footer-bottom ul, .legal-links { display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.footer-bottom a:hover { color: white; }

/* Standard editorial and system pages. */
.page-shell { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; padding: 68px 0 84px; min-height: 55vh; }
.entry-card { max-width: 920px; margin: 0 auto; padding: clamp(30px, 5vw, 64px); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(16, 27, 34, .06); }
.entry-header h1, .archive-header h1, .dashboard-page-header h1 { margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: 1; letter-spacing: -.045em; }
.entry-featured { margin: 30px 0; overflow: hidden; border-radius: 12px; }
.entry-content { font-size: 17px; line-height: 1.75; color: #34454c; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--ink); line-height: 1.18; }
.entry-content h2 { margin-top: 1.8em; font-size: 32px; }
.entry-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.entry-content .button { color: white; text-decoration: none; }
.bookings-page { width: min(1040px, calc(100% - 48px)); }
.bookings-page .entry-content { color: inherit; font-size: inherit; line-height: normal; }
.archive-header { margin-bottom: 30px; }
.archive-header-split { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.archive-description { max-width: 700px; color: var(--slate); }
.post-grid, .moto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-card, .moto-tile { overflow: hidden; border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(16, 27, 34, .07); }
.post-card-image { display: block; height: 250px; overflow: hidden; }
.post-card-image img, .moto-tile-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-copy { padding: 25px; }
.post-card-copy h2 { margin: 5px 0 12px; font-size: 28px; letter-spacing: -.03em; }
.post-card-copy > p:not(.post-meta) { color: var(--slate); line-height: 1.6; }
.post-meta { margin: 0; color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.text-link { color: var(--orange); font-weight: 800; font-size: 13px; }
.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; justify-content: center; gap: 7px; }
.nav-links .page-numbers { min-width: 39px; height: 39px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.nav-links .current { color: white; border-color: var(--orange); background: var(--orange); }
.empty-state { text-align: center; padding: 70px 30px; border-radius: 14px; background: white; }
.empty-state img { width: 70px; margin: 0 auto 20px; border-radius: 12px; }
.not-found h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.045em; }
.not-found > p:not(.eyebrow) { margin: 15px auto 25px; color: var(--slate); }

/* Listing archive and detail. */
.moto-tile-image { display: block; height: 285px; overflow: hidden; background: #e7e4dc; }
.moto-tile-copy { padding: 24px; }
.moto-tile-title { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.moto-tile-title h2 { margin: 0; font-size: 25px; line-height: 1.12; letter-spacing: -.03em; }
.moto-tile-title > strong { color: var(--orange); font-size: 22px; white-space: nowrap; }
.moto-tile-title small { margin-inline-start: 3px; color: var(--slate); font-size: 10px; }
.moto-tile-copy > p:not(.ride-sub) { color: var(--slate); font-size: 14px; line-height: 1.6; }
.moto-tile-meta { margin: 18px 0; padding-top: 15px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px; color: var(--slate); font-size: 11px; }
.moto-tile-meta b { color: var(--ink); }
.breadcrumbs { margin-bottom: 22px; color: var(--slate); font-size: 12px; }
.breadcrumbs a { color: var(--teal); font-weight: 800; }
.breadcrumbs span { margin-inline: 4px; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.listing-content { min-width: 0; }
.listing-hero-image { height: min(55vw, 560px); min-height: 320px; overflow: hidden; border-radius: 16px; background: #e7e4dc; }
.listing-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.lm-listing-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 900px); gap: 10px; overflow-x: auto; scroll-snap-type: inline mandatory; }
.lm-listing-gallery img { scroll-snap-align: start; }
.listing-header { padding: 30px 0 22px; display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.listing-header h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.045em; }
.listing-price { white-space: nowrap; text-align: end; }
.listing-price strong { font-size: 38px; }
.listing-price span { margin-inline-start: 4px; color: var(--slate); font-size: 12px; }
.listing-facts { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.listing-facts > div { padding: 17px; border-inline-end: 1px solid var(--line); }
.listing-facts > div:last-child { border-inline-end: 0; }
.listing-facts span, .listing-facts strong { display: block; }
.listing-facts span { margin-bottom: 5px; color: var(--slate); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.listing-facts strong { font-size: 13px; }
.listing-description, .listing-reviews { margin-top: 24px; padding: 28px; border-radius: 12px; background: white; color: #34454c; line-height: 1.7; }
.listing-description h2 { margin-top: 0; color: var(--ink); }
.reservation-card { position: sticky; top: 24px; padding: 26px; border-radius: 14px; background: white; box-shadow: var(--shadow); }
.reservation-total strong { font-size: 36px; }
.reservation-total span { margin-inline-start: 4px; color: var(--slate); font-size: 12px; }
.reservation-card > p:not(.eyebrow) { color: var(--slate); font-size: 12px; }
.reservation-button { width: 100%; }
.reservation-note { text-align: center; }

/* The marketplace plugin owns the inner dashboard UI. */
.dashboard-page { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 55px 0 80px; min-height: 65vh; }
.dashboard-page-header { margin-bottom: 28px; }
.dashboard-app { overflow: hidden; border-radius: 15px; background: white; box-shadow: var(--shadow); }
.dashboard-unavailable { text-align: center; }

/* WordPress and WooCommerce compatibility. */
.woocommerce .woocommerce-breadcrumb { color: var(--slate); font-size: 12px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--teal); background: white; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { color: white; background: var(--orange); }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { color: white; background: var(--orange-dark); }

/* Arabic is a fully authored interface, not a mirrored machine translation. */
.lm-rtl { font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
.lm-rtl .hero-copy { background: linear-gradient(270deg, #fbf8f2 72%, rgba(251,248,242,.85) 88%, rgba(251,248,242,0)); }
.lm-rtl .hero-photo { background-image: linear-gradient(270deg, rgba(251,248,242,.75), transparent 24%), url('assets/images/hero-tangier.png'); }
.lm-rtl .eyebrow { letter-spacing: .05em; }
.lm-rtl .hero h1, .lm-rtl .section-heading h2, .lm-rtl .partner-band h2, .lm-rtl .final-cta h2 { letter-spacing: 0; line-height: 1.16; }
.lm-rtl .calendar-grid span, .lm-rtl input[type="date"] { direction: ltr; }

@media (max-width: 1240px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; justify-self: end; }
  .desktop-nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 16px 24px 24px; background: white; border-top: 1px solid var(--line); box-shadow: 0 18px 28px rgba(16, 27, 34, .10); }
  .desktop-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .desktop-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .desktop-nav a { padding: 10px 0; }
  .hero { grid-template-columns: 53% 47%; }
  .search-panel { grid-template-columns: 1.3fr 1fr 1fr auto; }
  .search-field:nth-of-type(4) { display: none; }
  .partner-band { grid-template-columns: 32% 68%; }
  .stay-band { margin-inline: 32px; }
  .network-grid { grid-template-columns: repeat(2, 1fr); }
  .ride-facts { grid-template-columns: repeat(2, 1fr) auto; }
  .listing-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 66px; padding: 0 17px; grid-template-columns: 1fr auto auto; gap: 7px; }
  .brand { width: min(180px, 100%); }
  .header-actions .signin-link { display: none; }
  .header-actions .language { padding-inline: 5px; }
  .header-actions .button-primary { min-height: 36px; padding: 0 11px; font-size: 10px; }
  .hero { display: block; min-height: auto; padding-bottom: 44px; }
  .hero-copy { min-height: 465px; padding: 62px 24px 132px; background: linear-gradient(180deg, rgba(251,248,242,.94) 0%, rgba(251,248,242,.84) 58%, rgba(251,248,242,.3) 100%); }
  .hero h1 { font-size: 49px; }
  .hero-photo { position: absolute; inset: 0; background-position: 62% center; opacity: .57; }
  .hero-copy, .search-panel { position: relative; }
  .search-panel { inset-inline: auto; bottom: auto; margin: -86px 17px 0; display: grid; grid-template-columns: 1fr 1fr; min-height: auto; }
  .search-destination { grid-column: 1 / -1; }
  .search-field:nth-of-type(4) { display: flex; }
  .search-button { grid-column: 1 / -1; width: 100%; }
  .trust-row { grid-template-columns: 1fr 1fr; gap: 14px 0; margin: 25px auto 45px; }
  .trust-row > div { border-inline-end: 0; justify-content: flex-start; font-size: 11px; }
  .content-section { padding-inline: 17px; }
  .route-grid, .steps-grid, .post-grid, .moto-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 240px; }
  .split-heading, .archive-header-split { display: block; }
  .archive-header-split .button { margin-top: 20px; }
  .section-note { text-align: start; }
  .launch-listing-state { grid-template-columns: auto 1fr; }
  .launch-listing-state .button { grid-column: 1 / -1; width: 100%; }
  .ride-card { display: block; }
  .ride-image-wrap { height: 210px; }
  .ride-title-row { display: block; }
  .price { margin-top: 10px; justify-content: start; text-align: start; }
  .ride-facts { grid-template-columns: 1fr 1fr; }
  .ride-facts .button { grid-column: 1 / -1; }
  .partner-band { margin: 0 17px 50px; padding: 34px 22px; display: block; }
  .stay-band { margin: 0 17px 50px; display: block; }
  .stay-photo { min-height: 280px; height: 55vw; max-height: 390px; }
  .stay-copy { padding: 34px 24px 38px; }
  .dashboard-preview { margin-top: 32px; grid-template-columns: 78px 1fr; }
  .dashboard-preview aside { padding: 16px 9px; font-size: 8px; }
  .calendar { padding: 17px 12px; }
  .calendar-head small { display: none; }
  .calendar-grid span { height: 25px; font-size: 8px; }
  .footer-brand { display: block; }
  .footer-logo-frame { width: min(270px, 100%); margin-bottom: 18px; }
  .network-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; gap: 8px; }
  .page-shell, .dashboard-page { width: min(calc(100% - 34px), var(--content-width)); padding-top: 42px; }
  .entry-card { padding: 27px 21px; }
  .listing-layout { display: block; }
  .listing-hero-image { height: 62vw; min-height: 260px; }
  .listing-header { display: block; }
  .listing-price { margin-top: 16px; text-align: start; }
  .listing-facts { grid-template-columns: 1fr 1fr; }
  .listing-facts > div:nth-child(2) { border-inline-end: 0; }
  .listing-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .reservation-card { position: static; margin-top: 22px; }
}

@media (max-width: 420px) {
  .brand { width: min(150px, 100%); }
  .header-actions .button-primary { display: none; }
  .hero-buttons, .final-cta > div { align-items: stretch; flex-direction: column; }
  .hero h1 { font-size: 44px; }
  .search-panel { grid-template-columns: 1fr; }
  .search-destination, .search-button { grid-column: auto; }
  .trust-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .route-card img, .menu-toggle > span { transition: none; }
}
