/* =========================================================
   BLOC 1 · HABITACIONS (cards + títol)
========================================================= */

/* Títol subratllat ajustat al text (habitacions) */
.highlighted-title-top {
  display: inline-block;
  background: linear-gradient(to bottom, #F8E1E9 0%, #F8E1E9 100%);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 45px;
  padding-bottom: 3px;
  margin-bottom: 2rem;
}

/* Versió mòbil del H1 (hero benvinguda) */
.h1-mobile {
  display: none;
}

/* Secció de rooms simple */
.section--rooms-simple {
  background: var(--color-offwhite);
  padding-top: 8rem;
  padding-bottom: 6rem;
}

/* Grid d'habitacions */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
}

/* Tarjeta d'habitació */
.room-card {
  position: relative;
  display: inline-block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease;
  background: #fff;
  max-width: 340px;
}

.room-card:hover {
  transform: translateY(-4px);
}

/* Imatge */
.room-card__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}

/* Label superior */
.room-card__label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary, #f5a8b8);
  color: #FF4B2A;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: clamp(.75rem, 1vw, .9rem);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 2;
}

/* Botó inferior */
.room-card__btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--color-primary, #f5a8b8);
  color: #FF4B2A;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.25s ease, transform 0.25s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.room-card__btn:hover {
  background: #ec91a5;
  transform: translateY(-2px);
}

/* ---------- Responsive rooms (tablets) ---------- */

@media (max-width: 992px) {
  .rooms-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .room-card {
    max-width: 300px;
  }

  .room-card__label {
    top: 10px;
    left: 10px;
    font-size: .8rem;
  }

  .room-card__btn {
    bottom: 10px;
    right: 10px;
    font-size: .8rem;
    padding: 7px 12px;
  }
}


/* =========================================
   BLOC 2 · Experiència BCN (cards amb foto)
========================================= */

.section--experience {
  background: var(--color-offwhite);
}

/* Títol subratllat ample */
.highlighted-title {
  background: linear-gradient(to bottom, #F8E1E9 0%, #F8E1E9 100%);
  background-position: left;
  background-size: 90% 45px;
  background-repeat: no-repeat;
  padding-bottom: 3px;
  margin-bottom: 2rem;
}

/* Grid centrada */
.features-hero {
  width: min(1180px, 96%);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Tarjeta amb foto de fons */
.feature-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  isolation: isolate;
  transform: translateZ(0);
}

/* Overlay fosc */
.feature-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.65) 100%);
  z-index: 1;
}

/* Contingut centrat */
.feature-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  color: #fff;
  gap: .35rem;
}

/* Icona gran (font-icon) */
.feature-card__content i {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: .25rem;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

/* Títol */
.feature-card__content h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  margin: 0.3rem 0 0.25rem;
  color: #fff;
}

/* Icona SVG/PNG */
.feature-card__icon {
  width: 88px;
  height: 88px;
  margin: 0.5rem auto 0.8rem;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.1);
  filter: brightness(1.2) invert(1);
}

/* Text */
.feature-card__content p {
  max-width: 32ch;
  color: #f3f4f6;
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
  margin: 0 auto;
}

/* Zoom lleuger al hover */
.feature-card::before {
  content:"";
  position:absolute;
  inset:0;
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  transform: scale(1);
  transition: transform .4s ease;
  z-index: 0;
}

.feature-card:hover::before {
  transform: scale(1.05);
}

/* ---------- Responsive experiència ---------- */

