
/* Jasper Journeys — Business Directory Reference Style v2
   Refined from the Jasper X Taxi and Jasper Bottle Depot mockups:
   white header, forest-green logo, crisp business hero, overlay intro card, premium right-side panels, deep-green footer.
*/

:root {
  --jj-ref-forest: #003F32;
  --jj-ref-forest-2: #064B3B;
  --jj-ref-forest-3: #0B5A43;
  --jj-ref-gold: #D99A2B;
  --jj-ref-gold-2: #E7B74D;
  --jj-ref-cream: #FBF7EE;
  --jj-ref-white: #FFFFFF;
  --jj-ref-ink: #171B18;
  --jj-ref-muted: #56635D;
  --jj-ref-line: #DDE2DC;
  --jj-ref-soft: #F7FAF6;
  --jj-ref-blue: #8CB6D8;
  --jj-ref-shadow: 0 15px 38px rgba(0, 40, 31, .12);
  --jj-ref-soft-shadow: 0 6px 20px rgba(0, 40, 31, .08);
  --jj-ref-radius: 16px;
  --jj-ref-radius-lg: 22px;
  --jj-ref-serif: Georgia, "Times New Roman", serif;
  --jj-ref-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html {
  background: var(--jj-ref-cream);
}

body {
  color: var(--jj-ref-ink) !important;
  background: linear-gradient(180deg, #fff 0%, #fbfaf6 56%, #f7f3e8 100%) !important;
  font-family: var(--jj-ref-sans) !important;
  -webkit-font-smoothing: antialiased;
}

/* Top browser-like clean header */
.jj-top-shell,
.header-pro,
.nav-pro,
.site-header,
.main-header {
  background: rgba(255,255,255,.98) !important;
  color: var(--jj-ref-ink) !important;
  border-bottom: 1px solid rgba(0,63,50,.13) !important;
  box-shadow: 0 2px 18px rgba(0,0,0,.055) !important;
  backdrop-filter: blur(14px);
}

.jj-top-shell img[src*="brand"],
.header-pro img[src*="brand"],
.site-header img[src*="brand"] {
  max-height: 72px !important;
  width: auto !important;
}

.jj-brand-text,
.logo-text,
.brand-text,
.site-title {
  color: var(--jj-ref-forest) !important;
  font-family: var(--jj-ref-serif) !important;
  font-weight: 900 !important;
  letter-spacing: .20em !important;
  text-transform: uppercase !important;
  line-height: .92;
}

.nav-pro a,
.site-nav a,
.main-nav a {
  color: var(--jj-ref-ink) !important;
  font-weight: 800 !important;
  font-size: .95rem;
  border-bottom: 3px solid transparent;
  padding-bottom: 10px;
}

.nav-pro a:hover,
.site-nav a:hover,
.main-nav a:hover,
.nav-pro a[aria-current="page"],
.site-nav a[aria-current="page"],
.main-nav a[aria-current="page"] {
  color: var(--jj-ref-forest) !important;
  border-bottom-color: var(--jj-ref-gold) !important;
}

input[type="search"],
.search input,
.site-search input,
.search-box input {
  border: 1px solid rgba(0,63,50,.16) !important;
  border-radius: 999px !important;
  min-height: 46px;
  background: #fff !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.025);
}

/* Hero as scenic strip with overlay content card */
.hero,
.jj-hero,
.home-hero,
.jc-hero,
.page-hero,
.jc-page-hero,
.jj-directory-hero {
  position: relative;
  min-height: clamp(320px, 44vw, 420px) !important;
  padding: clamp(26px, 5vw, 64px) max(20px, calc((100vw - 1180px)/2)) !important;
  display: flex !important;
  align-items: flex-end !important;
  color: var(--jj-ref-ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.35) 40%, rgba(255,255,255,.06) 72%),
    linear-gradient(180deg, #cce0ee 0%, #9dbbd2 36%, #436f52 72%, #2f4b34 100%) !important;
}

.hero::before,
.jj-hero::before,
.home-hero::before,
.jc-hero::before,
.page-hero::before,
.jc-page-hero::before,
.jj-directory-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.06), rgba(0,63,50,.08)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.06) 18px 19px);
  pointer-events: none;
}

.hero > *,
.jj-hero > *,
.home-hero > *,
.jc-hero > *,
.page-hero > *,
.jc-page-hero > *,
.jj-directory-hero > * {
  position: relative;
  z-index: 1;
}

