/* =============================================================
 * classified-ads.css
 *
 * Classified ads listing — templates/classified_ads.php
 * One row: template-parts/classified-ad-list-item.php (.ca-item)
 *
 * Builds on what the page already loads:
 *   event.css          .events-cat-section, .ecs-search-* (grey search block)
 *   gazette-issue.css  .gz-news-layout (feed + aside grid)
 *   pagination.css     .pagination
 * Registered in inc/css-frontend.php (handle `classified-ads-wiize`).
 * ============================================================= */

.ca-search,
.ca-list {
  --ca-blue: #007BA5;
  --ca-brown: #8A765C;
  --ca-ink: #211a15;
  --ca-muted: #645F5B;
  --ca-line: rgba(33, 26, 21, 0.10);
  --ca-sand: #F1EFEB;
  --ca-tag: #E5E2DC;
  --ca-featured: #EDF5FA;
  --ca-heart: #C9BFB2;
  --ca-heart-on: #CE0212;
}

/* ---------- Top: icon, title, search, keywords ---------- */
.ca-search { padding-top: 24px; }

.ca-search__icon img { display: block; width: 37px; height: 56px; }

.ca-search__title {
  margin: 10px 0 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  color: var(--ca-ink);
}

.ca-search .ecs-search-form { margin-bottom: 20px; }

/* "Top keywords" */
.ca-search .ca-search__keywords-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: #6d5f54;
  font-size: 26px;
  margin: 0 0 12px;
}

/* ---------- Chips (keywords + category filter) ---------- */
.ca-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ca-chips--stack { flex-direction: column; align-items: stretch; }

.ca-chip {
  display: inline-block;
  padding: 6px 28px;
  border: 1px solid #A9A39B;
  border-radius: 2px;
  background: transparent;
  font-family: "Work Sans", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #6E615B;
  transition: border-color .15s, color .15s, background .15s;
}
.ca-chips--stack .ca-chip { display: block; padding: 5px 14px; }
.ca-chip:hover { border-color: var(--ca-brown); color: var(--ca-brown); }
.ca-chip.is-active { background: #fff; border-color: var(--ca-brown); color: var(--ca-ink); }

/* ---------- List head: title, count, breadcrumb, Post an ad ---------- */
.ca-list__main { max-width: 1240px; margin: 0 auto; padding: 0; }

/* The theme gives every <section> a large top padding; the list sits
   right under the grey search block, so it starts close to it. */
section.ca-list { padding-top: 0; }

.ca-list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 72px 0 24px;
}

.ca-list__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--ca-brown);
}

.ca-list__count {
  display: block;
  margin-top: 4px;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ca-ink);
}

.ca-breadcrumb {
  margin-top: 6px;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ca-breadcrumb a { color: var(--ca-blue); text-decoration: none; }
.ca-breadcrumb a:hover { text-decoration: underline; }
.ca-breadcrumb__sep { margin: 0 6px; color: var(--ca-blue); }

.ca-btn {
  display: inline-block;
  padding: 14px 30px;
  border: 0;
  border-radius: 3px;
  background: var(--ca-brown);
  color: #fff !important;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.ca-btn:hover { background: #6E5A40; }

/* ---------- Layout ---------- */
/* Feed : filters = 3 : 2, as in the design (~605px / ~400px). The aside
   never drops below 300px; on narrow screens see the media query below. */
.ca-layout { margin: 0 auto 40px; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 12px; }

.ca-feed__toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}

/* Sort dropdown. The theme / parent theme give every <select> a full width,
 * a tall fixed height and big paddings, which stretched it across the feed
 * and pushed the label to the bottom. Same complete reset as the search
 * results sorting (search.css, .np-search-results__sorting .orderby):
 * size comes from the content, the label is centred by line-height. */
.ca-list .ca-feed__toolbar select.ca-sort-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  display: inline-block;
  box-sizing: border-box;
  width: auto !important;
  min-width: 190px;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 9px 40px 9px 16px !important;
  line-height: 1.2 !important;
  vertical-align: middle;
  border: 1px solid #E4DED5;
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A765C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  box-shadow: none;
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ca-brown);
  cursor: pointer;
}
.ca-list .ca-feed__toolbar select.ca-sort-select:focus-visible {
  outline: 2px solid var(--ca-brown);
  outline-offset: 2px;
}

