/* =====================================================
   Maqam Travels — Help Page (Qatar-style split cards & tabs)
   ===================================================== */

/* ========== Variables ========== */
:root {
  --primary: #2384c6;
  --primary-600: #1d73ac;
  --ink: #0f1b2d;
  --muted: #56657a;
  --line: #e6edf4;
  --bg: #f3f3f3;
  /* page background */
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);

  --accent: #2384c6;
  /* tab underline */
  --container-max: 1200px;

  --hero-h-mobile: 320px;
  --title-bias: 0.62;
}

/* ========== Base ========== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nexa", "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--muted);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(var(--container-max), 92%);
  margin-inline: auto;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  left: -9999px;
}

/* ===== Header (unchanged) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: .8rem 1rem .8rem 0;
}

.logo-badge {
  position: absolute;
  left: 0;
  top: -28px;
  width: 90px;
  height: 165px;
  z-index: 1010;
  text-decoration: none;
}

.logo-badge .badge-rect {
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 27, 45, .15);
}

.logo-badge .badge-logo {
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translate(-50%, -50%);
  height: 78px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .2));
}

.primary-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: .55rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  padding: .55rem .95rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  z-index: 1060;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 1040;
  display: none;
}

body.nav-open .nav-scrim {
  display: block;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 35vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  background-color: #0f4c72;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .20), rgba(0, 0, 0, .45));
  z-index: 1;
  backdrop-filter: saturate(110%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
  width: min(var(--container-max), 90%);
  margin-top: 20px;
}

.hero-content h1 {
  color: #fff;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  text-shadow: 0 3px 12px rgba(0, 0, 0, .35);
  line-height: 1.05;
  margin: 20px 0 0 0;
}

.hero--mini {
  min-height: 40vh;
  padding: 3rem 0;
}

.hero.hero--qa {
  position: relative;
}

@media (min-width:901px) {
  .hero.hero--qa {
    min-height: 52vh;
    padding: 0;
    display: block;
    background-size: cover;
    background-position: center;
  }

  .hero.hero--qa .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(130% 120% at 0% 50%, rgba(10, 16, 28, .70) 0%, rgba(10, 16, 28, .40) 28%, rgba(10, 16, 28, .18) 48%, rgba(10, 16, 28, 0) 64%),
      radial-gradient(120% 110% at 100% 50%, rgba(10, 16, 28, .40) 0%, rgba(10, 16, 28, .18) 34%, rgba(10, 16, 28, 0) 60%),
      linear-gradient(180deg, rgba(10, 16, 28, .16) 0%, rgba(10, 16, 28, 0) 40%, rgba(10, 16, 28, .24) 100%);
  }

  .hero.hero--qa::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 -120px 160px -120px rgba(0, 0, 0, .55);
  }

  .hero.hero--qa .hero-content {
    position: absolute;
    z-index: 2;
    left: max(calc((100vw - var(--container-max)) / 2 + 56px), 6vw);
    top: 50%;
    transform: translateY(-50%);
    width: min(44vw, 620px);
    margin: 0;
    text-align: left;
  }

  .hero.hero--qa .hero-content h1 {
    margin: 0;
    font-weight: 300;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .70);
  }
}

@media (min-width:901px) {
  .header-inner {
    padding-left: 150px;
  }
}

@media (max-width:900px) {
  .header-inner {
    justify-content: flex-end;
    padding: .7rem 0;
    padding-left: 140px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 360px);
    background: #fff;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 2010;
    box-shadow: -12px 0 30px rgba(15, 27, 45, .1);
    padding-top: 72px;
  }

  body.nav-open .primary-nav {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 6%;
  }

  .primary-nav li {
    padding: .8rem 0;
    border-top: 1px solid var(--line);
  }

  .primary-nav li:first-child {
    border-top: none;
  }

  .site-header {
    z-index: 2000;
  }

  .menu-toggle {
    z-index: 2020;
  }

  .nav-scrim {
    z-index: 1500;
  }

  .hero {
    height: var(--hero-h-mobile);
    min-height: 0;
    padding: 0;
    display: block;
  }

  .hero .overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: var(--hero-h-mobile);
    background: linear-gradient(180deg, rgba(0, 0, 0, .50) 0%, rgba(0, 0, 0, .40) 32%, rgba(0, 0, 0, .22) 66%, rgba(0, 0, 0, 0) 100%);
  }

  .hero-content {
    position: absolute;
    left: 50%;
    top: calc(var(--hero-h-mobile) * var(--title-bias));
    transform: translate(-50%, -50%);
    width: min(92vw, 720px);
    margin: 0;
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
    line-height: 1.08;
    margin: .1rem 0;
  }

  .hero.hero--qa .overlay {
    position: absolute;
    inset: 0 0 auto 0;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(10, 16, 28, .58) 0%, rgba(10, 16, 28, .42) 36%, rgba(10, 16, 28, .18) 68%, rgba(10, 16, 28, 0) 100%),
      radial-gradient(120% 90% at 8% 50%, rgba(10, 16, 28, .55) 0%, rgba(10, 16, 28, 0) 60%);
  }

  .hero.hero--qa::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 -80px 120px -60px rgba(0, 0, 0, .45);
    z-index: 1;
  }

  .hero.hero--qa .hero-content {
    position: absolute;
    left: clamp(45px, 4vw, 24px);
    right: clamp(14px, 6vw, 28px);
    bottom: clamp(45px, 4.5vw, 28px);
    top: auto;
    transform: none;
    width: auto;
    margin: 0;
    z-index: 2;
    text-align: left;
  }
}

/* ===== Footer (unchanged) ===== */
.site-footer {
  background: var(--primary);
  color: #dcebfa;
  margin-top: 2rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  opacity: .95;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(30px, 3vw, 28px) 0 clamp(24px, 4vw, 36px);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 18px);
}

