:root {
  --green-900: #013d3a;
  --green-800: #015450;
  --green-600: #397f77;
  --ink: #1f2724;
  --muted: #68736f;
  --sand: #f4efe6;
  --cream: #faf8f3;
  --white: #ffffff;
  --line: #e2ddd4;
  --accent: #c96e3a;
  --accent-dark: #9f4d24;
  --shadow: 0 24px 70px rgba(8, 26, 23, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 104px;
  padding: 10px clamp(18px, 5vw, 64px);
  background: rgba(250, 248, 243, 0.92);
  border-bottom: 1px solid rgba(1, 84, 80, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--green-900);
  font-size: 0.94rem;
  font-weight: 750;
}

.main-nav a,
.site-footer a,
.admin-link {
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.main-nav a:hover,
.main-nav a.nav-active,
.site-footer a:hover,
.admin-link:hover {
  color: var(--accent);
}

.main-nav a.nav-active {
  position: relative;
}

.main-nav a.nav-active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.header-action,
.btn.primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(201, 110, 58, 0.24);
}

.header-action:hover,
.btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(1, 84, 80, 0.22);
}

.btn.secondary:hover {
  border-color: var(--green-800);
  transform: translateY(-1px);
}

.btn.danger {
  color: #8f2f1c;
  border-color: rgba(143, 47, 28, 0.24);
  background: #fff4ef;
}

.btn.danger:hover {
  color: var(--white);
  border-color: #8f2f1c;
  background: #8f2f1c;
}

.btn.full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(1, 84, 80, 0.2);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--green-900);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(92px, 12vw, 156px) clamp(18px, 5vw, 64px) clamp(28px, 5vw, 64px);
  overflow: hidden;
  background: var(--green-900);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(1, 61, 58, 0) 0%, rgba(1, 61, 58, 0.88) 72%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 61, 58, 0.84) 0%, rgba(1, 61, 58, 0.42) 48%, rgba(1, 61, 58, 0.2) 100%),
    linear-gradient(180deg, rgba(1, 61, 58, 0.1) 0%, rgba(1, 61, 58, 0.72) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.hero-content,
.quick-quote {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 780px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.contact-section .eyebrow {
  color: #f2b184;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 5.6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--green-900);
  font-size: 1.16rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-actions {
  justify-self: end;
  max-width: 620px;
  gap: 10px;
}

.contact-phone {
  order: 3;
  flex-basis: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  color: var(--green-900);
  font-weight: 900;
}

.quick-quote {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(250, 248, 243, 0.96);
  box-shadow: var(--shadow);
}

.quick-quote h2 {
  margin-bottom: 20px;
  font-size: 1.45rem;
}

.quick-quote form,
.pin-form,
.catalog-editor {
  min-width: 0;
  display: grid;
  gap: 14px;
}

label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

textarea {
  min-height: 112px;
  padding-block: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-600);
  outline: 3px solid rgba(57, 127, 119, 0.18);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(1, 84, 80, 0.12);
  border-bottom: 1px solid rgba(1, 84, 80, 0.12);
  background: var(--white);
}

.trust-band div {
  min-height: 118px;
  padding: 26px clamp(18px, 4vw, 44px);
  border-right: 1px solid rgba(1, 84, 80, 0.12);
}

.trust-band div:last-child {
  border-right: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateX(-50%);
  animation: scroll-bounce 2.4s ease-in-out infinite;
}

.scroll-hint:hover {
  color: rgba(255, 255, 255, 0.9);
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.62;
  }
  55% {
    transform: translateX(-50%) translateY(7px);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .scroll-hint {
    display: none;
  }
}

.trust-icon {
  display: block;
  margin-bottom: 12px;
  color: var(--green-600);
}

.trust-band strong {
  display: block;
  color: var(--green-900);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1;
}

.trust-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
}

.origin-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  background: var(--cream);
}

.origin-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(8, 26, 23, 0.14);
}

.origin-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.origin-copy {
  max-width: 820px;
}