/* ---------- Featured block ---------- */
.ca-featured {
  padding: 4px 12px 0;
  margin-bottom: 0;
  background: var(--ca-featured);
}
.ca-featured__title {
  margin: 10px 0 0;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ca-blue);
}
.ca-featured .ca-item:last-child { border-bottom: 0; }

/* ---------- One row (.ca-item) ---------- */
.ca-item {
  display: flex;
  gap: 16px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--ca-line);
}
.ca-featured .ca-item { padding-left: 0; padding-right: 0; }

.ca-item__thumb {
  flex: 0 0 64px;
  display: block;
  align-self: flex-start;
  background: #f4f2ef;
  border-radius: 4px;
}
.ca-item__thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.ca-item__body { flex: 1 1 auto; min-width: 0; }

.ca-item__location {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ca-ink);
}

.ca-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}
.ca-item__tag {
  padding: 2px 12px;
  border-radius: 2px;
  background: var(--ca-tag);
  font-family: "Work Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ca-ink);
}

.ca-item__title {
  margin: 0 0 2px;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.ca-item__title a { color: var(--ca-ink); text-decoration: none; }
.ca-item__title a:hover { color: var(--ca-blue); }

.ca-item__excerpt {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ca-muted);
}
.ca-item__more {
  font-size: 10px;
  font-weight: 600;
  color: var(--ca-blue);
  text-decoration: none;
  white-space: nowrap;
}
.ca-item__more:hover { text-decoration: underline; }

.ca-item__side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.ca-item__time {
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  color: var(--ca-muted);
  white-space: nowrap;
}
.ca-item__price {
  margin-top: 2px;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ca-ink);
  white-space: nowrap;
}

.ca-item__fav {
  margin-top: auto;
  padding: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.ca-item__fav svg { fill: var(--ca-heart); transition: fill .15s, transform .15s; }
.ca-item__fav:hover svg { transform: scale(1.1); }
.ca-item__fav.is-active svg { fill: var(--ca-heart-on); }
.ca-item__fav[disabled] { opacity: .6; cursor: wait; }

.ca-feed__empty { padding: 40px 0; text-align: center; color: var(--ca-muted); }

/* ---------- Aside: filters ---------- */
.ca-aside { position: static; margin-top: 38px; }

.ca-filters {
  padding: 20px;
  margin-bottom: 20px;
  background: var(--ca-sand);
  border-radius: 4px;
}

.ca-filters__title {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--ca-brown);
}

.ca-filters__group { margin-bottom: 28px; }

.ca-filters__label {
  margin: 0 0 8px;
  font-family: "Work Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ca-blue);
}
/* "Location" is a <label> inside the <h4>: Bricks sets label { font-weight: 400;
   margin-bottom: 5px; display: block } - reset it to the heading's look. */
.ca-filters__label label {
  color: inherit;
  font-weight: 600;
  margin: 0;
  display: inline;
}

.ca-filters__select,
.ca-filters__range input {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #D8D4CC;
  border-radius: 3px;
  background: #fff;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  color: var(--ca-ink);
  box-sizing: border-box;
}

/* Location dropdown: the theme / parent theme give every <select> a tall
   height and big paddings, which pushed the label to the bottom. Reset,
   and centre the label with line-height (same as the sort dropdown). */
.ca-filters select.ca-filters__select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100% !important;
  /* Height from padding + line-height, like search.css: some browsers do not
     centre a <select> label by line-height alone. */
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 36px 8px 12px !important;
  line-height: 1.4 !important;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A765C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  box-shadow: none;
  cursor: pointer;
}

.ca-filters__range { display: flex; align-items: center; gap: 6px; }
.ca-filters__range span { color: var(--ca-muted); }

.ca-filters__attr { margin-bottom: 12px; }
.ca-filters__attr-name {
  display: block;
  margin-bottom: 4px;
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ca-ink);
}

.ca-filters__check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  color: var(--ca-muted);
  cursor: pointer;
}

