/* =====================================================
   PropertiKu — Deep Teal & Gold Property Listing Theme
   v1.0.0 | IndoKoding.net
   ===================================================== */

/* 1. TOKENS */
:root {
  --primary:       #0B7285;
  --primary-dark:  #075E70;
  --primary-mid:   #1090A8;
  --primary-light: #E0F4F8;
  --accent:        #E09830;
  --accent-dark:   #B87A20;
  --accent-light:  #FDF4E2;
  --green:         #16A34A;
  --green-light:   #DCFCE7;
  --red:           #DC2626;
  --red-light:     #FEE2E2;
  --blue:          #2563EB;
  --blue-light:    #DBEAFE;

  --white:         #FFFFFF;
  --bg-body:       #F7FBFC;
  --bg-section:    #EBF5F7;
  --bg-dark:       #041A20;
  --border:        #B8DCE3;
  --border-light:  #D4EDF2;

  --text-dark:     #041A20;
  --text-body:     #143540;
  --text-muted:    #4A7A85;

  --font-head:     'Cormorant Garamond', Georgia, serif;
  --font-body:     'Inter', -apple-system, sans-serif;

  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-pill:   100px;

  --shadow-sm:     0 1px 4px rgba(11,114,133,.07);
  --shadow:        0 4px 16px rgba(11,114,133,.10);
  --shadow-md:     0 8px 32px rgba(11,114,133,.14);
  --shadow-lg:     0 20px 64px rgba(11,114,133,.20);

  --transition:    .25s ease;
}

:root {
  --bs-font-sans-serif: 'Inter', -apple-system, sans-serif;
  --bs-body-bg: #F7FBFC;
  --bs-body-color: #143540;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; color: var(--text-body); background: var(--bg-body); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* 3. TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 600; color: var(--text-dark); line-height: 1.2; }
.section-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.section-tag::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title { font-family: var(--font-head); font-size: clamp(1.65rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--text-dark); line-height: 1.18; }
.section-sub { color: var(--text-muted); font-size: .92rem; margin-top: .5rem; max-width: 560px; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-alt { background: var(--bg-section); }

/* 4. BUTTONS */
.btn-pk, .btn-accent-pk, .btn-outline-pk, .btn-wa-pk {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-body); font-weight: 600; border-radius: var(--radius);
  padding: .65rem 1.5rem; font-size: .88rem; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 2px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn-pk         { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-pk:hover   { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11,114,133,.28); }
.btn-accent-pk  { background: var(--accent); color: var(--text-dark); border-color: var(--accent); }
.btn-accent-pk:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--text-dark); transform: translateY(-1px); }
.btn-outline-pk { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-pk:hover { background: var(--primary-light); }
.btn-wa-pk      { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa-pk:hover{ background: #1ebe5d; color: #fff; transform: translateY(-1px); }
.btn-sm-pk { padding: .4rem 1rem; font-size: .8rem; }

/* 5. TOP BAR */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  font-size: .78rem; font-weight: 500;
  height: 38px;
}
.top-bar .container { height: 100%; display: flex; align-items: center; }
.top-bar .container > .d-flex { width: 100%; }
.top-bar .item { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.top-bar .item i { color: var(--accent); font-size: .85rem; }
.top-bar a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.top-bar a:hover { color: var(--accent); }
.top-bar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); margin: 0 .6rem; }

/* 6. NAVBAR */
#mainNav {
  position: fixed; width: 100%; z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1rem 0;
}
#mainNav:not(.scrolled) { background: transparent; }
#mainNav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(11,114,133,.10);
  padding: .5rem 0;
}
.navbar-brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: var(--white); transition: color var(--transition);
}
#mainNav.scrolled .navbar-brand { color: var(--primary); }
.brand-logo { width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background var(--transition); }
#mainNav:not(.scrolled) .brand-logo { background: rgba(255,255,255,.18); color: white; }
#mainNav.scrolled .brand-logo { background: var(--primary); color: white; }
.navbar-nav .nav-link { font-size: .87rem; font-weight: 500; color: rgba(255,255,255,.85) !important; padding: .4rem .75rem !important; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--white) !important; background: rgba(255,255,255,.12); }
#mainNav.scrolled .navbar-nav .nav-link { color: var(--text-body) !important; }
#mainNav.scrolled .navbar-nav .nav-link:hover, #mainNav.scrolled .navbar-nav .nav-link.active { color: var(--primary) !important; background: var(--primary-light); }
.navbar-toggler-icon { font-size: 1.4rem; }
#mainNav:not(.scrolled) .navbar-toggler-icon { color: white; }
#mainNav.scrolled .navbar-toggler-icon { color: var(--primary); }

