/* =========================================================
   Restaurante Reservas WhatsApp — Estilos públicos
   Los tokens de color/tipografía por preset se inyectan vía
   <style id="rst-theme-vars"> (ver class-settings.php).
   Aquí solo definimos la estructura y cómo cada token se usa.
   ========================================================= */

[data-rst-theme] {
	--rst-bg: #ffffff;
	--rst-surface: #ffffff;
	--rst-text: #222222;
	--rst-text-2: #777777;
	--rst-accent: #333333;
	--rst-accent-2: #666666;
	--rst-radius: 8px;
	--rst-font-display: sans-serif;
	--rst-font-body: sans-serif;
	--rst-image-ratio: 4/3;

	background: var(--rst-bg);
	color: var(--rst-text);
	font-family: var(--rst-font-body);
}

[data-rst-theme] h1,
[data-rst-theme] h2,
[data-rst-theme] h3,
[data-rst-theme] .rst-space-title,
[data-rst-theme] .rst-single-title {
	font-family: var(--rst-font-display);
}

/* ---------- Densidad por preset ---------- */
[data-rst-theme="prestige"] .rst-spaces-grid { gap: 32px; }
[data-rst-theme="costa"] .rst-spaces-grid { gap: 26px; }
[data-rst-theme="urbano"] .rst-spaces-grid { gap: 20px; }
[data-rst-theme="campo"] .rst-spaces-grid { gap: 28px; }

/* ---------- Grid / catálogo ---------- */
/* border-box evita que inputs y botones al 100% se salgan de su contenedor */
.rst-catalog,
.rst-catalog *,
.rst-catalog *::before,
.rst-catalog *::after,
.rst-favorites-wrap .rst-space-card,
.rst-favorites-wrap .rst-space-card *,
.rst-favorites-wrap .rst-space-card *::before,
.rst-favorites-wrap .rst-space-card *::after { box-sizing: border-box; }

.rst-catalog { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }
.rst-catalog-title { font-size: 26px; margin: 0 0 20px; }
.rst-catalog-body { display: flex; gap: 32px; align-items: flex-start; }
.rst-spaces-wrap { flex: 1; min-width: 0; }

/* ---------- Barra superior: búsqueda + cambio de vista ---------- */
.rst-catalog-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.rst-search { position: relative; flex: 1 1 auto; max-width: 380px; min-width: 0; display: block; }
.rst-select-sort { flex: 0 0 auto; min-width: 210px; margin-left: auto; }
.rst-catalog .rst-select-sort select { height: 42px; background: var(--rst-surface); }
.rst-search-icon {
	position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
	color: var(--rst-text-2); pointer-events: none;
}
.rst-catalog .rst-search-input {
	display: block; width: 100%; height: 42px; margin: 0; padding: 0 14px 0 38px; border-radius: var(--rst-radius);
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 40%, transparent);
	background: var(--rst-surface); color: var(--rst-text); font-family: var(--rst-font-body); font-size: 14px;
	box-shadow: none; -webkit-appearance: none; appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rst-catalog .rst-search-input::placeholder { color: var(--rst-text-2); opacity: 1; }
.rst-catalog .rst-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rst-catalog .rst-search-input:focus {
	outline: none; border-color: var(--rst-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rst-accent) 25%, transparent);
}

/* Los dos cuadritos: control segmentado de tamaño fijo. Solo cambian la vista de las tarjetas,
   nunca el resto de la interfaz. */
.rst-catalog .rst-view-toggle {
	display: inline-flex; gap: 2px; padding: 3px; flex: 0 0 auto;
	background: var(--rst-surface); border-radius: var(--rst-radius);
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 40%, transparent);
}
.rst-catalog .rst-view-toggle .rst-view-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; min-width: 0; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: calc(var(--rst-radius) * 0.7); box-shadow: none;
	background: transparent; color: var(--rst-text-2);
	font: inherit; line-height: 1; letter-spacing: 0; text-transform: none; cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.rst-catalog .rst-view-toggle .rst-view-btn svg { width: 18px; height: 18px; display: block; pointer-events: none; }
