/* ==========================================================================
   Villa-style listing card (matches reference screenshot)
   ========================================================================== */

.vcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 2px rgba(34,26,82,.04);
}
.vcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(34,26,82,.08); }

/* Media */
.vcard-media {
  position: relative;
  display: block;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--powder);
}
.vcard-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.vcard:hover .vcard-media img { transform: scale(1.04); }

.vcard-rating {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #fff;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgba(34,26,82,.15);
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}
.vcard-rating .star { color: #FFB400; }
.vcard-rating strong { font-weight: 700; }
.vcard-rating small { color: var(--muted); font-weight: 500; font-size: 11px; }

.vcard-badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgba(34,26,82,.15);
  white-space: nowrap;
}
.vcard-badge svg { color: var(--wine); }
.vcard-badge strong { font-weight: 600; }

/* Body */
.vcard-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vcard-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vcard-row-top { align-items: center; }

.vcard-tags { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.vchip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--powder);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--r-pill);
  letter-spacing: 0;
  white-space: nowrap;
}

.vcard-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.vcard-loc svg { color: var(--wine); }
.vcard-loc strong { font-weight: 600; }

.vcard-row-title { align-items: center; gap: 10px; }
.vcard-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.vcard-title a { color: var(--ink); }
.vcard-title a:hover { color: var(--wine); }

.vcard-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.vc-action {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--powder);
  border: 0;
  color: var(--ink-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .15s;
}
.vc-action svg { width: 15px; height: 15px; }
.vc-action:hover { background: var(--powder-2); color: var(--wine); }
.vc-fav.is-fav { color: var(--wine); }
.vc-fav.is-fav svg { fill: var(--wine); stroke: var(--wine); }

/* Specs box — single row, never wraps */
.vcard-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  flex-wrap: nowrap;
  overflow: hidden;
}
.vcard-specs .spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  min-width: 0;
}
.vcard-specs .spec strong { color: var(--ink); font-weight: 600; }
.vcard-specs .spec svg { color: var(--ink); width: 14px; height: 14px; flex-shrink: 0; }

/* Bottom row */
.vcard-row-bottom { align-items: center; gap: 10px; }
.vcard-price { min-width: 0; flex: 1; }
.vcard-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.vcard-price small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.vcard-cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-pill);
  flex-shrink: 0;
  white-space: nowrap;
}
.vcard-cta:hover { background: #1A1342; transform: translateY(-1px); }

/* ============ Calendar modal ============ */
.vcal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}
.vcal-modal[hidden] { display: none; }
.vcal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34,26,82,.55);
  backdrop-filter: blur(4px);
}
.vcal-dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(34,26,82,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vcal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 14px;
  border-bottom: 1px solid var(--line);
}
.vcal-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.vcal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--powder);
  border: 0;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s;
}
.vcal-close:hover { background: var(--powder-2); }

.vcal-nav {
  display: flex;
  justify-content: space-between;
  padding: 16px 28px 0;
}
.vcal-nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .15s;
}
.vcal-nav button:hover { border-color: var(--wine); color: var(--wine); }
.vcal-nav button:disabled { opacity: .35; cursor: not-allowed; }

.vcal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 18px 28px 8px;
  overflow-y: auto;
}
@media (max-width: 720px) {
  .vcal-grid { grid-template-columns: 1fr; gap: 16px; }
}

