/* NeedATaxi.co.uk — palette taken from the logo:
   taxi yellow, deep navy, sky blue. */

:root {
  --navy:        #1d3355;
  --navy-deep:   #15263f;
  --navy-soft:   #2a4770;
  --yellow:      #f9b615;
  --yellow-dark: #d99400;
  --sky:         #8fcde8;
  --sky-pale:    #e8f4fb;
  --ink:         #14202f;
  --body:        #45566b;
  --line:        #dfe6ee;
  --card:        #ffffff;
  --page:        #f4f7fa;
  --radius:      14px;
  --shadow:      0 1px 2px rgba(20, 32, 47, .06), 0 8px 24px rgba(20, 32, 47, .07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); letter-spacing: -.01em; }
a  { color: var(--navy-soft); }

/* Full-bleed: use the whole viewport width, with a gutter that grows
   a little on wider desktop screens. */
.wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 3rem);
}
.muted { color: var(--body); opacity: .8; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--navy);
  background-image: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 14px rgba(20, 32, 47, .18);
}

.header-inner {
  display: flex; align-items: center; gap: 1rem;
  /* padding-block only: keep the .wrap side gutter so the logo and buttons
     aren't flush against the screen edge (a `padding` shorthand would zero it). */
  padding-block: .6rem; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
/* height drives it; width follows the logo's true 804:822 ratio */
.brand img { display: block; height: 52px; width: auto; }
.brand-text {
  color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
}
.brand-dot { color: var(--yellow); }

.search { display: flex; flex: 1 1 320px; min-width: 0; gap: .4rem; }
.search input {
  flex: 1 1 auto; min-width: 0;
  padding: .7rem .9rem;
  border: 2px solid transparent; border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 1rem;
}
.search input:focus { outline: none; border-color: var(--yellow); }
.search button {
  padding: .7rem 1.1rem; border: 0; border-radius: 10px;
  background: var(--yellow); color: var(--navy-deep);
  font-weight: 700; font-size: 1rem; cursor: pointer;
}
.search button:hover { background: var(--yellow-dark); }

/* ---------------------------------------------------------------- account nav */

.account-nav { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.nav-link {
  display: inline-block; padding: .55rem .8rem; border-radius: 8px;
  color: #dbe6f3; text-decoration: none; font-weight: 600; font-size: .92rem;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-link-strong { background: var(--yellow); color: var(--navy-deep); }
.nav-link-strong:hover { background: var(--yellow-dark); color: var(--navy-deep); }
.nav-link-btn { border: 0; background: transparent; cursor: pointer; font-family: inherit; }
/* Outlined pill so "Print Poster" reads as a button without competing with
   the solid yellow Register/Admin call-to-action. */
.nav-link-poster { border: 1px solid rgba(255,255,255,.35); }
.nav-link-poster:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.12); }
.inline-form { display: inline; margin: 0; }

/* Hamburger — hidden on desktop, where the links sit inline. */
.nav-toggle {
  display: none;
  width: 46px; height: 46px; flex: 0 0 auto;
  margin-left: auto;                 /* pins it opposite the logo */
  border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .12);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .2); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 22px; height: 2.5px; border-radius: 2px;
  background: #fff; margin-inline: auto; content: '';
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { transform: translateY(-7px); }
.nav-toggle-bars::after  { transform: translateY(4.5px); }