/* 7. HERO */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #020B10 0%, #041A20 35%, #075E70 65%, #0B7285 100%);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 55% 55% at 80% 35%, rgba(224,152,48,.18) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.04'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 130px; padding-bottom: 70px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(224,152,48,.15); border: 1px solid rgba(224,152,48,.35); color: var(--accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: .35rem 1rem; border-radius: var(--radius-pill); margin-bottom: 1.25rem; }
.hero-title { font-family: var(--font-head); font-size: clamp(2rem, 5.5vw, 3.8rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 1rem; }
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub { color: rgba(255,255,255,.72); font-size: clamp(.87rem, 1.5vw, 1rem); margin-bottom: 2rem; max-width: 500px; line-height: 1.75; }

/* Search Box */
.search-box { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 820px; margin: 0 auto; }
.search-tabs { display: flex; border-bottom: 1px solid var(--border-light); }
.stab { flex: 1; padding: .9rem 1.5rem; background: none; border: none; font-family: var(--font-body); font-size: .87rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: color var(--transition); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.stab.active { color: var(--primary); border-bottom-color: var(--primary); }
.stab:hover:not(.active) { color: var(--text-dark); }
.search-fields { padding: 1.1rem 1.25rem 1.25rem; display: flex; gap: .7rem; flex-wrap: wrap; align-items: flex-end; }
.sf-item { flex: 1; min-width: 140px; }
.sf-item label { display: block; font-size: .69rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .3rem; }
.sf-select { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius); padding: .55rem .85rem; font-family: var(--font-body); font-size: .87rem; color: var(--text-dark); background: var(--bg-body); outline: none; appearance: none; -webkit-appearance: none; transition: border-color var(--transition); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' fill='%234A7A85' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: calc(100% - .75rem) center; padding-right: 2rem; }
.sf-select:focus { border-color: var(--primary); }
.search-cta { flex-shrink: 0; background: var(--primary); color: white; border: none; border-radius: var(--radius); padding: .65rem 1.75rem; font-family: var(--font-body); font-size: .9rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: .5rem; transition: background var(--transition), transform var(--transition); align-self: flex-end; }
.search-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Hero bottom stats */
.hero-stats-strip { display: flex; gap: 1.75rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hstat { display: flex; align-items: flex-end; gap: .5rem; }
.hstat-num { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hstat-label { font-size: .73rem; color: rgba(255,255,255,.55); font-weight: 500; display: block; }
.hstat-sep { width: 1px; height: 36px; background: rgba(255,255,255,.15); align-self: center; }

/* 8. PROPERTY TYPE CARDS */
.prop-type-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.35rem .85rem; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); cursor: pointer; }
.prop-type-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.ptype-icon { width: 54px; height: 54px; background: var(--primary-light); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.45rem; color: var(--primary); transition: background var(--transition), color var(--transition); }
.prop-type-card:hover .ptype-icon { background: var(--primary); color: white; }
.ptype-name { font-weight: 700; font-size: .87rem; color: var(--text-dark); }
.ptype-count { font-size: .72rem; color: var(--text-muted); }

/* 9. PROPERTY CARDS */
.prop-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); height: 100%; display: flex; flex-direction: column; }
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prop-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-section); flex-shrink: 0; }
.prop-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.prop-card:hover .prop-img img { transform: scale(1.06); }
.prop-badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .3rem; flex-wrap: wrap; z-index: 1; }
.pbadge { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: var(--radius-pill); }
.pbadge-jual { background: var(--primary); color: white; }
.pbadge-sewa { background: var(--blue); color: white; }
.pbadge-baru { background: var(--accent); color: var(--text-dark); }
.pbadge-type { background: rgba(0,0,0,.55); color: white; backdrop-filter: blur(4px); }
.prop-fav { position: absolute; top: .75rem; right: .75rem; width: 32px; height: 32px; background: rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: .95rem; color: var(--text-muted); transition: color var(--transition), background var(--transition); z-index: 1; }
.prop-fav:hover { color: var(--primary); background: white; }
.prop-body { padding: 1rem 1.15rem .95rem; flex: 1; display: flex; flex-direction: column; }
.prop-title { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; color: var(--text-dark); line-height: 1.35; margin-bottom: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prop-title a { color: inherit; }
.prop-title a:hover { color: var(--primary); }
.prop-location { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: .25rem; margin-bottom: .6rem; }
.prop-location i { color: var(--primary); font-size: .8rem; flex-shrink: 0; }
.prop-price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: .65rem; }
.prop-price small { font-family: var(--font-body); font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.prop-specs { display: flex; gap: .55rem; padding: .65rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); flex-wrap: wrap; margin-top: auto; }
.pspec { display: flex; align-items: center; gap: .25rem; font-size: .76rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.pspec i { color: var(--primary); font-size: .85rem; }
.prop-agent { display: flex; align-items: center; justify-content: space-between; padding-top: .7rem; gap: .5rem; }
.prop-agent-info { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.prop-agent-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.prop-agent-name { font-size: .75rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-wa { border: 1px solid var(--green); border-radius: var(--radius-pill); color: var(--green); font-size: .72rem; font-weight: 700; padding: .2rem .75rem; display: flex; align-items: center; gap: .25rem; transition: background var(--transition), color var(--transition); text-decoration: none; white-space: nowrap; flex-shrink: 0; background: none; cursor: pointer; }
.prop-wa:hover { background: var(--green); color: white; }

/* 10. PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 5.5rem 0 3rem; }
.page-header .breadcrumb { margin-bottom: .75rem; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,.55); font-size: .82rem; }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.3); }
.page-header h1 { font-family: var(--font-head); color: white; font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 700; }
.page-header p { color: rgba(255,255,255,.65); font-size: .9rem; margin-top: .4rem; }

/* 11. FILTER BAR (Listing) */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: .85rem 0; box-shadow: var(--shadow-sm); }
.filter-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.filter-sel { border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: .42rem 1.9rem .42rem .9rem; font-family: var(--font-body); font-size: .82rem; font-weight: 600; color: var(--text-body); background: var(--bg-body) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%234A7A85' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat calc(100% - .6rem) center; outline: none; cursor: pointer; transition: border-color var(--transition), color var(--transition); appearance: none; -webkit-appearance: none; white-space: nowrap; }
.filter-sel:focus, .filter-sel.active { border-color: var(--primary); color: var(--primary); }
.filter-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .42rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-pill); font-size: .82rem; font-weight: 700; color: var(--text-muted); background: none; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.filter-count-text { font-size: .8rem; color: var(--text-muted); font-weight: 600; margin-left: auto; white-space: nowrap; }

/* Sort row */
.sort-row { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.sort-lbl { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.sort-btn { background: none; border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: .28rem .85rem; font-size: .79rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.sort-btn.active, .sort-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 12. DETAIL PAGE */
.detail-gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.detail-gallery-main:hover img { transform: scale(1.03); }
.gallery-count-badge { position: absolute; bottom: .75rem; right: .75rem; background: rgba(0,0,0,.6); color: white; font-size: .77rem; font-weight: 700; padding: .3rem .8rem; border-radius: var(--radius-pill); backdrop-filter: blur(4px); display: flex; align-items: center; gap: .35rem; cursor: pointer; }
.detail-gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; margin-top: .5rem; }
.detail-thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.detail-thumb:hover img { transform: scale(1.08); }
.detail-thumb.active { outline: 2.5px solid var(--primary); outline-offset: 2px; }
.detail-title { font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; line-height: 1.2; }
.detail-loc { display: flex; align-items: center; gap: .35rem; color: var(--text-muted); font-size: .88rem; margin-bottom: .85rem; }
.detail-loc i { color: var(--primary); }
.detail-price { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--primary); line-height: 1; }
.detail-price small { font-family: var(--font-body); font-size: .82rem; color: var(--text-muted); margin-left: .35rem; }
.detail-specs-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: .75rem; padding: 1.25rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin: 1.1rem 0; }
.dspec { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.dspec-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; }
.dspec-val { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); line-height: 1; }
.dspec-lbl { font-size: .68rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fasil-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.fasil-chip { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-body); font-weight: 500; background: var(--bg-section); padding: .38rem .9rem; border-radius: var(--radius-pill); border: 1px solid var(--border-light); }
.fasil-chip i { color: var(--green); font-size: .85rem; }
.agent-sidebar { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 88px; }
.agent-sidebar-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent-sidebar-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); }
.agent-sidebar-role { font-size: .74rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.price-estimate { background: var(--accent-light); border: 1px solid rgba(224,152,48,.3); border-radius: var(--radius); padding: 1rem; text-align: center; margin-top: 1rem; }
.price-estimate-lbl { font-size: .72rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; }
.price-estimate-val { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--primary); }

