/*
Theme Name: CambodiaLand
Theme URI: https://cambodialand.com
Author: CambodiaLand
Author URI: https://cambodialand.com
Description: A professional land marketplace theme for Cambodia real estate listings with WhatsApp integration, inquiry modals, and property filtering.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cambodialand
Tags: real-estate, listings, custom-menu, featured-images, responsive-layout
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f8fa;
    color: #222;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
    background: #085041;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}
.site-logo {
    color: #FAC775;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}
.main-navigation {
    display: flex;
    gap: 24px;
    align-items: center;
}
.main-navigation a {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    transition: color 0.15s;
}
.main-navigation a:hover { color: #fff; }
.main-navigation .nav-cta {
    background: #FAC775;
    color: #412402;
    padding: 7px 16px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 13px;
}
/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    background: #085041;
    color: #fff;
    padding: 60px 32px;
    text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-tag {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.hero h1 span { color: #FAC775; }
.hero p { font-size: 16px; opacity: 0.8; margin-bottom: 28px; }
.hero-search {
    display: flex;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    max-width: 540px;
    margin: 0 auto;
}
.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 12px;
    color: #222;
    font-family: inherit;
}
.hero-search button {
    background: #1D9E75;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 32px;
}
.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat { text-align: center; }
.stat .num { font-size: 26px; font-weight: 800; color: #0F6E56; }
.stat .lbl { font-size: 12px; color: #888; margin-top: 3px; }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 48px 32px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.section-sub { font-size: 14px; color: #888; margin-bottom: 28px; }

/* =============================================
   LISTING CARDS
   ============================================= */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.lcard {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.lcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}
.lcard-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    display: block;
}
.lcard-img-placeholder {
    height: 180px;
    background: #e8f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}
.lcard-body { padding: 15px; }
.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-right: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.b-hot { background: #FAECE7; color: #712B13; }
.b-new { background: #E1F5EE; color: #085041; }
.b-hard { background: #E6F1FB; color: #0C447C; }
.b-lmap { background: #EEEDFE; color: #3C3489; }
.b-soft { background: #F1EFE8; color: #444441; }
.lcard-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.3;
}
.lcard-loc { font-size: 12px; color: #888; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.lcard-price { font-size: 20px; font-weight: 800; color: #0F6E56; }
.lcard-meta { font-size: 12px; color: #aaa; margin: 4px 0 14px; }
.lcard-actions { display: flex; gap: 8px; }
.btn-wa {
    flex: 1;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-inq {
    flex: 1;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.btn-inq:hover { border-color: #1D9E75; color: #1D9E75; }

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 32px;
    position: sticky;
    top: 62px;
    z-index: 90;
}
.filter-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.fbtn {
    padding: 6px 16px;
    border-radius: 99px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.15s;
}
.fbtn:hover { border-color: #1D9E75; color: #1D9E75; }
.fbtn.active { background: #1D9E75; border-color: #1D9E75; color: #fff; }

/* =============================================
   VIEW ALL BUTTON
   ============================================= */
.view-all-wrap { text-align: center; margin-top: 32px; }
.btn-viewall {
    background: #085041;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 36px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero-section {
    background: #085041;
    color: #fff;
    padding: 48px 32px;
}
.about-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    align-items: center;
}
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #FAC775;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #412402;
    flex-shrink: 0;
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.role-badge {
    display: inline-block;
    background: rgba(250,199,117,0.2);
    border: 1px solid #FAC775;
    color: #FAC775;
    font-size: 12px;
    padding: 3px 14px;
    border-radius: 99px;
    margin-bottom: 10px;
}
.about-name { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.about-tagline { font-size: 14px; opacity: 0.8; line-height: 1.6; }
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 800px;
    margin: 28px auto 0;
    padding: 0 32px;
}
.astat { background: #fff; border-radius: 10px; padding: 16px; text-align: center; }
.astat .n { font-size: 28px; font-weight: 800; color: #0F6E56; }
.astat .l { font-size: 12px; color: #888; }
.about-section { max-width: 800px; margin: 28px auto 0; padding: 0 32px 32px; }
.about-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 22px;
    margin-bottom: 16px;
}
.about-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #111;
}
.about-card p { font-size: 14px; color: #555; line-height: 1.8; }
.about-card p + p { margin-top: 12px; }
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.skill {
    background: #f7faf9;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.skill-check { color: #1D9E75; font-weight: 700; font-size: 15px; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { padding: 48px 32px; }
.contact-inner { max-width: 900px; margin: 0 auto; }
.map-box {
    background: #e8f5f0;
    border: 1px solid #9FE1CB;
    border-radius: 12px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #0F6E56;
    font-weight: 600;
    margin-bottom: 24px;
    overflow: hidden;
}
.map-box iframe { width: 100%; height: 100%; border: none; border-radius: 12px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.contact-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 22px;
}
.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #111;
}
.crow { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.cicon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.clabel { font-size: 11px; color: #888; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.4px; }
.cvalue { font-size: 14px; font-weight: 600; color: #111; }
.btn-wa-big {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.form-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 22px;
}
.form-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #111;
}
.finput {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 14px;
    margin-bottom: 10px;
    font-family: inherit;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.finput:focus { border-color: #1D9E75; }
textarea.finput { height: 90px; resize: vertical; }
.btn-submit {
    width: 100%;
    background: #1D9E75;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: #0F6E56; }

/* =============================================
   MODAL
   ============================================= */
.modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-bg.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #888; }
.modal-ref {
    background: #f7faf9;
    border: 1px solid #d0ece4;
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #444;
}
.modal-ref strong { display: block; color: #085041; font-size: 14px; margin-bottom: 2px; }
.form-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
}
.btn-submit-modal {
    background: #1D9E75;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
}
.btn-wa-modal {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #085041;
    color: #fff;
    padding: 44px 32px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}
.fcol h4 { color: #FAC775; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.fcol p, .fcol a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 2.1;
    display: block;
}
.fcol a:hover { color: #FAC775; }
.footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
}
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 18px;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
}

/* =============================================
   FLOATING WHATSAPP
   ============================================= */
.float-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .listings-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .about-hero-inner { flex-direction: column; text-align: center; }
    .about-stats { grid-template-columns: repeat(3, 1fr); padding: 0 16px; }
    .skills-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .form-2col { grid-template-columns: 1fr; }
    .main-navigation { display: none; }
    .main-navigation.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: #085041;
        padding: 16px 24px;
        gap: 12px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .menu-toggle { display: block; }
    .header-inner { position: relative; }
    .section { padding: 32px 16px; }
    .about-section { padding: 0 16px 32px; }
    .contact-section { padding: 32px 16px; }
    .hero { padding: 40px 16px; }
    .filter-bar { padding: 12px 16px; }
    .stats-bar { padding: 20px 16px; }
}
@media (max-width: 480px) {
    .listings-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .modal-actions { flex-direction: column; }
}