.footer-logo {
  max-width: 30%;
  width: clamp(160px, 40%, 260px);
  height: auto;
}

.footer-divider {
  border: 0;
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, .85);
  border-radius: 3px;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  flex-wrap: wrap;
}

.partner-logos img {
  height: 50px;
  width: auto;
  opacity: .95;
}

.partner-logos img:hover {
  opacity: 1;
}

.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2.5vw, 28px);
  align-content: start;
}

.footer-col h4 {
  margin: 0 0 .6rem 0;
  color: #fff;
  font-size: clamp(1rem, .9vw + .8rem, 1.2rem);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}

.footer-links li a {
  font-weight: 500;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .6rem 0;
  display: grid;
  gap: .4rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.contact-list .ico img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}

.socials-row {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: .95;
}

.btn-icon:hover {
  opacity: 1;
}

.btn-icon img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}

.copyright {
  text-align: center;
  padding: .9rem 0;
  background: rgba(0, 0, 0, .12);
  color: #e5f1fb;
  margin: 0;
}

@media (max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-right {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo {
    width: clamp(120px, 35vw, 180px);
  }
}

@media (max-width:600px) {
  .footer-right {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: clamp(110px, 50vw, 160px);
  }

  .partner-logos img {
    height: clamp(22px, 6vw, 32px);
  }

  .btn-icon {
    width: 34px;
    height: 34px;
  }

  .btn-icon img {
    width: 18px;
    height: 18px;
  }
}

/* Lightbox: do not affect page flow */
.mt-lb__frame{
  position: fixed;          /* take it out of the normal flow */
  inset: 0;                 /* full viewport */
  display: none;            /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  z-index: 99999;
  margin: 0; padding: 0;
}

.mt-lb__frame.is-open{      /* class you toggle when opening */
  display: flex;
}

/* Stage & image sizing */
.mt-lb__stage{
  max-width: min(92vw, 1100px);
  max-height: 88vh;
}
.mt-lb__img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Close button */
.mt-lb__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}


/* ===== Page layout ===== */
.section {
  padding: clamp(28px, 4vw, 56px) 0;
}

.sec-head {
  margin: clamp(12px, 2vw, 18px) 0 18px;
}

.sec-head h2 {
  color: var(--ink);
  margin: 0 0 .25rem 0;
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.8rem);
}

.lead {
  margin: .25rem 0 0 0;
  color: var(--muted);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2vw, 22px);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.2vw, 24px);
}