.ca-filters__clear {
  display: inline-block;
  margin-top: 8px;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ca-blue);
  text-decoration: none;
}
.ca-filters__clear:hover { text-decoration: underline; }

.ca-filters__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ca-filters__actions .ca-filters__clear { margin-top: 0; }
.ca-btn--apply { padding: 10px 22px; }

/* ---------- RWD ---------- */
@media (max-width: 960px) {
  .ca-layout { grid-template-columns: 1fr; }
  .ca-aside { margin-top: 0; order: -1; }
  .ca-aside__banner { display: none; }
}

@media (max-width: 600px) {
  .ca-search__title { font-size: 40px; }
  .ca-list__head { flex-direction: column; align-items: flex-start; }
  .ca-list__title { font-size: 34px; }
  .ca-item { gap: 12px; padding-left: 0; padding-right: 0; }
  .ca-item__thumb { flex-basis: 56px; }
  .ca-item__thumb img { width: 56px; height: 56px; }
  .ca-item__price { font-size: 13px; }
}

/* ---------- AJAX loading (assets/js/classified-ads.js) ----------
 * While a filter / category / page loads, the list fades and a spinner turns
 * over it; the filters stay usable (a new choice replaces the request). */
.ca-feed { position: relative; }

.ca-feed.is-loading > * { opacity: .35; transition: opacity .15s; pointer-events: none; }

.ca-feed.is-loading::after {
  content: "";
  position: absolute;
  top: 120px;
  left: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  border: 3px solid rgba(0, 123, 165, .2);
  border-top-color: var(--ca-blue);
  border-radius: 50%;
  animation: ca-spin .7s linear infinite;
}

@keyframes ca-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ca-feed.is-loading::after { animation-duration: 2s; }
}

.ca-filters__actions { justify-content: flex-end; }


/* =============================================================
 * Ad page — templates/single_classified_ad.php
 *
 * Top = the product hero (.product-hero--non-wine, products-non-wine.css);
 * only what differs for an ad is set here. Then Key information, Delivery,
 * the map (.event-map, event.css) and "Top ads" (the listing rows above).
 * ============================================================= */

.ca-ad-page,
.ca-keyinfo,
.ca-delivery {
  --ca-blue: #007BA5;
  --ca-brown: #8A765C;
  --ca-ink: #211a15;
  --ca-muted: #645F5B;
  --ca-line: rgba(33, 26, 21, 0.10);
  --ca-sand: #F1EFEB;
  --ca-tag: #E5E2DC;
}

/* ---------- Hero: left column ---------- */
.ca-ad__location {
  display: block;
  margin-bottom: 10px;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ca-ink);
}

.product-hero--non-wine .ca-ad__title { margin: 0; color: var(--ca-ink); }
.product-hero--non-wine .ca-ad__subtitle { margin-top: 6px; }

.ca-ad__tags { margin: 20px 0 24px; }
.ca-ad__tags .ca-item__tag { padding: 4px 14px; font-size: 9px; }

.ca-ad__seller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.ca-ad__sold-by { display: flex; align-items: center; gap: 14px; min-width: 0; }

.ca-ad__label,
.ca-ad__heading {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ca-blue);
}
.ca-ad__heading { margin-bottom: 8px; }

.ca-ad__company-logo { display: block; max-width: 120px; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.ca-ad__company-name { font-family: "Work Sans", sans-serif; font-size: 14px; font-weight: 600; color: var(--ca-ink); }

.ca-ad__rating {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--ca-sand);
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
}

.product-hero--non-wine .ca-ad__desc { max-width: none; }
.product-hero--non-wine .ca-ad__desc p { margin: 0 0 10px; }
.product-hero--non-wine .ca-ad__desc p:last-child { margin-bottom: 0; }

/* Price + "Send a message" + "See the number" */
.product-hero--non-wine .ca-ad__buy { gap: 16px; }

.product-hero--non-wine .ca-ad__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  height: auto;
  min-height: 52px;
  box-sizing: border-box;
}
.product-hero--non-wine .ca-ad__price .hero-price-box__value { line-height: 1; white-space: nowrap; }
.product-hero--non-wine .ca-ad__price.is-on-request .hero-price-box__value { font-size: 20px; }

.ca-ad__currency {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ca-blue);
}

