/* rooms.css (responsive y refinado visualmente) */
:root {
  --card: #243028;
  --radius: 24px;
  --gap: 28px;
  --thumb-aspect: 4 / 3;
  font-family: var(--font-title);
}

.header {
  position: sticky !important;
}

/* --- MAIN SECTION --- */
.acc-section {
  max-width: 100%;
  height: 90vh;
  min-height: 710px;
  display: flex;
  background: var(--color-bg);
  color: var(--color-green-title);
  position: relative;
  padding: 50px 40px;
}

/* --- CONTENT CONTAINER --- */
.acc-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
}

.room-info {
  display: flex;
  max-width: 90%;
  justify-content: center;
  flex-direction: column;
  gap: clamp(0px, 1vw, 15px);
}

@media (max-width: 425px) {
  .room-info {
    gap: 0px;
  }
}

/* --- TEXT STYLES --- */

.acc-title {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.room-name {
  color: var(--color-light-green);
  font-size: clamp(22px, 4vw, 28px);
  margin: 0 0 10px;
  font-weight: 500;
}
.room-desc {
  color: var(--color-text-paragraph);
  line-height: 1.6;
  margin: 0 0 18px;
  font-size: var(--font-size-paragraph);
  max-width: 75%;
}

@media (max-width: 450px) {
  .metacontrols {
    display: flex;
    justify-content: space-between;
  }
}

.room-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.room-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(43, 83, 54, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.meta-name {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}
.meta-type {
  color: var(--color-text-paragraph);
  margin: 0;
  font-size: 13px;
}

/* --- CONTROLS --- */
.acc-controls {
  display: flex;
  gap: 12px;
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0px clamp(10px, 1.5vw, 20px);
}
.control-btn {
  height: 100%;
  width: auto;
  border: none;
  background: transparent;
  color: var(--color-bg);
  font-size: clamp(60px, 10vw, 90px); /* Reducido de 90px */
  font-family: var(--font-Monstserrat-ExtraLight);
  cursor: pointer;
  display: flex;
  align-items: center; /* Cambiado de flex-start a center */
  justify-content: center;
  transition: background 0.2s ease;
  padding: 0; /* Asegurar que no haya padding extra */
  margin: 0; /* Asegurar que no haya margin extra */
}

/* --- HERO IMAGE (OUTSIDE CONTENT) --- */
.room-hero {
  display: flex;
  position: relative;
  top: 0;
  right: 0;
  min-width: 50%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.room-hero img {
  display: flex;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- GALLERY (RESPONSIVE GRID) --- */
.room-gallery {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  width: 100%;
}

@media (max-width: 450px) {
  .room-gallery {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    width: 100%;
  }
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: var(--thumb-aspect);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: none;
}
.thumb:hover {
  transform: translateY(-4px);
}
.thumb[aria-selected="true"] {
  border: solid 2px;
  border-color: var(--color-light-green);
  transform: scale(1.02);
}
.thumb-img {
  width: 100%;
  height: 100%;
}
.thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* Overlay con nombre */
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}
.thumb-title {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width: 1024px) {
  .acc-section {
    flex-direction: column;
    height: auto;
    padding: var(--padding-sections-mobile-bottom);
  }

  .room-hero {
    position: relative;
    width: 100%;
    order: -1; /* Mueve la imagen arriba */
    aspect-ratio: 5/4;
  }

  .acc-inner {
    width: 100%;
    padding: 20px 0px 0px;
    justify-content: flex-start;
  }
  .room-info {
    max-width: 100%;
  }

  .room-desc {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  :root {
    --thumb-aspect: 1 / 1;
  }
}
