/* Agadir Explore Tours 2026 shared product theme.
   Loaded after legacy styles so every existing route can keep its markup and behavior. */

:root {
  --color-primary: #083b73;
  --color-primary-light: #e8f2fb;
  --color-primary-dark: #062b55;
  --color-secondary: #0877d1;
  --color-secondary-light: #e7f4fd;
  --color-secondary-dark: #055da7;
  --color-accent: #f59e42;
  --color-accent-light: #fff1df;
  --color-accent-dark: #b85c0d;
  --color-sunset: #dc493f;
  --color-sand: #f3f7fb;
  --color-sage: #25845b;
  --color-dark: #0b1f33;
  --color-dark-80: #17324d;
  --color-gray: #52677b;
  --color-gray-light: #718399;
  --color-gray-lighter: #dce5ee;
  --color-white: #fff;
  --color-off-white: #f5f8fb;
  --color-success: #1f7a4d;
  --color-warning: #a86509;
  --color-error: #c53b32;
  --border-subtle: #dce5ee;
  --surface-muted: #f5f8fb;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(8, 43, 78, 0.06);
  --shadow-md: 0 6px 18px rgba(8, 43, 78, 0.08);
  --shadow-lg: 0 16px 40px rgba(8, 43, 78, 0.11);
  --shadow-xl: 0 22px 52px rgba(8, 43, 78, 0.14);
  --container-max: 1200px;
  --icon-color: var(--color-secondary);
}

html { scroll-padding-top: 104px; }

body {
  color: var(--color-dark);
  background: var(--color-off-white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.product-page { padding-bottom: 0; }

::selection { color: #fff; background: var(--color-secondary); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(8, 119, 209, 0.28);
  outline-offset: 3px;
}

a { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.12; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; }
p { color: var(--color-gray); }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; color: var(--color-gray); }
.container { width: min(var(--container-max), calc(100% - 40px)); max-width: none; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.bg-off-white, .bg-sand { background: var(--color-off-white) !important; }

.home-page .trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--color-secondary);
  font-size: 2.5rem;
  line-height: 1;
}

.home-page .trust-icon .fa-solid {
  color: inherit;
}

.product-page .product-cta-panel {
  display: grid;
  min-height: clamp(320px, 34vw, 440px);
  place-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  background-image:
    linear-gradient(105deg, rgba(6, 43, 85, 0.82), rgba(8, 59, 115, 0.62)),
    var(--product-cta-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-lg);
}

.product-page .product-cta-panel h2,
.product-page .product-cta-panel p {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 20, 44, 0.52);
}

.product-page .product-cta-panel .btn {
  box-shadow: 0 10px 26px rgba(0, 20, 44, 0.28);
}

.recaptcha-shell {
  min-height: 78px;
  margin: 1rem 0;
}

.recaptcha-shell > [data-recaptcha-widget] {
  min-height: 0;
}

.recaptcha-shell iframe {
  max-width: 100%;
}

.recaptcha-status {
  min-height: 1.25rem;
  margin: 0.45rem 0 0;
  color: var(--color-gray);
  font-size: 0.82rem;
}

.recaptcha-shell.has-error .recaptcha-status,
.contact-form-feedback.error {
  color: var(--color-error);
}