/* Open state: the bars become a cross. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: rotate(-45deg) translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
}

@media (max-width: 760px) {
  .header-inner { row-gap: .5rem; }
  .brand { flex: 0 1 auto; }
  .brand-text { font-size: 1rem; }

  .nav-toggle { display: block; }

  /* Search keeps its own full-width row — on a taxi directory it is the
     one control people reach for first, so it is never hidden away. */
  .search { order: 3; flex-basis: 100%; }

  .account-nav {
    order: 4; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .account-nav.is-open {
    max-height: 22rem;
    padding-top: .3rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    margin-top: .2rem;
  }
  .account-nav .nav-link,
  .account-nav .inline-form,
  .account-nav .nav-link-btn { width: 100%; text-align: left; }
  .account-nav .nav-link { padding: .8rem .6rem; border-radius: 8px; }
  .nav-link-strong { text-align: center; margin-top: .3rem; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .account-nav { transition: none; }
}

/* ---------------------------------------------------------------- forms */

.panel-narrow { max-width: 30rem; margin-inline: auto; }

.form { display: flex; flex-direction: column; gap: .3rem; margin: 1.2rem 0 1rem; }
.form label { font-weight: 600; color: var(--ink); margin-top: .7rem; }
.form input {
  padding: .7rem .85rem; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus { outline: none; border-color: var(--yellow-dark); }
.form .btn { margin-top: 1.2rem; justify-content: center; }
.field-hint { font-size: .85rem; color: var(--body); margin: .35rem 0 0; }

/* ---------------------------------------------------------------- favourite button */

.fav {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .8rem; border-radius: 8px; cursor: pointer;
  background: #fff; color: var(--navy);
  border: 2px solid var(--line);
  font-weight: 700; font-size: .9rem; font-family: inherit;
}
.fav:hover { border-color: var(--yellow); background: #fffdf5; }
.fav[aria-pressed="true"] {
  background: var(--yellow); border-color: var(--yellow); color: var(--navy-deep);
}
.fav:disabled { opacity: .55; cursor: progress; }
.fav-star { font-size: 1.05rem; line-height: 1; }

.link-btn {
  background: none; border: 0; padding: .5rem .3rem; cursor: pointer;
  color: var(--body); font-size: .85rem; font-family: inherit; text-decoration: underline;
}
.link-btn:hover { color: var(--ink); }

/* ---------------------------------------------------------------- operator + detail */

.form textarea {
  padding: .7rem .85rem; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); resize: vertical;
}
.form textarea:focus { outline: none; border-color: var(--yellow-dark); }
.form-wide { max-width: 46rem; }
.form h2 {
  margin-top: 1.8rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--line); font-size: 1.15rem;
}

.form select {
  padding: .7rem .85rem; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.form select:focus { outline: none; border-color: var(--yellow-dark); }

/* ---------------------------------------------------------------- admin */

.admin-nav {
  display: flex; flex-wrap: wrap; gap: .3rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: .35rem; margin-bottom: 1.2rem;
}
.admin-nav a {
  padding: .5rem .95rem; border-radius: 8px; text-decoration: none;
  color: var(--body); font-weight: 600; font-size: .92rem;
}
.admin-nav a:hover { background: var(--sky-pale); }
.admin-nav a.on { background: var(--navy); color: #fff; }

.stat-tiles {
  display: grid; gap: .7rem; margin: .8rem 0 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.tile-stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem 1rem;
}
.tile-stat b { display: block; font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.tile-stat span { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--body); }
.tile-stat.is-alert { border-color: var(--yellow); background: #fffdf0; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td {
  text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table thead th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--body); border-bottom: 2px solid var(--line);
}
.admin-table tr.is-suspended { opacity: .55; }
.table-scroll { overflow-x: auto; }

.filter-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filter {
  padding: .4rem .9rem; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); color: var(--body); font-size: .9rem; font-weight: 600;
}
.filter:hover { background: var(--sky-pale); }
.filter.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.filter-search { display: flex; gap: .4rem; margin-bottom: 1rem; max-width: 26rem; }
.filter-search input {
  flex: 1; padding: .6rem .8rem; border: 2px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: .95rem;
}
.filter-search input:focus { outline: none; border-color: var(--yellow-dark); }

.warn-text { color: #9a5b00; font-weight: 600; }

.licence-check {
  background: #fffdf0; border-left: 3px solid var(--yellow);
  padding: .5rem .7rem; border-radius: 6px;
}

.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; margin-top: .5rem; }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--yellow-dark); }

.attr-group { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin: .8rem 0 0; }
.attr-group legend { font-weight: 700; color: var(--ink); padding: 0 .4rem; font-size: .9rem; }

.steps { margin: 1rem 0 1.4rem; padding-left: 1.2rem; color: var(--body); }
.steps li { margin: .3rem 0; }