.ca-btn--blue { background: var(--ca-blue, #007BA5); }
.ca-btn--blue:hover { background: #00627F; }
.ca-ad__message { padding: 18px 30px; border-radius: 5px; }

.ca-ad__phone {
  padding: 0;
  border: 0;
  background: none;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--ca-blue);
  cursor: pointer;
  white-space: nowrap;
}
.ca-ad__phone.is-visible { font-size: 14px; letter-spacing: .02em; text-transform: none; text-decoration: none; }

.ca-ad__social { margin-bottom: 24px; }

/* ---------- Hero: photo slider ---------- */
.ca-ad .product-hero__media { position: relative; }

/* product.css centres the slides with translate(); the non-wine page cancels
   it on `.non-wine` only. */
.ca-ad .hero-gallery__img { transform: none !important; cursor: zoom-in; }

.product-hero--non-wine .ca-ad__gallery { height: 460px; min-height: 0; border-radius: 4px; background: #f4f2ef; }

.product-hero--non-wine .ca-ad__bars { margin-top: 10px; }
.product-hero--non-wine .ca-ad__bars .hero-gallery__bar { height: 4px; border-radius: 2px; background: var(--ca-tag); }
.product-hero--non-wine .ca-ad__bars .hero-gallery__bar.is-active { background: var(--ca-blue); }

.ca-ad__all-photos {
  display: block;
  margin: 14px 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--ca-blue);
  cursor: pointer;
}

.ca-ad__fav {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
}
.ca-ad__fav svg { fill: #C9BFB2; transition: fill .15s, transform .15s; }
.ca-ad__fav:hover svg { transform: scale(1.1); }
.ca-ad__fav.is-active svg { fill: #CE0212; }
.ca-ad__fav[disabled] { opacity: .6; cursor: wait; }

/* ---------- Section titles (Key information, Delivery) ---------- */
.ca-section-title {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  color: var(--ca-brown);
}

/* ---------- Key information: attribute tiles ---------- */
.ca-keyinfo { padding: 32px 0 24px; background: #F3F2EE; } /* same sand as Delivery below (mockup) */

.ca-keyinfo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ca-keyinfo__tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 4px;
  background: #E5E2DC;
  box-sizing: border-box;
}
.ca-keyinfo__value {
  font-family: "Work Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ca-ink);
  overflow-wrap: anywhere;
}
.ca-keyinfo__label {
  font-family: "Work Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ca-muted);
}

/* ---------- Delivery (mockup: no box, on the sand background) ---------- */
.ca-delivery { padding: 40px 0 64px; background: #F3F2EE; }

.ca-delivery__box { display: block; }

.ca-delivery__box .ca-section-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ca-brown);
}

.ca-delivery__text p {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000 !important;
}

.ca-delivery__btn {
  display: inline-block;
  margin-top: 36px;
  padding: 9px 23px;
  border: 1px solid #A9A39B;
  border-radius: 2px;
  background: transparent;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6E615B;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.ca-delivery__btn:hover { border-color: var(--ca-brown); color: var(--ca-brown); }

/* ---------- Top ads ---------- */
.ca-top .ca-list__head { align-items: center; margin-top: 64px; }
.ca-top__all {
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #007BA5 !important; /* theme link colour would win otherwise */
  text-decoration: none;
}
.ca-top__all:hover { text-decoration: underline; }
.ca-top .ca-aside { margin-top: 0; }

/* ---------- RWD ---------- */
@media (max-width: 860px) {
  .product-hero--non-wine .ca-ad__gallery { height: 300px; }
  .ca-section-title { font-size: 22px; }
}

@media (max-width: 600px) {
  .ca-ad__seller { flex-direction: column; align-items: flex-start; }
  .ca-keyinfo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca-keyinfo__value { font-size: 18px; }
}


/* ---------- Ad page — corrections from the mockup (2026-10-05) ---------- */
.product-hero--non-wine .ca-ad__title { color: #000; }
.product-hero--non-wine .ca-ad__subtitle { font-size: 24px; color: #000; }

.ca-ad__tags .ca-item__tag { font-size: 12px; }

/* Sold by: label on its own line, logo under it, rating pill on the right */
.ca-ad__seller { align-items: flex-end; }
.ca-ad__sold-by { flex-direction: column; align-items: flex-start; gap: 12px; }
.ca-ad__sold-by .ca-ad__label { font-size: 9px; color: #000; }
.ca-ad__rating {
  padding: 4px 8px;
  border-radius: 4px;
  background: #E5E2DC;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}
.ca-ad__rating .npw-rating__star { color: #8C0335; font-size: 20px; }
.ca-ad__rating .npw-rating__count { color: #000; font-size: 14px; font-weight: 400; letter-spacing: .04em; }

/* Description */
.ca-ad__heading:not(.ca-ad__label) {
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #8A765C;
}
.product-hero--non-wine .ca-ad__desc { font-size: 13px; color: #000; }

/* Price */
.product-hero--non-wine .ca-ad__price .hero-price-box__value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 600;
}

/* "Send a message" with the envelope + "See the number" under it */
.product-hero--non-wine .ca-ad__buy { align-items: flex-start; }
.ca-ad__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ca-ad__message {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 30px;
  font-size: 13px;
  letter-spacing: .2em;
}
.ca-ad__message-icon { flex: 0 0 auto; display: block; }
.ca-ad__phone { text-decoration: none; letter-spacing: .14em; font-weight: 700; }

/* Key information tiles — mockup: square, content centred */
.ca-keyinfo__grid {
  grid-template-columns: repeat(auto-fill, 128px);
  gap: 22px;
}
.ca-keyinfo__tile {
  aspect-ratio: 1 / 1;
  min-height: 0;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 12px;
  text-align: center;
}
.ca-keyinfo__value {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #8A765C;
}
.ca-keyinfo__label {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #211A15;
}
@media (max-width: 600px) {
  .ca-keyinfo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca-keyinfo__value { font-size: 24px; }
}

/* Price + "Send a message": one row across the column, 50 / 50 (mockup) */
.product-hero--non-wine .ca-ad__buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.product-hero--non-wine .ca-ad__price {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-width: 0;
  text-align: right;
}
.ca-ad__contact { width: 100%; }
.ca-ad__message { width: 100%; justify-content: center; box-sizing: border-box; }

/* Key information: the label always sits at the bottom of the tile, the value
   is centred in the space above it (even when it wraps to two lines). */
.ca-keyinfo__tile {
  justify-content: flex-end;
  gap: 0;
  padding: 10px 8px 22px;
}
.ca-keyinfo__value {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}
.ca-keyinfo__label { flex: 0 0 auto; }

/* ---------- Photos popup (#ca-photos): grid of 5 -> one large photo ---------- */
html.ca-photos-open { overflow: hidden; }

.ca-photos {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(33, 26, 21, .82);
  box-sizing: border-box;
}
.ca-photos[hidden] { display: none; }

.ca-photos__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  max-height: 100%;
  padding: 24px 28px 28px;
  border-radius: 4px;
  background: #F3F2EE;
  box-sizing: border-box;
}

.ca-photos__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.ca-photos__title {
  flex: 1 1 auto;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  color: #000;
}
.ca-photos__count {
  margin-left: 12px;
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #007BA5;
  vertical-align: middle;
}
.ca-photos__back,
.ca-photos__close {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #211A15;
}
.ca-photos__back {
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #007BA5;
}
.ca-photos__close { font-size: 34px; line-height: 1; }
.ca-photos__close:hover { color: #007BA5; }

.ca-photos__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}
.ca-photos__grid[hidden] { display: none; }
.ca-photos__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #E5E2DC;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
}
.ca-photos__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s, opacity .25s;
}
.ca-photos__thumb:hover img { transform: scale(1.04); opacity: .9; }

.ca-photos__view {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 0;
}
.ca-photos__view[hidden] { display: none; }
.ca-photos__figure { flex: 1 1 auto; margin: 0; min-width: 0; text-align: center; }
.ca-photos__big {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 200px);
  margin: 0 auto;
  object-fit: contain;
}
.ca-photos__pos {
  margin-top: 10px;
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #645F5B;
}
.ca-photos__nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #A9A39B;
  border-radius: 50%;
  background: transparent;
  font-size: 28px;
  line-height: 40px;
  color: #211A15;
  cursor: pointer;
}
.ca-photos__nav:hover { border-color: #007BA5; color: #007BA5; }

.ca-ad__gallery .ca-photo { cursor: zoom-in; }

@media (max-width: 960px) {
  .ca-photos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ca-photos { padding: 0; }
  .ca-photos__panel { height: 100%; border-radius: 0; padding: 16px; }
  .ca-photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca-photos__nav { position: absolute; top: 50%; z-index: 1; margin-top: -22px; background: rgba(243, 242, 238, .85); }
  .ca-photos__nav--prev { left: 4px; }
  .ca-photos__nav--next { right: 4px; }
  .ca-photos__title { font-size: 20px; }
}

/* Popup arrows: a large chevron centred in the circle (theme button
   padding / line-height pushed the text arrow to the side). */
.ca-photos .ca-photos__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0 !important;
  line-height: 0;
}
.ca-photos__nav svg { display: block; width: 14px; height: 24px; }
.ca-photos__nav--prev svg { margin-left: -3px; }
.ca-photos__nav--next svg { margin-right: -3px; }

/* =============================================================
 * Company page — templates/single_classified_ad_company.php
 * Same hero as the ad page (.product-hero--non-wine); logo on the right.
 * ============================================================= */
.ca-ad__company-link { display: inline-block; color: inherit; text-decoration: none; }
.ca-ad__company-link:hover { opacity: .8; }

.product-hero--non-wine .ca-company__name { margin: 0; font-size: 40px; line-height: 1.1; color: #000; }

.ca-company__tagline {
  margin-top: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  color: #000;
}

.ca-company__rating { align-self: flex-start; margin: 14px 0 36px; }

.ca-company__desc {
  max-width: 460px;
  margin-bottom: 28px;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #000;
}
.ca-company__desc p { margin: 0 0 10px; }
.ca-company__desc p:last-child { margin-bottom: 0; }

.ca-company__heading {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .04em;
  color: #8A765C;
}
.ca-company__address {
  margin: 0 0 18px;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  color: #000;
}

.ca-company__social { margin-bottom: 18px; }
.product-hero--non-wine .ca-company__divider { max-width: 460px; margin: 0 0 14px; }

.ca-company__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.ca-company__logo { display: block; max-width: 100%; max-height: 240px; width: auto; height: auto; object-fit: contain; }
.ca-company__logo-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 48px;
  color: #000;
}

.ca-company-ads .ca-list__head { margin-top: 56px; }

@media (max-width: 860px) {
  .ca-company__media { order: -1; min-height: 0; padding: 20px 0; }
  .ca-company__logo { max-height: 140px; }
  .product-hero--non-wine .ca-company__name { font-size: 32px; }
}

/* "Ads (3)", "Top ads": Cormorant draws old-style digits (3, 4, 5, 7, 9) below
   the baseline; with line-height 1 the theme's h2 box cut them off. */
.ca-list__title {
  line-height: 1.25 !important;
  padding-bottom: .08em;
  overflow: visible !important;
}

/* Company page: tagline right under the name, rating close below (mockup).
   The theme gives h1 a bottom margin and .npw-title a 48px line-height. */
.product-hero--non-wine .ca-company__name {
  margin: 0 !important;
  font-size: 48px !important;
  line-height: 1.05 !important;
  font-weight: 600 !important;
}
.ca-company__tagline { margin-top: 2px; line-height: 1.2; }
.ca-company__rating { margin-top: 10px; }
@media (max-width: 860px) {
  .product-hero--non-wine .ca-company__name { font-size: 34px !important; }
}

/* Listing block: no side padding (mockup); a small gutter only when the
   screen is narrower than the block, so the rows do not touch the edge. */
@media (max-width: 1280px) {
  .ca-list__main { padding: 0 16px; }
}

/* Top block (icon, title, search, keywords): no side padding either, so it
   lines up with the list below. event.css gives .events-cat-section 30px. */
.events-cat-section.ca-search { padding-left: 0; padding-right: 0; }
@media (max-width: 1280px) {
  .events-cat-section.ca-search { padding-left: 16px; padding-right: 16px; }
}
