/* Wanderlust Tokko - estilos públicos. Toman la tipografía del theme; el color principal se define en el panel. */
.wtks {
	--wtks-accent: #1e5aa8;
	--wtks-border: rgba(0, 0, 0, .12);
	--wtks-soft: rgba(0, 0, 0, .04);
	--wtks-muted: rgba(0, 0, 0, .6);
	--wtks-radius: 8px;
	box-sizing: border-box;
}
.wtks *, .wtks *::before, .wtks *::after { box-sizing: inherit; }
.wtks img { max-width: 100%; height: auto; display: block; }

/* Botones e insignias */
.wtks-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 18px; border-radius: var(--wtks-radius); border: 1px solid var(--wtks-accent);
	background: var(--wtks-accent); color: #fff !important; text-decoration: none !important;
	font-weight: 600; line-height: 1.2; cursor: pointer; font-size: 15px;
}
.wtks-button:hover { filter: brightness(1.08); }
.wtks-button--ghost { background: transparent; color: var(--wtks-accent) !important; }
.wtks-button--small { padding: 6px 12px; font-size: 13px; }
.wtks-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wtks-badge {
	display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
	background: var(--wtks-accent); color: #fff; line-height: 1.5;
}

/* Galería */
.wtks-gallery { margin-bottom: 24px; }
.wtks-gallery__main { position: relative; display: block; border-radius: var(--wtks-radius); overflow: hidden; background: var(--wtks-soft); }
.wtks-gallery__main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wtks-gallery__count {
	position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .65); color: #fff;
	font-size: 13px; padding: 4px 10px; border-radius: 999px;
}
.wtks-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.wtks-gallery__thumbs a { flex: 0 0 110px; border-radius: 6px; overflow: hidden; opacity: .85; scroll-snap-align: start; }
.wtks-gallery__thumbs a:hover, .wtks-gallery__thumbs a.is-active { opacity: 1; outline: 2px solid var(--wtks-accent); outline-offset: -2px; }
.wtks-gallery__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wtks-gallery--compact .wtks-gallery__thumbs { flex-wrap: wrap; overflow: visible; }
.wtks-gallery--compact .wtks-gallery__thumbs a { flex-basis: 180px; }

.wtks-lightbox {
	position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .92);
	display: flex; align-items: center; justify-content: center;
}
.wtks-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.wtks-lightbox button {
	position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
	width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1;
}
.wtks-lightbox button:hover { background: rgba(255, 255, 255, .25); }
.wtks-lightbox__close { top: 16px; right: 16px; }
.wtks-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.wtks-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.wtks-lightbox__counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

/* Ficha */
.wtks-single__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.wtks-single__location { margin: 0; color: var(--wtks-muted); }
.wtks-single__dev { margin: 6px 0 0; }
.wtks-single__prices { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wtks-price { display: flex; align-items: baseline; gap: 8px; }
.wtks-price__op { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--wtks-muted); }
.wtks-price strong { font-size: 1.6em; color: var(--wtks-accent); line-height: 1.1; }

.wtks-specs {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px;
	background: var(--wtks-border); border: 1px solid var(--wtks-border); border-radius: var(--wtks-radius);
	overflow: hidden; margin: 0 0 28px;
}
.wtks-specs__item { background: #fff; padding: 12px 14px; }
.wtks-specs dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--wtks-muted); margin: 0; }
.wtks-specs dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05em; }

.wtks-section { margin: 0 0 32px; }
.wtks-section > h2 { font-size: 1.3em; margin: 0 0 12px; }
.wtks-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.wtks-features li { position: relative; padding-left: 22px; }
.wtks-features li::before { content: "✓"; position: absolute; left: 0; color: var(--wtks-accent); font-weight: 700; }

.wtks-video { position: relative; margin-bottom: 16px; }
.wtks-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.wtks-map { height: 360px; border-radius: var(--wtks-radius); overflow: hidden; background: var(--wtks-soft); z-index: 0; }

/* Contacto */
.wtks-contact__card {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px;
	border: 1px solid var(--wtks-border); border-radius: var(--wtks-radius);
}
.wtks-contact__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.wtks-contact__info { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; }
.wtks-contact__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Unidades */
.wtks-units-wrap { overflow-x: auto; }
.wtks-units { width: 100%; border-collapse: collapse; }
.wtks-units th, .wtks-units td { padding: 10px 12px; border-bottom: 1px solid var(--wtks-border); text-align: left; }
.wtks-units th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--wtks-muted); }
@media (max-width: 640px) {
	.wtks-units thead { display: none; }
	.wtks-units tr { display: block; border: 1px solid var(--wtks-border); border-radius: var(--wtks-radius); margin-bottom: 10px; padding: 6px 0; }
	.wtks-units td { display: flex; justify-content: space-between; border: 0; padding: 6px 12px; }
	.wtks-units td[data-label]::before { content: attr(data-label); color: var(--wtks-muted); }
}

/* Listado */
.wtks-grid { display: grid; grid-template-columns: repeat(var(--wtks-columns, 3), minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .wtks-grid { grid-template-columns: repeat(min(var(--wtks-columns, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .wtks-grid { grid-template-columns: 1fr; } }
.wtks-listing__count { color: var(--wtks-muted); margin: 0 0 12px; }
.wtks-empty { padding: 24px; text-align: center; background: var(--wtks-soft); border-radius: var(--wtks-radius); }

.wtks-card { border: 1px solid var(--wtks-border); border-radius: var(--wtks-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.wtks-card__image { position: relative; display: block; background: var(--wtks-soft); }
.wtks-card__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wtks-card__noimage { display: block; aspect-ratio: 4 / 3; }
.wtks-card__badge { position: absolute; top: 12px; left: 12px; }
.wtks-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.wtks-card__price { margin: 0; font-size: 1.25em; font-weight: 700; color: var(--wtks-accent); }
.wtks-card__title { margin: 0; font-size: 1.05em; line-height: 1.3; }
.wtks-card__title a { color: inherit; text-decoration: none; }
.wtks-card__title a:hover { color: var(--wtks-accent); }
.wtks-card__location { margin: 0; color: var(--wtks-muted); font-size: .92em; }
.wtks-card__specs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--wtks-border); font-size: .9em; }
.wtks-card__specs span { color: var(--wtks-muted); }

.wtks-pagination { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wtks-pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--wtks-border); border-radius: 6px; text-decoration: none; }
.wtks-pagination .current { background: var(--wtks-accent); border-color: var(--wtks-accent); color: #fff; }

/* Buscador */
.wtks-search {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end;
	padding: 18px; margin-bottom: 24px; border: 1px solid var(--wtks-border); border-radius: var(--wtks-radius); background: var(--wtks-soft);
}
.wtks-search__field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.wtks-search__field--wide { grid-column: 1 / -1; }
.wtks-search__field span { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--wtks-muted); }
.wtks-search input, .wtks-search select { width: 100%; padding: 9px 10px; border: 1px solid var(--wtks-border); border-radius: 6px; background: #fff; font: inherit; }
.wtks-search__actions .wtks-button { width: 100%; }