/* 13. AGENT CARDS */
.agent-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); text-align: center; padding: 2rem 1.5rem 1.5rem; height: 100%; display: flex; flex-direction: column; align-items: center; }
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.agent-photo { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-light); margin-bottom: 1rem; }
.agent-name { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--text-dark); margin-bottom: .2rem; }
.agent-role { font-size: .76rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .65rem; }
.agent-bio { font-size: .82rem; color: var(--text-muted); line-height: 1.65; margin-bottom: .9rem; flex: 1; }
.agent-stats { display: flex; gap: 1.75rem; justify-content: center; padding: .8rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin-bottom: 1rem; width: 100%; }
.astat-num { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--primary); line-height: 1; }
.astat-lbl { font-size: .7rem; color: var(--text-muted); font-weight: 600; }
.agent-contacts { display: flex; gap: .45rem; width: 100%; }
.acbtn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .5rem; border-radius: var(--radius); font-size: .79rem; font-weight: 700; border: 1.5px solid var(--border); color: var(--text-muted); cursor: pointer; text-decoration: none; transition: var(--transition); background: none; }
.acbtn.wa { border-color: #25D366; color: #25D366; }
.acbtn.wa:hover { background: #25D366; color: white; }
.acbtn.tel:hover, .acbtn.email:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* 14. STATS SECTION */
.stats-section { background: var(--primary); padding: 60px 0; }
.stat-block { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--accent); line-height: 1; }
.stat-lbl { font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.65); margin-top: .4rem; }