.vcal-month { display: flex; flex-direction: column; gap: 8px; }
.vcal-month h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  text-transform: capitalize;
}
.vcal-weekdays,
.vcal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.vcal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}
.vcal-day {
  position: relative;
  aspect-ratio: 1.1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #f0eaef;
  cursor: default;
}
.vcal-day .num { font-weight: 600; line-height: 1; }
.vcal-day .px { font-size: 9px; color: var(--muted); line-height: 1; }
.vcal-day.is-other { color: #d8d4dc; background: #fafafa; }
.vcal-day.is-other .px { color: #d8d4dc; }
.vcal-day.is-past { color: var(--muted); background: #fafafa; }
.vcal-day.is-today {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.vcal-day.is-today .px { color: var(--ink); }
.vcal-day.is-booked {
  background: #4F8BFF;
  color: #fff;
  border-color: #4F8BFF;
}
.vcal-day.is-booked .px { color: #E5EEFF; }

.vcal-foot {
  display: flex;
  gap: 18px;
  padding: 14px 28px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.vcal-foot .legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vcal-foot .legend i {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.dot-avail { background: #fff; border: 1px solid var(--line-2); }
.dot-booked { background: #4F8BFF; }
.dot-today { background: var(--gold); }

/* Toast */
.vcard-toast {
  position: fixed;
  bottom: 110px; right: 28px;
  z-index: 9998;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(34,26,82,.25);
  animation: vctoast-in .25s ease;
}
@keyframes vctoast-in {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* ==========================================================================
   Card — Responsive
   ========================================================================== */
@media (max-width: 720px) {
  /* ===== Convert listing & city grids to horizontal snap-scroll sliders ===== */
  .grid-3,
  .grid-4,
  .city-grid {
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 4px 16px 14px;
    margin: 0 -16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .grid-3::-webkit-scrollbar,
  .grid-4::-webkit-scrollbar,
  .city-grid::-webkit-scrollbar { display: none; }
  .grid-3 > .vcard,
  .grid-4 > .vcard,
  .grid-3 > .card,
  .grid-4 > .card,
  .grid-3 > .blog-card,
  .grid-4 > .blog-card,
  .grid-3 > .review,
  .grid-4 > .review {
    flex: 0 0 80%;
    min-width: 260px;
    max-width: 320px;
    scroll-snap-align: start;
    scroll-margin-left: 16px;
  }
  /* City cards: square aspect for the destination slider */
  .city-grid > .city-card,
  .city-grid > .city-card.tall {
    flex: 0 0 72%;
    min-width: 240px;
    max-width: 300px;
    aspect-ratio: 1/1;
    height: auto;
    grid-row: auto;
    scroll-snap-align: start;
    scroll-margin-left: 16px;
  }
  /* Blog row also slides on mobile */
  .blog-row {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 4px 16px 14px;
    margin: 0 -16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .blog-row::-webkit-scrollbar { display: none; }
  .blog-row > .blog-card {
    flex: 0 0 80%;
    min-width: 260px;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .vcard { border-radius: 12px; }
  .vcard-media { aspect-ratio: 5/3; }
  .vcard-rating { top: 10px; right: 10px; padding: 4px 9px; font-size: 11px; }
  .vcard-rating small { font-size: 10px; }
  .vcard-badge { top: 10px; left: 10px; padding: 4px 10px; font-size: 11px; }
  .vcard-body { padding: 12px 14px 14px; gap: 10px; }
  .vcard-title { font-size: 17px; }
  .vc-action { width: 32px; height: 32px; }
  .vc-action svg { width: 13px; height: 13px; }
  .vcard-specs { padding: 9px 11px; gap: 6px; }
  .vcard-specs .spec { font-size: 11px; gap: 3px; }
  .vcard-specs .spec svg { width: 13px; height: 13px; }
  .vcard-price strong { font-size: 15px; }
  .vcard-cta { padding: 8px 14px; font-size: 12px; }

  /* Toast positioning */
  .vcard-toast { right: 16px; bottom: 96px; padding: 10px 14px; font-size: 12px; }

  /* Calendar modal */
  .vcal-dialog { border-radius: 10px; max-height: 96vh; }
  .vcal-head { padding: 16px 18px 12px; }
  .vcal-head h3 { font-size: 18px; }
  .vcal-nav { padding: 12px 18px 0; }
  .vcal-grid { padding: 12px 14px 6px; gap: 12px; }
  .vcal-day { font-size: 11px; }
  .vcal-day .px { font-size: 8px; }
  .vcal-foot { padding: 12px 18px 16px; font-size: 11px; gap: 14px; }
}
@media (max-width: 480px) {
  .vcard-rating small { display: none; }
  .vcard-rating { padding: 4px 8px; }
  .vcard-badge strong { font-size: 11px; }
  .vcard-row-bottom { flex-wrap: wrap; }
  .vcard-cta { width: 100%; text-align: center; }
}