/* convert hero text area into the mockup-style white overlay card */
.hero > div:first-child,
.jj-hero > div:first-child,
.home-hero > div:first-child,
.jc-hero > div:first-child,
.page-hero > div:first-child,
.jc-page-hero > div:first-child,
.jj-directory-hero > div:first-child {
  max-width: 540px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,63,50,.18);
  border-radius: 16px;
  box-shadow: var(--jj-ref-shadow);
  padding: clamp(20px, 3vw, 34px);
}

/* If hero content is direct children, style headings directly */
.hero h1,
.jj-hero h1,
.home-hero h1,
.jc-hero h1,
.page-hero h1,
.jc-page-hero h1,
.jj-directory-hero h1 {
  color: var(--jj-ref-ink) !important;
  font-family: var(--jj-ref-serif) !important;
  font-size: clamp(2.25rem, 5.2vw, 4rem) !important;
  line-height: .98 !important;
  letter-spacing: -.045em;
  margin: 10px 0 12px !important;
  text-shadow: none !important;
  max-width: 620px;
}

.hero p,
.jj-hero p,
.home-hero p,
.jc-hero p,
.page-hero p,
.jc-page-hero p,
.jj-directory-hero p {
  color: #2e3632 !important;
  font-size: clamp(.98rem, 1.8vw, 1.12rem);
  max-width: 620px;
}

/* Badge exactly like local-service pill */
.kicker,
.eyebrow,
.badge,
.label,
.pill,
.category-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  background: var(--jj-ref-forest) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  font-size: .73rem !important;
  font-weight: 900 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 10px rgba(0,63,50,.18);
}

.kicker::before,
.eyebrow::before {
  content: "★";
  font-size: .78em;
  color: #fff;
}

/* Buttons from screenshot */
button,
.btn,
.jc-btn,
.button,
.btn-nav-primary,
.jj-hero-actions a,
.hero-cta a,
.map-popup-link,
input[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px !important;
  background: var(--jj-ref-forest) !important;
  color: #fff !important;
  border: 1px solid var(--jj-ref-forest) !important;
  border-radius: 7px !important;
  box-shadow: 0 7px 16px rgba(0,63,50,.16) !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

button:hover,
.btn:hover,
.jc-btn:hover,
.button:hover,
.btn-nav-primary:hover,
.jj-hero-actions a:hover,
.hero-cta a:hover,
.map-popup-link:hover {
  background: var(--jj-ref-forest-3) !important;
  transform: translateY(-1px);
}

.btn-outline,
.jc-btn-outline,
.secondary,
.jj-hero-actions a:nth-child(2),
.hero-cta a:nth-child(2) {
  background: #fff !important;
  color: var(--jj-ref-forest) !important;
  border: 1px solid rgba(0,63,50,.42) !important;
  box-shadow: 0 5px 14px rgba(0,63,50,.08) !important;
}

/* Layout and cards */
main {
  background: transparent !important;
}

.card,
.jc-card,
.guide-card,
.jj-service-card,
.jj-listing-card,
.jj-route-card,
.jj-stop-card,
.feature-card,
.article-card,
.pricing-card,
.business-card,
.panel,
.tool-card,
.info-card,
.jj-premium-info-card {
  background: #fff !important;
  border: 1px solid var(--jj-ref-line) !important;
  border-radius: var(--jj-ref-radius) !important;
  box-shadow: var(--jj-ref-soft-shadow) !important;
}

.card:hover,
.jc-card:hover,
.guide-card:hover,
.jj-service-card:hover,
.jj-listing-card:hover,
.jj-route-card:hover,
.jj-stop-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--jj-ref-shadow) !important;
}

h1, h2, h3 {
  font-family: var(--jj-ref-serif) !important;
  color: var(--jj-ref-ink) !important;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

h2::after,
.section-title::after,
.jj-section-title::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--jj-ref-gold);
  border-radius: 999px;
  margin-top: 9px;
}

p,
li {
  color: #2e3632;
}

/* Side panels like screenshot */
.jj-premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .78fr);
  gap: 28px;
  max-width: 1180px;
  margin: 26px auto;
  padding: 0 18px;
}

.jj-premium-info-card {
  overflow: hidden;
}

