/* ===== MEDWIN BAY CONSOLIDATED INNER-PAGE STYLES ===== */

body.page-property * { box-sizing: border-box; margin: 0; padding: 0; }
html:has(body.page-property), body.page-property { width: 100%; max-width: 100%; overflow-x: hidden; margin: 0; padding: 0; }
body.page-property { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6; color: #333; background: #fff; }
body.page-property img { max-width: 100%; height: auto; display: block; }
body.page-property a { text-decoration: none; color: inherit; }
body.page-property { --primary: #286043; --accent: #C88E4B; --accent-hover: #b07a3a; --gold: #FFB300; --gray: #6b7280; --light-bg: #f0f8ff; --shadow: 0 4px 15px rgba(0,0,0,0.08); --radius: 12px; }
body.page-property .btn-primary { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 12px 24px; border-radius: 50px; text-align: center; transition: background 0.3s; border: none; cursor: pointer; font-size: 15px; }
body.page-property .btn-primary:hover { background: var(--accent-hover); }
body.page-property .btn-outline { display: inline-block; background: transparent; color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 50px; text-align: center; border: 2px solid #fff; transition: background 0.3s; font-size: 15px; }
body.page-property .btn-outline:hover { background: rgba(255,255,255,0.15); }
body.page-property .btn-sm { padding: 8px 16px; font-size: 13px; }
body.page-property .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(2, 119, 189, 0.95); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
body.page-property .navbar .logo { display: flex; align-items: center; gap: 8px; }
body.page-property .navbar .logo img { height: 52px; }
body.page-property .navbar .logo span { color: #fff; font-weight: 700; font-size: 14px; }
body.page-property .navbar .nav-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.page-property .navbar .lang a { color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 50px; background: rgba(255,255,255,0.12); margin: 0 2px; }
body.page-property .navbar .lang a:hover { background: rgba(255,255,255,0.25); }
body.page-property .navbar .btn-contact { background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; padding: 6px 14px; border-radius: 50px; border: none; cursor: pointer; }
body.page-property .hero { padding: 100px 16px 40px; min-height: 70vh; display: flex; align-items: center; background: linear-gradient(135deg, rgba(10,42,26,0.80) 0%, rgba(10,42,26,0.40) 100%), url("../images/chaam-huahin-pool-villa-sale-6.webp"); background-size: cover; background-position: center; }
body.page-property .hero-content { max-width: 1100px; margin: 0 auto; width: 100%; color: #fff; }
body.page-property .hero-badge { display: inline-block; background: rgba(255,179,0,0.2); padding: 4px 12px; border-radius: 50px; font-size: 13px; font-weight: 600; border-left: 3px solid var(--gold); margin-bottom: 12px; }
body.page-property .hero h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
body.page-property .hero p { font-size: 17px; opacity: 0.92; max-width: 500px; margin-bottom: 16px; }
body.page-property .hero .btn-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
body.page-property .hero .location-links { font-size: 14px; opacity: 0.9; line-height: 1.8; }
body.page-property .hero .location-links a { color: var(--gold); font-weight: 600; text-decoration: underline; }
body.page-property .hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
body.page-property .hero-stat { background: rgba(255,255,255,0.12); padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--gold); }
body.page-property .hero-stat .value { font-size: 20px; font-weight: 800; display: block; }
body.page-property .hero-stat .label { font-size: 12px; opacity: 0.8; }
body.page-property .section { padding: 40px 16px; max-width: 1100px; margin: 0 auto; }
body.page-property .section-full { padding: 40px 16px; max-width: 100%; background: var(--light-bg); }
body.page-property .section-full .inner { max-width: 1100px; margin: 0 auto; }
body.page-property .section-title { text-align: center; margin-bottom: 24px; }
body.page-property .section-title .sub { color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
body.page-property .section-title h2 { font-size: 26px; font-weight: 800; color: var(--primary); margin-top: 4px; }
body.page-property .section-title p { color: var(--gray); font-size: 15px; max-width: 500px; margin: 6px auto 0; }
body.page-property .section-title .line { width: 50px; height: 3px; background: var(--accent); margin: 10px auto 0; }
body.page-property .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.page-property .feature-card { background: #fff; padding: 16px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); border: 1px solid #eee; }
body.page-property .feature-card i { font-size: 28px; color: var(--accent); margin-bottom: 6px; display: block; }
body.page-property .feature-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); }
body.page-property .feature-card p { font-size: 14px; color: var(--gray); }
body.page-property .neighborhood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.page-property .neighborhood-card { background: var(--light-bg); padding: 16px; border-radius: var(--radius); border-left: 4px solid var(--accent); }
body.page-property .neighborhood-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); }
body.page-property .neighborhood-card p { font-size: 14px; color: var(--gray); }
body.page-property .neighborhood-card .price { color: var(--accent); font-weight: 600; font-size: 13px; margin-top: 4px; }
body.page-property .gallery-container { position: relative; overflow: hidden; border-radius: 8px; background: #f5f5f5; }
body.page-property .gallery-container img { width: 100%; height: auto; cursor: pointer; }
body.page-property .gallery-container .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 14px; z-index: 5; }
body.page-property .gallery-container .nav.prev { left: 8px; }
body.page-property .gallery-container .nav.next { right: 8px; }
body.page-property .gallery-container .counter { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7); color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 12px; z-index: 5; }
body.page-property .gallery-hidden { display: none; }
body.page-property .property-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #eee; max-width: 700px; margin: 0 auto; }
body.page-property .property-card.featured { border: 2px solid var(--accent); }
body.page-property .property-card .body { padding: 16px; }
body.page-property .property-card .body h4 { font-size: 18px; font-weight: 700; color: var(--primary); }
body.page-property .property-card .body p { font-size: 14px; color: var(--gray); margin: 4px 0; }
body.page-property .property-card .body .price { font-size: 20px; font-weight: 800; color: var(--primary); }
body.page-property .property-card .body .tag { font-weight: 700; color: var(--accent); }
body.page-property .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.page-property .faq-item { background: var(--light-bg); padding: 16px; border-radius: var(--radius); }
body.page-property .faq-item h4 { font-size: 16px; font-weight: 700; color: var(--primary); }
body.page-property .faq-item p { font-size: 14px; color: var(--gray); }
body.page-property .contact-form { background: var(--light-bg); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
body.page-property .contact-form input, body.page-property .contact-form select, body.page-property .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; margin-bottom: 12px; background: #fff; font-family: inherit; }
body.page-property .contact-form textarea { min-height: 80px; resize: vertical; }
body.page-property .contact-form .btn-submit { width: 100%; padding: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; border: none; border-radius: 50px; cursor: pointer; transition: background 0.3s; }
body.page-property .contact-form .btn-submit:hover { background: var(--accent-hover); }
body.page-property .contact-social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 14px; color: #fff; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
body.page-property .contact-social-btn i { font-size: 18px; }
body.page-property .lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.92); z-index: 999; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
body.page-property .lightbox.active { display: flex; }
body.page-property .lightbox img { max-width: 95%; max-height: 75vh; object-fit: contain; border-radius: 8px; }
body.page-property .lightbox .caption { color: #fff; font-size: 14px; margin-top: 12px; text-align: center; }
body.page-property .lightbox .counter { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 4px; }
body.page-property .lightbox .close { position: absolute; top: 16px; right: 24px; font-size: 28px; color: #fff; cursor: pointer; background: none; border: none; }
body.page-property .lightbox .close:hover { color: var(--accent); }
body.page-property .lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 20px; cursor: pointer; z-index: 10; }
body.page-property .lightbox .nav:hover { background: rgba(255,255,255,0.3); }
body.page-property .lightbox .nav.prev { left: 12px; }
body.page-property .lightbox .nav.next { right: 12px; }
body.page-property .line-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 1000; display: none; align-items: center; justify-content: center; }
body.page-property .line-modal.active { display: flex; }
body.page-property .line-modal .content { background: #fff; padding: 24px; border-radius: 20px; text-align: center; max-width: 380px; width: 92%; }
body.page-property .line-modal .content img { width: 180px; height: 180px; margin: 0 auto; border-radius: 12px; border: 2px solid #eee; }
body.page-property .line-modal .content h3 { font-size: 20px; font-weight: 800; color: #333; margin-bottom: 8px; }
body.page-property .line-modal .content p { font-size: 14px; color: #555; }
body.page-property .line-modal .content .close-btn { margin-top: 16px; padding: 10px 30px; background: var(--accent); color: #fff; border: none; border-radius: 50px; font-weight: 700; font-size: 15px; cursor: pointer; }
body.page-property .footer { background: #01579B; color: rgba(255,255,255,0.9); padding: 30px 16px 16px; }
body.page-property .footer .inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body.page-property .footer h4 { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
body.page-property .footer p, body.page-property .footer a { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.85); }
body.page-property .footer a { display: block; }
body.page-property .footer a:hover { color: var(--gold); }
body.page-property .footer .divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 16px 0; }
body.page-property .footer .copy { text-align: center; font-size: 12px; opacity: 0.7; }
@media  (min-width: 600px) { body.page-property .feature-grid { grid-template-columns: repeat(3, 1fr); } body.page-property .neighborhood-grid { grid-template-columns: 1fr 1fr; } body.page-property .faq-grid { grid-template-columns: 1fr 1fr; } body.page-property .hero h1 { font-size: 40px; } body.page-property .footer .inner { grid-template-columns: repeat(3, 1fr); } }
@media  (min-width: 1024px) { body.page-property .hero { padding: 120px 30px 60px; min-height: 80vh; } body.page-property .hero h1 { font-size: 48px; } body.page-property .hero p { font-size: 20px; } body.page-property .section { padding: 60px 30px; } body.page-property .section-full { padding: 60px 30px; } body.page-property .section-title h2 { font-size: 34px; } body.page-property .feature-card { padding: 24px; } body.page-property .contact-form { padding: 30px; } body.page-property .footer { padding: 40px 30px 20px; } }
@media  (max-width: 480px) { body.page-property .hero { padding: 120px 12px 30px; min-height: auto; } body.page-property .hero h1 { font-size: 24px; } body.page-property .hero p { font-size: 15px; } body.page-property .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 4px; } body.page-property .hero-stat { padding: 6px 8px; } body.page-property .hero-stat .value { font-size: 16px; } body.page-property .hero-stat .label { font-size: 10px; } body.page-property .section { padding: 24px 12px; } body.page-property .section-full { padding: 24px 12px; } body.page-property .section-title h2 { font-size: 20px; } body.page-property .feature-grid { grid-template-columns: 1fr; gap: 8px; } body.page-property .neighborhood-grid { grid-template-columns: 1fr; gap: 8px; } body.page-property .faq-grid { grid-template-columns: 1fr; gap: 8px; } body.page-property .contact-form { padding: 16px; } body.page-property .contact-social-btn { font-size: 12px; padding: 8px 14px; } body.page-property .footer .inner { grid-template-columns: 1fr 1fr; gap: 12px; } body.page-property .footer p, body.page-property .footer a { font-size: 11px; } body.page-property .line-modal .content { padding: 16px; } body.page-property .line-modal .content img { width: 140px; height: 140px; } body.page-property .lightbox .nav { width: 32px; height: 32px; font-size: 14px; } body.page-property .lightbox .nav.prev { left: 6px; } body.page-property .lightbox .nav.next { right: 6px; } }
/* Location-specific hero treatments */
body.page-property.location-chiang-rai .hero { background: linear-gradient(135deg, rgba(26,42,10,0.80) 0%, rgba(26,42,10,0.40) 100%), url('/images/chiangrai-studio-rent-1.webp'); background-size: cover; background-position: center; }
body.page-property.location-hua-hin .hero { background: linear-gradient(135deg, rgba(10,42,58,0.80) 0%, rgba(10,42,58,0.40) 100%), url('/images/chaam-huahin-pool-villa-sale-1.webp'); background-size: cover; background-position: center; }

/* ===== Buyers Guide ===== */
/* ===== Navbar layout — logo left, lang + contact right ===== */
body.page-buyers .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}
body.page-buyers .navbar > div {
  display: flex;
  align-items: center;
}
body.page-buyers .navbar .lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
@media  (max-width: 600px) {
  body.page-buyers .navbar {
    justify-content: center;
  }
  body.page-buyers .navbar > div {
    justify-content: center;
    width: 100%;
  }
}