.rst-catalog .rst-view-toggle .rst-view-btn:hover { background: color-mix(in srgb, var(--rst-text-2) 16%, transparent); color: var(--rst-text); }
.rst-catalog .rst-view-toggle .rst-view-btn.is-active,
.rst-catalog .rst-view-toggle .rst-view-btn.is-active:hover { background: var(--rst-accent); color: var(--rst-bg); }
.rst-catalog .rst-view-toggle .rst-view-btn:focus-visible { outline: 2px solid var(--rst-accent); outline-offset: 2px; }

/* ---------- Tarjetas: galería y lista ---------- */
.rst-spaces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
/* Segundo botón ("vista grande"): una tarjeta por fila, la foto ocupa TODO el ancho de la tarjeta
   y la información queda debajo de la foto (título + precio, zona, ficha técnica, botón). */
.rst-spaces-grid.rst-view-list { grid-template-columns: 1fr; gap: 28px; }
.rst-spaces-grid.rst-view-list .rst-space-card { display: flex; flex-direction: column; }
.rst-spaces-grid.rst-view-list .rst-space-card-media { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.rst-spaces-grid.rst-view-list .rst-space-card-media .rst-space-image,
.rst-spaces-grid.rst-view-list .rst-space-card-media .rst-no-image { position: static; width: 100%; height: 100%; object-fit: cover; }
.rst-spaces-grid.rst-view-list .rst-badges { top: 14px; left: 14px; }
.rst-spaces-grid.rst-view-list .rst-badge { font-size: 12px; padding: 5px 12px; }
.rst-spaces-grid.rst-view-list .rst-space-card .rst-wishlist-btn { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 18px; }

.rst-spaces-grid.rst-view-list .rst-space-card-body {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 0;
	align-items: center; align-content: start; padding: 20px 24px 22px;
}
.rst-spaces-grid.rst-view-list .rst-space-title { grid-column: 1; grid-row: 1; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.rst-spaces-grid.rst-view-list .rst-space-price { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; font-size: 24px; line-height: 1.1; white-space: nowrap; }
.rst-spaces-grid.rst-view-list .rst-space-zona { grid-column: 1; grid-row: 2; margin-top: 6px; font-size: 14px; }
.rst-spaces-grid.rst-view-list .rst-space-ficha { grid-column: 1; grid-row: 3; gap: 8px; margin: 14px 0 0; }
.rst-spaces-grid.rst-view-list .rst-space-ficha > span {
	font-size: 13px; font-weight: 600; color: var(--rst-text); line-height: 1.2; padding: 6px 12px; border-radius: 999px;
	background: color-mix(in srgb, var(--rst-text-2) 16%, transparent);
}
.rst-spaces-grid.rst-view-list .rst-space-host { grid-column: 1; grid-row: 4; margin: 12px 0 0; font-size: 13px; }
.rst-spaces-grid.rst-view-list .rst-btn { grid-column: 2; grid-row: 2 / span 3; align-self: end; justify-self: end; width: auto; margin: 12px 0 0; padding: 12px 28px; }

/* Móvil / pantallas angostas: todo apilado (foto, título, zona, precio, ficha y botón a lo ancho) */
@media (max-width: 640px) {
	.rst-spaces-grid.rst-view-list { gap: 20px; }
	.rst-spaces-grid.rst-view-list .rst-space-card-media { aspect-ratio: 4 / 3; }
	.rst-spaces-grid.rst-view-list .rst-space-card-body { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 16px 18px; }
	.rst-spaces-grid.rst-view-list .rst-space-title { font-size: 19px; }
	.rst-spaces-grid.rst-view-list .rst-space-zona { margin-top: 0; }
	.rst-spaces-grid.rst-view-list .rst-space-price { justify-self: auto; align-self: flex-start; font-size: 22px; }
	.rst-spaces-grid.rst-view-list .rst-space-ficha { margin: 0; }
	.rst-spaces-grid.rst-view-list .rst-space-host { margin: 0; }
	.rst-spaces-grid.rst-view-list .rst-btn { align-self: stretch; justify-self: auto; width: 100%; margin: 4px 0 0; padding: 13px 20px; font-size: 15px; }
}
.rst-no-results { grid-column: 1 / -1; text-align: center; color: var(--rst-text-2); padding: 40px 0; }

/* ---------- Panel de filtros ---------- */
.rst-filters {
	flex: 0 0 260px; width: 260px; min-width: 0;
	background: var(--rst-surface); border-radius: var(--rst-radius);
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 22%, transparent);
	position: sticky; top: 24px; overflow: hidden;
}
.rst-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; }
.rst-catalog .rst-filters-toggle {
	display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 0; box-shadow: none; background: none; color: var(--rst-text);
	font-family: var(--rst-font-display); font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none;
	cursor: default; pointer-events: none;
}
.rst-catalog .rst-filters-toggle:hover { background: none; color: var(--rst-text); }
.rst-filters-chevron { display: none; width: 16px; height: 16px; transition: transform 0.2s ease; }
.rst-filters-count {
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rst-accent); color: var(--rst-bg);
	font-family: var(--rst-font-body); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.rst-filters-count[hidden] { display: none; }