.pick-list { list-style: none; margin: .8rem 0 0; padding: 0; }
.pick-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .9rem; margin-bottom: .5rem; background: #fff;
}

.hours, .hours-edit { border-collapse: collapse; width: 100%; margin-top: .6rem; }
.hours th, .hours td, .hours-edit th, .hours-edit td {
  text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); font-weight: 500;
}
.hours .is-today { background: var(--sky-pale); font-weight: 700; }
.hours-edit input[type=time] {
  padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; font-family: inherit;
}
.hours-edit thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--body); }

.detail-grid {
  display: grid; gap: 1.5rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.detail-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.tel-lg { font-size: 1.15rem; padding: .7rem 1.2rem; }

.kv { margin: .5rem 0 0; }
.kv dt { font-weight: 700; color: var(--ink); margin-top: .6rem; font-size: .85rem;
         text-transform: uppercase; letter-spacing: .04em; }
.kv dd { margin: .15rem 0 0; }

.lede { font-size: 1.05rem; max-width: 65ch; }

.facilities { list-style: none; padding: 0; margin: .6rem 0 0;
  display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.facilities li { background: var(--sky-pale); border-radius: 8px; padding: .45rem .7rem; font-size: .92rem; }

.badge-open {
  display: inline-block; background: #e6f6ea; color: #1c6b32;
  border-radius: 999px; padding: .3rem .9rem; font-weight: 700;
}
.tag-verified { background: #e6f6ea; color: #1c6b32; }
.claim-prompt { margin-top: 1.5rem; background: var(--sky-pale); }

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem;
  align-items: center;
  background: linear-gradient(150deg, #fff, var(--sky-pale));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.2rem);
  margin: 1.5rem 0; box-shadow: var(--shadow);
}
.hero > div { align-self: center; }
.hero p { max-width: 52ch; margin: 0 0 1rem; font-size: 1.05rem; }

/* Sized by width, so it can never balloon to the image's natural 804x822:
   in an `auto` grid column, height:100% would let the image define the row
   height and then fill it - a circular sizing that blew up to full size.
   max-height keeps it inside the hero if the text column is ever short. */
.hero-logo {
  width: clamp(150px, 14vw, 260px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
}

/* The header is sticky, so leave room for it when we scroll results
   into view — otherwise the panel heading lands underneath it. */
#nearby-panel { scroll-margin-top: 5.5rem; }

.stat-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.stat b { display: block; color: var(--navy); font-size: 1.5rem; line-height: 1.1; }
.stat span { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

/* Must come AFTER the .stat-row base rule above: same specificity, so
   whichever is written last wins. */
@media (max-width: 760px) {
  /* Directory-size counts are reassurance for a browsing desktop visitor.
     On a phone the job is to get to a number fast, so they only push the
     search and the results further down the screen. */
  .stat-row { display: none; }
  #nearby-panel { scroll-margin-top: 7.5rem; }   /* taller sticky header */
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.3rem; border: 0; border-radius: 10px;
  background: var(--yellow); color: var(--navy-deep);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--yellow-dark); }
.btn-ghost {
  background: transparent; color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--navy-soft); }

/* ---------------------------------------------------------------- panels */

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1rem, 2.5vw, 1.6rem);
  margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}

/* ---------------------------------------------------------------- radius slider */

.radius {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1rem; background: var(--sky-pale);
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1.2rem;
}
.radius label { font-weight: 600; color: var(--ink); white-space: nowrap; }
.radius input[type=range] { flex: 1 1 200px; accent-color: var(--yellow-dark); min-width: 160px; }
.radius output {
  font-weight: 800; color: var(--navy); min-width: 5.5ch;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .15rem .7rem; text-align: center;
}

/* ---------------------------------------------------------------- company cards */

.cards { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 12px; padding: .95rem 1.1rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.card h3 { margin: 0; font-size: 1.05rem; }

/* Registered companies: a green tick by the name and a matching left edge,
   so they read as a group when they sort to the top of a list. */
.verified-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; vertical-align: -2px;
  border-radius: 50%; background: #1c8a3e; color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 1;
  cursor: help;
}
.card.is-registered { border-left-color: #1c8a3e; }

.avail { font-size: .85rem; font-weight: 700; }
.avail.is-open { color: #1c6b32; }
.avail.is-shut { color: #8a6100; }

/* Outside published hours: pushed to the end of the list and visibly
   dimmed, but still readable and still callable — a closed office may
   still answer, and the number is the point of the page. */
.card.is-closed-now {
  background: #f7f8fa;
  border-left-color: #b9c2cd;
  opacity: .72;
}
.card.is-closed-now:hover { opacity: 1; }
.card.is-closed-now .tel { background: #6b7889; }
.card.is-closed-now .verified-mark { background: #6b7889; }
.card .meta { font-size: .88rem; }
.card .tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  background: var(--sky-pale); color: var(--navy);
  border-radius: 999px; padding: .12rem .6rem;
}
.card-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .35rem; }

.tel {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 700; letter-spacing: .01em;
  padding: .5rem .9rem; border-radius: 8px;
}
.tel:hover { background: var(--navy-deep); }
.tel.is-empty { background: var(--line); color: var(--body); pointer-events: none; }

.link-out { font-size: .85rem; align-self: center; }

/* ---------------------------------------------------------------- lists */

.tile-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .85rem; text-decoration: none; color: var(--ink); font-weight: 600;
}
.tile:hover { border-color: var(--yellow); background: #fffdf5; }
.tile .n { font-weight: 700; font-size: .8rem; color: var(--body); }

.country-group { margin-bottom: 1.6rem; }
.country-group > h3 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--body); border-bottom: 2px solid var(--line);
  padding-bottom: .4rem; margin-bottom: .8rem;
}

.crumbs { font-size: .9rem; margin: 1.2rem 0 .8rem; }
.crumbs a { color: var(--navy-soft); }

/* ---------------------------------------------------------------- states */

.notice {
  padding: .9rem 1.1rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; margin-bottom: 1rem;
}
.notice.warn { background: #fff8e6; border-color: #f0d799; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--yellow-dark);
  animation: spin .8s linear infinite; display: inline-block; vertical-align: -5px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy-deep); color: #fff;
  margin-top: 2.5rem; padding: 2rem 0;
}
.site-footer p { margin: .3rem 0; font-size: .9rem; }
.site-footer strong { color: #fff; }
/* Footer sits on dark navy, so keep every bit of text white and legible —
   overrides the dark, dimmed .muted used for the disclaimer and links. */
.site-footer .muted { color: #fff; opacity: 1; }
.site-footer a { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------- subscription plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1rem; }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--card); display: flex; flex-direction: column; }
.plan-card-featured { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow) inset; }
.plan-card h2 { margin: 0 0 .25rem; }
.plan-price { font-size: 1.1rem; margin: 0 0 .75rem; }
.plan-price strong { font-size: 1.6rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.plan-features li { padding-left: 1.4rem; position: relative; color: var(--body); }
.plan-features li::before { content: "\2714"; position: absolute; left: 0; color: var(--yellow-dark); font-weight: 700; }
.plan-card .btn { margin-top: auto; }
.btn.is-disabled { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------- paid-plan styling */
.card.is-featured { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow) inset, var(--shadow); position: relative; }
.featured-flag {
  display: inline-block; background: var(--yellow); color: var(--navy-deep);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 6px; margin-bottom: .4rem;
}
.tag-featured { background: var(--yellow); color: var(--navy-deep); }
.tag-plan { font-weight: 700; }
.tag-plan-free { background: var(--line); color: var(--body); }
.tag-plan-verified { background: #e6f4ea; color: #1c7a3e; }
.tag-plan-featured { background: var(--yellow); color: var(--navy-deep); }

/* ---------------------------------------------------- listing photos */
.company-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .6rem; margin: 1rem 0 1.25rem;
}
.company-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: var(--page);
}
.photo-upload { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-top: 1rem;
}
.photo-item { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.photo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-item figcaption { padding: .5rem .6rem; display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }
.photo-actions { display: flex; gap: .5rem; align-items: center; }

/* ---------------------------------------------------- richer paid cards */
.card-photo { display: block; margin: -1px -1px .7rem; border-radius: 0; overflow: hidden; }
.card.is-featured .card-photo { margin-top: -1px; }
.card-photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-desc { color: var(--body); font-size: .92rem; line-height: 1.45; margin: .1rem 0 .5rem; }

/* Featured & Verified each render in their own wide grid, stacked above the
   free listings — so a card is only ever row-aligned with its own tier and
   never stretched to a taller tier's height. */
.cards-featured,
.cards-verified {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  margin-bottom: 1rem;
}

/* Tier heading above each section. */
.tier-heading {
  font-size: 1.05rem; margin: 1.2rem 0 .6rem;
  padding-bottom: .3rem; border-bottom: 2px solid var(--line);
}
.tier-heading:first-child { margin-top: .2rem; }

/* Card content lives in .card-body; the card itself only stacks photo + body.
   The body carries the vertical spacing the card used to have. */
.card-body { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }

/* Featured card, when it has room: photo on the left, details on the right. */
@media (min-width: 620px) {
  .cards-featured .card.is-featured {
    flex-direction: row; align-items: stretch;
    padding: 0; gap: 0; overflow: hidden;
  }
  .cards-featured .card.is-featured .card-photo {
    flex: 0 0 40%; margin: 0; align-self: stretch;
  }
  .cards-featured .card.is-featured .card-photo img {
    width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
  }
  .cards-featured .card.is-featured .card-body { flex: 1 1 auto; padding: .95rem 1.1rem; }
}

/* -------------------------------------------------- "advertise" promo banner */
.promo-banner {
  display: flex; align-items: center; gap: .6rem;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  color: var(--navy-deep); padding: .7rem 1rem; border-radius: 10px;
  margin-bottom: 1rem;
}
.promo-banner p { margin: 0; font-weight: 600; }
.promo-banner a { color: var(--navy-deep); font-weight: 800; text-decoration: underline; }
.promo-banner a:hover { text-decoration: none; }
.promo-icon { font-size: 1.25rem; line-height: 1; }

/* Distance shown on "nearest"/near-me result cards. */
.card-distance { font-size: .85rem; font-weight: 700; color: var(--navy-soft); }

/* Trustpilot TrustBox (Featured tier). */
.card-trustpilot { margin: .15rem 0 .35rem; min-height: 20px; }
.company-trustpilot { margin: .5rem 0 1.25rem; max-width: 340px; }

/* -------------------------------------------------- legal / policy pages */
.legal { max-width: none; }   /* use the full page width */
.legal h1 { margin-bottom: .25rem; }
.legal h2 { margin: 1.7rem 0 .5rem; font-size: 1.2rem; color: var(--navy); }
.legal h3 { margin: 1.1rem 0 .35rem; font-size: 1.02rem; color: var(--ink); }
.legal p, .legal li { line-height: 1.6; color: var(--body); }
.legal ul { margin: .4rem 0 .9rem 1.15rem; }
.legal li { margin: .25rem 0; }
.legal a { text-decoration: underline; }
.legal code { background: var(--page); padding: .05rem .3rem; border-radius: 4px; font-size: .9em; }
.legal-table { width: 100%; border-collapse: collapse; margin: .6rem 0 1.1rem; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; padding: .5rem .6rem; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--page); }
.legal-related { margin-top: 1.9rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.footer-legal a { white-space: nowrap; }

/* -------------------------------------------------- cookie consent banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--navy-deep); color: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.cookie-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1rem;
}
.cookie-text { margin: 0; flex: 1 1 320px; font-size: .92rem; line-height: 1.5; }
.cookie-text a { color: var(--yellow); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; margin-left: auto; }
.cookie-btn {
  border: 0; border-radius: 8px; padding: .55rem 1.2rem; cursor: pointer;
  font-size: .95rem; font-weight: 700;
}
.cookie-accept { background: var(--yellow); color: var(--navy-deep); }
.cookie-reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.cookie-btn:hover { opacity: .92; }
@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1 1 auto; }
}
