/*
Theme Name: InmoHub GT
Theme URI: https://inmohubgt.com
Author: GL Designs
Author URI: https://gldistribuidora.com.gt
Description: Tema para InmoHub GT, hub de bienes raices en Guatemala. Publicacion y busqueda de propiedades en venta, alquiler y arrendamiento para particulares e inmobiliarias.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: inmohubgt
*/

:root{
  --navy:#0F2E4F;
  --navy-soft:#17416B;
  --steel:#2C5C82;
  --gold:#C9973C;
  --gold-dark:#3A2A0D;
  --jade:#2F6B4F;
  --jade-bg:#E4F0E9;
  --bg:#F5F6F8;
  --ink:#16202B;
  --muted:#5F6B78;
  --border:#DADFE5;
}

*{box-sizing:border-box;}

body{
  margin:0;
  font-family:'Segoe UI', Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
}

a{text-decoration:none; color:inherit;}
img{max-width:100%; display:block;}
ul{list-style:none; margin:0; padding:0;}
input, select, textarea, button{font-family:inherit;}

.container{max-width:1180px; margin:0 auto; padding:0 24px;}

/* Header */
.site-header{background:var(--navy); padding:20px 0;}
.nav-row{display:flex; align-items:center; justify-content:space-between;}
.site-logo img{height:40px;}
.main-nav ul{display:flex; gap:28px;}
.main-nav a{color:#B9C7D6; font-size:14px; font-weight:600;}
.main-nav a:hover{color:#fff;}
.menu-toggle{display:none; background:none; border:none; cursor:pointer;}
.menu-toggle span{display:block; width:24px; height:2px; background:#fff; margin:5px 0;}

/* Hero */
.hero{background:var(--navy); padding:36px 24px 64px; text-align:center;}
.hero-inner{max-width:640px; margin:0 auto;}
.hero-inner img.hero-logo{height:auto; width:280px; margin:0 auto 24px;}
.hero h1{color:#fff; font-size:32px; font-weight:700; margin:0 0 10px; line-height:1.3;}
.hero p.slogan{color:#B9C7D6; font-size:15px; margin:0 0 28px; letter-spacing:0.5px;}
.search-adv{background:#fff; border-radius:12px; padding:20px; max-width:920px; margin:0 auto; text-align:left; box-shadow:0 10px 30px rgba(15,46,79,0.12);}
.search-adv-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:14px;}
.search-adv-extra{display:none; grid-template-columns:repeat(4, 1fr); gap:14px; margin-top:14px;}
.search-adv-extra.is-open{display:grid;}
.search-adv-field label{display:block; font-size:11px; font-weight:700; color:var(--muted); margin-bottom:5px; text-transform:uppercase; letter-spacing:0.3px;}
.search-adv-field input, .search-adv-field select{width:100%; border:0.5px solid var(--border); border-radius:6px; padding:9px 10px; font-size:13px; color:var(--ink); background:#fff;}
.search-adv-range{display:flex; gap:6px;}
.search-adv-actions{display:flex; align-items:center; justify-content:center; gap:16px; margin-top:18px;}
.search-adv-actions button[type=submit]{background:var(--gold); color:var(--gold-dark); border:none; border-radius:6px; padding:11px 32px; font-size:13px; font-weight:700; cursor:pointer;}
.search-adv-toggle{background:#fff; color:var(--navy); border:0.5px solid var(--border); border-radius:6px; padding:11px 20px; font-size:13px; font-weight:700; cursor:pointer;}

/* Stats bar */
.stats{display:flex; justify-content:center; gap:60px; background:#fff; padding:20px; border-bottom:0.5px solid var(--border); flex-wrap:wrap;}
.stat{text-align:center;}
.stat strong{display:block; font-size:20px; color:var(--navy);}
.stat span{font-size:12px; color:var(--muted);}

/* Section title */
.section-title{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px;}
.section-title h2{font-size:20px; color:var(--navy); margin:0;}
.section-title a{font-size:13px; color:var(--steel); font-weight:600;}

/* Property grid & cards */
.property-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;}
.property-card{background:#fff; border:0.5px solid var(--border); border-radius:12px; overflow:hidden; transition:transform .15s ease, box-shadow .15s ease;}
.property-card:hover{transform:translateY(-3px); box-shadow:0 6px 18px rgba(15,46,79,0.08);}
.property-thumb{height:170px; background:#DDE4EA; position:relative; overflow:hidden;}
.property-thumb img{width:100%; height:100%; object-fit:cover;}
.badge-verificado{position:absolute; top:10px; left:10px; background:var(--jade); color:var(--jade-bg); font-size:11px; font-weight:700; padding:4px 10px; border-radius:12px;}
.badge-transaccion{position:absolute; top:10px; right:10px; background:#fff; color:var(--navy); font-size:11px; font-weight:700; padding:4px 10px; border-radius:12px;}
.property-body{padding:14px 16px;}
.property-ref{font-size:11px; font-family:'Courier New', monospace; color:var(--muted);}
.property-title{font-weight:700; font-size:15px; margin:4px 0; color:var(--ink);}
.property-location{font-size:12px; color:var(--muted); margin-bottom:8px;}
.property-price{font-size:16px; font-weight:700; color:var(--gold); border-top:0.5px solid var(--border); padding-top:8px;}
.property-meta{display:flex; gap:12px; font-size:11px; color:var(--muted); margin:8px 0;}

/* Listing layout with filters */
.listing-layout{display:flex; gap:24px; align-items:flex-start;}
.filters-panel{width:220px; flex-shrink:0; background:#fff; border:0.5px solid var(--border); border-radius:10px; padding:16px;}
.filters-panel h3{font-size:14px; color:var(--navy); margin:0 0 12px;}
.filter-group{margin-bottom:16px;}
.filter-group legend{font-size:12px; color:var(--muted); margin-bottom:6px; font-weight:700;}
.filter-group label{display:flex; align-items:center; gap:6px; font-size:13px; color:var(--ink); margin-bottom:6px;}
.filters-panel button{width:100%; background:var(--gold); color:var(--gold-dark); border:none; border-radius:6px; padding:9px; font-size:13px; font-weight:700; cursor:pointer;}
.listing-results{flex:1; min-width:0;}
.results-toolbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; font-size:13px; color:var(--muted);}

/* Pagination */
.pagination{display:flex; justify-content:center; gap:6px; margin-top:24px;}
.pagination a, .pagination span{min-width:32px; height:32px; padding:0 6px; border-radius:6px; border:0.5px solid var(--border); color:var(--muted); font-size:13px; display:flex; align-items:center; justify-content:center;}
.pagination .current{background:var(--navy); color:#fff; border-color:var(--navy);}

/* Single property */
.property-gallery{display:grid; grid-template-columns:2fr 1fr; gap:6px; margin-bottom:24px; border-radius:12px; overflow:hidden;}
.property-gallery .main-photo{height:340px; background:#DDE4EA;}
.property-gallery .main-photo img{width:100%; height:100%; object-fit:cover;}
.property-gallery .side-photos{display:grid; grid-template-rows:1fr 1fr; gap:6px;}
.property-gallery .side-photos div{background:#C9D2DA; overflow:hidden;}
.property-gallery .side-photos img{width:100%; height:100%; object-fit:cover;}
.property-detail-layout{display:grid; grid-template-columns:1.6fr 1fr; gap:24px;}
.property-facts{display:flex; gap:20px; padding:14px 0; border-top:0.5px solid var(--border); border-bottom:0.5px solid var(--border); margin:14px 0; flex-wrap:wrap;}
.property-map-placeholder{height:220px; background:#E3E7EA; border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:13px;}
.agent-card{background:#fff; border:0.5px solid var(--border); border-radius:10px; padding:18px;}
.agent-card .agent-header{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.agent-avatar{width:44px; height:44px; border-radius:50%; background:#E6F1FB; display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--navy); overflow:hidden;}
.agent-avatar img{width:100%; height:100%; object-fit:cover;}
.btn-primary, .agent-card button, .property-form button[type=submit]{width:100%; background:var(--navy); color:#fff; border:none; border-radius:6px; padding:11px; font-size:13px; font-weight:700; cursor:pointer; margin-bottom:8px;}
.btn-secondary{width:100%; background:#fff; color:var(--navy); border:0.5px solid var(--border); border-radius:6px; padding:11px; font-size:13px; font-weight:700; cursor:pointer;}

/* Agent / agency profile */
.profile-cover{height:100px; background:linear-gradient(135deg, var(--navy), var(--navy-soft)); border-radius:12px 12px 0 0;}
.profile-header{display:flex; align-items:flex-end; gap:16px; margin-top:-36px; padding:0 20px; margin-bottom:14px;}
.profile-avatar{width:84px; height:84px; border-radius:50%; background:#E6F1FB; border:4px solid #fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:22px; color:var(--navy); overflow:hidden; flex-shrink:0;}
.profile-avatar img{width:100%; height:100%; object-fit:cover;}
.profile-badges{display:flex; gap:8px; padding:0 20px; margin-bottom:14px;}
.badge-pill{font-size:11px; font-weight:700; padding:4px 10px; border-radius:10px;}
.profile-stats{display:flex; gap:24px; padding:14px 20px; border-top:0.5px solid var(--border); border-bottom:0.5px solid var(--border); margin-bottom:20px;}

/* Auth forms (registro / login) */
.auth-wrap{max-width:420px; margin:60px auto; background:#fff; border:0.5px solid var(--border); border-radius:12px; padding:32px;}
.auth-wrap h1{font-size:20px; color:var(--navy); text-align:center; margin:0 0 6px;}
.auth-wrap p.subtitle{text-align:center; color:var(--muted); font-size:13px; margin:0 0 24px;}
.role-select{display:flex; gap:10px; margin-bottom:18px;}
.role-option{flex:1; border:0.5px solid var(--border); border-radius:8px; padding:12px; text-align:center; cursor:pointer; font-size:12px;}
.role-option input{margin-right:6px;}
.form-field{margin-bottom:14px;}
.form-field label{display:block; font-size:12px; color:var(--muted); margin-bottom:5px;}
.form-field input, .form-field textarea, .form-field select{width:100%; border:0.5px solid var(--border); border-radius:6px; padding:9px 11px; font-size:13px; color:var(--ink);}
.form-error{background:#FCEBEB; color:#791F1F; font-size:12px; padding:10px; border-radius:6px; margin-bottom:14px;}
.form-success{background:var(--jade-bg); color:var(--jade); font-size:12px; padding:10px; border-radius:6px; margin-bottom:14px;}
.auth-switch{text-align:center; font-size:13px; color:var(--muted); margin-top:14px;}
.auth-switch a{color:var(--steel); font-weight:700;}

/* Dashboard */
.dashboard-layout{display:grid; grid-template-columns:220px 1fr; gap:24px;}
.dashboard-nav{background:#fff; border:0.5px solid var(--border); border-radius:10px; padding:14px;}
.dashboard-nav a{display:block; padding:9px 10px; border-radius:6px; font-size:13px; color:var(--ink); margin-bottom:4px;}
.dashboard-nav a.active, .dashboard-nav a:hover{background:var(--bg); color:var(--navy); font-weight:700;}
.dashboard-panel{background:#fff; border:0.5px solid var(--border); border-radius:10px; padding:20px;}
.dashboard-row{display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:0.5px solid var(--border); font-size:13px;}
.dashboard-row:last-child{border-bottom:none;}
.status-pill{font-size:11px; font-weight:700; padding:3px 9px; border-radius:10px;}
.status-publicada{background:var(--jade-bg); color:var(--jade);}
.status-pendiente{background:#FAEEDA; color:#854F0B;}

/* Footer */
.site-footer{background:var(--navy); color:#B9C7D6; text-align:center; padding:28px 24px; font-size:13px; margin-top:40px;}
.site-footer strong{color:#fff;}

/* Responsive */
@media (max-width: 900px){
  .property-grid{grid-template-columns:repeat(2, 1fr);}
  .listing-layout{flex-direction:column;}
  .filters-panel{width:100%;}
  .property-detail-layout{grid-template-columns:1fr;}
  .dashboard-layout{grid-template-columns:1fr;}
  .search-adv-grid, .search-adv-extra{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width: 640px){
  .main-nav{display:none;}
  .menu-toggle{display:block;}
  .property-grid{grid-template-columns:1fr;}
  .hero h1{font-size:24px;}
  .property-gallery{grid-template-columns:1fr;}
  .property-gallery .side-photos{grid-template-columns:1fr 1fr; grid-template-rows:none;}
  .search-adv-grid, .search-adv-extra{grid-template-columns:1fr;}
  .search-adv-actions{flex-direction:column;}
  .search-adv-actions button{width:100%;}
}