.origin-copy p:not(.eyebrow),
.origin-marks span {
  color: var(--muted);
  font-size: 1.04rem;
}

.origin-copy p:not(.eyebrow) {
  margin-bottom: 18px;
}

.origin-marks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid rgba(1, 84, 80, 0.16);
  border-bottom: 1px solid rgba(1, 84, 80, 0.16);
}

.origin-marks div {
  padding: 18px 18px 18px 0;
  border-right: 1px solid rgba(1, 84, 80, 0.16);
}

.origin-marks div + div {
  padding-left: 18px;
}

.origin-marks div:last-child {
  border-right: 0;
}

.origin-marks strong,
.origin-marks span {
  display: block;
}

.origin-marks strong {
  color: var(--green-900);
  font-size: 1.1rem;
  line-height: 1.15;
}

.origin-marks span {
  margin-top: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 64px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow),
.split-copy p:not(.eyebrow),
.included-grid p,
.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.fleet-section {
  background: var(--sand);
}

.compare-section {
  background: var(--cream);
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(1, 84, 80, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.compare-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(1, 84, 80, 0.1);
  vertical-align: top;
}

.compare-table thead th {
  color: var(--white);
  background: var(--green-800);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.compare-table tbody th {
  color: var(--green-900);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  min-height: 40px;
  padding: 0 15px;
  color: var(--green-900);
  border: 1px solid rgba(1, 84, 80, 0.2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.filter.active,
.filter:hover {
  color: var(--white);
  background: var(--green-800);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vehicle-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(1, 84, 80, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(8, 26, 23, 0.08);
}

.vehicle-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-900);
}

.vehicle-card figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.vehicle-card:hover figure > img {
  transform: scale(1.035);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(1, 38, 34, 0.72);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-nav:hover {
  background: rgba(1, 61, 58, 0.9);
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(1, 61, 58, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
}

.vehicle-card .price {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  color: var(--green-900);
  border-radius: var(--radius);
  background: rgba(250, 248, 243, 0.94);
  font-weight: 900;
}

.photo-count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(1, 61, 58, 0.78);
  cursor: pointer;
  font-weight: 900;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid rgba(1, 84, 80, 0.1);
  background: rgba(1, 84, 80, 0.04);
}

.photo-thumb,
.gallery-thumb {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--green-900);
  cursor: pointer;
}

.photo-thumb {
  aspect-ratio: 1 / 0.72;
}

.photo-thumb img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb:hover,
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--accent);
}

.vehicle-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.vehicle-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.specs li {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--green-900);
  border-radius: var(--radius);
  background: rgba(1, 84, 80, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  background: var(--cream);
}

.included-section {
  background: var(--sand);
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.included-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(1, 84, 80, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.included-icon {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
}

.split-copy {
  position: sticky;
  top: 112px;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article,
.route-grid article,
.faq details {
  border: 1px solid rgba(1, 84, 80, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  padding: 22px;
  position: relative;
}

.steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 43px;
  bottom: -14px;
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: rgba(1, 84, 80, 0.2);
}

.steps span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: rgba(201, 110, 58, 0.1);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 950;
}

.steps p,
.route-grid p,
.faq p {
  margin-bottom: 0;
  color: var(--muted);
}

.routes {
  background: var(--green-900);
}

.routes .section-head h2,
.contact-section h2 {
  color: var(--white);
}

.routes .route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.route-grid article {
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.route-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(8, 26, 23, 0.18);
}

.route-grid span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--accent);
  font-weight: 900;
}

.route-grid a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green-900);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.faq {
  background: var(--cream);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq details {
  padding: 18px 20px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  color: var(--green-900);
  font-size: 1.06rem;
  font-weight: 850;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(1, 84, 80, 0.08);
  color: var(--green-800);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  transition: background 200ms ease, transform 200ms ease;
}

.faq details[open] summary::after {
  content: "−";
  background: rgba(1, 84, 80, 0.14);
  transform: rotate(180deg);
}

.faq details p {
  padding-top: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(44px, 7vw, 78px) clamp(18px, 5vw, 64px);
  color: var(--white);
  background: var(--green-900);
}

.contact-location {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  font-weight: 750;
}

.contact-location a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-location span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 18px 52px;
  text-align: center;
  background: var(--cream);
}