/* 15. TESTIMONIALS */
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.testi-stars { color: var(--accent); font-size: .9rem; margin-bottom: .75rem; letter-spacing: 2px; }
.testi-text { font-size: .9rem; color: var(--text-body); line-height: 1.8; flex: 1; font-style: italic; margin-bottom: 1.1rem; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-name { font-weight: 700; font-size: .87rem; color: var(--text-dark); line-height: 1.2; }
.testi-sub { font-size: .74rem; color: var(--text-muted); }

/* 16. BLOG COMPONENTS */
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--primary-light); flex-shrink: 0; }
.blog-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-category { display: inline-flex; align-items: center; font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--primary-light); color: var(--primary); }
.blog-category.tips   { background: var(--accent-light); color: var(--accent-dark); }
.blog-category.invest { background: var(--green-light); color: var(--green); }
.blog-category.info   { background: #EDE9FE; color: #6D28D9; }
.blog-category.kpr    { background: var(--blue-light); color: var(--blue); }
.blog-body { padding: 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; margin: .4rem 0 .55rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: .83rem; color: var(--text-muted); line-height: 1.65; margin-bottom: .85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--text-muted); font-weight: 600; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border-light); flex-wrap: wrap; }
.blog-meta i { color: var(--primary); }
.blog-meta .read-time { margin-left: auto; }
.blog-tag-wrap { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.blog-tag { background: var(--bg-section); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600; color: var(--text-muted); padding: .2rem .75rem; cursor: pointer; transition: var(--transition); text-decoration: none; }
.blog-tag:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* Article */
.article-img-hero { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/7; margin-bottom: 2rem; }
.article-img-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: .93rem; line-height: 1.9; color: var(--text-body); }
.article-body h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--text-dark); }
.article-body h4 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .6rem; color: var(--text-dark); }
.article-body p { margin-bottom: 1.15rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.15rem; }
.article-body li { margin-bottom: .45rem; }
.article-blockquote { border-left: 4px solid var(--accent); background: var(--accent-light); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.article-blockquote p { margin: 0 0 .35rem; font-style: italic; color: var(--text-dark); font-weight: 500; }
.article-blockquote cite { font-size: .8rem; color: var(--accent-dark); font-weight: 700; font-style: normal; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .9rem; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; border: none; cursor: pointer; transition: opacity var(--transition), transform var(--transition); }
.share-btn.wa  { background: #25D366; color: white; }
.share-btn.fb  { background: #1877F2; color: white; }
.share-btn.tw  { background: #000; color: white; }
.share-btn.copy{ background: var(--bg-section); color: var(--text-muted); border: 1px solid var(--border); }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.author-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg-section); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; border: 1px solid var(--border-light); }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text-dark); }
.author-role { font-size: .75rem; color: var(--primary); font-weight: 600; margin-bottom: .3rem; }
.author-bio { font-size: .83rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.article-nav-item { padding: .9rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-lg); transition: border-color var(--transition), background var(--transition); }
.article-nav-item:hover { border-color: var(--primary); background: var(--primary-light); }
.article-nav-dir { font-size: .71rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: .3rem; margin-bottom: .3rem; }
.article-nav-title { font-family: var(--font-head); font-size: .92rem; font-weight: 600; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Sidebar widgets */
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.sidebar-title i { color: var(--primary); }
.sidebar-recent-item { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--border-light); }
.sidebar-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent-img { width: 60px; height: 50px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.sidebar-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-title a { font-size: .83rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-recent-title a:hover { color: var(--primary); }
.sidebar-recent-date { font-size: .72rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; margin-top: .2rem; }
.sidebar-cta { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; color: white; text-align: center; }
.sidebar-cta h6 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: .5rem; }
.sidebar-cta p { font-size: .83rem; color: rgba(255,255,255,.72); margin-bottom: 1rem; }

/* 17. SUBMIT FORM */
.submit-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.submit-section-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--primary); border-bottom: 2px solid var(--primary-light); padding-bottom: .6rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.photo-upload-area { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; background: var(--bg-section); cursor: pointer; transition: border-color var(--transition); }
.photo-upload-area:hover { border-color: var(--primary); }
.photo-upload-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: .75rem; }
.form-label { font-size: .83rem; font-weight: 600; color: var(--text-body); margin-bottom: .35rem; }
.form-control, .form-select { font-family: var(--font-body); font-size: .9rem; color: var(--text-dark); border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--bg-body); padding: .6rem .9rem; transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,114,133,.08); outline: none; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* 18. MAP */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; }
.map-wrap iframe { width: 100%; display: block; border: 0; }