@media (max-width:900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.muted {
  color: #7a8aa1;
}

.small {
  font-size: .95rem;
  margin-bottom: 0;
}

/* Buttons */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary-600);
  box-shadow: 0 8px 18px rgba(35, 132, 198, .25);
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  border-color: var(--primary-600);
  color: var(--primary-600);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  color: #ffffff;
}

/* ===== Qatar-style Tabs ===== */
.tabs {
  margin-top: 10px;
  margin-bottom: clamp(24px, 4vw, 56px);
}

.tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem;
  overflow: hidden;
}

.tabs .tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1rem;
  color: #5d6b82;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  border-radius: 999px;
}

.tabs .tab::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 3px;
  background: transparent;
  border-radius: 3px;
  transition: background .25s ease;
}

#tab-contact:checked~.tabs-nav label[for="tab-contact"],
#tab-locate:checked~.tabs-nav label[for="tab-locate"],
#tab-call:checked~.tabs-nav label[for="tab-call"] {
  color: #111827;
  background: #fff;
}

#tab-contact:checked~.tabs-nav label[for="tab-contact"]::after,
#tab-locate:checked~.tabs-nav label[for="tab-locate"]::after,
#tab-call:checked~.tabs-nav label[for="tab-call"]::after {
  background: var(--accent);
}

.tabs-body {
  margin-top: 14px;
}

.panel {
  display: none;
}

#tab-contact:checked~.tabs-body #panel-contact {
  display: block;
}

#tab-locate:checked~.tabs-body #panel-locate {
  display: block;
}

#tab-call:checked~.tabs-body #panel-call {
  display: block;
}

/* ===== Contact form ===== */
.contact-form {
  display: grid;
  gap: .75rem;
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

@media (max-width:700px) {
  .contact-form .row {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: grid;
  gap: .35rem;
  color: var(--ink);
}

.contact-form label span {
  font-weight: 700;
  font-size: .95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .85rem .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #c6d9ec;
  box-shadow: 0 0 0 4px rgba(35, 132, 198, .12);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.form-note {
  margin: .6rem 0 0 0;
  font-size: .95rem;
  color: #7b889b;
}

/* ===== Call card animation ===== */
.call-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-anim {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
}

.phone-svg {
  width: 28px;
  height: 28px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  fill: #fff;
  z-index: 2;
}

.phone-anim::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(35, 132, 198, .35);
}

.wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--primary);
  opacity: .6;
  animation: wave 2.1s infinite ease-out;
}

.wave-2 {
  animation-delay: .35s;
}

.wave-3 {
  animation-delay: .7s;
}

@keyframes wave {
  0% {
    transform: scale(.6);
    opacity: .65;
  }

  70% {
    transform: scale(1.35);
    opacity: .15;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.call-info .big-number {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
  margin: .2rem 0 .5rem 0;
}

/* ===== Address + map ===== */
.addr {
  font-style: normal;
  color: var(--muted);
}

.map-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}

.hrs {
  margin-top: .6rem;
}

.hrs strong {
  display: block;
  color: var(--ink);
}

/* ===== Split card (image + content in same card) ===== */
.card--split {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) 1.1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.card--split .card-media {
  background-size: cover;
  background-position: center;
  min-height: 220px;
}

.card--split .card-body {
  padding: clamp(18px, 2.2vw, 26px);
}

@media (max-width:900px) {
  .card--split {
    grid-template-columns: 1fr;
  }

  .card--split .card-media {
    aspect-ratio: 16/9;
  }
}

/* ===== Stars & review button ===== */
.reviews-head h2 {
  margin: .2rem 0 .4rem 0;
  color: var(--ink);
}

.reviews .lead {
  margin: 0 0 .6rem 0;
}

.stars {
  display: flex;
  gap: .25rem;
  margin: .2rem 0 .9rem 0;
}

.stars img {
  width: 20px;
  height: 20px;
  filter: grayscale(0) saturate(1) opacity(.95);
}

.google-review {
  margin-top: .2rem;
}

/* Feedback section spacing */
.feedback {
  margin-top: clamp(28px, 5vw, 60px);
}

/* Heading aligns with your current type scale */
.feedback-title {
  margin: 0 0 .6rem 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.1rem);
  font-weight: 300;
}