.rst-catalog .rst-clear-filters {
	min-width: 0; min-height: 0; margin: 0; padding: 4px 0; border: 0; border-radius: 0; box-shadow: none; background: none;
	color: var(--rst-text-2); font-family: var(--rst-font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--rst-text-2) 50%, transparent);
	cursor: pointer; transition: color 0.15s ease;
}
.rst-catalog .rst-clear-filters:hover { background: none; color: var(--rst-accent); }
.rst-catalog .rst-clear-filters:focus-visible,
.rst-catalog .rst-filters-toggle:focus-visible { outline: 2px solid var(--rst-accent); outline-offset: 3px; }

.rst-filters-body {
	padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 18px;
	border-top: 1px solid color-mix(in srgb, var(--rst-text-2) 22%, transparent); padding-top: 18px;
}
.rst-filter-group { margin: 0; min-width: 0; }
.rst-filter-group h4 {
	display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
	margin: 0 0 8px; padding: 0; font-family: var(--rst-font-body); font-size: 13px; font-weight: 600; line-height: 1.3;
	letter-spacing: 0; text-transform: none; color: var(--rst-text);
}
.rst-filter-hint { font-size: 12px; font-weight: 500; color: var(--rst-text-2); }

.rst-select { position: relative; display: block; }
.rst-select::after {
	content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; pointer-events: none;
	border-right: 2px solid var(--rst-text-2); border-bottom: 2px solid var(--rst-text-2);
	transform: translateY(-70%) rotate(45deg);
}
.rst-catalog .rst-select select,
.rst-catalog .rst-filters input[type="number"] {
	display: block; width: 100%; height: 40px; margin: 0; padding: 0 12px; border-radius: var(--rst-radius);
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 40%, transparent);
	background: var(--rst-bg); color: var(--rst-text); font-family: var(--rst-font-body); font-size: 14px; line-height: 1.2;
	box-shadow: none; -webkit-appearance: none; appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rst-catalog .rst-select select { padding-right: 36px; cursor: pointer; text-overflow: ellipsis; }
.rst-catalog .rst-filters input[type="number"] { -moz-appearance: textfield; }
.rst-catalog .rst-filters input[type="number"]::-webkit-outer-spin-button,
.rst-catalog .rst-filters input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rst-catalog .rst-filters input[type="number"]::placeholder { color: var(--rst-text-2); opacity: 1; }
.rst-catalog .rst-select select:hover,
.rst-catalog .rst-filters input[type="number"]:hover { border-color: color-mix(in srgb, var(--rst-text-2) 70%, transparent); }
.rst-catalog .rst-select select:focus,
.rst-catalog .rst-filters input[type="number"]:focus {
	outline: none; border-color: var(--rst-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rst-accent) 25%, transparent);
}
.rst-price-range { display: grid; grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr); align-items: center; gap: 8px; }
.rst-price-sep { height: 1px; background: color-mix(in srgb, var(--rst-text-2) 60%, transparent); }

