/*
Theme Name: Verdor Inmobiliaria
Theme URI: https://verdorinmobiliaria.com
Author: AdsHub
Author URI: https://adshub.com.co
Description: Tema a medida para Verdor Inmobiliaria. Los inmuebles se crean desde el menú "Inmuebles" del panel; los textos del inicio y el número de WhatsApp se cambian en Apariencia > Personalizar > Verdor.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: verdor
*/

:root{
  --v-green:#076330;
  --v-dark:#063A1E;
  --v-light:#DDEFE2;
  --v-soft:#E8F2EC;
  --v-mint:#9FD9AE;
  --v-bg:#F5F6F8;
  --v-gray:#4A5568;
  --v-ink:#2D3748;
  --v-line:#E2E8E4;
  --v-font-h:Montserrat,system-ui,sans-serif;
  --v-font:Inter,system-ui,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--v-bg);color:var(--v-dark);font-family:var(--v-font);font-size:16px;line-height:1.5}
img{max-width:100%;height:auto;display:block}
a{color:var(--v-green)}a:hover{color:var(--v-dark)}
h1,h2,h3{font-family:var(--v-font-h);margin:0;color:var(--v-green)}
.v-wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.screen-reader-text{position:absolute;left:-9999px}

/* Botones */
.v-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:10px;font-family:var(--v-font-h);font-weight:700;font-size:15px;text-decoration:none;border:2px solid transparent;cursor:pointer;line-height:1.2}
.v-btn--primary{background:var(--v-green);color:#fff}.v-btn--primary:hover{background:var(--v-dark);color:#fff}
.v-btn--outline{border-color:var(--v-green);color:var(--v-green);background:transparent}.v-btn--outline:hover{background:var(--v-soft)}
.v-btn--white{background:#fff;color:var(--v-green)}.v-btn--white:hover{background:var(--v-soft);color:var(--v-dark)}
.v-btn--pill{border-radius:999px}
.v-btn svg{width:18px;height:18px;flex:0 0 auto}

/* Header */
.v-header{background:#fff;border-bottom:1px solid var(--v-line);position:sticky;top:0;z-index:50}
.admin-bar .v-header{top:32px}
@media (max-width:782px){.admin-bar .v-header{top:46px}}
@media (max-width:600px){.admin-bar .v-header{top:0}}
.v-header__in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;padding-bottom:14px}
.v-logo img{height:52px;width:auto}
.v-nav{display:flex;flex-wrap:wrap;align-items:center;gap:26px}
.v-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:26px}
.v-nav a{color:var(--v-dark);text-decoration:none;font-weight:500;font-size:15px}
.v-nav a.v-btn{color:#fff}
.v-menu-toggle{display:none;background:none;border:0;width:44px;height:44px;color:var(--v-dark);cursor:pointer}
@media (max-width:860px){
  .v-logo img{height:40px}
  .v-menu-toggle{display:flex;align-items:center;justify-content:center}
  .v-nav{display:none;width:100%;flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:8px}
  .v-nav ul{flex-direction:column;gap:14px}
  .v-nav.is-open{display:flex}
}

/* Hero */
.v-hero{background-color:var(--v-dark);background-size:cover;background-position:center 40%}
.v-hero__shade{background:rgba(6,40,20,.62)}
.v-hero__in{padding-top:110px;padding-bottom:90px;color:#fff;display:flex;flex-direction:column;gap:20px}
.v-hero h1{color:#fff;font-weight:800;font-size:58px;line-height:1.05;max-width:780px}
.v-hero h1 em{font-style:normal;color:var(--v-mint)}
.v-hero p{margin:0;font-size:19px;line-height:1.55;max-width:620px;color:var(--v-soft)}
.v-badge{align-self:flex-start;display:inline-block;background:var(--v-light);color:var(--v-dark);font-family:var(--v-font-h);font-weight:800;font-size:12px;letter-spacing:1px;padding:6px 11px;border-radius:6px;text-transform:uppercase}

/* Buscador */
.v-search{margin-top:16px;background:#fff;border-radius:14px;padding:18px;display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;max-width:980px;box-shadow:0 18px 40px rgba(0,0,0,.25)}
.v-search label,.v-filters label,.v-field{flex:1 1 200px;display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--v-gray)}
.v-search select,.v-filters select,.v-field select,.v-field input,.v-field textarea{height:48px;border:1px solid #CBD2DC;border-radius:10px;padding:0 12px;font-size:15px;color:var(--v-dark);background:#fff;font-family:var(--v-font);width:100%}
.v-search .v-btn,.v-filters .v-btn{flex:0 0 auto}
.v-filters label{flex:1 1 200px}

/* Secciones */
.v-section{padding-top:80px;padding-bottom:40px}
.v-section__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:32px}
.v-eyebrow{display:block;font-family:var(--v-font-h);font-weight:700;font-size:14px;letter-spacing:1.5px;color:var(--v-green);text-transform:uppercase;margin-bottom:8px}
.v-section h2{font-weight:800;font-size:38px}

/* Tarjetas */
.v-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:28px}
.v-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 6px 24px rgba(6,40,20,.08);display:flex;flex-direction:column}
.v-card__img{position:relative;height:250px;background:#DDE2EA;display:block;text-decoration:none}
.v-card__img img{width:100%;height:100%;object-fit:cover}
.v-card__img .v-badge{position:absolute;top:14px;left:14px}
.v-card__body{padding:22px;display:flex;flex-direction:column;gap:12px;flex:1}
.v-loc{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--v-gray)}
.v-loc svg{width:16px;height:16px;flex:0 0 auto}
.v-card h3{font-weight:700;font-size:20px;color:var(--v-dark)}
.v-card h3 a{color:inherit;text-decoration:none}
.v-specs{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;color:var(--v-ink)}
.v-price{font-family:var(--v-font-h);font-weight:800;font-size:25px;color:var(--v-green);margin-top:auto}
.v-card__actions{display:flex;gap:10px;flex-wrap:wrap}
.v-card__actions .v-btn{flex:1 1 120px;white-space:nowrap;padding:12px 12px;font-size:14px}
.v-empty{background:#fff;border-radius:14px;padding:32px;text-align:center;color:var(--v-gray)}

/* Pasos */
.v-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.v-step{background:#fff;border-radius:14px;padding:28px;display:flex;flex-direction:column;gap:12px}
.v-step__n{width:48px;height:48px;border-radius:12px;background:var(--v-green);color:var(--v-mint);display:flex;align-items:center;justify-content:center;font-family:var(--v-font-h);font-weight:800;font-size:20px}
.v-step h3{font-size:20px;color:var(--v-dark)}
.v-step p{margin:0;font-size:15px;line-height:1.6;color:var(--v-gray)}

/* Banda vender */
.v-band{background:var(--v-light);margin-top:48px}
.v-band__in{padding-top:60px;padding-bottom:60px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px}
.v-band h2{font-size:32px;font-weight:800}
.v-band p{margin:8px 0 0;font-size:17px;color:var(--v-green);max-width:680px}

/* Footer */
.v-footer{background:var(--v-dark);color:#CBD2DC}
.v-footer__in{padding-top:56px;padding-bottom:56px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px;font-size:15px;line-height:1.7}
.v-footer a{color:#CBD2DC}
.v-footer strong{color:#fff;display:block;margin-bottom:4px}
.v-wordmark{font-family:var(--v-font-h);font-weight:800;font-size:20px;color:#fff}
.v-wordmark span{color:var(--v-mint);font-weight:600}
.v-copy{padding-top:18px;padding-bottom:18px;font-size:13px;color:#9AA8A0}

/* Archivo / filtros */
.v-page-head{padding-top:48px;padding-bottom:8px}
.v-page-head h1{font-size:40px;font-weight:800}
.v-filters{background:#fff;border-radius:14px;padding:18px;display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin:24px 0 32px}
.v-pagination{margin:36px 0 60px;display:flex;gap:8px;flex-wrap:wrap}
.v-pagination .page-numbers{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:10px;text-decoration:none;font-weight:600;padding:0 12px}
.v-pagination .current{background:var(--v-green);color:#fff}

/* Detalle */
.v-crumbs{font-size:14px;color:var(--v-gray);padding-top:32px}
.v-crumbs a{color:var(--v-gray)}
.v-detail-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-top:12px}
.v-detail-head h1{font-size:40px;font-weight:800;line-height:1.1;max-width:760px}
.v-detail-price{display:flex;flex-direction:column;align-items:flex-end}
.v-detail-price small{font-size:14px;color:var(--v-gray)}
.v-detail-price strong{font-family:var(--v-font-h);font-weight:800;font-size:36px;color:var(--v-green)}
.v-gallery{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}
.v-gallery__main{flex:2 1 560px;min-width:0;height:460px;border-radius:14px;overflow:hidden;background:#DDE2EA;cursor:zoom-in}
.v-gallery__main img{width:100%;height:100%;object-fit:cover}
.v-gallery__side{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:12px;height:460px}
.v-gallery__side button{flex:1 1 0;min-height:0;border:0;padding:0;border-radius:14px;overflow:hidden;background:#DDE2EA;cursor:pointer;position:relative}
.v-gallery__side img{width:100%;height:100%;object-fit:cover}
.v-gallery__more{position:absolute;right:12px;bottom:12px;background:#fff;color:var(--v-green);border-radius:999px;padding:10px 16px;font-weight:700;font-size:14px}
.v-thumbs{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;margin-bottom:12px}
.v-thumbs button{flex:0 0 110px;height:76px;border:2px solid transparent;border-radius:10px;overflow:hidden;padding:0;cursor:pointer;background:#DDE2EA}
.v-thumbs button.is-active{border-color:var(--v-green)}
.v-thumbs img{width:100%;height:100%;object-fit:cover}
.v-detail{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start;padding-bottom:80px}
.v-detail__main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:24px}
.v-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.v-fact{background:#fff;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:4px}
.v-fact span{font-size:13px;color:var(--v-gray)}
.v-fact strong{font-family:var(--v-font-h);font-weight:700;font-size:21px;color:var(--v-green)}
.v-box{background:#fff;border-radius:14px;padding:28px;display:flex;flex-direction:column;gap:14px}
.v-box h2{font-size:23px;font-weight:700}
.v-content{font-size:16px;line-height:1.7;color:var(--v-ink)}
.v-content p{margin:0 0 12px}
.v-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 24px;font-size:15px;color:var(--v-ink);list-style:none;margin:0;padding:0}
.v-checks li::before{content:"✓ ";color:var(--v-green);font-weight:700}
.v-chips{display:flex;flex-wrap:wrap;gap:10px}
.v-chip{background:var(--v-soft);color:var(--v-green);padding:10px 16px;border-radius:999px;font-size:14px;font-weight:600}
.v-map iframe{width:100%;height:300px;border:0;border-radius:12px}
.v-aside{flex:1 1 340px;min-width:0;background:var(--v-green);color:#fff;border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:16px;position:sticky;top:100px}
.v-aside h2{color:#fff;font-weight:800;font-size:24px}
.v-aside p{margin:0;font-size:15px;line-height:1.55;color:#D4E6DA}
.v-aside .v-field{color:#D4E6DA;flex:0 0 auto}
.v-aside .v-field input,.v-aside .v-field select{border:0}
.v-aside .v-btn{width:100%;min-height:52px;margin-top:4px}
.v-wa-form{display:flex;flex-direction:column;gap:14px}
.v-note{background:rgba(255,255,255,.08);border-radius:10px;padding:14px;font-size:13px;line-height:1.55;color:#D4E6DA}
.v-note b{color:var(--v-mint)}
@media (max-width:860px){.v-aside{position:static}}

/* Lightbox */
.v-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;z-index:100;padding:24px}
.v-lightbox.is-open{display:flex}
.v-lightbox img{max-height:90vh;max-width:100%;width:auto;border-radius:8px}
.v-lightbox button{position:absolute;background:rgba(255,255,255,.15);color:#fff;border:0;width:48px;height:48px;border-radius:999px;font-size:24px;cursor:pointer}
.v-lb-close{top:20px;right:20px}.v-lb-prev{left:20px;top:50%}.v-lb-next{right:20px;top:50%}

/* Barra móvil */
.v-mobile-cta{display:none}
@media (max-width:860px){
  .v-mobile-cta{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #DDE2EA;padding:12px 16px 18px;z-index:60}
  .v-mobile-cta .v-btn{min-height:52px}
  .v-mobile-cta .v-btn--primary{flex:1}
  body.single-inmueble{padding-bottom:84px}
}

/* Páginas normales */
.v-page{padding-top:48px;padding-bottom:80px}
.v-page .v-content{background:#fff;border-radius:14px;padding:32px}

@media (max-width:640px){
  .v-hero__in{padding-top:64px;padding-bottom:56px}
  .v-hero h1{font-size:36px}
  .v-section h2,.v-page-head h1,.v-detail-head h1{font-size:28px}
  .v-band h2{font-size:26px}
  .v-detail-price{align-items:flex-start}
  .v-gallery__main{height:280px}
  .v-gallery__side{flex-direction:row;height:110px;flex-basis:100%}
  .v-gallery__more{right:8px;bottom:8px;padding:6px 10px;font-size:12px}
  .v-badge{font-size:11px;letter-spacing:.5px}
}

/* Sin foto */
.v-nophoto{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:var(--v-soft);color:var(--v-green);font-weight:600;font-size:14px}
.v-nophoto img{width:70px;height:auto;opacity:.55}
.v-gallery--empty{height:260px;border-radius:14px;overflow:hidden;margin:24px 0}
/* Contador del visor */
.v-lb-count{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);color:#fff;font-size:14px;background:rgba(255,255,255,.15);padding:6px 12px;border-radius:999px}
/* Títulos largos en tarjetas */
.v-card h3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* 404 y búsqueda */
.v-404{padding:80px 0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}
.v-404 h1{font-size:44px}
.v-404 p{color:var(--v-gray);margin:0;max-width:520px}

.v-copy__in{border-top:1px solid rgba(255,255,255,.1);padding-top:18px}
.v-copy{padding-top:0}
