/* Room search — alineado al kit de estilos Elementor (kit 16746) */

.wsh-room-search,
.wsh-room-results {
  --wsh-primary: var(--e-global-color-primary, #101010);
  --wsh-secondary: var(--e-global-color-secondary, #54595F);
  --wsh-text: var(--e-global-color-text, #7A7A7A);
  --wsh-accent: var(--e-global-color-accent, #F8D31A);
  --wsh-white: var(--e-global-color-3b892d2, #FFFFFF);
  --wsh-font: var(--e-global-typography-text-font-family, "Roboto"), Sans-serif;
  --wsh-font-heading: var(--e-global-typography-secondary-font-family, "Roboto Slab"), Sans-serif;
  --wsh-font-ui: var(--e-global-typography-primary-font-family, "Roboto"), Sans-serif;
  --wsh-radius: 0;
  color: var(--wsh-primary);
  font-family: var(--wsh-font);
  font-weight: var(--e-global-typography-text-font-weight, 400);
}

/* —— Formulario —— */
.wsh-room-search {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.wsh-room-search__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
}

.wsh-room-search__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.wsh-room-search__label {
  font-family: var(--wsh-font-ui);
  font-size: 12px;
  font-weight: var(--e-global-typography-primary-font-weight, 600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wsh-secondary);
}

.wsh-room-search__input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(16, 16, 16, 0.18);
  border-radius: var(--wsh-radius);
  background: var(--wsh-white);
  color: var(--wsh-primary);
  padding: 0.65rem 0.85rem;
  font-family: var(--wsh-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.wsh-room-search__input:hover {
  border-color: rgba(16, 16, 16, 0.35);
}

.wsh-room-search__input:focus {
  outline: none;
  border-color: var(--wsh-primary);
  box-shadow: 0 0 0 1px var(--wsh-primary);
}

.wsh-room-search select.wsh-room-search__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23101010' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 10px;
  padding-right: 2.2rem;
}

.wsh-room-search__actions {
  display: flex;
}

.wsh-room-search__button,
.wsh-room-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: var(--wsh-radius);
  background: var(--wsh-accent);
  color: var(--wsh-primary) !important;
  font-family: var(--wsh-font-ui);
  font-size: 14px;
  font-weight: var(--e-global-typography-primary-font-weight, 600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wsh-room-search__button {
  width: 100%;
}

.wsh-room-search__button:hover,
.wsh-room-card__cta:hover {
  filter: brightness(0.96);
  background: var(--wsh-primary);
  color: var(--wsh-accent) !important;
}

.wsh-room-search__button:focus-visible,
.wsh-room-card__cta:focus-visible {
  outline: 2px solid var(--wsh-primary);
  outline-offset: 2px;
}

/* —— Resultados —— */
.wsh-room-results {
  display: grid;
  gap: 2rem;
}

.wsh-room-results__header {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(16, 16, 16, 0.1);
}

.wsh-room-results__title {
  margin: 0;
  font-family: var(--wsh-font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: var(--e-global-typography-secondary-font-weight, 400);
  line-height: 1.25;
  color: var(--wsh-primary);
}

.wsh-room-results__meta {
  margin: 0;
  color: var(--wsh-text);
  font-size: 14px;
}

.wsh-room-results__notice {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(16, 16, 16, 0.12);
  background: var(--wsh-white);
  color: var(--wsh-secondary);
  font-size: 15px;
}

.wsh-room-results__notice ul {
  margin: 0;
  padding-left: 1.1rem;
}

.wsh-room-results__notice--error {
  border-color: rgba(16, 16, 16, 0.2);
  color: var(--wsh-primary);
}

.wsh-room-results__notice--empty {
  background: rgba(248, 211, 26, 0.12);
  border-color: rgba(248, 211, 26, 0.45);
  color: var(--wsh-primary);
}

.wsh-room-results__grid {
  display: grid;
  grid-template-columns: repeat(var(--wsh-room-cols, 2), minmax(0, 1fr));
  gap: 1.5rem;
}

/* —— Tarjetas —— */
.wsh-room-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--wsh-white);
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.wsh-room-card:hover {
  border-color: rgba(16, 16, 16, 0.28);
  transform: none;
  box-shadow: none;
}

.wsh-room-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ececec;
}

.wsh-room-card__image,
.wsh-room-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wsh-room-card__placeholder {
  background: linear-gradient(135deg, #ececec, #d8d8d8);
}

.wsh-room-card__body {
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem 1.3rem;
  align-content: start;
}

.wsh-room-card__title {
  margin: 0;
  font-family: var(--wsh-font-heading);
  font-size: 1.35rem;
  font-weight: var(--e-global-typography-secondary-font-weight, 400);
  line-height: 1.25;
  color: var(--wsh-primary);
}

.wsh-room-card__title a {
  color: inherit;
  text-decoration: none;
}

.wsh-room-card__title a:hover {
  color: var(--wsh-secondary);
}

.wsh-room-card__capacity,
.wsh-room-card__excerpt {
  margin: 0;
  color: var(--wsh-text);
  font-size: 14px;
  line-height: 1.5;
}

.wsh-room-card__price {
  font-family: var(--wsh-font-ui);
  font-weight: var(--e-global-typography-primary-font-weight, 600);
  color: var(--wsh-primary);
  font-size: 15px;
}

.wsh-room-card__cta {
  justify-self: start;
  margin-top: 0.55rem;
  min-height: 42px;
  padding: 0.65rem 1.2rem;
}

@media (max-width: 900px) {
  .wsh-room-search__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wsh-room-search__actions {
    grid-column: 1 / -1;
  }

  .wsh-room-results__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wsh-room-search__fields {
    grid-template-columns: 1fr;
  }
}