.contact-form-feedback {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form-feedback.success {
  color: var(--color-success);
}

.booking-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

 /* Buttons and controls */
.btn {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
}
.btn-primary { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.btn-primary:hover { color: #fff; background: var(--color-secondary-dark); border-color: var(--color-secondary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { color: var(--color-primary); border-color: #aebfce; background: #fff; }
.btn-outline:hover { color: var(--color-primary-dark); border-color: var(--color-primary); background: var(--color-primary-light); }
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); color: #2b1704; }
.btn-accent:hover { background: #e88d2f; border-color: #e88d2f; color: #251302; }
.btn-sm { min-height: 38px; padding: 8px 13px; }
.btn-lg { min-height: 50px; padding: 12px 20px; }
.btn .site-icon { color: inherit; }

.form-input, .form-select, .form-textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
  border-radius: var(--radius-sm);
}
.form-input, .form-select, .form-textarea {
  min-height: 48px;
  color: var(--color-dark);
  background: #fff;
  border: 1px solid #b9c8d6;
  padding: 12px 14px;
}
.form-textarea { min-height: 132px; }
.form-label { color: var(--color-dark-80); font-size: .88rem; font-weight: 750; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(8,119,209,.13);
}
.form-input:disabled, .form-select:disabled, .form-textarea:disabled { color: #78899a; background: #edf2f6; cursor: not-allowed; }

/* Homepage hero and search */
.home-page .hero-slider {
  min-height: min(710px, calc(100svh - 80px));
  display: grid;
  place-items: center;
  background: var(--color-primary-dark);
}
.home-page .hero-overlay {
  background: linear-gradient(90deg, rgba(4,30,57,.88) 0%, rgba(4,37,71,.7) 45%, rgba(4,30,57,.32) 100%);
}
.home-page .hero-content {
  width: min(var(--container-max), calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 104px 0 96px;
  text-align: left;
  align-items: flex-start;
}
.home-page .hero-title {
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem);
  text-shadow: 0 2px 18px rgba(0,0,0,.24);
}
.home-page .hero-title,
.home-page .hero-subtitle,
.home-page .travel-search,
.home-page .travel-search-note {
  opacity: 1 !important;
  animation: none !important;
}
.home-page .hero-subtitle {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e8f2fb;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}
.home-page .hero-cta { display: none; }
.home-page .hero-slider-btn { width: 44px; height: 44px; color: #fff; border-color: rgba(255,255,255,.45); background: rgba(4,30,57,.38); }
.home-page .hero-slider-btn .site-icon { color: inherit; }
.home-page .hero-slider-dots { bottom: 24px; }

.travel-search {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 1.7fr auto;
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 55px rgba(0,24,48,.32);
}
.travel-search-field {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: center;
  column-gap: 10px;
  padding: 8px 16px;
  border-right: 1px solid var(--border-subtle);
}
.travel-search-field .site-icon { grid-row: 1 / 3; color: var(--color-secondary); font-size: 1.05rem; }
.travel-search-field label { color: var(--color-gray); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.travel-search-field input, .travel-search-field select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0 26px 0 0;
  color: var(--color-dark);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .96rem;
  font-weight: 700;
}
.travel-search-submit { min-width: 150px; min-height: 62px; border-radius: .7rem; }
.travel-search-note { margin: 12px 2px 0; color: #dbeafa; font-size: .78rem; }

.destination-strip { margin-top: -34px; position: relative; z-index: 3; }
.destination-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.destination-card {
  min-height: 230px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.destination-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.destination-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(3,28,52,.88)); }
.destination-card-content { padding: 24px; color: #fff; }
.destination-card-kicker {
  display: block;
  margin-bottom: 7px;
  color: #ffd49f;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.destination-card h3 { margin: 0 0 4px; color: #fff; font-size: clamp(1.35rem,2.4vw,2rem); }
.destination-card p { margin: 0; color: #e5f2fb; }
.destination-card:hover img { transform: scale(1.035); }

/* Cards and listings */
.card, .valley-review-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-img { width: 100%; aspect-ratio: 16/10; height: auto !important; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-size: 1.15rem; }
.card-text { color: var(--color-gray); font-size: .9rem; line-height: 1.6; }

.activities-hero-section {
  padding: clamp(3rem,6vw,5.5rem) 0 2.7rem;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)) !important;
}
.activities-hero-section h1 { max-width: 840px; color: #fff; }
.activities-intro-copy { max-width: 920px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.activities-intro-copy p {
  color: #dcecf9;
  font-size: .92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 1 !important;
  animation: none !important;
}
.activities-breadcrumbs, .activities-breadcrumbs a { color: #bfd8ec; }
.activities-top-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.activities-top-links li { margin: 0; }
.activities-top-links a { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: var(--radius-full); color: #fff; background: rgba(255,255,255,.08); font-size: .78rem; }
.activities-top-links a:hover { background: rgba(255,255,255,.16); }
.activities-grid-section { background: var(--color-off-white); }

.discovery-toolbar {
  margin: 0 0 26px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(220px,1.5fr) minmax(160px,.7fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.discovery-control { display: grid; gap: 6px; }
.discovery-control label { color: var(--color-dark-80); font-size: .75rem; font-weight: 800; }
.discovery-input-wrap { position: relative; }
.discovery-input-wrap .site-icon { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--color-secondary); }
.discovery-input, .discovery-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--color-dark);
  border: 1px solid #b9c8d6;
  border-radius: var(--radius-sm);
  background: #fff;
}
.discovery-input { padding-left: 42px; }
.discovery-input:focus, .discovery-select:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 4px rgba(8,119,209,.12); }
.discovery-clear { min-height: 48px; white-space: nowrap; }
.discovery-summary { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 3px; color: var(--color-gray); font-size: .86rem; }
.discovery-count { color: var(--color-dark); font-weight: 800; }
.discovery-query-chip { display: none; align-items: center; gap: 8px; padding: 5px 9px; border-radius: var(--radius-full); color: var(--color-primary); background: var(--color-primary-light); font-size: .75rem; font-weight: 750; }
.discovery-query-chip.is-visible { display: inline-flex; }
.discovery-empty { display: none; grid-column: 1/-1; padding: 52px 24px; text-align: center; border: 1px dashed #abc0d3; border-radius: var(--radius-lg); background: #fff; }
.discovery-empty.is-visible { display: block; }
.discovery-empty .site-icon { width: 52px; height: 52px; display: inline-grid; place-items: center; margin-bottom: 14px; border-radius: 50%; color: var(--color-secondary); background: var(--color-secondary-light); font-size: 1.3rem; }
.discovery-empty h3 { margin-bottom: 7px; }

/* Product detail */
.product-page .section.bg-off-white { background: #fff !important; }
.product-page .section > .container > div,
.product-page .card,
.product-page .valley-gallery-wrap,
.product-page .booking-sidebar {
  opacity: 1 !important;
  animation: none !important;
}
.product-page .section.bg-off-white > .container > div:first-child { padding-top: 4px; }
.product-page .breadcrumbs { color: var(--color-gray); font-size: .83rem; }
.product-page h1 { max-width: 820px; margin-top: 8px !important; font-size: clamp(2rem,4vw,3.25rem); }
.product-page h2 { margin-top: clamp(2.2rem,4vw,3.4rem); font-size: clamp(1.45rem,2.4vw,2rem); }
.product-page h3 { margin-top: 2rem; }
.product-page .valley-gallery-wrap { margin-bottom: 30px; }
.product-page .valley-gallery-grid { gap: 10px; border-radius: var(--radius-lg); overflow: hidden; }
.product-page .valley-gallery-item { border-radius: var(--radius-sm); }
.product-page .valley-gallery-item img { object-fit: cover; }
.product-page .valley-details-grid { gap: 12px; }
.product-page .valley-detail-card { padding: 16px; border-color: var(--border-subtle); background: var(--surface-muted); }
.product-page .valley-detail-card > .site-icon { color: var(--color-secondary); }
.product-page .valley-detail-title { color: var(--color-dark); }
.product-page .valley-detail-text { color: var(--color-gray); }
.product-page .checklist { margin-bottom: 30px; }
.product-page .checklist li { color: var(--color-dark-80); }
.product-page .checklist li::before { color: var(--color-success); }
.product-page .itinerary { border-left-color: #b9d6ed; }
.product-page .itinerary-marker { background: var(--color-secondary); border-color: #fff; box-shadow: 0 0 0 3px var(--color-secondary-light); }
.product-page .accordion-item { border-color: var(--border-subtle); border-radius: var(--radius-sm); background: #fff; }
.product-page .accordion-header { color: var(--color-dark); }
.product-page .accordion-icon { color: var(--color-secondary); }
.sticky-sidebar { top: 126px; }
.booking-card-shell { overflow: visible; }
.valley-stars .site-icon { color: #e88921; }
.valley-avatar { color: var(--color-primary); background: var(--color-primary-light); }

.mobile-booking-bar { display: none; }

 /* Utilities */
.notification { border-radius: var(--radius-sm) !important; box-shadow: var(--shadow-xl) !important; }
.whatsapp-float { box-shadow: 0 10px 26px rgba(21,125,73,.28); }
.text-white { color: #fff !important; }

@media (max-width: 1120px) {
}

@media (max-width: 900px) {
  .container { width: min(100% - 32px, var(--container-max)); }
  .travel-search { grid-template-columns: 1fr 1.4fr auto; }
  .activities-intro-copy { grid-template-columns: 1fr; gap: 8px; }
  .product-page .grid.grid-2 { grid-template-columns: 1fr !important; }
  .product-page .sticky-sidebar { position: static; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 78px; }
  body.product-page { padding-bottom: 78px; }
  .section { padding: 3.25rem 0; }

  .home-page .hero-slider { min-height: 660px; }
  .home-page .hero-content { width: calc(100% - 32px); padding: 72px 0 74px; justify-content: center; }
  .home-page .hero-title { font-size: clamp(2.25rem,11vw,3.6rem); }
  .home-page .hero-subtitle { font-size: 1rem; }
  .home-page .hero-slider-btn { display: none; }
  .travel-search { grid-template-columns: 1fr; gap: 4px; padding: 8px; border-radius: var(--radius-lg); }
  .travel-search-field { min-height: 56px; border: 0; border-bottom: 1px solid var(--border-subtle); }
  .travel-search-submit { width: 100%; min-height: 52px; margin-top: 3px; }
  .travel-search-note { font-size: .74rem; }
  .destination-strip { margin-top: 0; padding-top: 20px; }
  .destination-grid { grid-template-columns: 1fr; }
  .destination-card { min-height: 200px; }


  .activities-hero-section { padding: 2.8rem 0 2.3rem; }
  .activities-intro-copy p + p { display: none; }
  .activities-top-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .discovery-toolbar { grid-template-columns: 1fr; position: relative; padding: 13px; }
  .discovery-clear { width: 100%; }
  .discovery-summary { flex-direction: column; align-items: flex-start; }

  .product-page .valley-gallery-wrap > div:first-child { margin-bottom: 12px !important; }
  .product-page .valley-gallery-wrap h2 { margin-top: 0; }
  .product-page .valley-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .product-page .valley-gallery-item:first-child { grid-column: 1/-1; aspect-ratio: 16/10; }
  .product-page .valley-gallery-item:nth-child(n+4) { display: none; }
  .product-page .valley-gallery-item { aspect-ratio: 4/3; }
  .product-page .valley-details-grid { grid-template-columns: 1fr 1fr; }
  .product-page .valley-description p:nth-child(n+4) { display: none; }
  .booking-help { display: none; }
  .mobile-booking-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1028;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px max(16px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
    border-top: 1px solid var(--border-subtle);
    background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 28px rgba(8,43,78,.12);
    backdrop-filter: blur(12px);
  }
  .mobile-booking-price { display: grid; color: var(--color-gray); font-size: .7rem; }
  .mobile-booking-price strong { color: var(--color-dark); font-size: 1.1rem; }
  .mobile-booking-bar .btn { flex: 0 0 auto; min-width: 150px; }
  .whatsapp-float { bottom: 88px; width: 48px; height: 48px; }
  .product-page .whatsapp-float { display: none; }

}

@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }
  .home-page .hero-slider { min-height: 640px; }
  .home-page .hero-content { width: calc(100% - 28px); padding-top: 58px; }
  .home-page .hero-title { font-size: clamp(2.05rem,11vw,2.75rem); }
  .product-page .valley-details-grid { grid-template-columns: 1fr; }
  .product-page .valley-gallery-grid { gap: 6px; }
  .mobile-booking-bar .btn { min-width: 132px; }
  .booking-thankyou-card { border-radius: var(--radius-lg); }
}

@media (max-width: 340px) {
  .container, .home-page .hero-content { width: calc(100% - 24px); }
  .mobile-booking-bar .btn { min-width: 120px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