/* Comodidades: chips que se activan y desactivan */
.rst-filter-caracteristicas { display: flex; flex-wrap: wrap; gap: 8px; max-height: 156px; overflow-y: auto; padding: 2px; margin: -2px; }
.rst-catalog .rst-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; font-weight: 500; }
.rst-chip input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.rst-chip span {
	display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 40%, transparent);
	background: var(--rst-bg); color: var(--rst-text); font-size: 13px; line-height: 1;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rst-chip:hover span { border-color: color-mix(in srgb, var(--rst-text-2) 75%, transparent); }
.rst-chip input:checked + span {
	background: color-mix(in srgb, var(--rst-accent) 16%, var(--rst-bg)); border-color: var(--rst-accent); font-weight: 600;
}
.rst-chip input:focus-visible + span { outline: 2px solid var(--rst-accent); outline-offset: 2px; }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 900px) {
	.rst-catalog-body { flex-direction: column; align-items: stretch; gap: 16px; }
	.rst-spaces-wrap { flex: none; width: 100%; }
	.rst-filters { flex: none; width: 100%; position: static; }
	.rst-filters-head { padding: 0; }
	.rst-catalog .rst-filters-toggle {
		flex: 1; justify-content: flex-start; padding: 14px 20px; cursor: pointer; pointer-events: auto; text-align: left;
	}
	.rst-filters-chevron { display: block; color: var(--rst-text-2); }
	.rst-filters.is-open .rst-filters-chevron { transform: rotate(180deg); }
	.rst-catalog .rst-clear-filters { padding: 14px 20px 14px 0; }
	.rst-filters-body { display: none; }
	.rst-filters.is-open .rst-filters-body { display: flex; }
	.rst-filters-body { flex-direction: row; flex-wrap: wrap; gap: 18px 16px; }
	.rst-filters-body .rst-filter-group { flex: 1 1 200px; }
	.rst-filters-body .rst-filter-group-wide { flex: 1 1 100%; }
}
@media (max-width: 520px) {
	.rst-catalog { padding: 20px 14px 48px; }
	.rst-search { flex: 1 1 100%; max-width: none; }
	.rst-select-sort { flex: 1 1 0; min-width: 0; margin-left: 0; }
	.rst-spaces-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.rst-spaces-grid .rst-space-card-body { padding: 12px; }
	.rst-filters-body .rst-filter-group { flex-basis: 100%; }
}

/* ---------- Tarjeta de mesa o lugar ---------- */
.rst-space-card {
	background: var(--rst-surface); border-radius: var(--rst-radius); overflow: hidden;
	position: relative; display: flex; flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rst-space-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.14); }
