/* =========================================================================
   Páginas de alojamiento (Habitaciones, Residencias Privadas…)
   Hero de foto + intro + listado en filas alternas + botones.
   Prefijo: .ghb-page-hero / .ghb-rooms / .ghb-room
   ========================================================================= */

/* HERO de página con foto de fondo (ancho completo, como el vídeo de la home) */
.ghb-page-hero {
    position: relative;
    min-height: 620px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw; max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.ghb-page-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 45%);
}

/* Variante con título sobre el hero: velo oscuro + contenido centrado */
.ghb-page-hero--titled {
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.ghb-page-hero--titled::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.40) 100%);
}
.ghb-hero-content { position: relative; z-index: 1; color: #fff; padding: 40px 24px; max-width: 960px; }
.ghb-page-hero--titled .ghb-hero-title { font-family: var(--heading-font); font-size: 82px; line-height: 1.05; color: #fff !important; margin: 0 0 18px; }
.ghb-hero-subtitle { font-family: var(--heading-font); font-size: 24px; font-weight: 400; color: #fff; margin: 0; opacity: .95; }

@media (max-width: 700px) {
    .ghb-page-hero--titled .ghb-hero-title { font-size: 48px; }
    .ghb-hero-subtitle { font-size: 18px; }
}

/* Intro de página */
.ghb-rooms-intro { text-align: center; max-width: 780px; margin: 0 auto; padding: 96px 24px 10px; }
.ghb-rooms-intro .ghb-stars { margin-bottom: 14px; }
.ghb-rooms-intro h1 { font-family: var(--heading-font); font-size: 40px; color: #262626; margin: 0 0 18px; }
.ghb-rooms-intro p { font-size: 19px; line-height: 1.7; color: #4a4a4a; margin: 0; }

/* Listado (filas alternas) */
.ghb-rooms { max-width: 1200px; margin: 0 auto; padding: 60px 24px 90px; }
.ghb-room {
    display: flex; align-items: center; gap: 60px;
    margin-bottom: 70px;
}
.ghb-room:last-child { margin-bottom: 0; }
.ghb-room:nth-child(even) { flex-direction: row-reverse; }
.ghb-room-media { flex: 1 1 55%; min-width: 0; }
.ghb-room-media img { display: block; width: 100%; height: 440px; object-fit: cover; }

/* Slider de fotos (bullets) */
.ghb-slider { position: relative; overflow: hidden; }
.ghb-slides { display: flex; transition: transform 0.5s ease; }
.ghb-slide { flex: 0 0 100%; min-width: 0; }
.ghb-dots {
    position: absolute; left: 0; right: 0; bottom: 16px;
    display: flex; justify-content: center; gap: 9px; z-index: 2;
}
.ghb-dot {
    width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.35);
    transition: background-color 0.2s;
}
.ghb-dot.is-active { background: #fff; }
.ghb-room-body { flex: 1 1 45%; min-width: 0; }
.ghb-room-subtitle {
    display: block; font-family: var(--heading-font);
    font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
    color: #b99d75; margin: 0 0 10px;
}
.ghb-room-title { font-family: var(--heading-font); font-size: 30px; color: #262626; margin: 0 0 16px; line-height: 1.2; }
.ghb-room-features {
    list-style: none; margin: 0 0 18px; padding: 0;
    display: flex; flex-wrap: wrap; gap: 10px 26px;
}
.ghb-room-features li {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 17px; color: #5a5a5a;
}
.ghb-room-features li .flaticon { color: #b99d75; font-size: 20px; line-height: 1; }
.ghb-room-desc { font-size: 18px; line-height: 1.7; color: #4a4a4a; margin: 0 0 14px; }
.ghb-room-meta { font-size: 16px; line-height: 1.6; color: #5a5a5a; margin: 4px 0 14px; }
.ghb-room-meta strong { color: #262626; font-weight: 600; }
.ghb-room-contact { font-size: 16px; line-height: 1.7; color: #5a5a5a; margin: 16px 0 0; }
.ghb-room-contact a, .ghb-room-meta a { color: #b99d75; text-decoration: none; }
.ghb-room-contact a:hover, .ghb-room-meta a:hover { text-decoration: underline; }

/* Botones */
.ghb-room-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
/* "Reservar": fondo blanco, borde y texto dorados */
.ghb-btn-reservar.button { background: #fff; border: 1px solid #b99d75; color: #b99d75; }
.ghb-btn-reservar.button .cs-btn-text { color: #b99d75; }
.ghb-btn-reservar.button:hover { background: #b99d75; color: #fff; }
.ghb-btn-reservar.button:hover .cs-btn-text { color: #fff; }

@media (max-width: 900px) {
    .ghb-room, .ghb-room:nth-child(even) { flex-direction: column; gap: 24px; }
    .ghb-room-media, .ghb-room-body { flex: 1 1 100%; width: 100%; }
    .ghb-room-media img { height: 300px; }
    .ghb-rooms-intro { padding-top: 70px; }
}

/* =========================================================================
   Detalle de habitación
   ========================================================================= */
/* Hero de detalle: foto limpia, sin velo */
.ghb-page-hero--clean::after { content: none; background: none; }

.ghb-detail { max-width: 1000px; margin: 0 auto; padding: 112px 24px 10px; }
.ghb-detail-title { font-family: var(--heading-font); font-size: 40px; line-height: 1.15; color: #262626; text-align: center; margin: 0 0 22px; }
.ghb-detail-back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #b99d75; text-decoration: none; margin-bottom: 22px; }
.ghb-detail-back:hover { text-decoration: underline; }
.ghb-detail-desc { max-width: 820px; margin: 0 auto; text-align: center; font-size: 19px; line-height: 1.8; color: #4a4a4a; }
.ghb-detail-desc p { margin: 0 0 16px; }
.ghb-detail-desc p:last-child { margin-bottom: 0; }
.ghb-detail-features {
    list-style: none; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid #ece5da;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px;
}
.ghb-detail-features li { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; color: #4a4a4a; }
.ghb-detail-features .flaticon { color: #b99d75; font-size: 24px; line-height: 1; }

.ghb-detail-grid {
    max-width: 940px; margin: 46px auto 0; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 34px 60px;
}
.ghb-detail-group h3 {
    font-family: var(--heading-font); font-size: 21px; color: #262626;
    margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid #e6ded2;
}
.ghb-detail-list { list-style: none; margin: 0; padding: 0; }
.ghb-detail-list li { position: relative; padding: 7px 0 7px 20px; font-size: 17.5px; line-height: 1.5; color: #4a4a4a; }
.ghb-detail-list li::before { content: ""; position: absolute; left: 0; top: calc(7px + 0.75em); transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: #b99d75; }

.ghb-detail-actions { text-align: center; margin: 46px 0 0; }

/* Galería del detalle */
.ghb-detail-gallery { max-width: 1200px; margin: 64px auto 90px; padding: 0 24px; }
.ghb-detail-gallery-title { text-align: center; font-family: var(--heading-font); font-size: 28px; color: #262626; margin: 0 0 30px; }
.ghb-detail-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ghb-detail-gallery-grid img { display: block; width: 100%; height: 300px; object-fit: cover; }
.ghb-detail-gallery-empty {
    border: 1px dashed #d8cfbf; background: #fbf9f5; color: #9a917f;
    text-align: center; padding: 60px 24px; font-size: 15px;
}

@media (max-width: 800px) {
    .ghb-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .ghb-detail-gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Lightbox (galería ampliable, fondo negro)
   ========================================================================= */
[data-ghb-lightbox] img { cursor: zoom-in; transition: opacity 0.2s; }
[data-ghb-lightbox] img:hover { opacity: 0.9; }

.ghb-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.94);
    display: none; align-items: center; justify-content: center;
}
.ghb-lightbox.is-open { display: flex; }
.ghb-lb-figure { margin: 0; max-width: 90vw; max-height: 88vh; display: flex; }
.ghb-lightbox img { max-width: 90vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 12px 60px rgba(0,0,0,0.6); }

.ghb-lb-btn {
    position: absolute; background: none; border: none; color: #fff;
    cursor: pointer; line-height: 1; opacity: 0.8; transition: opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.ghb-lb-btn:hover { opacity: 1; }
.ghb-lb-close { top: 22px; right: 30px; font-size: 42px; }
.ghb-lb-prev, .ghb-lb-next { top: 50%; transform: translateY(-50%); font-size: 60px; padding: 6px 22px; }
.ghb-lb-prev { left: 12px; }
.ghb-lb-next { right: 12px; }
.ghb-lb-counter {
    position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
    color: #fff; opacity: 0.75; font-size: 14px; letter-spacing: 0.06em;
}

@media (max-width: 600px) {
    .ghb-lb-prev, .ghb-lb-next { font-size: 40px; padding: 6px 12px; }
    .ghb-lb-close { font-size: 34px; top: 14px; right: 18px; }
}