@media (max-width: 1100px) {
 .section--experience {
    padding: 2rem 0 2.25rem;
  }

  .section--experience .section__header {
    margin-bottom: 1rem !important;
  }

  .section--experience .features-hero {
    margin-top: 0.5rem !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .section--experience .feature-card {
    min-height: 0;
    background: none !important;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    justify-content: center;   /* centra el contenido dentro de la tarjeta */
  }

  /* TODAS las tarjetas con la MISMA altura y contenido centrado */
  .section--experience .feature-card__content {
    position: static;
    height: 120px;                 /* altura exacta */
    display: flex;
    flex-direction: column;
    justify-content: center;       /* centro vertical */
    align-items: center;           /* centro horizontal */
    text-align: center;
    padding: 0.75rem 0.5rem;
    gap: 0.35rem;
    color: var(--text-main);
    background: rgba(248, 225, 233, 0.65);
    border-radius: 12px;
    backdrop-filter: blur(4px);
  }

  .section--experience .feature-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.35rem;
    filter: none;
  }

  .section--experience .feature-card__content h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
  }

  .section--experience .feature-card__content p {
    display: none;
  }

   /* Tarjeta más baja, icono y texto centrados */
  .section--experience .feature-card__content {
    height: 140px;                  /* ← Ajusta altura aquí */
    padding: 0 .5rem !important;    /* sin padding vertical */
    display: flex !important;
    flex-direction: column;
    justify-content: center;        /* centrar vertical */
    align-items: center;            /* centrar horizontal */
    gap: 0.25rem;                   /* espacio justo */
    text-align: center;
  }

  /* Icono centrado, tamaño proporcional */
  .section--experience .feature-card__icon {
    width: 34px;   /* reducidos para que encaje mejor */
    height: 34px;
    margin: 0;     /* nada de margen inferior ni superior */
  }

  /* Texto centrado */
  .section--experience .feature-card__content h3 {
    font-size: 0.85rem;
    margin: 0;
  }
}


/* =========================================
   BLOC 3 · Serveis destacats
========================================= */

.section--features {
  background: var(--color-offwhite);
  padding: 5rem;
  margin-bottom: 5rem;
}