.site-footer img {
  width: 104px;
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--green-900);
  font-weight: 800;
}

.admin-link {
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  color: var(--white);
  border-radius: 999px;
  background: #20b15a;
  box-shadow: 0 18px 36px rgba(32, 177, 90, 0.32);
  font-weight: 900;
}

.whatsapp-float svg {
  flex-shrink: 0;
}

.admin-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--cream);
  overflow: hidden;
}

.admin-dialog::backdrop {
  background: rgba(1, 24, 22, 0.72);
}

.gallery-dialog {
  width: min(1080px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--green-900);
  box-shadow: var(--shadow);
}

.gallery-dialog::backdrop {
  background: rgba(1, 24, 22, 0.72);
}

.gallery-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0;
  min-height: 560px;
}

.gallery-shell > img {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #071d1b;
}

.gallery-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.gallery-meta {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  background: var(--cream);
}

.gallery-meta h2 {
  margin-bottom: 0;
  font-size: 1.75rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  aspect-ratio: 1 / 0.8;
}

.details-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.details-dialog::backdrop {
  background: rgba(1, 24, 22, 0.7);
}

.details-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  max-height: min(880px, calc(100vh - 28px));
  overflow: auto;
  background: var(--cream);
}

.details-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.details-media {
  position: sticky;
  top: 0;
  min-height: 100%;
  background: var(--green-900);
}

.details-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.details-media span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  color: var(--white);
  border-radius: var(--radius);
  background: rgba(1, 61, 58, 0.78);
  font-weight: 900;
}

.details-content {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(26px, 4vw, 48px);
}

.details-content h2 {
  margin-bottom: 0;
}

.details-content > p,
.details-content div p {
  margin-bottom: 0;
  color: var(--muted);
}

.details-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.details-specs div {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(1, 84, 80, 0.08);
}

.details-specs dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.details-specs dd {
  margin: 4px 0 0;
  color: var(--green-900);
  font-weight: 900;
}

.details-content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.details-content li {
  padding: 9px 10px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green-900);
  font-weight: 800;
}

.details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--cream);
}

.admin-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(1, 84, 80, 0.14);
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(14px);
}