/* Grid: two cards like Qatar */
.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.2vw, 24px);
}

@media (max-width: 900px) {
  .feedback-grid {
    grid-template-columns: 1fr;
  }
}

/* Split card already exists via .card--split; tighten body */
.feedback-card .card-body {
  padding: clamp(20px, 2.2vw, 28px);
}

.feedback-card h3 {
  margin: .2rem 0 .4rem;
  color: var(--ink);
  font-weight: 800;
}

.feedback-card p {
  margin: 0 0 .9rem;
}

/* Thin divider like screenshot */
.soft-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: .4rem 0 .7rem;
}

/* Link row with chevron */
.feedback-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.feedback-link::after {
  content: "›";
  font-size: 1.2em;
  line-height: 1;
  transform: translateY(-1px);
  color: var(--muted);
}

.feedback-link:hover {
  color: var(--primary);
}

.feedback-link:hover::after {
  color: var(--primary);
}

/* Center-align the "Call us" contact card */
.call-card {
  display: flex;
  /* override default card padding/layout */
  justify-content: center;
  align-items: center;
  text-align: center;
  /* center text */
  padding-block: clamp(24px, 3vw, 36px);
}

.call-card .call-wrap {
  display: flex;
  /* override previous row layout */
  flex-direction: column;
  /* stack icon -> text -> button */
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
}

.call-card .phone-anim {
  margin-inline: auto;
  /* center the animated icon */
}

.call-card .big-number {
  margin: .2rem 0 .6rem;
}

.call-card .btn-primary {
  margin-top: .2rem;
  /* subtle breathing room */
}

/* === LOCATE US — match first card to map height (360.34px) === */
:root {
  --locateCardH: 360.34px;
}

@media (min-width:901px) {

  /* First card container */
  #panel-locate .card--mediaTop {
    height: var(--locateCardH);
    /* lock to map card height */
    display: flex;
    flex-direction: column;
    padding: 0;
    /* clean edge like Qatar */
    overflow: hidden;
    border-radius: var(--radius);
  }

  /* Top image trims first if space is tight */
  #panel-locate .card--mediaTop .media-top {
    flex: 0 0 44%;
    /* ~top half for image */
    min-height: 140px;
    /* keep some presence */
    max-height: 58%;
    /* never dominate */
    background-size: cover;
    background-position: center;
  }

  /* Body fills the rest */
  #panel-locate .card--mediaTop .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 18px 20px;
    /* neat, compact spacing */
  }

  /* Tiny text tweaks so everything sits nicely */
  #panel-locate .card--mediaTop .addr p {
    margin: 0;
  }

  #panel-locate .card--mediaTop .hrs {
    margin-top: .35rem;
  }
}

/* Mobile/tablet: let it grow naturally */
@media (max-width:900px) {
  #panel-locate .card--mediaTop {
    height: auto;
    padding: 0;
  }

  #panel-locate .card--mediaTop .media-top {
    aspect-ratio: 16/9;
  }
}

/* Locate us — condensed text so it fits the fixed height */
#panel-locate .card--mediaTop .card-body {
  gap: .35rem;
  padding: 16px 18px;
  /* slightly tighter than default */
}

#panel-locate .card--mediaTop .loc-line {
  margin: .1rem 0 .35rem;
  line-height: 1.25;
  font-size: clamp(1rem, .9vw + .75rem, 1.15rem);
  font-weight: 800;
}

#panel-locate .card--mediaTop .hrs {
  margin-top: .2rem;
}

#panel-locate .card--mediaTop .hrs p {
  margin: 0;
}

/* -- Fill leftover space with the image on desktop (same total height) -- */
@media (min-width:901px) {
  #panel-locate .card--mediaTop {
    height: var(--locateCardH);
    /* 360.34px from your var */
    padding: 0;
    overflow: hidden;
    /* keep rounded clipping */
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
  }

  /* Let the IMAGE take all remaining space; text keeps its natural height */
  #panel-locate .card--mediaTop .media-top {
    flex: 1 1 auto;
    /* grows to consume any extra room */
    min-height: 150px;
    background-size: cover;
    background-position: center;
  }

  #panel-locate .card--mediaTop .card-body {
    flex: 0 0 auto;
    /* only as tall as its content */
    padding: 16px 18px 12px;
    /* slightly tighter bottom */
    display: flex;
    flex-direction: column;
    gap: .35rem;
  }

  /* remove phantom bottom spacing */
  #panel-locate .card--mediaTop .card-body p {
    margin: 0;
  }
}

