/* ==========================================================================
 * Page sections (design pass D2+): hero, trust bar, two doors, service teasers,
 * steps, photo strip, category tiles, level chips, contact. Design-system tokens.
 * ========================================================================== */

.nx-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.nx-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nx-section-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-1) var(--nx-3);
  justify-content: space-between;
}

.nx-scope a.nx-chip {
  text-decoration: none;
}

/* Whole card clickable via its main link */
.nx-stretched-link::after {
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

/* ---------- 1. Hero ---------- */

.nx-hero {
  background: var(--nx-purple);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.nx-hero__media {
  inset: 0;
  position: absolute;
}

.nx-hero__media .nx-photo {
  align-items: flex-end;
  aspect-ratio: auto;
  border-radius: 0;
  height: 100%;
  justify-content: flex-end;
  opacity: 0.35;
}

/* Keeps the text readable on the real photo later */
.nx-hero::after {
  background: linear-gradient(180deg, rgba(44, 24, 68, 0.55) 0%, rgba(44, 24, 68, 0.92) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.nx-hero__content {
  display: grid;
  gap: var(--nx-2);
  justify-items: start;
  padding-bottom: 56px;
  padding-top: 72px;
  position: relative;
  z-index: 1;
}

.nx-hero .nx-h1 {
  color: #fff;
  max-width: 14ch;
}

.nx-hero .nx-lead {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 var(--nx-1);
}

.nx-hero .nx-actions {
  width: 100%;
}

.nx-hero .nx-link,
.nx-hero__shop-link {
  color: #fff;
  margin-top: var(--nx-1);
}

@media (max-width: 699px) {
  .nx-hero .nx-actions .nx-btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 1024px) {
  .nx-hero::after {
    background: linear-gradient(90deg, rgba(44, 24, 68, 0.94) 0%, rgba(44, 24, 68, 0.75) 45%, rgba(44, 24, 68, 0.25) 100%);
  }

  .nx-hero__content {
    min-height: 600px;
    align-content: center;
    padding-bottom: 96px;
    padding-top: 96px;
  }
}

/* ---------- 2. Trust bar ---------- */

.nx-trust {
  background: #fff;
  border-bottom: 1px solid var(--nx-border);
}

.nx-trust__list {
  display: grid;
  gap: 12px var(--nx-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  padding-bottom: var(--nx-2);
  padding-top: var(--nx-2);
}

.nx-trust__item {
  align-items: center;
  color: var(--nx-purple);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  line-height: 1.3;
  margin: 0;
}

.nx-trust__item::before {
  display: none;
}

.nx-trust__item .nx-icon {
  height: 22px;
  width: 22px;
}

@media (min-width: 1024px) {
  .nx-trust__list {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--nx-3);
    padding-top: var(--nx-3);
  }

  .nx-trust__item {
    font-size: 16px;
  }
}

/* ---------- 3. Two doors ---------- */

.nx-doors {
  display: grid;
  gap: var(--nx-3);
}

@media (min-width: 700px) {
  .nx-doors {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nx-door {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  color: var(--nx-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nx-door:hover,
.nx-door:focus-visible {
  box-shadow: var(--nx-shadow-strong);
  transform: translateY(-2px);
}

.nx-door:focus-visible {
  outline: 3px solid var(--nx-purple);
  outline-offset: 3px;
}

.nx-door__photo {
  border-radius: 0;
}

.nx-door__body {
  display: grid;
  gap: var(--nx-1);
  padding: var(--nx-card-pad);
}

.nx-door__title {
  margin: 0;
}

.nx-door__text {
  margin: 0 0 var(--nx-1);
}

/* ---------- 4. Service teasers ---------- */

.nx-grid--services {
  display: grid;
  gap: var(--nx-3);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .nx-grid--services { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .nx-grid--services { grid-template-columns: repeat(4, 1fr); }
}

.nx-service .nx-price {
  font-size: 24px;
}

.nx-service .nx-price-from {
  display: block;
}

/* ---------- 5. Steps ---------- */

.nx-steps {
  counter-reset: none;
  display: grid;
  gap: var(--nx-3);
}

@media (min-width: 700px) {
  .nx-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nx-steps__item {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  display: grid;
  gap: var(--nx-1);
  grid-template-columns: auto 1fr;
  padding: var(--nx-card-pad);
  position: relative;
}

.nx-steps__item .nx-icon-tile {
  grid-row: span 2;
  margin-right: var(--nx-1);
}

.nx-steps__item .nx-h3,
.nx-steps__item p {
  margin: 0;
}

.nx-steps__number {
  align-items: center;
  background: var(--nx-purple);
  border-radius: var(--nx-pill);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  left: 12px;
  position: absolute;
  top: 12px;
  width: 24px;
}

.nx-steps__item p {
  grid-column: 2;
}

/* ---------- 6. Photo strip ---------- */

.nx-strip {
  display: grid;
  gap: 12px;
  grid-auto-columns: 62%;
  grid-auto-flow: column;
  margin: 0 calc(var(--nx-gutter) * -1);
  overflow-x: auto;
  padding: 0 var(--nx-gutter) 4px;
  scroll-padding: 0 var(--nx-gutter);
  scroll-snap-type: x mandatory;
}

.nx-strip__item {
  scroll-snap-align: start;
}

@media (min-width: 700px) {
  .nx-strip {
    grid-auto-columns: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    overflow: visible;
    padding: 0;
  }
}

@media (min-width: 1100px) {
  .nx-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---------- 7. Category tiles + level chips ---------- */

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

.nx-tiles__item {
  margin: 0;
}

.nx-tiles__item::before {
  display: none;
}

@media (min-width: 700px) {
  .nx-tiles { gap: var(--nx-2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .nx-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.nx-tile {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  color: var(--nx-purple);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nx-tile:hover,
.nx-tile:focus-visible {
  border-color: var(--nx-purple);
  box-shadow: var(--nx-shadow);
}

.nx-tile__image {
  aspect-ratio: 1 / 1;
  background: var(--nx-bg-alt);
  display: block;
  position: relative;
}

/* The photo fills the whole square, like the product cards */
.nx-tile__image img {
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}

.nx-tile__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  padding: 12px;
  text-align: center;
}

.nx-level-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-1);
}

.nx-level-chips__label {
  color: var(--nx-purple);
  font-weight: 800;
  margin-right: 4px;
}

.nx-level-chips .nx-chip .nx-badge {
  font-size: 10px;
  padding: 4px 6px;
}

/* ---------- 8. Contact ---------- */

.nx-contact {
  align-items: center;
  display: grid;
  gap: var(--nx-4);
}

@media (min-width: 900px) {
  .nx-contact {
    grid-template-columns: 1.1fr 1fr;
  }
}

.nx-contact__map {
  display: block;
  position: relative;
  text-decoration: none !important;
}

.nx-contact__map-label {
  align-items: center;
  background: #fff;
  border-radius: var(--nx-pill);
  bottom: var(--nx-2);
  box-shadow: var(--nx-shadow);
  color: var(--nx-purple);
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  left: var(--nx-2);
  padding: 8px 14px;
  position: absolute;
}

.nx-contact__list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-contact__list li {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 0;
}

.nx-contact__list li::before {
  display: none;
}

.nx-contact__list .nx-icon {
  color: var(--nx-purple);
}

.nx-contact__list a {
  color: var(--nx-purple);
  font-weight: 700;
}

/* ---------- Fixes after review (D2) ---------- */

/* Hero heading: two lines on desktop */
@media (min-width: 1024px) {
  .nx-hero .nx-h1 {
    max-width: 20ch;
  }
}

/* Teaser cards: price above the link, same in every card */
.nx-service:not(.nx-service--bookable) .nx-service__footer {
  align-items: flex-start;
  flex-direction: column;
  gap: var(--nx-1);
}

/* Step number sits in the card corner, clear of the icon */
.nx-steps__number {
  left: auto;
  right: 12px;
}


/* ==========================================================================
 * /detailing/ (design pass D3)
 * ========================================================================== */

/* Narrow reading width for the FAQ list; the heading stays aligned with the other sections. */
.nx-narrow .nx-accordion {
  max-width: 820px;
}

.nx-page-hero .nx-lead {
  margin: 0;
}

.nx-page-hero {
  padding-bottom: var(--nx-4);
}

/* Card grids without orphans: 1 / 2 / 3 per row depending on the group size */
.nx-grid--1up { grid-template-columns: 1fr; }

.nx-grid--2up,
.nx-grid--3up {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .nx-grid--2up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .nx-grid--3up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.nx-card__badge--right {
  left: auto;
  right: var(--nx-2);
}

.nx-service--bookable .nx-price {
  font-size: 26px;
}

.nx-service--bookable .nx-btn {
  position: relative;
  z-index: 2;
}

/* Size bar: thin, sticky under the header, shadow only while stuck */
.nx-size-sentinel {
  height: 1px;
  margin-bottom: -1px;
}

.nx-size-bar {
  background: #fff;
  border-bottom: 1px solid var(--nx-border);
  border-top: 1px solid var(--nx-border);
  position: sticky;
  top: var(--nanolex-header-h, 0px);
  transition: box-shadow 0.2s ease;
  z-index: 20;
}

.nx-size-bar.is-stuck {
  box-shadow: 0 6px 16px rgba(44, 24, 68, 0.12);
}

.nx-size-bar__inner {
  align-items: center;
  display: flex;
  gap: var(--nx-2);
  padding-bottom: 8px;
  padding-top: 8px;
}

.nx-size-bar__label {
  color: var(--nx-purple);
  font-size: 15px;
  font-weight: 800;
}

.nx-size-bar__note {
  margin-left: auto;
}

@media (max-width: 699px) {
  .nx-size-bar__label,
  .nx-size-bar__note {
    display: none;
  }

  .nx-size-bar .nx-segmented {
    width: 100%;
  }

  .nx-size-bar .nx-segmented__option {
    font-size: 14px;
    min-height: 36px;
    padding: 0 8px;
  }
}

/* Anchors land below the header and the size bar */
.nx-service-group {
  scroll-margin-top: calc(var(--nanolex-header-h, 64px) + 60px);
}

/* Add-on line (süvapoleerimine) */
.nx-addon {
  align-items: center;
  background: #fff;
  border: 1px dashed var(--nx-purple);
  border-radius: var(--nx-radius);
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-1) var(--nx-3);
  padding: var(--nx-2) var(--nx-3);
}

.nx-addon__name {
  flex: 1 1 260px;
}

.nx-addon .nx-price {
  font-size: 20px;
}

@media (max-width: 699px) {
  .nx-size-bar__inner {
    padding-bottom: 6px;
    padding-top: 6px;
  }

  .nx-size-bar .nx-segmented {
    padding: 3px;
  }

  .nx-size-bar .nx-segmented__option {
    min-height: 34px;
  }
}

/* Cross-link block (e.g. /detailing/ → ceramic page) */
.nx-crosslink {
  align-items: center;
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  color: var(--nx-text);
  display: grid;
  gap: var(--nx-2);
  grid-template-columns: auto 1fr;
  padding: var(--nx-card-pad);
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nx-crosslink:hover,
.nx-crosslink:focus-visible {
  border-color: var(--nx-purple);
  box-shadow: var(--nx-shadow);
}

.nx-crosslink__body {
  display: grid;
  gap: 4px;
}

.nx-crosslink .nx-link {
  grid-column: 1 / -1;
}

@media (min-width: 700px) {
  .nx-crosslink {
    grid-template-columns: auto 1fr auto;
  }

  .nx-crosslink .nx-link {
    grid-column: auto;
  }
}

/* ---------- Studio photos ---------- */

.nx-img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.nx-hero__img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 55% 62%;
  position: absolute;
}

.nx-door__photo.nx-img,
.nx-card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.nx-strip__item.nx-img {
  aspect-ratio: 1 / 1;
  border-radius: var(--nx-radius);
  object-fit: cover;
}

.nx-contact__img {
  aspect-ratio: 16 / 9;
  border-radius: var(--nx-radius);
  object-fit: cover;
}

/* Page hero (e.g. /detailing/): same height as the homepage hero so the photos are cropped alike */

.nx-hero--page .nx-hero__img {
  object-position: 50% 55%;
}

/* Card without a photo yet (interior shots come later): icon on a soft tile, same 16:10 box as a photo */
.nx-card__media--icon {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--nx-lilac-soft), #fff);
  color: var(--nx-purple);
  display: flex;
  justify-content: center;
}

.nx-card__media--icon > .nx-icon {
  height: 64px;
  opacity: .85;
  width: 64px;
}

/* /detailing/ hero (Aston DBX) and /detailing/keraamika/ hero (Ferrari): keep the car clear of the text */
.nx-hero--detailing .nx-hero__img { object-position: 60% 50%; }
.nx-hero--keraamika .nx-hero__img { object-position: 60% 55%; }

/* ==========================================================================
 * D4 /detailing/keraamika/
 * ======================================================================= */

/* Text + photo side by side (from 900 px), stacked on phones */
.nx-split {
  align-items: center;
  display: grid;
  gap: var(--nx-4);
}

.nx-split__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--nx-radius);
  object-fit: cover;
  width: 100%;
}

@media (min-width: 900px) {
  .nx-split {
    gap: var(--nx-6);
    grid-template-columns: 1fr 1fr;
  }
}

/* Comparison table (from 900 px) */
.nx-compare {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  display: none;
  padding: var(--nx-2) var(--nx-3);
}

.nx-compare-cards {
  display: grid;
  gap: var(--nx-3);
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
  width: 100%;
}

@media (min-width: 900px) {
  .nx-compare { display: block; }
  .nx-compare-cards { display: none; }
}

.nx-compare__table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  table-layout: fixed;
  width: 100%;
}

.nx-compare__table th,
.nx-compare__table td {
  border: 0;
  border-bottom: 1px solid var(--nx-border);
  padding: var(--nx-2) var(--nx-3);
  text-align: center;
  vertical-align: middle;
}

.nx-compare__table tbody th {
  color: var(--nx-text);
  font-size: var(--nx-small);
  font-weight: 700;
  text-align: left;
  width: 26%;
}

.nx-compare__table thead th,
.nx-compare__table thead td {
  padding-bottom: var(--nx-3);
  padding-top: var(--nx-3);
  vertical-align: bottom;
}

.nx-compare__table .nx-badge {
  display: inline-block;
  margin-bottom: var(--nx-1);
}

.nx-compare__name {
  color: var(--nx-purple);
  display: block;
  font-size: var(--nx-h3);
  font-weight: 800;
  line-height: var(--nx-line-tight);
}

.nx-compare__table tr:last-child td,
.nx-compare__table tr:last-child th,
.nx-compare__cta-row td {
  border-bottom: 0;
}

/* 5a ("Populaarseim"): outlined column, badge inside the head cell so it is never cut off */
.nx-compare__table .is-highlight {
  background: #faf5ff;
  box-shadow: inset 2px 0 0 var(--nx-purple), inset -2px 0 0 var(--nx-purple);
}

.nx-compare__table thead .is-highlight {
  border-radius: var(--nx-radius) var(--nx-radius) 0 0;
  box-shadow: inset 2px 0 0 var(--nx-purple), inset -2px 0 0 var(--nx-purple), inset 0 2px 0 var(--nx-purple);
}

.nx-compare__cta-row .is-highlight {
  border-radius: 0 0 var(--nx-radius) var(--nx-radius);
  box-shadow: inset 2px 0 0 var(--nx-purple), inset -2px 0 0 var(--nx-purple), inset 0 -2px 0 var(--nx-purple);
}

.nx-compare__note {
  color: var(--nx-text-muted);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.nx-compare__yes {
  color: var(--nx-purple);
  height: 22px;
  width: 22px;
}

.nx-compare__price-row .nx-price {
  align-items: center;
}

.nx-compare__cta-row .nx-btn {
  width: 100%;
}

.nx-compare__table .nx-placeholder-text,
.nx-compare-card__row .nx-placeholder-text {
  display: block;
  font-weight: 600;
  margin-top: 4px;
}

/* Rating dots (läige ja vetthülgivus) */
.nx-dots {
  display: inline-flex;
  gap: 5px;
  vertical-align: middle;
}

.nx-dots__dot {
  border: 2px solid var(--nx-purple);
  border-radius: 50%;
  box-sizing: border-box;
  height: 12px;
  width: 12px;
}

.nx-dots__dot.is-on {
  background: var(--nx-purple);
}

/* Comparison cards (below 900 px): same rows as the table */
.nx-compare-card__badge {
  align-self: flex-start;
}

.nx-compare-card .nx-h3 {
  margin: 0;
}

.nx-compare-card__rows {
  margin: 0;
}

.nx-compare-card__row {
  align-items: center;
  border-bottom: 1px solid var(--nx-border);
  display: flex;
  gap: var(--nx-2);
  justify-content: space-between;
  padding: 10px 0;
}

.nx-compare-card__row:last-child {
  border-bottom: 0;
}

.nx-compare-card__row dt {
  color: var(--nx-text-muted);
  font-size: var(--nx-small);
}

.nx-compare-card__row dd {
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.nx-compare-card__row .nx-compare__note {
  font-weight: 400;
}

/* Seasonal banner (Talvekaitse) */
.nx-banner {
  background: var(--nx-purple);
  border-radius: var(--nx-radius);
  color: #fff;
  display: grid;
  gap: var(--nx-3);
  padding: var(--nx-4) var(--nx-card-pad);
}

.nx-banner .nx-h2 {
  color: #fff;
  margin: 4px 0 var(--nx-1);
}

.nx-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.nx-banner .nx-eyebrow {
  color: var(--nx-mint);
}

.nx-banner__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--nx-mint);
}

.nx-banner__action {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-2) var(--nx-3);
  justify-content: space-between;
}

.nx-banner .nx-price {
  color: #fff;
}

.nx-banner .nx-price__size {
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 900px) {
  .nx-banner {
    align-items: center;
    grid-template-columns: auto 1fr auto;
    padding: var(--nx-5) var(--nx-6);
  }

  .nx-banner__action {
    flex-direction: column;
    align-items: flex-end;
  }
}

/* ==========================================================================
 * D7 /broneeri/ and /kontakt/ (templates page-templates/broneeri.php, kontakt.php)
 * ======================================================================= */

.nx-booking__grid,
.nx-contact-page__grid {
  align-items: start;
  display: grid;
  gap: var(--nx-5);
}

@media (min-width: 900px) {
  .nx-booking__grid,
  .nx-contact-page__grid {
    gap: var(--nx-6);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.nx-booking__intro .nx-lead,
.nx-contact-page .nx-lead {
  max-width: 52ch;
}

/* Phones: "Helista" fills the width (it is the way to book until the calendar arrives) */
@media (max-width: 699px) {
  .nx-booking__intro .nx-actions .nx-btn,
  .nx-contact-page .nx-actions .nx-btn {
    flex: 1 1 100%;
  }
}

/* Booking calendar placeholder (test site only) */
.nx-placeholder-block {
  align-content: center;
  background: repeating-linear-gradient(135deg, #fffaf0 0 12px, #fff3cd 12px 24px);
  border: 2px dashed #b38600;
  border-radius: var(--nx-radius);
  color: #6b5000;
  display: grid;
  gap: var(--nx-1);
  justify-items: center;
  min-height: 320px;
  padding: var(--nx-4);
  text-align: center;
}

.nx-placeholder-block .nx-icon {
  height: 40px;
  width: 40px;
}

/* Price list on /broneeri/ */
.nx-pricelist {
  display: grid;
  gap: var(--nx-3);
}

@media (min-width: 700px) {
  .nx-pricelist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nx-pricelist__group {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: var(--nx-card-pad);
}

.nx-pricelist__group .nx-h3 {
  margin: 0 0 var(--nx-1);
}

.nx-pricelist__group .nx-h3 a {
  color: var(--nx-purple);
  font-weight: 800;
  text-decoration: none;
}

.nx-pricelist__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-pricelist__row {
  align-items: baseline;
  border-bottom: 1px solid var(--nx-border);
  display: flex;
  gap: var(--nx-2);
  justify-content: space-between;
  margin: 0;
  padding: 10px 0;
}

.nx-pricelist__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.nx-pricelist__row::before {
  display: none;
}

.nx-pricelist__name {
  color: var(--nx-text);
  font-weight: 600;
  text-decoration: none;
}

.nx-pricelist__name:hover {
  color: var(--nx-purple);
  text-decoration: underline;
}

.nx-pricelist__price {
  color: var(--nx-purple);
  font-weight: 800;
  white-space: nowrap;
}

.nx-pricelist__price .nx-price-from {
  margin-right: 4px;
}

/* Studio map (static image linking to Google Maps directions) */
.nx-map {
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none !important;
}

.nx-map__img {
  aspect-ratio: 16 / 9;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media (min-width: 900px) {
  .nx-booking__map .nx-map__img {
    min-height: 360px;
  }
}

/* OpenStreetMap attribution (required by its licence) */
.nx-map-credit {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 4px 0 0 0;
  bottom: 0;
  color: var(--nx-text-muted);
  font-size: 11px;
  padding: 2px 6px;
  position: absolute;
  right: 0;
}

.nx-map:hover .nx-contact__map-label,
.nx-contact__map:hover .nx-contact__map-label {
  background: var(--nx-purple);
  color: #fff;
}

/* Contact form (Contact Form 7) in a card */
.nx-contact-page__form .nx-h3 {
  margin: 0 0 var(--nx-1);
}

.nx-contact-page__form .wpcf7-form {
  display: grid;
  gap: var(--nx-2);
}

.nx-contact-page__form .single-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.nx-contact-page__form .single-field > label {
  color: var(--nx-text);
  font-size: var(--nx-small);
  font-weight: 700;
}

.nx-contact-page__form input[type="text"],
.nx-contact-page__form input[type="email"],
.nx-contact-page__form textarea {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-sm);
  box-sizing: border-box;
  color: var(--nx-text);
  font-family: var(--nx-font);
  font-size: 16px;
  min-height: 48px;
  padding: 10px 14px;
  width: 100%;
}

.nx-contact-page__form textarea {
  min-height: 140px;
  resize: vertical;
}

.nx-contact-page__form input:focus,
.nx-contact-page__form textarea:focus {
  border-color: var(--nx-purple);
  outline: 2px solid var(--nx-lilac);
  outline-offset: 0;
}

.nx-contact-page__form .wpcf7-list-item {
  margin: 0;
}

.nx-contact-page__form .wpcf7-list-item label {
  align-items: flex-start;
  display: flex;
  font-size: var(--nx-small);
  gap: 8px;
}

.nx-contact-page__form input[type="checkbox"] {
  accent-color: var(--nx-purple);
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.nx-contact-page__form .single-field:not(:has(input, textarea)) {
  color: var(--nx-text-muted);
  font-size: 13px;
}

.nx-contact-page__form .wpcf7-submit {
  background: transparent;
  border: 2px solid var(--nx-purple);
  border-radius: var(--nx-pill);
  color: var(--nx-purple);
  cursor: pointer;
  font-family: var(--nx-font);
  font-size: 16px;
  font-weight: 700;
  justify-self: start;
  min-height: 48px;
  padding: 0 var(--nx-4);
}

.nx-contact-page__form .wpcf7-submit:hover {
  background: var(--nx-purple);
  color: #fff;
}

/* The contact list's own margin: 0 would otherwise win over the stack spacing */
.nx-stack > .nx-contact__list {
  margin-top: var(--nx-3);
}

.nx-booking__intro .nx-stack > .nx-contact__list {
  border-top: 1px solid var(--nx-border);
  padding-top: var(--nx-3);
}


/* /broneeri/ with the booking form (Phase 4) */
.nx-booking__intro--online {
  padding-bottom: var(--nx-3);
}

.nx-booking__form-wrap {
  padding-bottom: var(--nx-section);
}

.nx-booking__form {
  margin: 0 auto;
  max-width: 1040px;
  scroll-margin-top: calc(var(--nanolex-header-h, 72px) + 16px);
}

/* Car-type dropdown above the booking form: changing it shows that car type's services and prices */
.nx-booking__size {
  align-items: center;
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-1) var(--nx-2);
  margin: 0 auto var(--nx-2);
  max-width: 760px; /* same width as Amelia's form */
  padding: var(--nx-2) var(--nx-3);
}

/* Amelia puts 100 px above its form; the car-type bar sits there instead */
.nx-booking__form .am-fs__wrapper {
  margin-top: 0 !important;
}

.nx-booking__size-label {
  color: var(--nx-purple);
  font-size: 17px;
  font-weight: 800;
}

.nx-booking__size-select {
  position: relative;
}

.nx-booking__size-select select {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 2px solid var(--nx-purple);
  border-radius: var(--nx-radius-sm);
  color: var(--nx-purple);
  cursor: pointer;
  font-family: var(--nx-font);
  font-size: 16px;
  font-weight: 700;
  min-height: 44px;
  min-width: 200px;
  padding: 0 44px 0 14px;
}

.nx-booking__size-select select:focus-visible {
  outline: 3px solid var(--nx-lilac);
  outline-offset: 2px;
}

.nx-booking__size-select .nx-icon {
  color: var(--nx-purple);
  height: 18px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
}

@media (max-width: 699px) {
  .nx-booking__size {
    padding: var(--nx-2);
  }

  .nx-booking__size-select,
  .nx-booking__size-select select {
    width: 100%;
  }
}