.rst-space-card-media { position: relative; display: block; aspect-ratio: var(--rst-image-ratio); overflow: hidden; background: var(--rst-bg); }
.rst-space-image, .rst-no-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.rst-space-card:hover .rst-space-image { transform: scale(1.05); }
.rst-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 1; }
.rst-badge {
	font-size: 11px; padding: 4px 10px; border-radius: 20px; background: var(--rst-accent); color: var(--rst-bg);
	font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.4; display: inline-block;
}
.rst-badge-estado { background: var(--rst-text); color: var(--rst-bg); }
.rst-estado-proximamente { background: var(--rst-accent-2); }
.rst-estado-pausado { background: #666; }
.rst-space-card .rst-wishlist-btn {
	position: absolute; top: 10px; right: 10px; background: var(--rst-surface); color: var(--rst-text); border: none; border-radius: 50%;
	width: 34px; height: 34px; min-width: 0; min-height: 0; margin: 0; padding: 0; cursor: pointer; font-size: 16px; z-index: 1; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 0.15s ease;
}
.rst-space-card .rst-wishlist-btn:hover { background: var(--rst-surface); color: var(--rst-text); transform: scale(1.1); }
.rst-space-card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rst-space-title { color: var(--rst-text); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.35; }
.rst-space-title:hover { text-decoration: underline; }
.rst-space-zona { margin: 0; font-size: 13px; color: var(--rst-text-2); display: flex; align-items: center; gap: 4px; }
.rst-space-price { font-weight: 700; color: var(--rst-accent); font-size: 18px; margin: 2px 0; }
.rst-space-ficha { display: flex; gap: 14px; font-size: 13px; color: var(--rst-text-2); margin-bottom: 6px; flex-wrap: wrap; }
.rst-space-ficha span { display: inline-flex; align-items: center; gap: 4px; }
.rst-icon { line-height: 1; }

.rst-btn {
	background: var(--rst-accent); color: var(--rst-bg); border: none; border-radius: var(--rst-radius);
	padding: 10px 18px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
	display: inline-block; transition: opacity 0.15s ease, transform 0.1s ease;
}
.rst-btn:hover { opacity: 0.88; color: var(--rst-bg); }
.rst-btn:active { transform: scale(0.98); }
.rst-btn-block { margin-top: auto; width: 100%; }
.rst-btn-large { padding: 14px 20px; width: 100%; font-size: 16px; }

/* ---------- Paginación del catálogo ---------- */
.rst-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 8px; }
.rst-page-btn {
	min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--rst-radius);
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 45%, transparent);
	background: var(--rst-bg); color: var(--rst-text); font-weight: 600; cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.rst-page-btn:hover:not(:disabled) { background: var(--rst-surface); }
.rst-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rst-page-btn.is-active { background: var(--rst-accent); border-color: var(--rst-accent); color: var(--rst-bg); }

/* ---------- Ficha de la mesa o lugar ---------- */
.rst-single-space { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }
.rst-single-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 900px) { .rst-single-grid { grid-template-columns: 1fr; gap: 24px; } }
.rst-breadcrumbs { font-size: 13px; color: var(--rst-text-2); margin-bottom: 20px; }
.rst-breadcrumbs a { color: var(--rst-text-2); text-decoration: none; }
.rst-breadcrumbs a:hover { text-decoration: underline; }

.rst-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rst-gallery-item { border: 2px solid transparent; border-radius: var(--rst-radius); overflow: hidden; padding: 0; background: none; cursor: pointer; aspect-ratio: 1/1; transition: border-color 0.15s ease; }
.rst-gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: var(--rst-image-ratio); border-radius: calc(var(--rst-radius) * 1.3); }
.rst-gallery-item:hover { border-color: color-mix(in srgb, var(--rst-accent) 60%, transparent); }
.rst-gallery-item.is-active { border-color: var(--rst-accent); }
.rst-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rst-gallery-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: var(--rst-image-ratio); background: var(--rst-surface); color: var(--rst-text-2); border-radius: var(--rst-radius); }
.rst-video-wrap { margin-top: 12px; border-radius: var(--rst-radius); overflow: hidden; aspect-ratio: 16/9; }
.rst-video-wrap iframe, .rst-video-wrap embed { width: 100%; height: 100%; }
.rst-video-link { display: inline-block; margin-top: 10px; color: var(--rst-accent); font-weight: 600; }

.rst-single-info { display: flex; flex-direction: column; }
.rst-single-title { margin: 6px 0 6px; font-size: 28px; line-height: 1.25; }
.rst-single-zona { color: var(--rst-text-2); margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.rst-single-price { font-size: 30px; font-weight: 700; color: var(--rst-accent); margin: 10px 0 18px; }

.rst-ficha-tecnica { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; }
.rst-ficha-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--rst-surface); border-radius: var(--rst-radius); padding: 10px 16px; min-width: 90px; }
.rst-ficha-item .rst-icon { font-size: 18px; }
.rst-ficha-item strong { font-size: 16px; }
.rst-ficha-item span:last-child { font-size: 12px; color: var(--rst-text-2); }

.rst-single-info .rst-btn-large { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }

.rst-wishlist-btn-inline {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: none;
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 45%, transparent); color: var(--rst-text);
	border-radius: var(--rst-radius); padding: 12px; cursor: pointer; font-size: 14px; font-weight: 600;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.rst-wishlist-btn-inline:hover { border-color: var(--rst-accent); background: color-mix(in srgb, var(--rst-accent) 8%, transparent); }

.rst-direccion { margin-top: 18px; font-size: 13px; color: var(--rst-text-2); display: flex; align-items: flex-start; gap: 6px; }

.rst-single-tabs { border-top: 1px solid color-mix(in srgb, var(--rst-text-2) 25%, transparent); padding-top: 32px; margin-bottom: 40px; }
.rst-single-tabs h2 { font-size: 19px; margin: 0 0 14px; }
.rst-single-tabs h2 + h2,
.rst-single-tabs h2 + div + h2 { margin-top: 32px; }
.rst-description { line-height: 1.7; color: var(--rst-text); }
.rst-specs-table { width: 100%; border-collapse: collapse; background: var(--rst-surface); border-radius: var(--rst-radius); overflow: hidden; }
.rst-specs-table tr:nth-child(odd) { background: color-mix(in srgb, var(--rst-text-2) 5%, transparent); }
.rst-specs-table th, .rst-specs-table td { text-align: left; padding: 10px 14px; font-size: 14px; }
.rst-specs-table th { color: var(--rst-text-2); font-weight: 600; width: 40%; }

.rst-caracteristicas-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.rst-caracteristicas-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.rst-map-embed { border-radius: var(--rst-radius); overflow: hidden; }

.rst-related-spaces { margin-top: 48px; }
.rst-related-spaces h2 { font-size: 20px; margin: 0 0 18px; }

/* ---------- Formulario de contacto / solicitud ---------- */
.rst-contact-form-wrap {
	max-width: 640px; padding: 24px; background: var(--rst-surface); border-radius: var(--rst-radius);
	color: var(--rst-text); font-family: var(--rst-font-body);
}
.rst-form-space-ref { font-size: 13px; color: var(--rst-text-2); margin: 0 0 14px; }
.rst-form-error {
	display: flex; align-items: center; gap: 8px;
	background: #fdecea; color: #c0392b; padding: 12px 14px;
	border-radius: 4px; margin-bottom: 18px; font-size: 14px; font-weight: 600;
}
.rst-contact-form { display: flex; flex-direction: column; gap: 16px; }
.rst-field { display: flex; flex-direction: column; gap: 6px; }
.rst-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .rst-field-row { grid-template-columns: 1fr; } }
.rst-contact-form label { font-weight: 600; font-size: 13px; color: var(--rst-text); }
.rst-required { color: var(--rst-accent-2); }
.rst-contact-form input,
.rst-contact-form select {
	width: 100%; height: 40px; padding: 0 12px; border-radius: 4px;
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 45%, transparent);
	background: var(--rst-bg); color: var(--rst-text); font-family: var(--rst-font-body); font-size: 14px;
}
.rst-contact-form textarea {
	width: 100%; padding: 10px 12px; border-radius: 4px;
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 45%, transparent);
	background: var(--rst-bg); color: var(--rst-text); font-family: var(--rst-font-body); font-size: 14px; resize: vertical;
}
.rst-contact-form input:focus,
.rst-contact-form select:focus,
.rst-contact-form textarea:focus {
	outline: none; border-color: var(--rst-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rst-accent) 25%, transparent);
}
.rst-contact-form select:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Calendario de reservas (fecha y hora) ---------- */
.rst-reserva-fields { display: flex; flex-direction: column; gap: 16px; }
.rst-reserva-fields [hidden] { display: none !important; }
.rst-contact-form .rst-label { font-weight: 600; font-size: 13px; color: var(--rst-text); }

.rst-cal {
	max-width: 360px; padding: 12px; background: var(--rst-bg); border-radius: var(--rst-radius);
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 35%, transparent);
}
.rst-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rst-cal-title { font-family: var(--rst-font-display); font-size: 15px; text-transform: capitalize; color: var(--rst-text); }
.rst-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rst-cal-dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--rst-text-2); padding: 2px 0 4px; }

