/* ================================================================
   VTokko — Desarrollo Layout Styles v1.0.5
   Layout + structure only. Colors, fonts, buttons inherit Houzez.
   Accent color via --vtokko-accent CSS custom property.
   ================================================================ */

/* ── HERO ────────────────────────────────────────────────────────── */
.vtokko-dev-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: #111;
}
.vtokko-dev-hero__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.5);
    /* No hover zoom per design spec */
}
.vtokko-dev-hero__overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: stretch;
    padding: 0;
}
/* Hero container — uses Houzez .container class for alignment
   We only add flex + bottom padding here */
.vtokko-dev-hero__container {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 40px !important;
    padding-top: 0 !important;
    position: relative;
    height: 100%;
}
.vtokko-dev-hero__content { max-width: 700px; }

.vtokko-dev-badge {
    display: inline-block;
    background: var(--vtokko-accent, #c09f77);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 12px;
}
.vtokko-dev-hero__title {
    color: #fff;
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 10px;
}
.vtokko-dev-hero__address {
    color: rgba(255,255,255,.8);
    font-size: 14px;
    font-weight: 300;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vtokko-dev-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 400;
    background: rgba(255,255,255,.2);
    color: #fff;
}
@media (max-width: 768px) {
    .vtokko-dev-hero { height: 260px; }
    .vtokko-dev-hero__overlay { padding: 20px 4%; }
}

/* ── BODY LAYOUT ─────────────────────────────────────────────────── */
.vtokko-dev-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding: 40px 15px;
    max-width: var(--hz-container, 1170px);
    margin: 0 auto;
    align-items: start;
    box-sizing: border-box;
}
@media (max-width: 960px) {
    .vtokko-dev-body { grid-template-columns: 1fr; padding: 24px 4%; }
    .vtokko-dev-sidebar { position: static; }
}

/* ── SECTIONS ────────────────────────────────────────────────────── */
.vtokko-dev-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #ebebeb;
}
.vtokko-dev-section:last-child { border-bottom: none; margin-bottom: 0; }

.vtokko-dev-section__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vtokko-accent, #c09f77);
}

/* ── GALLERY ─────────────────────────────────────────────────────── */
.vtokko-dev-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}
.vtokko-dev-gallery__item {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
}
.vtokko-dev-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.vtokko-dev-gallery__item:hover img { transform: scale(1.05); }

/* ── LIGHTBOX ────────────────────────────────────────────────────── */
.vtokko-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.92);
    padding: 20px;
}
.vtokko-lightbox.active { display: flex; }
.vtokko-lightbox__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    cursor: pointer;
}
.vtokko-lightbox__backdrop.active { display: block; }

.vtokko-lightbox__img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vtokko-lightbox__img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.vtokko-lightbox__close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    opacity: .8;
    transition: opacity .2s;
}
.vtokko-lightbox__close:hover { opacity: 1; }

.vtokko-lightbox__arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 100000;
    padding: 14px 18px;
    transition: background .2s;
    border-radius: 2px;
}
.vtokko-lightbox__arrow:hover { background: rgba(255,255,255,.3); }
.vtokko-lightbox__arrow--prev { left: 16px; }
.vtokko-lightbox__arrow--next { right: 16px; }

.vtokko-lightbox__counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ── DESCRIPTION — respect Tokko HTML formatting ─────────────────── */
.vtokko-dev-description { font-size: 15px; line-height: 1.8; }
.vtokko-dev-description strong, .vtokko-dev-description b { font-weight: 600; }
.vtokko-dev-description em, .vtokko-dev-description i { font-style: italic; }
.vtokko-dev-description ul, .vtokko-dev-description ol { padding-left: 20px; margin: 12px 0; }
.vtokko-dev-description li { margin-bottom: 4px; }
.vtokko-dev-description p { margin-bottom: 12px; }
.vtokko-dev-description h2, .vtokko-dev-description h3 { font-weight: 300; margin: 16px 0 8px; }

/* ── FEATURES ────────────────────────────────────────────────────── */
.vtokko-dev-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.vtokko-dev-features__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 300;
}