.jj-premium-info-card__head {
  background: var(--jj-ref-forest) !important;
  color: #fff !important;
  padding: 16px 18px;
  font-family: var(--jj-ref-serif);
  font-size: 1.16rem;
  font-weight: 900;
  position: relative;
}

.jj-premium-info-card__head::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 92px;
  height: 36px;
  transform: translateY(-50%);
  opacity: .28;
  background:
    linear-gradient(135deg, transparent 48%, #fff 49% 51%, transparent 52%) 0 20px / 42px 30px repeat-x;
}

.jj-premium-info-card__body {
  padding: 18px;
}

.jj-icon-row,
.jj-feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 12px;
}

.jj-mini-feature {
  min-height: 112px;
  background: #fff;
  border: 1px solid var(--jj-ref-line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,63,50,.045);
}

.jj-mini-feature strong {
  display: block;
  color: var(--jj-ref-forest);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 5px;
}

/* Icons should be line-art-ish and calm, not huge */
.icon img,
.card img[src*="icons"],
.jc-card img[src*="icons"],
.jj-mini-feature img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* Photo grids */
.card-photo,
.photo-panel,
img {
  border-radius: 10px;
}

/* Map refined */
#discoverMap,
#jjMap,
#map,
.leaflet-container {
  border: 1px solid var(--jj-ref-line) !important;
  border-radius: 15px !important;
  box-shadow: var(--jj-ref-soft-shadow) !important;
}

.jj-small-map-marker span {
  min-width: 13px !important;
  min-height: 13px !important;
  font-size: 8px !important;
  border-width: 1.5px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.22) !important;
}

.jj-map-control-panel {
  border: 1px solid var(--jj-ref-line) !important;
  border-radius: var(--jj-ref-radius) !important;
  box-shadow: var(--jj-ref-soft-shadow) !important;
}

/* Footer */
.footer-pro,
.site-footer,
footer {
  background: linear-gradient(180deg, var(--jj-ref-forest), #003528) !important;
  color: rgba(255,255,255,.92) !important;
  border-top: 0 !important;
  position: relative;
  overflow: hidden;
}

.footer-pro::after,
.site-footer::after,
footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 72px;
  opacity: .32;
  background:
    linear-gradient(135deg, transparent 48%, #fff 49% 51%, transparent 52%) 0 38px / 70px 46px repeat-x;
  pointer-events: none;
}

.footer-pro h3,
.site-footer h3,
footer h3 {
  color: #fff !important;
}

.footer-pro p,
.site-footer p,
footer p,
.footer-pro li,
.site-footer li,
footer li {
  color: rgba(255,255,255,.86) !important;
}

.footer-pro a,
.site-footer a,
footer a {
  color: #fff !important;
  text-decoration-color: rgba(217,154,43,.75);
  text-underline-offset: 4px;
}

/* Mobile */
@media (max-width: 900px) {
  .jj-premium-grid {
    display: block;
    margin: 18px auto;
    padding: 0 12px;
  }

  .jj-premium-grid > * + * {
    margin-top: 18px;
  }

  .hero,
  .jj-hero,
  .home-hero,
  .jc-hero,
  .page-hero,
  .jc-page-hero,
  .jj-directory-hero {
    min-height: 420px !important;
    padding: 18px 14px !important;
    align-items: flex-end !important;
  }

  .hero > div:first-child,
  .jj-hero > div:first-child,
  .home-hero > div:first-child,
  .jc-hero > div:first-child,
  .page-hero > div:first-child,
  .jc-page-hero > div:first-child,
  .jj-directory-hero > div:first-child {
    width: 100%;
    padding: 20px;
    border-radius: 14px;
  }

  .btn,
  .jc-btn,
  .button,
  .btn-nav-primary,
  .jj-hero-actions a,
  .hero-cta a {
    width: 100%;
    min-height: 48px;
  }

  .jj-icon-row,
  .jj-feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .jj-top-shell img[src*="brand"],
  .header-pro img[src*="brand"],
  .site-header img[src*="brand"] {
    max-height: 58px !important;
  }
}

@media (max-width: 520px) {
  .jj-icon-row,
  .jj-feature-row {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .jj-hero h1,
  .home-hero h1,
  .jc-hero h1,
  .page-hero h1,
  .jc-page-hero h1,
  .jj-directory-hero h1 {
    font-size: clamp(2rem, 12vw, 3.2rem) !important;
  }
}
