/* Listings — namespaced .lst-* so it is safe to load alongside any page stylesheet */

/* Base font — matches every other page stylesheet ('Segoe UI'). Without this, pages
   that load only listings.css fall back to the browser serif default. */
body { font-family: 'Segoe UI', sans-serif; }

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

/* CARD */
.lst-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.lst-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  border-color: #FFD400;
}

.lst-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lst-thumb-icon { font-size: 52px; color: rgba(255, 212, 0, 0.55); }

.lst-purpose {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 20px;
  color: #0a0a0a;
  background: #FFD400;
}
.lst-purpose.sale { background: #FF7A00; color: #fff; }
.lst-purpose.shortlet { background: #4caf50; color: #fff; }

.lst-boost {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.75);
  color: #FFD400;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* BODY */
.lst-body { padding: 14px 16px 16px; }
.lst-price { font-size: 21px; font-weight: 800; color: #0a0a0a; }
.lst-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lst-loc { font-size: 14px; color: #777; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.lst-loc i { color: #FFD400; }

.lst-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0ee;
}
.lst-spec { font-size: 13px; color: #555; display: flex; align-items: center; gap: 4px; }
.lst-spec i { font-size: 16px; color: #999; }

.lst-agent { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.lst-agent-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: #1a1200; color: #FFD400;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.lst-agent-name {
  font-size: 13px; color: #555; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lst-verified {
  font-size: 12px; color: #4caf50; font-weight: 600;
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}
/* Listing reference number on the card — MODIFICATION 2, item 9. */
.lst-card-ref {
  margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .3px;
  color: #9a7b00; font-variant-numeric: tabular-nums;
}

/* HOME SECTION */
.lst-section { max-width: 1120px; margin: 0 auto; padding: 56px 32px; }
.lst-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.lst-section-head h2 { font-size: 28px; font-weight: 700; color: #0a0a0a; }
.lst-section-head p { font-size: 14px; color: #777; margin-top: 4px; }
.lst-view-all {
  font-size: 14px; font-weight: 700; color: #0a0a0a;
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid #FFD400; padding-bottom: 2px;
}
.lst-view-all:hover { color: #856000; }

@media (max-width: 900px) {
  .lst-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lst-grid { grid-template-columns: 1fr; }
  .lst-section { padding: 40px 16px; }
}

/* ===== Browse / detail shared shell ===== */
.lst-page-bg { background: #f5f5f3; min-height: 100vh; }
.lst-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 32px; background: #FFD400;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15); position: sticky; top: 0; z-index: 50;
}
.lst-topbar-logo { display: flex; align-items: center; }
.lst-topbar-actions { display: flex; align-items: center; gap: 10px; }
.lst-tb-link {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
  color: #0a0a0a; text-decoration: none; padding: 7px 12px; border-radius: 6px;
}
.lst-tb-link:hover { background: rgba(0, 0, 0, 0.08); }
.lst-tb-btn {
  background: #0a0a0a; color: #FFD400; border: none; border-radius: 6px;
  padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.lst-tb-btn:hover { background: #222; }

.lst-page { max-width: 1120px; margin: 0 auto; padding: 32px; }
.lst-page-title { font-size: 30px; font-weight: 800; color: #0a0a0a; }
.lst-page-sub { font-size: 15px; color: #777; margin-top: 4px; }

/* ===== Filter bar ===== */
.lst-filters {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  padding: 14px 16px; margin: 20px 0 24px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
}
.lst-purpose-tabs { display: flex; gap: 4px; background: #f5f5f3; border-radius: 8px; padding: 4px; }
.lst-ptab {
  border: none; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; color: #777; padding: 7px 14px; border-radius: 6px;
}
.lst-ptab.active { background: #FFD400; color: #0a0a0a; }
.lst-fgroup { display: flex; flex-direction: column; gap: 4px; }
.lst-fgroup label { font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.3px; }
.lst-fgroup select, .lst-fgroup input {
  padding: 9px 10px; border: 1px solid #ddd; border-radius: 7px; font-size: 14px;
  font-family: inherit; color: #222; background: #fff; outline: none; min-width: 120px;
}
.lst-fgroup select:focus, .lst-fgroup input:focus { border-color: #FFD400; box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.1); }
.lst-search-btn {
  background: #FFD400; color: #0a0a0a; border: none; border-radius: 7px;
  padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; text-transform: uppercase; white-space: nowrap;
}
.lst-search-btn:hover { background: #e6bf00; }
.lst-fclear {
  background: none; border: none; color: #856000; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; padding: 9px 4px; margin-left: auto;
}

.lst-results-head { font-size: 14px; color: #777; margin-bottom: 16px; }
.lst-results-head strong { color: #0a0a0a; }
.lst-empty {
  text-align: center; padding: 60px 20px; color: #999;
  background: #fff; border: 1px solid #eee; border-radius: 12px;
}
.lst-empty i { font-size: 40px; color: #ddd; display: block; margin-bottom: 12px; }

/* ===== Detail ===== */
.lst-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 20px; align-items: start; }
.lst-back { font-size: 13px; color: #777; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.lst-back:hover { color: #856000; }
.lst-gallery {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center;
}
.lst-gallery-icon { font-size: 84px; color: rgba(255, 212, 0, 0.5); }

/* thumbnail strip */
.lst-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.lst-thumb-btn {
  flex: 1; max-width: 120px; aspect-ratio: 16 / 10; padding: 0;
  border: 2px solid transparent; border-radius: 10px; cursor: pointer;
  background-size: cover; background-position: center; opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}
.lst-thumb-btn:hover { opacity: 1; }
.lst-thumb-btn.active { opacity: 1; border-color: #FFD400; }

/* ===== Pagination ===== */
.lst-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.lst-page-link {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px;
  border: 1px solid #e3e3e0; background: #fff; color: #333;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.lst-page-link:hover { border-color: #FFD400; }
.lst-page-link.active { background: #FFD400; border-color: #FFD400; color: #0a0a0a; }
.lst-page-link.disabled { opacity: 0.4; pointer-events: none; }
.lst-detail-main { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 24px; margin-top: 16px; }
.lst-detail-price { font-size: 28px; font-weight: 800; color: #0a0a0a; }
.lst-detail-title { font-size: 22px; font-weight: 700; color: #111; margin-top: 4px; }
.lst-detail-loc { font-size: 14px; color: #777; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.lst-detail-loc i { color: #FFD400; }
.lst-detail-specs { display: flex; flex-wrap: wrap; gap: 22px; margin: 20px 0; padding: 16px 0; border-top: 1px solid #f0f0ee; border-bottom: 1px solid #f0f0ee; }
.lst-detail-spec { display: flex; flex-direction: column; gap: 2px; }
.lst-detail-spec .v { font-size: 16px; font-weight: 700; color: #111; }
.lst-detail-spec .k { font-size: 12px; color: #999; }
.lst-detail-h { font-size: 14px; font-weight: 700; color: #111; margin: 18px 0 8px; }
.lst-detail-desc { font-size: 15px; color: #555; line-height: 1.7; }
.lst-amenities { display: flex; flex-wrap: wrap; gap: 8px; }
.lst-amenity { background: #f5f5f3; color: #555; font-size: 13px; padding: 5px 12px; border-radius: 20px; border: 1px solid #eee; }

.lst-agent-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 22px; position: sticky; top: 80px; }
.lst-agent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lst-agent-head .av { width: 48px; height: 48px; border-radius: 50%; background: #1a1200; color: #FFD400; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.lst-agent-head .nm { font-size: 15px; font-weight: 700; color: #111; }
.lst-agent-head .rl { font-size: 12px; color: #4caf50; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.lst-agent-head { transition: background 0.15s; border-radius: 10px; }
.lst-agent-head:hover { background: #faf9f5; }
.lst-store-link { font-size: 12px; color: #856000; font-weight: 700; margin-top: 4px; display: inline-flex; align-items: center; gap: 3px; }
.lst-agent-head:hover .lst-store-link { gap: 6px; }
.lst-cta { box-sizing: border-box; width: 100%; border: none; border-radius: 8px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.lst-cta.primary { background: #FFD400; color: #0a0a0a; margin-bottom: 10px; }
.lst-cta.primary:hover { background: #e6bf00; }
.lst-cta.ghost { background: #fff; color: #111; border: 1.5px solid #ddd; }
.lst-cta.ghost:hover { border-color: #aaa; }
.lst-cta.is-saved { background: #fffbe6; color: #856000; border-color: #FFD400; }
.lst-cta.is-saved:hover { border-color: #e6bf00; }
.lst-cta.whatsapp { background: #25D366; color: #fff; margin-bottom: 10px; }
.lst-cta.whatsapp:hover { background: #1da851; }
.lst-cta.call { background: #0a0a0a; color: #fff; margin-bottom: 10px; }
.lst-cta.call:hover { background: #222; }

/* Contact / Request modal (.cmodal-*) */
.cmodal-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 10, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: cmodal-fade 0.15s ease;
}
@keyframes cmodal-fade { from { opacity: 0; } to { opacity: 1; } }
.cmodal {
  position: relative; width: 100%; max-width: 440px; background: #fff;
  border-radius: 16px; padding: 28px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: cmodal-pop 0.18s ease;
}
@keyframes cmodal-pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cmodal-x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: none;
  background: #f3f3f3; border-radius: 8px; cursor: pointer; color: #555; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.cmodal-x:hover { background: #e8e8e8; }
.cmodal-title { font-size: 19px; font-weight: 800; margin: 0 0 6px; color: #0a0a0a; }
.cmodal-sub { font-size: 13.5px; color: #666; line-height: 1.5; margin: 0 0 16px; }
.cmodal-text {
  width: 100%; box-sizing: border-box; border: 1.5px solid #ddd; border-radius: 10px;
  padding: 12px; font-family: inherit; font-size: 14px; resize: vertical; margin-bottom: 14px;
}
.cmodal-text:focus { outline: none; border-color: #FFD400; }
.cmodal-send { margin-bottom: 0 !important; }
.cmodal-success { text-align: center; padding: 6px 0; }
.cmodal-check { font-size: 52px; color: #1f9d55; line-height: 1; margin-bottom: 10px; }
.cmodal-success .lst-cta { width: auto; margin: 14px auto 0; padding: 10px 22px; }
.lst-agent-note { font-size: 12px; color: #999; text-align: center; margin-top: 12px; line-height: 1.5; }

@media (max-width: 800px) {
  .lst-detail { grid-template-columns: 1fr; }
  .lst-agent-card { position: static; }
  .lst-topbar { padding: 10px 16px; }
  .lst-page { padding: 24px 16px; }
}
