/* Light, professional theme inspired by Royale Realtors India */
:root { --bg:#ffffff; --surface:#f2f3f5; --text:#111213; --muted:#4a4f55; --accent:#cba35c; --card:#ffffff; --border:#e6e8ec; }
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* Layout bands: create clear separation between header, content, and footer */
main { background: linear-gradient(180deg, #ffffff 0%, var(--surface) 8%, var(--surface) 92%, #ffffff 100%); }

/* Nav */
.nav { position: sticky; top:0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); --nav-height: 64px; }
.nav-inner { display:flex; align-items:center; justify-content:space-between; min-height: var(--nav-height); padding: 0; }
.brand { font-family: 'Playfair Display', serif; font-weight:700; font-size: 22px; letter-spacing: 0.3px; color: var(--text); display:inline-flex; align-items:center; gap:10px; height: var(--nav-height); }
.brand .brand-logo { height: 70px; width:auto; }
.brand .brand-logo-img { height: 70px; max-height: 70px; width:auto; display:block; vertical-align: middle; background: transparent; }
/* If your logo is tall, lower the height here and adjust nav padding as needed */
.nav-links { list-style:none; display:flex; gap:22px; }
.nav-links a { color: var(--muted); display:flex; align-items:center; height: var(--nav-height); }
.nav-links a:hover { color: #000; }
.nav-toggle { display:none; background:none; border:1px solid var(--border); color: #333; padding:6px 10px; border-radius:6px; }
/* Submenu */
.nav-links li { position: relative; }
.has-sub > a::after { content: "▾"; margin-left: 6px; font-size: 12px; color: var(--muted); }
/* Position submenu directly under parent to avoid hover gap */
.sub-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 8px; z-index: 100; }
.sub-menu li { margin: 0; }
.sub-menu a { display: block; padding: 8px 10px; color: var(--muted); }
.sub-menu a:hover { color: #000; background: var(--surface); border-radius: 8px; }
/* Keep submenu open when hovering parent, focusing links, or hovering submenu */
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub .sub-menu:hover { display: block; }
/* Accent band and soft shadow under header for clear separation */
.nav { box-shadow: 0 10px 24px rgba(0,0,0,0.04); }
.nav::after { content:""; display:block; height:3px; background: linear-gradient(90deg, rgba(203,163,92,0.85), rgba(203,163,92,0.55)); }

/* Hero */
.hero { position: relative; height: 420px; background: url('https://images.pexels.com/photos/1643383/pexels-photo-1643383.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat; }
.hero-overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.92)); }
.hero-content { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap: 12px; padding: 0 16px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 40px; line-height:1.2; margin:0; color:#121212; }
.hero p { color: #3a3f45; font-size: 18px; margin:0; }
.hero-actions { margin-top: 12px; display:flex; gap:12px; }
/* Visual separator at the bottom of hero to distinguish from middle content */
.hero::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:22px; background: linear-gradient(180deg, rgba(203,163,92,0.14), rgba(255,255,255,0)); pointer-events:none; }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border-radius:10px; font-weight:600; font-size:14px; transition: all .2s ease; }
.btn-primary { background: var(--accent); color:#111; border:1px solid var(--accent); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline { background:#fff; color:#111; border:1px solid var(--border); }
.btn-outline:hover { border-color:#cfcfcf; transform: translateY(-1px); }

/* CTA Icon Colors: ensure brand-consistent colors for icon-only buttons */
.btn i.fa-phone { color: #34C759; } /* Phone green */
.btn i.fa-whatsapp { color: #25D366; } /* WhatsApp brand green */
.btn i.fa-envelope { color: #1D4ED8; } /* Email blue */

/* Property Detail layout (Royale-inspired) */
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.rr-header { padding-top: 8px; }
.rr-title { font-family: 'Playfair Display', serif; font-size: 34px; line-height: 1.2; margin: 0; }
.rr-sub { font-size: 18px; color: #444; margin-top: 6px; }
.rr-meta { font-size: 14px; color: #666; margin-top: 8px; }
.rr-divider { height: 2px; background: #111; width: 64px; margin: 16px 0; }
.gallery { position: relative; }
.thumbs { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; opacity: 0.85; cursor: pointer; }
.thumb.active { outline: 2px solid var(--accent); opacity: 1; }
.panel { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.panel h3 { margin: 0 0 10px; font-size: 18px; font-family: 'Playfair Display', serif; }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.highlights li { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; padding: 10px; }
.check { color: #0a0; font-weight: 700; margin-right: 6px; }
.agent-cta { display: flex; gap: 12px; align-items: center; }
.agent-cta img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.price { font-size: 24px; font-weight: 500; margin: 8px 0 10px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; color: #555; }
.stats .chip { background: #f3f3f3; padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.map { margin-top: 14px; }
@media (max-width: 920px) { .detail { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 32px 0 52px; }
.section-header { text-align:center; margin-bottom: 24px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin: 0 0 8px; color:#111; }
.section-header p { color: var(--muted); margin:0; }
.section-header .lead { color:#2a2f35; }
.section-divider { width:80px; height:3px; background: var(--accent); border-radius:999px; margin:12px auto 0; opacity:0.9; }
/* Alternating section backgrounds for clear middle banding */
.section.alt { background: var(--surface); position:relative; }
.section.white { background: #fff; position:relative; }
.section.alt::before { content:""; position:absolute; left:0; right:0; top:0; height:12px; background: linear-gradient(180deg, rgba(203,163,92,0.14), rgba(255,255,255,0)); }
.section.white::before { content:""; position:absolute; left:0; right:0; top:0; height:10px; background: linear-gradient(180deg, rgba(203,163,92,0.10), rgba(255,255,255,0)); }

/* Grid */
.grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* Two-column grid utility and About page polish */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
/* When combined with .grid, force two columns */
.grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

.about-grid .card-body { padding: 16px 18px; }
.about-grid .card-title { font-family: 'Playfair Display', serif; margin: 0 0 8px; font-size: 20px; }
.about-grid .card-title::after { content:""; display:block; width:56px; height:2px; background: var(--accent); margin-top:8px; border-radius:2px; opacity:.9; }
.about-grid .card-body p { margin: 0 0 10px; color: #3a3f45; }
.list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.list li { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; padding: 8px 10px; color: #333; }
.list.clean { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.list.clean li { background: none; border: none; border-radius: 0; padding: 0 0 0 18px; position: relative; color: #2a2f35; }
.list.clean li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 2px rgba(203,163,92,0.18); }
.founders .brand-sub { color: var(--muted); margin-top: 6px; }

/* About page specific accents */
.about-lead { max-width: 880px; margin: 0 auto; }
.message-card .card-body { padding: 18px; }
.message-card p { color: #2a2f35; }
.founder-meta p { margin: 4px 0; }
.founders .brand-sub { color: var(--muted); margin-top: 6px; }


/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display:flex; flex-direction:column; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.card:hover { box-shadow: 0 10px 26px rgba(0,0,0,0.10); transform: translateY(-2px); transition: box-shadow .2s ease, transform .2s ease; }
.card-image { position: relative; display:block; }
.card-image img { width:100%; height:190px; object-fit:cover; display:block; }
.card-image img { transition: transform .25s ease; }
.card:hover .card-image img { transform: scale(1.02); }
.badge { position:absolute; top:12px; left:12px; background: var(--accent); color:#111; font-weight:700; font-size: 12px; padding:6px 10px; border-radius: 999px; }
.badge.badge-featured { left:auto; right:12px; background:#b8860b; color:#111; }
.chip-overlay { position:absolute; right:12px; bottom:12px; }
.chip-overlay .chip { background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); }
.card-body { padding: 10px 12px; display:flex; flex-direction:column; gap:6px; }
.card-title { font-size: 18px; margin:0; color:#101418; }
.card-title a:hover { color: var(--accent); }
.card-meta { color: var(--muted); font-size: 14px; display:flex; align-items:center; gap:8px; }
.card-stats { display:flex; gap:14px; font-size: 13px; color: var(--muted); }
.card-stats i { color:#666; margin-right:6px; }
.agent { display:flex; align-items:center; gap:8px; margin-top: 6px; }
.agent img { width:24px; height:24px; border-radius:50%; object-fit:cover; }
.price { color: var(--accent); font-weight: 500; }

/* Chips */
.chips { display:flex; gap:6px; flex-wrap:wrap; }
.chip { display:inline-block; padding:6px 10px; border:1px solid var(--border); border-radius:999px; font-size:12px; color:#333; background:#fff; }
.chip:hover { border-color:#cfcfcf; }

/* Blog hero and filter bar */
.blog-hero { padding: 38px 0 24px; background: linear-gradient(90deg, rgba(203,163,92,0.08), rgba(255,255,255,0.8)); border-bottom: 1px solid var(--border); }
.blog-hero h1 { font-family:'Playfair Display', serif; margin:0 0 8px; font-size:32px; }
.blog-hero p { color: var(--muted); margin:0; }
.filter-bar { display:flex; gap:10px; align-items:flex-end; margin: 12px 0 18px; flex-wrap:wrap; }
.filter-bar label { font-size:12px; color:#555; display:block; }
.filter-bar input[type="text"], .filter-bar select { padding:8px 10px; border:1px solid var(--border); border-radius:8px; }

/* Read more CTA */
.read-more { font-weight:600; color: var(--accent); font-size:14px; display:inline-flex; align-items:center; gap:6px; }
.read-more i { transition: transform .2s ease; }
.read-more:hover i { transform: translateX(2px); }

/* Agents */
.grid-agents .agent-card { display:flex; flex-direction:column; }
.agent-photo img { width:100%; height:200px; object-fit:fill; display:block; }
.agent-contact { display:flex; gap:14px; color: var(--muted); font-size: 14px; }

/* Property detail */
.detail { display:grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.detail-media { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow:hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.detail-info { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.detail-header { display:flex; align-items:center; justify-content:space-between; }
.detail-header h2 { margin:0; font-family: 'Playfair Display', serif; }
.hero-photo { width:100%; height:380px; object-fit:cover; display:block; }
.thumbs { display:grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; }
.thumbs img { width:100%; height:64px; object-fit:cover; border-radius:8px; }
.agent-box { display:flex; gap:12px; align-items:center; margin-top: 12px; }
.desc { color: var(--muted); }

/* Footer */
.site-footer { border-top:1px solid var(--border); background:#fff; }
/* Subtle accent band above footer to separate from content */
.site-footer::before { content:""; display:block; height:12px; background: linear-gradient(180deg, rgba(203,163,92,0.12), rgba(255,255,255,0)); }
.footer-cta { padding: 26px 0; position:relative; }
.cta-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.cta-title { margin:0; font-family: 'Playfair Display', serif; font-size: 24px; }
.cta-sub { margin:6px 0 0; color: var(--muted); }
.cta-actions { display:flex; gap:10px; }
.cta-bg { position:absolute; inset:0; background: linear-gradient(90deg, rgba(203,163,92,0.12), rgba(255,255,255,0.7)); z-index:-1; }

.footer-grid { display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; padding: 8px 0 24px; border-top:1px solid var(--border); }
.footer-brand .brand { font-size: 22px; }
.brand-sub { color: var(--muted); margin: 8px 0 10px; }
.footer-contact { display:flex; flex-direction:column; gap:6px; color: #2a2f35; }
.footer-contact a { color:#2a2f35; }
.social-links { display:flex; gap:12px; margin-top:10px; }
.footer-links { display:flex; flex-direction:column; gap:8px; }
.footer-links h4 { margin:0 0 8px; font-size:16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color:#000; }

.subfooter { border-top:1px solid var(--border); background:#fff; }
.subfooter-inner { display:flex; align-items:center; justify-content:space-between; padding: 14px 0; color: var(--muted); }
.sub-links { display:flex; gap:14px; }

@media (max-width: 900px) {
  .cta-inner { flex-direction:column; align-items:flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .subfooter-inner { flex-direction:column; gap:8px; }
}

/* Contact */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.contact-card h3 { margin:0 0 8px; font-family:'Playfair Display', serif; }
.contact-form .form-field { display:flex; flex-direction:column; gap:6px; }
.contact-form label { font-weight:600; color:#1a1f24; font-size:13px; }
.contact-form input, .contact-form select, .contact-form textarea { background:#fff; border:1px solid var(--border); border-radius:10px; padding:10px 12px; font-family: inherit; font-size:14px; color:#111; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline:none; border-color:#cfcfcf; box-shadow: 0 0 0 3px rgba(203,163,92,0.12); }

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

/* Responsive nav */
@media (max-width: 720px) {
  .nav-toggle { display:block; }
  /* Mobile nav: full-width dropdown below header */
  .nav-links { display:none; position:fixed; left:0; right:0; top:56px; background: var(--card); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:12px 16px; flex-direction:column; gap:12px; box-shadow: 0 12px 24px rgba(0,0,0,0.08); z-index:1000; }
  .nav-links.open { display:flex; }
  .nav-links li { width:100%; }
  .nav-links a { display:block; padding:10px 12px; }
  .has-sub { width: 100%; }
  .has-sub > a::after { content: ""; }
  .has-sub .sub-menu { position: static; display: block; padding: 0; border: none; box-shadow: none; background: none; }
  .has-sub .sub-menu a { padding: 8px 6px; }
  .detail { grid-template-columns: 1fr; }
  .hero { height: 320px; }
}

/* Force single-column layout for property detail on mobile */
@media (max-width: 900px) {
  .container.detail, .detail { grid-template-columns: 1fr !important; }
  .side-contact { position: static; max-width: 100%; }
  .panel { max-width: 100%; }
}

/* Intro */
.intro { background: #fff; }
.intro-wrap { display:grid; grid-template-columns: 1.4fr 1fr; gap:28px; align-items:center; }
.intro-left { display:flex; flex-direction:column; gap:14px; }
.intro-copy h2 { font-family: 'Playfair Display', serif; font-size:34px; line-height:1.25; margin:0 0 8px; letter-spacing:0.2px; }
.intro-copy p { color: var(--muted); font-size:16px; }
.intro-stats { display:flex; gap:22px; border-top:1px solid var(--border); padding-top:14px; }
.stat { background: none; border:none; border-radius:0; padding:0; text-align:left; min-width:unset; box-shadow:none; }
.stat-num { font-weight:800; font-size:20px; color: var(--accent); }
.stat-label { color: var(--muted); font-size:12px; }
.trust-strip { display:flex; gap:10px; margin-top:8px; }
.trust-badge { background: var(--surface); border:1px solid var(--border); color:#222; font-weight:600; font-size:12px; padding:8px 10px; border-radius:999px; }
.intro-media { display:block; }
.intro-collage { display:grid; grid-template-columns: 1.2fr 1fr; gap:12px; align-items:stretch; }
.collage-large { width:100%; height:320px; object-fit:cover; border-radius:14px; box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.collage-stack { display:grid; grid-template-rows: 1fr 1fr; gap:12px; }
.collage-small { width:100%; height:154px; object-fit:cover; border-radius:14px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.intro-usp { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-top:24px; }
.usp-card { background: var(--card); border:1px solid var(--border); border-radius:12px; padding:16px; box-shadow: 0 6px 18px rgba(0,0,0,0.05); }

/* Grid utilities */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Responsive override for grid-3 */
@media (max-width: 800px) {
  .grid.grid-3, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid.grid-3, .grid-3 { grid-template-columns: 1fr; }
}

/* Categories */
.category-card { position:relative; border:1px solid var(--border); border-radius:14px; overflow:hidden; display:block; background: var(--card); box-shadow: 0 8px 18px rgba(0,0,0,0.06); transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.10); }
.category-card img { width:100%; height:220px; object-fit:cover; display:block; }
.category-info { position:absolute; left:0; right:0; bottom:0; padding:14px 16px; background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.65)); color:#fff; }
.category-title { font-weight:700; color:#fff; }
.category-sub { color: rgba(255,255,255,0.85); font-size:13px; }

/* Collage grid for Browse Luxury Categories */
.categories .collage-grid { display:grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: 220px; gap: 18px; }
.categories .collage-grid .category-card { height:100%; }
.categories .collage-grid .category-card img { height:100%; }

/* Explicit positions for 4-item collage layout */
.categories .collage-grid .collage-item.c1 { grid-column: 1 / span 2; grid-row: 1; }
.categories .collage-grid .collage-item.c2 { grid-column: 3; grid-row: 1 / span 2; }
.categories .collage-grid .collage-item.c3 { grid-column: 1; grid-row: 2; }
.categories .collage-grid .collage-item.c4 { grid-column: 2; grid-row: 2; }

/* Responsive: collapse to simple grid on smaller screens */
@media (max-width: 1024px) {
  .categories .collage-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .categories .collage-grid .collage-item.c1 { grid-column: 1 / span 2; grid-row: 1; }
  .categories .collage-grid .collage-item.c2 { grid-column: 1 / span 2; grid-row: 2; }
  .categories .collage-grid .collage-item.c3 { grid-column: 1; grid-row: 3; }
  .categories .collage-grid .collage-item.c4 { grid-column: 2; grid-row: 3; }
}
@media (max-width: 640px) {
  .categories .collage-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .categories .collage-grid .collage-item.c1,
  .categories .collage-grid .collage-item.c2,
  .categories .collage-grid .collage-item.c3,
  .categories .collage-grid .collage-item.c4 { grid-column: 1; grid-row: auto; }
}

/* CTA banner */
.cta-banner { position:relative; padding:40px 0; }
.cta-inner { position:relative; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.cta-bg { position:absolute; inset:0; background: linear-gradient(90deg, rgba(203,163,92,0.12), rgba(255,255,255,0.6)); z-index:-1; }

/* Services */
.service-card { background: var(--card); border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.service-icon { font-size:24px; }

/* Testimonials */
.testimonial-card { background: var(--card); border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.stars { color: var(--accent); font-weight:800; margin-bottom:8px; }
.author { color: var(--muted); font-size:13px; margin-top:6px; }

/* Responsive adjustments for new sections */
@media (max-width: 900px) {
  .intro-wrap { grid-template-columns: 1fr; }
  .collage-large { height:240px; }
  .collage-small { height:120px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}


/* Global mobile adjustments */
@media (max-width: 768px) {
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .subfooter-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .hero-photo { max-height: 280px; }
  .agent-photo img { height: 160px; object-fit: cover; }
}