@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Fraunces:opsz,wght@9..144,600;9..144,800&display=swap');

/* ========================================
   THE PROPERTY BRIEF — Clean styles.css
   - Removes duplicates
   - Keeps only classes used by index.html/app.js
======================================== */

/* ---------- Variables ---------- */
:root{
  --bg: #0b0b0c;
  --card: #121214;
  --text: #f3f4f6;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.10);
  --yellow: #f9d100;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 18px;
}

/* ---------- Base / Reset-ish ---------- */
*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(249,209,0,0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,255,255,0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.2px;
}

a{ color: inherit; }

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

button, input, select{ font: inherit; }

/* Headings */
h1,h2,h3{
  font-family: Fraunces, Georgia, serif;
  letter-spacing: 0.2px;
}

/* Helpers */
.muted{
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.hp{ display: none; }

/* ---------- Layout ---------- */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px;
}

.layout{ display: block; }

.section{
  position: relative;
  margin: 16px 0;
  padding: clamp(18px, 3vw, 34px) 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}

/* subtle “divider glow” top */
.section::before{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(249,209,0,0.75), transparent);
  opacity: 0.35;
}

/* alternate sections */
.section:nth-of-type(even){
  border-color: rgba(249,209,0,0.18);
  background:
    radial-gradient(700px 220px at 20% 0%, rgba(249,209,0,0.12), transparent 60%),
    rgba(255,255,255,0.02);
}

.section h2{
  margin: 0 0 12px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.15;
}

/* ---------- Header / Nav ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 14px 18px;
  background: rgba(11, 11, 12, 0.80);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand{
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.brand::after{
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(249,209,0,0.15);
  transform: translateY(-1px);
}

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

.nav a{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

/* Subscribe form in header */
.headerSub{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}
.shareRow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shareIconBtn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.shareIconBtn:hover{
  border-color: rgba(249, 209, 0, 0.35);
  background: rgba(255,255,255,0.06);
}

/* Share button inside the modal */
.btnGhost.sharePostBtn{
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  margin: 0 0 10px 0;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1;

  background: var(--yellow);
  color: #0b0b0c;
  border: 1px solid rgba(249, 209, 0, 0.35);
}

.btnGhost.sharePostBtn:hover{
  opacity: 0.92;
}

.sharePostBtn:hover{ opacity: 0.92; }

.headerInput{
  width: 280px;
  max-width: 46vw;
  height: 42px;
  padding: 10px 12px;
  font-size: 14px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
}

.headerInput::placeholder{ color: rgba(243,244,246,0.55); }