/* -- Mobile: image full bleed and corners preserved -- */
@media (max-width:900px) {
  #panel-locate .card--mediaTop {
    padding: 0;
    overflow: hidden;
    /* ensures curved top corners */
    border-radius: var(--radius);
    height: auto;
  }

  #panel-locate .card--mediaTop .media-top {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* nice header height on mobile */
    background-size: cover;
    background-position: center;
    border-top-left-radius: inherit;
    /* (optional – extra safety) */
    border-top-right-radius: inherit;
  }
}

/* ===== Locate 1st card — proportional image/text + gap fix ===== */
:root {
  --locateCardH: 360.34px;
  /* keep map height baseline on desktop */
  --locateImgMinPct: .48;
  /* desktop: min portion of card used by image */
  --locateImgMaxPct: .50;
  /* desktop: cap so text always fits */
  --locateImgARMobile: 31/9;
  /* mobile image aspect (try 4/3 for taller) */
}

@media (min-width:901px) {
  #panel-locate .card--mediaTop {
    height: var(--locateCardH);
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
  }

  /* Image grows to consume leftover space → no gap under last paragraph */
  #panel-locate .card--mediaTop .media-top {
    flex: 1 1 auto;
    min-height: calc(var(--locateCardH) * var(--locateImgMinPct));
    max-height: calc(var(--locateCardH) * var(--locateImgMaxPct));
    background-size: cover;
    background-position: center;
  }

  /* Nudge text slightly up & keep it compact */
  #panel-locate .card--mediaTop .card-body {
    flex: 0 0 auto;
    padding: 12px 18px 10px;
    /* was 16/18/12 */
    gap: .30rem;
  }

  #panel-locate .card--mediaTop .card-body p {
    margin: 0;
  }

  /* kill bottom gap */
}

@media (max-width:900px) {
  #panel-locate .card--mediaTop {
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    height: auto;
  }

  /* Full-bleed image that STILL keeps the card’s top curves */
  #panel-locate .card--mediaTop .media-top {
    width: 100%;
    aspect-ratio: var(--locateImgARMobile);
    background-size: cover;
    background-position: center;
    border-top-left-radius: inherit;
    /* ensure the rounded corners remain */
    border-top-right-radius: inherit;
  }

  /* Balanced text spacing on mobile */
  #panel-locate .card--mediaTop .card-body {
    padding: 12px 16px;
    gap: .30rem;
  }

  #panel-locate .card--mediaTop .card-body p {
    margin: 0;
  }
}

/* Online call → remove top margin on "Get help with live chat" */
#panel-call .card--split .card-body > h3{
  margin-top: 0;
  margin-block-start: 0;
}

/* === FINAL: Mobile image heights for Online Call & Feedback === */
:root{
  /* adjust these to taste (taller -> smaller denominator; shorter -> bigger) */
  --callImgARMobile: 21/9;      /* Online call image on mobile */
  --feedbackImgARMobile: 21/9;  /* Feedback images on mobile */
}

@media (max-width:900px){
  /* Let split-card images shrink; desktop rules stay intact */
  .card--split .card-media{ 
    min-height: 0; 
    background-size: cover; 
    background-position: center; 
  }

  /* Online call image */
  #panel-call .card--split .card-media{
    aspect-ratio: var(--callImgARMobile);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
  }

  /* Feedback images (works for both two-card grid and single split variant) */
  .feedback .card--split .card-media,
  .feedback-grid .card--split .card-media,
  .reviews--split .card-media{
    aspect-ratio: var(--feedbackImgARMobile);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
  }

  /* Optional safety cap for very small phones — uncomment if needed */
  /* 
  #panel-call .card--split .card-media,
  .feedback .card--split .card-media,
  .feedback-grid .card--split .card-media,
  .reviews--split .card-media{
    max-height: clamp(140px, 32vw, 180px);
  }
  */
}