/* Los botones llevan selector doble para ganarle a los estilos de botón del tema de WordPress. */
.rst-contact-form .rst-cal button,
.rst-contact-form .rst-hours button {
	appearance: none; -webkit-appearance: none; margin: 0; padding: 0; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: 0;
	font-family: var(--rst-font-body); line-height: 1; color: var(--rst-text); cursor: pointer;
	border: 1px solid transparent; background: transparent; border-radius: calc(var(--rst-radius) - 2px);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rst-contact-form .rst-cal button:focus-visible,
.rst-contact-form .rst-hours button:focus-visible { outline: 2px solid var(--rst-accent); outline-offset: 2px; }

.rst-contact-form .rst-cal .rst-cal-nav { width: 34px; height: 34px; font-size: 14px; border-color: color-mix(in srgb, var(--rst-text-2) 35%, transparent); }
.rst-contact-form .rst-cal .rst-cal-nav:hover:not(:disabled) { border-color: var(--rst-accent); color: var(--rst-accent); }
.rst-contact-form .rst-cal .rst-cal-nav:disabled { opacity: 0.35; cursor: default; }

.rst-contact-form .rst-cal .rst-cal-day { height: 38px; font-size: 14px; font-weight: 400; color: color-mix(in srgb, var(--rst-text-2) 60%, transparent); cursor: default; }
.rst-contact-form .rst-cal .rst-cal-day.is-open {
	font-weight: 700; color: var(--rst-text); cursor: pointer;
	background: color-mix(in srgb, var(--rst-accent) 12%, transparent);
}
.rst-contact-form .rst-cal .rst-cal-day.is-open:hover { border-color: var(--rst-accent); }
.rst-contact-form .rst-cal .rst-cal-day.is-full { text-decoration: line-through; }
.rst-contact-form .rst-cal .rst-cal-day.is-selected,
.rst-contact-form .rst-cal .rst-cal-day.is-selected:hover { background: var(--rst-accent); border-color: var(--rst-accent); color: var(--rst-surface); }
.rst-cal-note { margin: 0; font-size: 12px; color: var(--rst-text-2); }

.rst-hours-date { margin: 0; font-size: 13px; color: var(--rst-text-2); }
.rst-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.rst-contact-form .rst-hours .rst-hour {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 42px; padding: 8px 6px;
	font-size: 14px; font-weight: 600; background: var(--rst-bg); border-color: color-mix(in srgb, var(--rst-text-2) 45%, transparent);
}
.rst-contact-form .rst-hours .rst-hour:hover:not(:disabled) { border-color: var(--rst-accent); }
.rst-contact-form .rst-hours .rst-hour.is-selected,
.rst-contact-form .rst-hours .rst-hour.is-selected:hover { background: var(--rst-accent); border-color: var(--rst-accent); color: var(--rst-surface); }
.rst-contact-form .rst-hours .rst-hour.is-busy {
	cursor: not-allowed; font-weight: 400; border-style: dashed;
	color: color-mix(in srgb, var(--rst-text-2) 75%, transparent); background: transparent;
}
.rst-hour.is-busy .rst-hour-time { text-decoration: line-through; }
.rst-hour small { display: block; font-size: 11px; font-weight: 600; }

.rst-reserva-summary {
	margin: 0; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--rst-text);
	background: color-mix(in srgb, var(--rst-accent) 10%, transparent); border-radius: var(--rst-radius);
}
.rst-reserva-msg { margin: 0; padding: 10px 12px; font-size: 14px; font-weight: 600; color: #c0392b; background: #fdecea; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
	.rst-contact-form .rst-cal button, .rst-contact-form .rst-hours button { transition: none; }
}
.rst-form-note { display: flex; align-items: flex-start; gap: 8px; color: var(--rst-text-2); font-size: 12px; line-height: 1.5; margin: 0; }