/* Contenidor general */
.container.features {
  border: 3px solid #FF4B2A;
  border-radius: 22px;
  padding: 2.5rem;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Títol subratllat curt */
.highlighted-title-3 {
  background: linear-gradient(to bottom, #F8E1E9 0%, #F8E1E9 100%);
  background-position: left;
  background-size: 27.5% 50px;
  background-repeat: no-repeat;
  padding-bottom: 3px;
}

.features__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Galeria amb fade */
.features__gallery {
  position: relative;
  min-height: clamp(260px, 38vh, 520px);
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.feature-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px) scale(1.01);
  transition: opacity .38s ease, transform .38s ease;
  will-change: opacity, transform;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.feature-image.is-visible {
  opacity: 1;
  transform: none;
}

/* Llista 3x2 */
.features__rail {
  display: grid;
  gap: 1rem;
}

.features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

/* Pestanyes */
.feature-tab {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--color-primary);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .06s ease;
  outline: none;
}

.feature-tab:active {
  transform: translateY(1px);
}

.feature-tab:is(:hover,:focus-visible) {
  background: color-mix(in srgb, var(--color-primary) 50%, white);
  border-color: color-mix(in srgb, var(--color-tertiary) 28%, var(--border));
}

.feature-tab.is-active {
  background: #FF4B2A;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(255, 75, 42, 0.25);
  color: #fff;
}

.feature-tab.is-active .feature-tab__title {
  color: #fff;
}

.feature-tab.is-active .feature-tab__icon img {
  filter: brightness(0) invert(1);
}

.feature-tab__title {
  font-weight: 800;
  color: #2a2a2e;
}

.feature-tab__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.feature-tab__icon img {
  width: 32px;
  height: 32px;
}

/* Descripció */
.feature__desc {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.feature__desc-title {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  margin: 0 0 .35rem;
}

.feature__desc-text {
  color: var(--text-muted);
}

/* Responsive serveis */
@media (max-width: 1000px) {
  .features__inner {
    grid-template-columns: 1fr;
  }

  .features__gallery {
    min-height: 320px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .features__list {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ===========================
   SECCIÓ "ON SOM"
=========================== */

.section--location {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  min-height: 420px;
  background: url("../images/barcelona-sky.webp") center 35% / cover no-repeat !important;
  color: var(--text-on-dark);
  text-align: center;
  overflow: hidden;
  margin-top: 8rem;
  margin-bottom: 5rem;
}

.container.location__content {
  padding-top: 36px;
  padding-bottom: 36px;
}

/* Suavitzar la foto */
.section--location::before {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.18));
  pointer-events:none;
}

/* Sense segon fons */
.section--location .location__bg {
  display:none !important;
}

/* Targeta central */
.section--location .location__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 3.5rem);
  background: rgba(248, 225, 233, 0.9);
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* Textos */
.section--location .section__header h1 {
  color: var(--text-main);
  margin-bottom: 1rem;
}

.location__intro {
  color: var(--text-main);
  max-width: 760px;
  margin: 0 auto 1.4rem;
  line-height: 1.6;
}

/* Pills de distància */
.location__highlights {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1rem 2.5rem;
  max-width: 900px;
  margin: 0 auto 1.1rem;
}

.location__highlights li {
  padding: .6rem .9rem;
  font-size: 1rem;
  line-height: 1.3;
  background: #fff;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.location__highlights .icon {
  font-size: 1rem;
  color: var(--color-tertiary);
}

/* Mapa */
.location__map {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}

.location__map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  filter: grayscale(8%) contrast(1.05);
}

.location__map iframe:hover {
  filter: grayscale(0%) contrast(1.12);
}

/* Responsive "On som" (desktop parallax) */
@media (min-width: 1000px) {
  .section--location {
    background-attachment: fixed;
  }
}

@media (max-width: 900px) {
  .section--location {
    min-height: 0;
  }

  .section--location .location__content {
    padding: 1.6rem 1rem 2.4rem;
  }

  .location__map iframe {
    height: 300px;
  }
}


/* =========================================
   BLOC DE VALORACIONS (Reviews)
========================================= */

.section--reviews {
  background: var(--color-offwhite);
  padding-bottom: 8rem;
  text-align: center;
}

/* Títol alineat a l'esquerra */
.section--reviews .section__header {
  margin-bottom: var(--space-5);
  text-align: left;
}

/* Títol de reviews (subratllat ajustat al text) */
.highlighted-title-5 {
  display: inline-block;
  background: linear-gradient(to bottom, #F8E1E9 0%, #F8E1E9 100%);
  background-position: left bottom;
  background-size: 100% 42px;
  background-repeat: no-repeat;
  padding-bottom: 4px;
  margin-bottom: 2rem;
}

/* --- 1. Puntuacions globals --- */

.review-scores {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.review-score {
  display: grid;
  align-items: center;
  justify-items: center;
  background: var(--color-white);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  padding: 1.2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.review-score:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.review-score__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: -0.2rem;
}

.review-score__value {
  font-size: var(--fs-800);
  font-weight: 800;
  line-height: 1;
  color: var(--color-tertiary);
}

.review-score__label {
  font-size: var(--fs-300);
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.1rem;
}

/* --- 2. Comentaris --- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.review {
  position: relative;
  padding: 1.5rem;
  background: var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}

.review:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.review__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  border-bottom: 2px solid rgba(255, 75, 42, 0.15);
  padding-bottom: .5rem;
}

.review__author {
  font-size: var(--fs-400);
  font-weight: 800;
  color: var(--color-tertiary);
}

.review__score {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 800;
  color: var(--color-tertiary);
  line-height: 1;
}

.review__text {
  padding-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--text-main);
  margin-top: 0;
}

.review__platform-icon-corner {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: .7;
  transition: opacity .2s ease;
}

.review__platform-icon-corner:hover {
  opacity: 1;
}

/* Responsive reviews + simplificació en mòbil */
@media (max-width: 640px) {
  /* Ocultar comentaris individuals en mòbil */
  .section--reviews .reviews {
    display: none !important;
  }

  /* Una sola columna de cercles, centrada */
  .review-scores {
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    margin-bottom: 3rem;
  }

  .review-score {
    width: 120px;
    height: 120px;
  }

  .review-score__value {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}


/* =========================================================
   BREAKPOINT MÒBIL GLOBAL (home)
========================================================= */

@media (max-width: 640px) {

  /* Espai entre seccions més contingut */
  .section {
    padding: 2.25rem 0;
  }

  /* HABITACIONS: grid 1 col i elements més grans */
  .section--rooms-simple .section__header {
    margin-top: 0 !important;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .room-card {
    max-width: 95%;
  }

  .room-card__label {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
  }

  .room-card__btn {
    font-size: 1.25rem;
    padding: 12px 26px;
    border-radius: 999px;
    margin-top: 14px;
  }

  /* EXPERIÈNCIA BCN: estructura general (la que ya tenías) */
  .section--experience {
    padding: 2rem 0 2.25rem;
  }

  .section--experience .section__header {
    margin-bottom: 1rem !important;
  }

  .section--experience .features-hero {
    margin-top: 0.5rem !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .section--experience .feature-card {
    min-height: auto;
    background: none !important;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .section--experience .feature-card::before,
  .section--experience .feature-card__overlay {
    display: none !important;
  }

  /* 🔹 FICHA ROSA: todas mismo tamaño */
  .section--experience .feature-card__content {
    height: 130px;                  /* misma altura para todas */
    width: 100%;
    padding: 0.5rem 0.6rem;
    background: rgba(248, 225, 233, 0.9);
    border-radius: 12px;
    text-align: center;
    color: var(--text-main);

    display: flex;                   /* centramos icono + texto */
    flex-direction: column;
    justify-content: center;         /* centro vertical del bloque */
    align-items: center;             /* centro horizontal */
    gap: 0.3rem;
  }

  /* 🔹 TÍTULO: algo más arriba, sin mover el icono */
  .section--experience .feature-card__content h3 {
    position: absolute;
    top: 16px;                       /* distancia al borde superior */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    max-width: 5.5rem;              /* controla cuándo salta a 2 líneas */
    line-height: 1.15;
    color: var(--text-main);
  }

  /* 🔹 ICONO: exactamente en el centro de la ficha */
  .section--experience .feature-card__icon {
    width: 34px;
    height: 34px;
    margin: 0;                       /* sin margen raro */
    filter: none;
    padding-top: 21px;
  }

  /* Ocultamos el párrafo en móvil */
  .section--experience .feature-card__content p {
    display: none;
  }

  /* Resto de cosas de la media query que ya tenías... */
  .h1-desktop {
    display: none;
  }
  .h1-mobile {
    display: inline-block;
  }

  .highlighted-title {
    display: inline-block;
    background-size: 100% 40px;
    padding-bottom: 3px;
  }

  /* SECCIÓ "ON SOM" simplificada en mòbil */

  .section--location {
    padding-top: 1.2rem !important;
    padding-bottom: 2rem;
    margin-top: 1.5rem !important;
    margin-bottom: 3rem;
    background: none !important;
  }

  .section--location::before {
    display: none !important;
  }

  .section--location .section__header {
    text-align: left !important;
    margin-left: 1rem;
  }

  /* Títol "On som?" amb subratllat rosa en mòbil */
  #where-title {
    display: inline-block;
    background: linear-gradient(to bottom, #F8E1E9 0%, #F8E1E9 100%);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 40px;
    padding-bottom: 4px;
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .section--location .location__content {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .section--location .location__intro {
    display: block !important;
    margin: 0 auto 1.2rem auto;
    text-align: center;
    color: var(--text-main);
    max-width: 90%;
  }

  .section--location .location__highlights {
    display: none !important;
  }

  .section--location .location__map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
  }

  .section--location .location__map iframe {
    width: 100%;
    height: 300px;
    border: 0;
  }

  .open-maps-btn {
    text-align: center;
    margin-top: .8rem;
  }

  .open-maps-btn a {
    color: #FF4B2A;
    font-weight: 700;
    text-decoration: none;
  }
}
