/**
 * VRCC Local Fixes - short-notice availability.
 *
 * The brief was: not a clearance rack. So the design leads with the house, not
 * the discount. The photo is large, the villa name is set in the site's own
 * serif, and the saving is a small, quiet mark in the corner of the image
 * rather than a red starburst. There is no strikethrough price, no countdown
 * and no exclamation mark anywhere.
 *
 * Colours and type are taken from the site itself, so the section reads as part
 * of it rather than as something bolted on: Playfair Display for headings,
 * Gotham for text, the navy #29394B that the site uses for headings and links,
 * body grey #606264, cards white on 8px corners with the same soft shadow the
 * result cards carry.
 */

.vrcc-lm {
  --vrcc-lm-ink: #29394b;
  --vrcc-lm-body: #606264;
  --vrcc-lm-line: #e6e3de;
  --vrcc-lm-quiet: #f7f7f7;

  margin: 0 auto;
  padding: 8px 0 24px;
  max-width: 1240px;
  color: var(--vrcc-lm-body);
  font-family: gotham, -apple-system, "Segoe UI", sans-serif;
}

/* ---- Heading ---------------------------------------------------------- */

.vrcc-lm__head {
  max-width: 640px;
  margin: 0 0 28px;
}

.vrcc-lm__title {
  margin: 0 0 10px;
  font-family: "playfair-display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  color: var(--vrcc-lm-ink);
}

.vrcc-lm__intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

/* ---- Grid ------------------------------------------------------------- */

.vrcc-lm__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px 24px;
}

.vrcc-lm--teaser .vrcc-lm__grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ---- Card ------------------------------------------------------------- */

.vrcc-lm-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vrcc-lm-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.vrcc-lm-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.vrcc-lm-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--vrcc-lm-quiet);
  overflow: hidden;
}

.vrcc-lm-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The saving: small, white on the site's navy, tucked into a corner. It states
   a fact and then gets out of the way. */
.vrcc-lm-card__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(41, 57, 75, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.vrcc-lm-card__badge span {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.85;
  text-transform: lowercase;
}

.vrcc-lm-card__body {
  padding: 18px 20px 22px;
}

.vrcc-lm-card__title {
  margin: 0 0 6px;
  font-family: "playfair-display", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--vrcc-lm-ink);
}

.vrcc-lm-card__facts {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.7;
}

.vrcc-lm-card__dates {
  margin: 0 0 2px;
  padding-top: 13px;
  border-top: 1px solid var(--vrcc-lm-line);
  font-size: 15px;
  color: var(--vrcc-lm-ink);
  font-weight: 600;
}

.vrcc-lm-card__dates span {
  font-weight: 400;
  color: var(--vrcc-lm-body);
}

.vrcc-lm-card__price {
  margin: 0 0 16px;
  font-size: 15px;
}

.vrcc-lm-card__price strong {
  font-size: 21px;
  color: var(--vrcc-lm-ink);
}

.vrcc-lm-card__cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--vrcc-lm-ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.vrcc-lm-card:hover .vrcc-lm-card__cta {
  opacity: 0.75;
}

/* ---- Empty state and teaser footer ------------------------------------ */

.vrcc-lm__empty {
  margin: 0;
  padding: 28px 24px;
  background: var(--vrcc-lm-quiet);
  border-radius: 8px;
  font-size: 17px;
}

.vrcc-lm__more {
  margin: 28px 0 0;
  text-align: center;
}

.vrcc-lm__more a {
  color: var(--vrcc-lm-ink);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

@media (max-width: 600px) {
  .vrcc-lm__grid { gap: 20px; }
  .vrcc-lm-card__body { padding: 16px 16px 20px; }
  .vrcc-lm-card__title { font-size: 20px; }
}