/* ── PDFs ────────────────────────────────────────────────────────── */
.vtokko-dev-files { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vtokko-dev-files__item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s;
}
.vtokko-dev-files__item a:hover { border-color: var(--vtokko-accent, #c09f77); }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.vtokko-btn {
    display: inline-block;
    background: var(--vtokko-accent, #c09f77);
    color: #fff !important;
    border: none;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .5px;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
}
.vtokko-btn:hover { background: #111 !important; color: #fff !important; }
.vtokko-btn--full { display: block; width: 100%; box-sizing: border-box; }

/* ── UNIT CARDS ──────────────────────────────────────────────────── */
.vtokko-dev-units__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.vtokko-unit-card {
    border: 1px solid #ebebeb;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .25s;
}
.vtokko-unit-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.vtokko-unit-card__image-link {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.vtokko-unit-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
/* No zoom on unit card image hover */
.vtokko-unit-card__no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status badge — Houzez native class, just position */
.vtokko-unit-card__image-link .listing_unit_label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Price overlay on image — Houzez card style */
.vtokko-unit-card__price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    z-index: 2;
}

.vtokko-unit-card__body { padding: 12px 14px 14px; }

.vtokko-unit-card__title {
    font-size: 14px;
    font-weight: 300;
    margin: 0 0 8px;
    line-height: 1.4;
}
.vtokko-unit-card__title a { text-decoration: none; color: inherit; }
.vtokko-unit-card__title a:hover { color: var(--vtokko-accent, #c09f77); }

/* Specs — inline like Houzez property cards */
.vtokko-unit-card__specs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 300;
    margin: 0 0 8px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.vtokko-unit-card__specs span {
    display: flex;
    align-items: center;
    gap: 3px;
}
.vtokko-unit-card__specs .houzez-icon {
    color: var(--vtokko-accent, #c09f77);
    font-size: 13px;
}

/* Property type label */
.vtokko-unit-card__type {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .55;
    margin: 0 0 12px;
}

/* Small button variant */
.vtokko-btn--sm {
    padding: 7px 16px;
    font-size: 12px;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────── */
.vtokko-dev-sidebar { position: sticky; top: 80px; }

.vtokko-dev-infocard,
.vtokko-dev-contact {
    border: 1px solid #ebebeb;
    border-radius: 2px;
    padding: 22px;
    margin-bottom: 18px;
    background: #fff;
}
.vtokko-dev-infocard__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vtokko-accent, #c09f77);
}
.vtokko-dev-infocard__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    font-weight: 300;
}
.vtokko-dev-infocard__row:last-child { border-bottom: none; }
.vtokko-dev-infocard__row > span:first-child { opacity: .55; }
.vtokko-dev-infocard__row--full { flex-direction: column; gap: 4px; }
.vtokko-dev-infocard__row--full p { margin: 0; font-size: 13px; }

.vtokko-dev-contact p { font-size: 13px; font-weight: 300; margin-bottom: 14px; opacity: .7; }

/* ── MAP ─────────────────────────────────────────────────────────── */
.vtokko-dev-map {
    margin-bottom: 18px;
}
.vtokko-dev-map .leaflet-container {
    font-family: inherit;
}

/* ── SHARE BUTTON ────────────────────────────────────────────────── */
.vtokko-dev-share {
    flex-shrink: 0;
    margin-left: auto;
    align-self: flex-end;
}
/* Inherit Houzez item-tools styles — just make icons/text white for hero */
.vtokko-dev-share .item-tools { list-style: none; padding: 0; margin: 0; }
.vtokko-dev-share .item-tool-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.vtokko-dev-share .item-tool-share:hover { background: rgba(255,255,255,.3); }
.vtokko-dev-share .item-tool-share .houzez-icon { font-size: 16px; color: #fff; }
/* Dropdown inherits Houzez Bootstrap dropdown styles */
.vtokko-dev-share .dropdown-menu { min-width: 160px; }

/* ── UNIT CARD IMAGE SLIDER ──────────────────────────────────────── */
.vtokko-unit-card__slider {
    position: relative;
}
.vtokko-unit-card__image-link {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}
/* All slides stacked, only .active visible */
.vtokko-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s;
}
.vtokko-slide.active {
    opacity: 1;
    position: relative;
}
/* Slider arrows — no background, large white arrow centered vertically */
.vtokko-slide-prev,
.vtokko-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
    transition: transform .15s, opacity .2s;
    opacity: .9;
}
.vtokko-slide-prev { left: 4px; }
.vtokko-slide-next { right: 4px; }
.vtokko-slide-prev:hover,
.vtokko-slide-next:hover { opacity: 1; transform: translateY(-50%) scale(1.15); }

/* ── DESCUBRE MÁS DESARROLLOS ───────────────────────────────────── */
.vtokko-more-devs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .vtokko-more-devs__grid { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
    .vtokko-more-devs__grid { grid-template-columns: repeat(2, 1fr); }
}

.vtokko-more-devs__card {
    border: 1px solid #ebebeb;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .25s;
}
.vtokko-more-devs__card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* Slider */
.vtokko-more-devs__slider {
    position: relative;
}
.vtokko-more-devs__image-link {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.vtokko-more-devs__image-link .vtokko-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s;
}
.vtokko-more-devs__image-link .vtokko-slide.active {
    opacity: 1;
    position: relative;
}
.vtokko-more-devs__no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
}

/* Badge — top right */
.vtokko-more-devs__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--vtokko-accent, #c09f77);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 2;
}

/* Card body */
.vtokko-more-devs__body {
    padding: 16px;
}
.vtokko-more-devs__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
}
.vtokko-more-devs__title a {
    text-decoration: none;
    color: inherit;
}
.vtokko-more-devs__title a:hover { color: var(--vtokko-accent, #c09f77); }

.vtokko-more-devs__zone {
    font-size: 13px;
    font-weight: 300;
    margin: 0 0 6px;
    opacity: .7;
    display: flex;
    align-items: center;
    gap: 4px;
}
.vtokko-more-devs__zone .houzez-icon { color: var(--vtokko-accent, #c09f77); }

/* Unit count — below title, prominent */
.vtokko-more-devs__count {
    font-size: 13px;
    font-weight: 400;
    color: var(--vtokko-accent, #c09f77);
    margin: 0 0 14px;
}

/* Button — vtokko-btn already defined */
.vtokko-more-devs__body .vtokko-btn {
    display: block;
    text-align: center;
}