.admin-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.admin-back {
  min-height: 42px;
  padding: 0 15px;
  color: var(--green-900);
  border: 1px solid rgba(1, 84, 80, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--green-900);
  border: 1px solid rgba(1, 84, 80, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.pin-form {
  width: min(420px, calc(100vw - 32px));
  align-self: start;
  justify-self: center;
  margin-top: clamp(48px, 12vh, 120px);
  padding: 24px;
  border: 1px solid rgba(1, 84, 80, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(8, 26, 23, 0.08);
}

.login-status {
  min-height: 20px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.catalog-editor {
  height: calc(100vh - 86px);
  overflow: auto;
  overscroll-behavior: contain;
  align-content: start;
  gap: 22px;
  padding: 24px clamp(18px, 4vw, 48px) 48px;
}

.editor-summary {
  padding: 14px 18px;
  border: 1px solid rgba(1, 84, 80, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
}

.editor-summary strong {
  color: var(--green-900);
  font-size: 1rem;
  font-weight: 900;
}

.editor-summary span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-settings {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(220px, 0.45fr) minmax(180px, 1fr);
  align-items: end;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(1, 84, 80, 0.14);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-settings span,
.admin-settings strong,
.admin-settings small {
  display: block;
}

.admin-settings span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-settings strong {
  margin-top: 3px;
  color: var(--green-900);
  font-size: 1.1rem;
}

.admin-settings small {
  color: var(--muted);
  font-weight: 700;
}

.editor-list {
  display: grid;
  gap: 22px;
}

.editor-title p,
.photos-field small {
  color: var(--muted);
  font-weight: 700;
}

.editor-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(8, 26, 23, 0.08);
}

.editor-card h3 {
  margin-bottom: 0;
}

.editor-title {
  grid-column: 1;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(1, 84, 80, 0.04);
  overflow: hidden;
}

.editor-title p {
  margin-bottom: 0;
}

.editor-title img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
}

.photos-field small {
  font-size: 0.78rem;
}

.editor-section {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.editor-section-main {
  grid-column: 2;
}

.photo-manager,
.editor-section-copy,
.editor-card-footer {
  grid-column: 1 / -1;
}

.editor-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-900);
}

.editor-section-heading span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(1, 84, 80, 0.1);
  font-size: 0.78rem;
  font-weight: 950;
}

.editor-section-heading strong {
  font-size: 1rem;
  font-weight: 950;
}

.editor-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.editor-fields-copy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-wide {
  grid-column: span 2;
}

.photo-manager {
  display: grid;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.photo-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.photo-manager-head strong,
.photo-manager-head span {
  display: block;
}

.photo-manager-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.file-button {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.editor-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.editor-photo-item {
  overflow: hidden;
  border: 1px solid rgba(1, 84, 80, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  cursor: grab;
}

.editor-photo-item:active {
  cursor: grabbing;
}

.editor-photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--green-900);
}

.editor-photo-meta {
  padding: 10px;
}

.editor-photo-meta span,
.editor-photo-meta small {
  display: block;
}

.editor-photo-meta span {
  color: var(--green-900);
  font-weight: 900;
}

.editor-photo-meta small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.editor-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 10px 10px;
}

.editor-photo-actions button {
  min-height: 30px;
  padding: 0 8px;
  color: var(--green-900);
  border: 1px solid rgba(1, 84, 80, 0.16);
  border-radius: var(--radius);
  background: rgba(1, 84, 80, 0.06);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
}

.editor-photo-actions button:hover {
  color: var(--white);
  background: var(--green-800);
}

.photo-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 calc(clamp(18px, 4vw, 48px) * -1);
  padding: 20px clamp(18px, 4vw, 48px);
  border-top: 1px solid rgba(1, 84, 80, 0.14);
  background: var(--cream);
}

.editor-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-card-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  border: 1px dashed rgba(1, 84, 80, 0.3);
  border-radius: var(--radius);
}

.save-status {
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0 4px;
}

.save-status.saving {
  color: var(--muted);
}

.save-status.success {
  color: #1a7a3c;
}

.save-status.error {
  color: #8f2f1c;
}

