/* Styles for the programmatic SEO pages (area / project / builder / blog).
   Aligned to the Realar theme: clean white sections, dark hero, black CTAs. */
.nd-wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* Hero / breadcrumb banner */
.nd-hero {
  position: relative;
  background: #0a0a0a url('/assets/breadcumb-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 0 64px;
}
.nd-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.72), rgba(10,10,10,.82));
}
.nd-hero .nd-wrap { position: relative; z-index: 1; }
.nd-breadcrumb { font-size: 14px; color: #cfcfcf; margin-bottom: 16px; letter-spacing: .02em; }
.nd-breadcrumb a { color: #fff; text-decoration: none; }
.nd-breadcrumb a:hover { color: #f5a623; }
.nd-hero h1 { font-size: 40px; line-height: 1.18; margin: 0 0 14px; color: #fff; font-weight: 700; }
.nd-hero p { font-size: 17px; color: #e2e2e2; max-width: 840px; margin: 0; line-height: 1.6; }
.nd-hero .nd-pills { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.nd-pill {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
}

/* Main layout */
.nd-main { padding: 60px 0; background: #fff; }
.nd-grid { display: grid; grid-template-columns: 1fr 370px; gap: 44px; align-items: start; }
@media (max-width: 991px) { .nd-grid { grid-template-columns: 1fr; } .nd-hero h1 { font-size: 30px; } }

.nd-section { margin-bottom: 40px; }
.nd-section h2 { font-size: 26px; margin: 0 0 16px; color: #111; font-weight: 700; }
.nd-section p { font-size: 16px; line-height: 1.8; color: #444; margin: 0 0 14px; }
.nd-section ul { margin: 0; padding-left: 20px; }
.nd-section li { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 8px; }
.nd-section article p { margin-bottom: 16px; }
.nd-section article h2 { margin-top: 28px; }

/* Cards */
.nd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 20px; }
.nd-card {
  display: block; border: 1px solid #ececec; border-radius: 14px; overflow: hidden;
  background: #fff; text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s;
}
.nd-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.10); transform: translateY(-3px); }
.nd-card__img { width: 100%; height: 180px; object-fit: cover; display: block; background: #f0f0f0; }
.nd-card__body { padding: 16px 18px; }
.nd-card__title { font-size: 18px; font-weight: 700; color: #111; margin: 0 0 6px; }
.nd-card__meta { font-size: 13px; color: #777; margin: 0 0 2px; }
.nd-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #0b6b3a; background: #e7f6ec; padding: 3px 10px; border-radius: 6px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .03em; }

/* Key facts */
.nd-keyfacts { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 30px; }
@media (max-width: 520px) { .nd-keyfacts { grid-template-columns: 1fr; } }
.nd-fact { border: 1px solid #ececec; border-radius: 12px; padding: 14px 16px; background: #fafafa; }
.nd-fact b { display: block; font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; font-weight: 700; }
.nd-fact span { font-size: 15px; color: #111; font-weight: 700; }

/* FAQ */
.nd-faq { border-top: 1px solid #eee; }
.nd-faq details { border-bottom: 1px solid #eee; padding: 16px 0; }
.nd-faq summary { font-size: 16px; font-weight: 700; color: #111; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.nd-faq summary::-webkit-details-marker { display: none; }
.nd-faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: #f5a623; font-weight: 400; }
.nd-faq details[open] summary::after { content: "\2013"; }
.nd-faq p { margin: 12px 0 0; color: #555; line-height: 1.8; }

/* Long-form landing content (CMS-editable rich body) */
.nd-longform { margin-bottom: 40px; }
.nd-longform h2 { font-size: 24px; font-weight: 700; color: #111; margin: 32px 0 14px; line-height: 1.3; }
.nd-longform h2:first-child { margin-top: 0; }
.nd-longform h3 { font-size: 19px; font-weight: 700; color: #111; margin: 24px 0 12px; }
.nd-longform p { font-size: 16px; line-height: 1.8; color: #444; margin: 0 0 16px; }
.nd-longform ul { margin: 0 0 18px; padding-left: 22px; }
.nd-longform li { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 8px; }
.nd-longform strong { color: #111; font-weight: 600; }
.nd-longform a { color: #0071e3; text-decoration: none; }
.nd-longform a:hover { text-decoration: underline; }

/* Sidebar lead form */
.nd-aside { position: sticky; top: 100px; }
.nd-leadform { background: #0a0a0a; color: #fff; border-radius: 16px; padding: 28px; }
.nd-leadform__title { font-size: 21px; margin: 0 0 8px; color: #fff; font-weight: 700; }
.nd-leadform__text { font-size: 14px; color: #bdbdbd; margin: 0 0 18px; line-height: 1.6; }
.nd-field { margin-bottom: 12px; }
.nd-field input, .nd-field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  border: 1px solid #333; background: #161616; color: #fff; font-size: 15px; box-sizing: border-box;
}
.nd-field input::placeholder, .nd-field textarea::placeholder { color: #888; }
.nd-field input:focus, .nd-field textarea:focus { outline: none; border-color: #f5a623; }
.nd-btn {
  width: 100%; padding: 14px 16px; border: none; border-radius: 10px; cursor: pointer;
  background: #f5a623; color: #111; font-weight: 700; font-size: 15px; transition: background .2s;
}
.nd-btn:hover { background: #ffbe45; }

/* Inline CTA (black theme button) */
.nd-cta-inline { display: inline-block; margin-top: 10px; background: #111; color: #fff; padding: 13px 26px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: background .2s; }
.nd-cta-inline:hover { background: #000; color: #f5a623; }

/* Property detail gallery */
.nd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.nd-gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; display: block; background: #eee; }
.nd-gallery img:first-child { grid-column: 1 / -1; height: 360px; }
@media (max-width: 600px) { .nd-gallery img, .nd-gallery img:first-child { height: 220px; } }

/* ---- Lead popup (modern enquiry modal) ---- */
.ndp-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(8,10,16,.62); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: ndpFade .25s ease;
}
@keyframes ndpFade { from { opacity: 0; } to { opacity: 1; } }
.ndp-card {
  position: relative; width: 100%; max-width: 430px; background: #fff;
  border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: ndpPop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes ndpPop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.ndp-top { background: linear-gradient(135deg,#0b1f3a,#12365f); color: #fff; padding: 24px 26px 20px; }
.ndp-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #ffd27a; margin-bottom: 8px; }
.ndp-top h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.25; color: #fff; }
.ndp-top p { margin: 0; font-size: 14px; line-height: 1.55; color: #d7e2f0; }
.ndp-body { padding: 20px 26px 24px; }
.ndp-field { margin-bottom: 12px; }
.ndp-field input, .ndp-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #dde3ec; border-radius: 11px;
  font-size: 15px; font-family: inherit; box-sizing: border-box; background: #fff; color: #111;
}
.ndp-field input:focus, .ndp-field textarea:focus { outline: none; border-color: #f5a623; box-shadow: 0 0 0 3px rgba(245,166,35,.18); }
.ndp-btn {
  width: 100%; padding: 15px 16px; border: none; border-radius: 11px; cursor: pointer;
  background: #f5a623; color: #111; font-weight: 800; font-size: 16px; transition: background .2s;
}
.ndp-btn:hover { background: #ffbe45; }
.ndp-btn:disabled { opacity: .6; cursor: default; }
.ndp-trust { text-align: center; font-size: 12px; color: #7a8698; margin: 12px 0 0; }
.ndp-close {
  position: absolute; top: 12px; right: 14px; z-index: 2; cursor: pointer;
  width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(255,255,255,.18);
  color: #fff; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.ndp-close:hover { background: rgba(255,255,255,.32); }
.ndp-success { padding: 40px 30px; text-align: center; }
.ndp-success .tick { width: 60px; height: 60px; border-radius: 50%; background: #e7f6ec; color: #0b6b3a; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.ndp-success h3 { margin: 0 0 8px; font-size: 22px; color: #0b1f3a; }
.ndp-success p { margin: 0; color: #556; font-size: 15px; line-height: 1.6; }

/* ---- Properties browser (listing filters) ---- */
.pb-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.pb-search { flex: 1 1 260px; padding: 13px 16px; border: 1px solid #e2e2e7; border-radius: 12px; font-size: 15px; }
.pb-search:focus { outline: none; border-color: #111; }
.pb-select { padding: 13px 14px; border: 1px solid #e2e2e7; border-radius: 12px; font-size: 15px; background: #fff; cursor: pointer; }
.pb-bhk { display: flex; gap: 8px; }
.pb-bhk button { padding: 12px 16px; border: 1px solid #e2e2e7; background: #fff; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: #333; transition: all .15s; }
.pb-bhk button:hover { border-color: #111; }
.pb-bhk button.active { background: #111; color: #fff; border-color: #111; }
.pb-count { color: #6e6e73; font-size: 14px; margin: 0 0 16px; }
.pb-clear { background: none; border: none; color: #0071e3; cursor: pointer; font-size: inherit; padding: 0; }

/* Popular Searches — site-wide internal-linking block (above footer) */
.nd-popular { background: #f7f8fa; border-top: 1px solid #ececec; padding: 48px 0 40px; }
.nd-popular__title { font-size: 22px; font-weight: 700; color: #111; margin: 0 0 4px; }
.nd-popular__sub { font-size: 14px; color: #666; margin: 0 0 26px; }
.nd-popular__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.nd-popular__col h3 {
  font-size: 13px; font-weight: 700; color: #111; text-transform: uppercase;
  letter-spacing: .05em; margin: 0 0 14px;
}
.nd-popular__col ul { list-style: none; margin: 0; padding: 0; }
.nd-popular__col li { margin-bottom: 9px; }
.nd-popular__col a { font-size: 14px; color: #555; text-decoration: none; line-height: 1.5; transition: color .15s ease; }
.nd-popular__col a:hover { color: #0071e3; }
@media (max-width: 991px) { .nd-popular__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 520px) { .nd-popular__grid { grid-template-columns: 1fr; } }

/* ---- Long-form landing page content ---- */
.nd-longform { margin-bottom: 36px; }
.nd-longform h2 { font-size: 24px; margin: 32px 0 14px; color: #111; font-weight: 700; }
.nd-longform h3 { font-size: 20px; margin: 24px 0 10px; color: #1d1d1f; font-weight: 600; }
.nd-longform p { font-size: 16px; line-height: 1.8; color: #333; margin: 0 0 14px; }
.nd-longform ul { margin: 0 0 16px; padding-left: 20px; }
.nd-longform li { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 7px; }
.nd-longform strong { color: #111; }
