/* ETAPA 07 — Dónde hospedarte
   Carrusel editorial de hoteles, basado en la referencia aprobada.
   Todos los estilos están limitados a .lodging y .hotel-carousel. */

.lodging {
  --hotel-ivory: #FFFCF9;
  --hotel-sage: #9CAF88;
  --hotel-ink: #262322;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(62px, 10vw, 92px) 18px clamp(90px, 14vw, 125px);
  overflow: hidden;
  background: var(--hotel-ivory);
  color: var(--hotel-ink);
  box-shadow: 0 14px 35px rgba(70,54,48,.04);
  text-align: center;
}
.lodging__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  margin: 0 auto;
}
.lodging__sprig {
  display: block;
  width: 72px;
  height: 30px;
  margin: 0 auto 10px;
  pointer-events: none;
  overflow: visible;
}
.lodging__sprig path {
  fill: none;
  stroke: #809872;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.lodging__sprig ellipse { fill: #9CAF88; }
.lodging__title {
  margin: 0 0 12px;
  font: italic 500 clamp(42px, 9.6vw, 63px)/1.08 var(--font-serif,Georgia,serif);
  letter-spacing: -.03em;
}
.lodging__intro {
  width: min(100%, 390px);
  margin: 0 auto clamp(22px, 6vw, 30px);
  padding: 0 2px;
  color: #393633;
  font: 400 clamp(12px, 2.9vw, 14px)/1.85 var(--font-sans,Arial,sans-serif);
  text-wrap: pretty;
}
.lodging__floral {
  position: absolute;
  z-index: 0;
  width: clamp(126px, 27vw, 186px);
  right: -58px;
  bottom: -47px;
  transform: scaleX(-1) rotate(-5deg);
  opacity: .83;
  pointer-events: none;
}

/* Carrusel: exactamente una tarjeta visible, sin espacios entre diapositivas. */
.hotel-carousel {
  position: relative;
  width: min(100% - 24px, 520px);
  margin: 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.hotel-carousel__viewport {
  overflow: hidden;
  border: 1px solid #E3DBD3;
  border-radius: 16px;
  background: #FFFCFA;
  box-shadow: 0 4px 12px rgba(54,43,34,.095), 0 12px 22px rgba(54,43,34,.035);
  touch-action: pan-y;
}
.hotel-carousel__track {
  display: flex;
  gap: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  will-change: transform;
  transition: transform .65s cubic-bezier(.24,.72,.22,1);
}
.hotel-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.hotel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFCFA;
}
.hotel-card__media {
  position: relative;
  width: 100%;
  height: clamp(150px, 49vw, 255px);
  overflow: hidden;
  background: linear-gradient(145deg,#E8E8DE,#D9E1D3 50%,#F0E8DE);
}
.hotel-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hotel-card__illustration {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8E9E84;
}
.hotel-card__illustration svg {
  width: min(65%, 260px);
  height: 78%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: .8;
}
.hotel-card__illustration--two {
  background: linear-gradient(135deg, #E7E1D5, #EEF0E8);
  color: #B1A38F;
}
.hotel-card__illustration--three {
  background: linear-gradient(135deg, #ECE2E1, #E8EEE7);
  color: #A3B3A2;
}
.hotel-card__placeholder-label {
  position: absolute;
  bottom: 11px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 10px;
  color: #66685E;
  font: 600 9px/1.5 var(--font-sans,Arial,sans-serif);
  letter-spacing: .19em;
  text-transform: uppercase;
  text-align: center;
}
.hotel-card__body {
  flex: 1;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13px 17px 18px;
}
.hotel-card__name {
  margin: 0 auto 7px;
  font: italic 500 clamp(29px, 7vw, 38px)/1.1 var(--font-serif,Georgia,serif);
  text-wrap: balance;
}
.hotel-card__detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 5px;
  color: #4B4945;
  font: 400 12px/1.4 var(--font-sans,Arial,sans-serif);
}
.hotel-card__detail svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #6D9062;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hotel-card__booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 65%;
  min-height: 37px;
  max-width: 100%;
  margin-top: auto;
  padding: 8px 15px;
  border: 1.5px solid #799768;
  border-radius: 12px;
  background: #FFFCFA;
  color: #62834F;
  cursor: pointer;
  font: 600 10px/1.4 var(--font-sans,Arial,sans-serif);
  letter-spacing: .20em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.hotel-card__booking:hover { background: #EDF3E8; transform: translateY(-1px); }
.hotel-card__booking svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.hotel-carousel__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 50%;
  background: rgba(255,255,255,.97);
  color: #242322;
  box-shadow: 0 3px 10px rgba(46,39,33,.16);
  transform: translateY(-50%);
  cursor: pointer;
}
.hotel-carousel__arrow--previous { left: -19px; }
.hotel-carousel__arrow--next { right: -19px; }
.hotel-carousel__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hotel-carousel__arrow:hover { background: white; }
.hotel-carousel__arrow:focus-visible,
.hotel-card__booking:focus-visible { outline: 3px solid #527043; outline-offset: 3px; }
.hotel-carousel__pagination {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 17px auto 0;
}
.hotel-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #DFDCD6;
  cursor: pointer;
}
.hotel-carousel__dot[aria-current="true"] { background: #879E78; }
.hotel-carousel__status {
  margin: 12px auto 0;
  color: #7B756F;
  font: 400 11px/1.5 var(--font-sans,Arial,sans-serif);
}
.hotel-dialog {
  width: min(calc(100% - 36px), 450px);
  max-height: calc(100dvh - 42px);
  padding: 0;
  margin: auto;
  border: 1px solid #E7DDD6;
  border-radius: 18px;
  background: #FFFCF9;
  color: #2A2825;
  text-align: center;
  box-shadow: 0 18px 50px rgba(32,26,20,.22);
}
.hotel-dialog::backdrop { background: rgba(32,28,24,.5); }
.hotel-dialog__content { padding: 32px 24px 29px; }
.hotel-dialog__icon { width: 30px; height: 30px; stroke: #89A079; fill: none; stroke-width: 1.5; margin-bottom: 11px; }
.hotel-dialog__heading { margin: 0 0 10px; font: italic 500 35px/1.15 var(--font-serif,Georgia,serif); }
.hotel-dialog__message { margin: 0 0 23px; font: 400 13px/1.8 var(--font-sans,Arial,sans-serif); color: #59544F; }
.hotel-dialog__close { min-height: 40px; padding: 9px 28px; border: 0; border-radius: 10px; background: #9CAF88; color: white; font: 600 11px var(--font-sans,Arial,sans-serif); cursor: pointer; }
@media (min-width:700px) {
  .lodging { padding-top: 88px; }
  .hotel-card__media { height: 260px; }
  .hotel-card__body { padding-bottom: 24px; }
}
@media (max-width:359px) {
  .lodging { padding-left: 12px; padding-right: 12px; }
  .lodging__title { font-size: 37px; }
  .hotel-carousel { width: calc(100% - 17px); }
  .hotel-carousel__arrow { width: 36px; height: 36px; }
  .hotel-carousel__arrow--previous { left: -13px; }
  .hotel-carousel__arrow--next { right: -13px; }
  .hotel-card__body { padding: 12px 10px 16px; }
  .hotel-card__name { font-size: 29px; }
}
@media (prefers-reduced-motion:reduce) {
  .hotel-carousel__track, .hotel-card__booking { transition: none !important; }
}
/* Indicadores compactos generados desde data/hoteles.json. */
.hotel-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 7px auto 12px;
}
.hotel-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(156,175,136,.42);
  border-radius: 999px;
  background: rgba(156,175,136,.10);
  color: #53654a;
  font: 500 10px/1.3 var(--font-sans,Arial,sans-serif);
  white-space: nowrap;
}
.hotel-card__tag svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hotel-carousel__empty {
  padding: 70px 22px;
  margin: 0;
  color: #655f58;
  font: italic 500 24px/1.4 var(--font-serif,Georgia,serif);
}
.hotel-carousel__arrow[hidden], .hotel-carousel__pagination[hidden] { display: none; }
@media (max-width: 359px) {
  .hotel-card__tags { gap: 5px; }
  .hotel-card__tag { font-size: 9px; padding: 5px 7px; }
}

/* Enlace de ubicación: botón discreto y coherente con el estilo editorial. */
.hotel-card__maps-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  margin: 7px auto 12px;
  padding: 9px 15px;
  border: 1px solid #9CAF88;
  border-radius: 999px;
  background: #F6F8F3;
  color: #536F47;
  font: 600 11px/1.4 var(--font-sans,Arial,sans-serif);
  letter-spacing: .035em;
  text-decoration: none;
  transition: background .2s ease;
}
.hotel-card__maps-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.hotel-card__maps-link:hover { background: #EAF1E5; }
.hotel-card__maps-link:focus-visible { outline: 3px solid #527043; outline-offset: 3px; }

/* Acciones del hotel: mapas y llamada visibles en móviles. */
.hotel-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 13px auto 0;
}
.hotel-card__actions .hotel-card__maps-link,
.hotel-card__actions .hotel-card__booking {
  width: min(100%, 280px);
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
}
.hotel-card__actions .hotel-card__call-link {
  letter-spacing: .08em;
  text-transform: none;
  font-size: 12px;
}

/* Dos acciones compactas en una sola fila. */
.hotel-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  width: min(100%, 440px);
  margin: 13px auto 0;
}
.hotel-card__actions .hotel-card__maps-link,
.hotel-card__actions .hotel-card__booking {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 7px;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
}
.hotel-card__actions .hotel-card__call-link {
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}
@media(max-width: 359px) {
  .hotel-card__actions { gap: 6px; }
  .hotel-card__actions .hotel-card__maps-link,
  .hotel-card__actions .hotel-card__booking { font-size: 10px; padding-inline: 5px; }
}