/* Section reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav,
  .header-action {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-header.menu-active .main-nav {
    position: fixed;
    inset: 104px 12px auto;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(1, 84, 80, 0.14);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 40;
  }

  .site-header.menu-active .main-nav a {
    padding: 14px;
    border-radius: var(--radius);
  }

  .site-header.menu-active .main-nav a:hover {
    background: rgba(1, 84, 80, 0.08);
  }

  .hero,
  .split,
  .origin-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding-top: 78px;
  }

  .quick-quote {
    max-width: 100%;
  }

  .trust-band,
  .fleet-grid,
  .routes .route-grid,
  .included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-copy {
    position: static;
  }

  .contact-actions {
    justify-content: start;
    justify-self: start;
    max-width: 100%;
  }

  .origin-media {
    max-width: 620px;
  }

  .origin-media img {
    aspect-ratio: 16 / 11;
  }

  .editor-card {
    grid-template-columns: 1fr;
  }

  .admin-settings {
    grid-template-columns: 1fr;
  }

  .editor-title {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr) 140px;
    align-items: center;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .editor-title img {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 4 / 3;
  }

  .editor-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .details-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 84px;
    padding: 10px 16px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .site-header.menu-active .main-nav {
    inset: 84px 10px auto;
  }

  .hero {
    padding: 48px 16px 32px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 16px;
  }

  h2 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .hero-copy {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    width: 100%;
  }

  .contact-actions .btn,
  .contact-phone {
    width: 100%;
    min-height: auto;
  }

  .btn,
  .header-action {
    width: 100%;
  }

  .quick-quote {
    width: 100%;
    padding: 18px 16px;
  }

  .quick-quote h2 {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }

  .quick-quote form,
  .pin-form,
  .catalog-editor {
    gap: 10px;
  }

  input,
  select,
  textarea {
    min-height: 44px;
  }

  .quick-quote input[type="date"] {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 0;
    justify-self: start;
    appearance: none;
    -webkit-appearance: none;
  }

  .trust-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-band div {
    min-height: 90px;
    padding: 18px 14px;
    border-right: 1px solid rgba(1, 84, 80, 0.12);
    border-bottom: 1px solid rgba(1, 84, 80, 0.12);
  }

  .trust-band div:nth-child(even) {
    border-right: 0;
  }

  .trust-band div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .trust-band strong {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }

  .fleet-grid,
  .routes .route-grid,
  .included-grid,
  .specs,
  .origin-marks {
    grid-template-columns: 1fr;
  }

  .origin-media img {
    aspect-ratio: 4 / 3;
  }

  .origin-marks div,
  .origin-marks div + div {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(1, 84, 80, 0.16);
  }

  .origin-marks div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 52px 16px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .steps article {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .steps article:not(:last-child)::after {
    display: none;
  }

  .steps span {
    grid-row: auto;
    font-size: 1.1rem;
  }

  .included-grid article {
    min-height: 0;
    padding: 18px;
  }

  .route-grid article {
    min-height: 0;
    padding: 18px;
  }

  .route-grid span {
    margin-bottom: 20px;
  }

  .vehicle-title {
    display: grid;
  }

  .compare-table-wrap {
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .contact-section {
    padding: 48px 16px;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  /* Admin */

  .admin-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 16px;
  }

  .admin-head > div {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .admin-back {
    grid-column: 1;
    grid-row: 2;
  }

  .admin-head .icon-button {
    grid-column: 2;
    grid-row: 2;
  }

  .admin-head h2 {
    font-size: 1.25rem;
  }

  .catalog-editor {
    height: calc(100vh - 120px);
    padding: 16px 14px 32px;
    gap: 16px;
  }

  .editor-card {
    grid-template-columns: 1fr;
  }

  .editor-title {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }

  .editor-title img {
    display: none;
  }

  .editor-intro,
  .gallery-shell,
  .details-shell {
    grid-template-columns: 1fr;
  }

  .editor-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .editor-actions-right {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-card-footer {
    display: grid;
    justify-content: stretch;
  }

  .editor-fields,
  .editor-fields-copy {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .photo-manager-head,
  .photo-url-row {
    grid-template-columns: 1fr;
  }

  .photo-manager-head {
    display: grid;
    gap: 10px;
  }

  .editor-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-actions {
    margin: 0 -14px;
    padding: 12px 14px;
  }

  /* Gallery dialog */

  .gallery-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .gallery-shell {
    min-height: 0;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .gallery-shell > img {
    max-height: 50vh;
    min-height: 0;
  }

  .gallery-meta {
    padding: 16px;
  }

  .gallery-meta h2 {
    font-size: 1.3rem;
  }

  /* Details dialog */

  .details-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .details-shell {
    max-height: 100vh;
  }

  .details-media {
    position: relative;
  }

  .details-media img {
    min-height: 52vw;
    max-height: 52vw;
  }

  .details-specs,
  .details-content ul {
    grid-template-columns: 1fr;
  }

  .details-content {
    gap: 16px;
    padding: 20px 16px;
  }

  .faq-list {
    gap: 8px;
  }

  .faq details {
    padding: 14px 16px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 40px 14px 28px;
  }

  .section {
    padding: 44px 14px;
  }

  .trust-band div {
    padding: 14px 10px;
  }

  .vehicle-body {
    padding: 16px;
  }
}