.headerInput:focus{
  border-color: rgba(249, 209, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(249,209,0,0.12);
}

/* Used by BOTH button + link in header */
.headerBtn{
  height: 42px;
  padding: 10px 14px;
  font-size: 14px;

  border-radius: 999px;
  border: 1px solid rgba(249, 209, 0, 0.35);
  background: var(--yellow);
  color: #0b0b0c;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.headerBtn:hover{ opacity: 0.92; }

/* ---------- Hero ---------- */
.hero{ padding: 34px 0 10px; }

.kicker{
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.hero h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.sub{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

/* ---------- Cards grid ---------- */
.latestList{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.postCard{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.postCard:hover{
  border-color: rgba(249, 209, 0, 0.40);
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(249,209,0,0.12),
    0 0 30px rgba(249,209,0,0.12);
}

.postCard h3{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.15;
}

.postMeta{
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.tagPill{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: rgba(249,209,0,0.14);
  border: 1px solid rgba(249,209,0,0.28);
  color: var(--text);
}

.metaDot{
  margin: 0 8px;
  color: rgba(255,255,255,0.28);
}

.cardSummary{ margin-top: 10px; }

/* ---------- Buttons ---------- */
.btnPrimary,
.btnGhost{
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btnPrimary{
  background: var(--yellow);
  color: #0b0b0c;
  border-color: rgba(249, 209, 0, 0.35);
}

.btnPrimary:hover{ opacity: 0.92; }

.btnGhost{
  background: transparent;
  color: var(--text);
}

.btnGhost:hover{
  border-color: rgba(249, 209, 0, 0.35);
  background: rgba(255,255,255,0.03);
}

/* Keep Share button yellow even on hover */
.btnGhost.sharePostBtn:hover{
  background: var(--yellow);
  color: #0b0b0c;
  border-color: rgba(249, 209, 0, 0.55);
  opacity: 0.92;
}

.btnLoadMore{
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.btnLoadMore:hover{
  border-color: rgba(249, 209, 0, 0.35);
  background: rgba(255,255,255,0.03);
}

/* Make card buttons smaller (Read more) */
.postCard .btnGhost {
  width: auto;
  display: inline-flex;
  padding: 8px 10px;
  margin-top: 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.1;
}

/* Make Load More smaller + centered */
.btnLoadMore {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;      /* centers inside the grid row */
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.1;
}

/* ---------- Modal ---------- */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 999;
}

.modal{
  width: min(920px, 100%);
  max-height: 85vh;
  overflow: auto;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(11,11,12,0.90);
  backdrop-filter: blur(10px);
  padding: 14px;
  box-shadow: var(--shadow);
}

.modalTop{
  position: relative;
  padding: 10px 44px 10px 0;
  border-bottom: 1px solid var(--line);
}

.modalX{
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modalX:hover{
  border-color: rgba(249, 209, 0, 0.35);
  background: rgba(255,255,255,0.05);
}

.modalBody{
  padding-top: 12px;
  line-height: 1.75;
}

.modalBody h3{
  margin: 24px 0 10px;
  font-size: 20px;
}

.modalBody p{ margin: 10px 0; }

/* ---------- Media ---------- */
.videoThumb{
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}

.videoThumb img{ width: 100%; height: auto; }

.playBadge{
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--yellow);
  color: #0b0b0c;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.videoSmall{
  max-width: 520px;
  margin: 10px 0;
}

.videoWrap{
  margin-top: 12px;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.videoWrap iframe{
  width: 100%;
  height: 100%;
  display: block;
}

.postMediaImg{
  width: 100%;
  max-width: 560px;
  margin: 12px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* PDF Download with Preview */

.pdfDownloadBox{
  margin: 20px 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(249, 209, 0, 0.06);
  text-align: center;
}

.pdfPreviewImg{
  width: 100%;
  max-width: 680px;
  margin: 0 auto 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}

.pdfPreviewImg:hover{ opacity: 0.92; }

.pdfDownloadBox a{ text-decoration: none; }

.pdfViewer{
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}

.pdfFrame{
  width: 100%;
  height: 70vh;  /* gives you the “scroll inside” feel */
  border: 0;
  display: block;
}

/* PDF Flip Viewer (PDF.js) */
.pdfFlipTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pdfNavBtn{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  min-width: 88px;
}

.pdfNavBtn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

.pdfPageText{
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pdfCanvasWrap{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  max-width: 460px;   /* makes preview feel ~half size */
  margin: 0 auto;     /* center it */
  touch-action: pan-y; /* allows vertical page scroll but we handle horizontal swipe */
}

.pdfCanvas{
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile: remove Full screen button (keep Download only) */
@media (max-width: 768px){
  .pdfFlipActions{ display: none; }
}

/* ---------- Sponsored ---------- */
.adTitle{
  margin-top: 10px;
  font-weight: 900;
  font-size: 18px;
}

#sponsoredAdTitle{
  display: none; /* keep layout clean; JS still updates text */
}

#sponsoredAdImg{
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  display: none; /* hidden until JS loads an ad */
}

/* Mobile landscape: ALWAYS show full banner (no crop) */
@media (orientation: landscape) and (max-height: 600px){
  #sponsoredAdImg{
    height: auto;
    max-height: 55vh;   /* keeps it from becoming too tall */
    object-fit: contain;
    background: #000;
  }
}

#sponsoredAdNote{
  margin-top: 12px;
  font-size: 0.98rem;
  opacity: 0.85;
}

.sponsorRotateHint{
  margin: 6px 0 12px;
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 0.2px;
  display: none;
}

@media (max-width: 600px){
  #sponsoredAdImg{
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain; /* show the whole banner */
    background: rgba(255,255,255,0.04); /* nice “letterbox” */
  }

/* Phone landscape: show full banner (no crop) */
@media (orientation: landscape) and (max-height: 500px){
  #sponsoredAdImg{
    height: 180px;        /* smaller so it fits short screens */
    object-fit: contain;  /* show whole banner */
    background: #000;     /* letterbox in black */
  }
}

  .sponsorRotateHint{ display: block; }
}

/* ---------- Search (matches index.html structure) ---------- */
.searchBlock{
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.searchWrap{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);

  overflow: hidden; /* prevents “spilling out” edges */
}

.searchTop,
.searchDates{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.searchTop{ flex: 1 1 auto; }
.searchDates{ flex: 0 0 auto; }

.searchInput{
  flex: 1 1 520px;
  min-width: 260px;
  height: 40px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
  max-width: 100%;
}

.searchInput:focus{
  border-color: rgba(249, 209, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(249,209,0,0.12);
}

.searchSelect{
  flex: 0 0 120px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  padding: 0 10px;
  max-width: 100%;
}

.searchDate{
  flex: 1 1 auto;
  min-width: 140px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  color-scheme: dark;
  padding: 0 10px;
  max-width: 100%;
}

.searchTo{
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted);
}

/* iOS date text visibility */
.searchDate::-webkit-datetime-edit,
.searchDate::-webkit-datetime-edit-text,
.searchDate::-webkit-datetime-edit-month-field,
.searchDate::-webkit-datetime-edit-day-field,
.searchDate::-webkit-datetime-edit-year-field{
  color: var(--text);
}

.searchResults{ margin-top: 14px; }

/* Mobile portrait: 2 rows, dates in ONE line under search */
@media (max-width: 640px){
  .searchWrap{
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
  }

  .searchTop{ width: 100%; }
  .searchDates{ width: 100%; }

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

  .searchSelect{ flex: 0 0 98px; }

  .searchDate{ min-width: 0; flex: 1 1 50%; }
}

/* Mobile landscape (short height): also force 2 rows + compact */
@media (orientation: landscape) and (max-height: 500px){
  .searchWrap{
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
  }

  .searchTop, .searchDates{ width: 100%; }

  .searchInput, .searchSelect, .searchDate{ height: 36px; }

  .searchSelect{ flex: 0 0 92px; }

  .searchDates{ gap: 8px; }

  .searchTo{ font-size: 13px; }
}

/* Compact search results */
.searchCount{
  margin: 10px 2px 8px;
  font-size: 13px;
}

.searchResultList{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.searchItem{
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.searchItemTop{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.searchBadge{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249,209,0,0.25);
  background: rgba(249,209,0,0.08);
  color: var(--text);
}

.searchDateText{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.searchTitle{
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.searchSnippet{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(243,244,246,0.80);
  line-height: 1.55;
}

mark.hl{
  background: rgba(249,209,0,0.22);
  color: var(--text);
  padding: 0 3px;
  border-radius: 4px;
}

/* ---------- Toast (share feedback) ---------- */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  z-index: 2000;

  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Footer ---------- */
.footer{
  border-top: 1px solid var(--line);
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Responsive (site-wide) ---------- */
@media (max-width: 820px){
  .topbar{ flex-wrap: wrap; }
  .headerSub{ width: 100%; flex-wrap: wrap; }
  .headerInput{ width: 100%; max-width: 100%; }
}

@media (max-width: 780px){
  .latestList{ grid-template-columns: 1fr; }
}

/* Landscape phones: keep header compact */
@media (max-height: 500px) and (orientation: landscape){
  .topbar{ padding: 8px 12px; }

  .nav{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  .nav a{
    font-size: 13px;
    padding: 6px 8px;
    white-space: nowrap;
  }

  .headerInput{
    display: block;
    width: 160px;
    max-width: 32vw;
    height: 36px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .headerSub{ flex-wrap: nowrap; }

  .headerBtn{
    height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }
}