.rst-btn-whatsapp {
	background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.rst-btn-whatsapp:hover { background: #1ebe5a; opacity: 1; color: #fff; }
.rst-btn-icon { font-size: 18px; line-height: 1; }

/* ---------- Tarjeta del anfitrión asignado ("quién te va a atender") ---------- */
.rst-host-card {
	display: flex; align-items: center; gap: 12px; background: var(--rst-surface);
	border: 1px solid color-mix(in srgb, var(--rst-text-2) 20%, transparent);
	border-radius: var(--rst-radius); padding: 12px 14px; margin-bottom: 14px;
}
.rst-host-avatar { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--rst-text-2) 15%, transparent); display: flex; align-items: center; justify-content: center; }
.rst-host-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rst-host-avatar-fallback { font-size: 22px; }
.rst-host-info { display: flex; flex-direction: column; min-width: 0; }
.rst-host-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--rst-text-2); }
.rst-host-name { font-weight: 700; font-size: 15px; color: var(--rst-text); }
.rst-host-cargo { font-size: 12px; color: var(--rst-text-2); }

.rst-space-host {
	display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rst-text-2); margin: 0 0 10px;
}
.rst-space-host-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

.rst-form-success { text-align: center; padding: 10px 0; }
.rst-form-success h3 { margin: 0 0 10px; }
.rst-form-success p { color: var(--rst-text-2); line-height: 1.5; }
.rst-success-icon {
	width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
	background: #25D366; color: #fff; font-size: 26px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}

/* ---------- Favoritos ---------- */
.rst-favorites-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.rst-favorites-wrap > p {
	text-align: center; color: var(--rst-text-2); background: var(--rst-surface); border-radius: var(--rst-radius);
	padding: 40px 20px; max-width: 380px; margin: 40px auto;
}

/* ---------- Lightbox con navegación ---------- */
.rst-lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.rst-lightbox-overlay img { max-width: 90%; max-height: 90%; }
.rst-lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 30px; background: none; border: none; cursor: pointer; }
.rst-lightbox-prev, .rst-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; border: none; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
.rst-lightbox-prev:hover, .rst-lightbox-next:hover { background: rgba(255,255,255,0.3); }
.rst-lightbox-prev { left: 12px; }
.rst-lightbox-next { right: 12px; }
.rst-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,0.45); padding: 4px 14px; border-radius: 999px; }
@media (max-width: 600px) {
	.rst-lightbox-prev, .rst-lightbox-next { width: 38px; height: 38px; font-size: 16px; }
	.rst-lightbox-prev { left: 6px; }
	.rst-lightbox-next { right: 6px; }
}

/* ---------- Botón flotante de WhatsApp (ficha de la mesa o lugar) ---------- */
.rst-whatsapp-float {
	position: fixed; bottom: 20px; right: 20px; z-index: 9999;
	background: #25D366; color: #fff; border-radius: 50%; width: 56px; height: 56px;
	display: flex; align-items: center; justify-content: center; font-size: 26px; text-decoration: none;
	box-shadow: 0 6px 18px rgba(0,0,0,0.25); transition: transform 0.15s ease;
}
.rst-whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@media (min-width: 901px) {
	/* En escritorio, dentro de la ficha ya hay un botón grande visible; el flotante solo aparece en móvil. */
	.rst-whatsapp-float { display: none; }
}

/* ---------- Consumo mínimo: etiqueta pequeña antes del importe ---------- */
.rst-price-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rst-text-2); margin-bottom: 1px; }
.rst-space-price.is-free, .rst-single-price.is-free { font-size: 14px; font-weight: 600; color: var(--rst-text-2); }
.rst-space-price.is-free .rst-price-label, .rst-single-price.is-free .rst-price-label { display: none; }

/* ---------- Aviso cuando el lugar no admite reservas por ahora ---------- */
.rst-unavailable-note { background: var(--rst-surface); border-radius: var(--rst-radius); padding: 18px 20px; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.rst-unavailable-note strong { display: block; margin-bottom: 4px; }

/* ---------- Datos del restaurante (cómo llegar y horario) ---------- */
.rst-venue-info { display: grid; gap: 8px; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.rst-venue-info p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