/* 19. CTA SECTION */
.cta-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-mid) 100%); padding: 72px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23E09830' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.cta-section > .container { position: relative; z-index: 1; }
.cta-title { font-family: var(--font-head); font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 700; color: white; line-height: 1.2; }
.cta-sub { color: rgba(255,255,255,.72); font-size: .95rem; margin-top: .5rem; }

/* 20. FOOTER */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.6); padding: 60px 0 0; }
.footer h6 { font-family: var(--font-head); font-size: .98rem; font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.footer-brand .brand-logo { background: rgba(255,255,255,.1); color: var(--accent); }
.footer-brand .brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: white; }
.footer-desc { font-size: .85rem; line-height: 1.75; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; margin-bottom: .6rem; }
.footer-contact-item i { color: var(--accent); font-size: .9rem; margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: .9rem; transition: background var(--transition), color var(--transition); }
.footer-social a:hover { background: var(--accent); color: var(--text-dark); }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 40px 0 0; }
.footer-bottom { padding: 1rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.35); margin: 0; }

/* 21. BACK TO TOP & LIGHTBOX */
#backToTop { position: fixed; bottom: 2rem; right: 1.5rem; width: 42px; height: 42px; background: var(--primary); color: white; border: none; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; z-index: 999; opacity: 0; transform: translateY(12px); transition: opacity var(--transition), transform var(--transition); box-shadow: var(--shadow); }
#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--primary-dark); }
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: none; align-items: center; justify-content: center; }
#lightbox.active { display: flex; }
#lightboxImg { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-lg); object-fit: contain; }
#lightboxClose { position: absolute; top: 1.25rem; right: 1.25rem; width: 40px; height: 40px; background: rgba(255,255,255,.12); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; cursor: pointer; transition: background var(--transition); }
#lightboxClose:hover { background: rgba(255,255,255,.25); }

/* 22. RESPONSIVE */
@media (max-width: 991px) {
  .hero-section { min-height: 80vh; }
  .hero-content { padding-top: 110px; }
  .search-fields { gap: .5rem; }
  .sf-item { min-width: 110px; }
  .detail-specs-grid { grid-template-columns: repeat(4,1fr); }
  .agent-sidebar { position: static; margin-top: 1.5rem; }
  .article-nav { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .top-bar { display: none !important; }
  .hero-title { font-size: 1.85rem; }
  .search-fields { flex-direction: column; }
  .sf-item { min-width: 100%; }
  .search-cta { width: 100%; justify-content: center; }
  .detail-specs-grid { grid-template-columns: repeat(3,1fr); }
  .hstat-sep { display: none; }
}
@media (min-width: 768px) {
  .top-bar { display: flex !important; align-items: center; }
}
@media (max-width: 575px) {
  .section { padding: 48px 0; }
  .detail-gallery-thumbs { grid-template-columns: repeat(4,1fr); gap: .35rem; }
  .agent-contacts { flex-direction: column; }
  .detail-specs-grid { grid-template-columns: repeat(2,1fr); }
}
