/* ==========================================================================
   HAPI LUXE HOTEL — ROOM TEMPLATE STYLESHEET (room.css)
   Shared stylesheet for room01.html – room07.html
   Design language matches index.html (Boutique Tropical / Luxury / Minimal)
   ========================================================================== */


/* ==========================================================================
   1. CSS VARIABLES
   Reused 1:1 from index.html so the room pages never drift from the
   homepage palette. Add new tokens below the divider, never rename the
   originals — every room page and the homepage depend on these names.
   ========================================================================== */
:root{
  /* -- brand palette (from index.html) -- */
  --dark:        #120c08;
  --brown:       #2b1c12;
  --brown-soft:  #3a281b;
  --cream:       #f8efe3;
  --white:       #fffaf2;
  --gold:        #d6b176;
  --muted:       #cdbca8;
  --green:       #8fae88;

  /* -- derived tones -- */
  --gold-soft:   rgba(214,177,118,.16);
  --gold-line:   rgba(214,177,118,.22);
  --ink-line:    rgba(255,255,255,.08);
  --overlay-dark: rgba(18,12,8,.86);

  /* -- typography -- */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'Poppins', 'Segoe UI', sans-serif;

  /* -- radii -- */
  --r-lg: 30px;
  --r-md: 22px;
  --r-sm: 14px;
  --r-pill: 999px;

  /* -- shadows -- */
  --shadow-sm: 0 10px 26px rgba(0,0,0,.18);
  --shadow-md: 0 22px 50px rgba(0,0,0,.24);
  --shadow-lg: 0 28px 60px rgba(0,0,0,.38);

  /* -- motion -- */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: .25s var(--ease);
  --t-med:  .35s var(--ease);
  --t-slow: .6s var(--ease);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
img{ display:block; max-width:100%; }
button{ font-family:inherit; }

h1,h2,h3,h4{
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
}

::selection{ background: var(--gold); color: var(--dark); }

/* thin gold scrollbar to match the boutique feel */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background: var(--dark); }
::-webkit-scrollbar-thumb{ background: var(--brown-soft); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover{ background: var(--gold); }


/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container{
  width: min(1200px, 92%);
  margin: 0 auto;
}

.rm-section{ padding: 90px 0 0; }
.rm-section:last-of-type{ padding-bottom: 90px; }

/* eyebrow label, identical role to .label on index.html */
.eyebrow{
  display:inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-title{ max-width: 720px; margin-bottom: 40px; }
.section-title h2{
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 12px;
}
.section-title p{ color: var(--muted); font-size: 15.5px; }

/* glass-morphism utility, used on topbar / info panels */
.glass{
  background: rgba(255,250,242,.045);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}


/* ==========================================================================
   4. BUTTONS  (shared .btn pattern from index.html + ripple effect)
   ========================================================================== */
.btn{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #1b110b;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}
.btn:hover{ transform: translateY(-3px); box-shadow: var(--shadow-sm); opacity: .96; }
.btn:active{ transform: translateY(-1px); }

.btn.secondary{
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold-line);
}
.btn.secondary:hover{ background: var(--gold-soft); }

.btn.sm{ padding: 10px 20px; font-size: 13px; }
.btn.block{ width: 100%; }

/* ripple element injected by room.js */
.ripple{
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(18,12,8,.35);
  pointer-events: none;
  animation: ripple-anim .6s var(--ease);
}
@keyframes ripple-anim{
  to{ transform: scale(3.2); opacity: 0; }
}

/* round icon button, used for every carousel / slider arrow */
.icon-btn{
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--brown-soft);
  color: var(--cream);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.icon-btn:hover:not(:disabled){ background: var(--gold); color: var(--dark); transform: scale(1.06); }
.icon-btn:disabled{ opacity: .35; cursor: not-allowed; }


/* ==========================================================================
   5. TOPBAR  (visual match to index.html .topbar)
   ========================================================================== */
.topbar{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 7%;
  background: var(--overlay-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-line);
}

.topbar .back-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--cream);
  transition: color var(--t-fast), transform var(--t-fast);
}
.topbar .back-link:hover{ color: var(--gold); transform: translateX(-3px); }

.topbar .brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.topbar .brand img{ height: 30px; }

.topbar-actions{ display: flex; align-items: center; gap: 18px; }
.room-crumb{
  display: none;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .3px;
}

@media (min-width: 700px){
  .room-crumb{ display: inline-block; }
}


/* ==========================================================================
   6. ROOM HERO
   ========================================================================== */
.room-hero{
  position: relative;
  min-height:100vh;
  display: flex;
  align-items:center;
  padding: 150px 7% 70px;
 background:
    linear-gradient(
        rgba(0,0,0,.60),
        rgba(0,0,0,.60)
    ),
    var(--hero-image) center center/cover no-repeat;
}

.room-hero-box{ max-width: 760px; animation: fadeInUp .8s var(--ease) both; }

.room-hero .eyebrow{ opacity: .95; }

.room-hero h1{
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -.5px;
  margin-bottom: 10px;
}

.room-hero-tag{
  color: #e8d8c4;
  font-size: 16px;
  margin-bottom: 26px;
}

.hero-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-meta span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,250,242,.06);
  border: 1px solid var(--gold-line);
  color: var(--cream);
  font-size: 13.5px;
  backdrop-filter: blur(6px);
}
.hero-meta i{ color: var(--gold); }

.room-hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; }


/* ==========================================================================
   7. GALLERY  (large image + thumbnail slider + lightbox)
   ========================================================================== */
.room-gallery{ padding-top: 90px; }

.gallery-main{
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--brown);
}

.gallery-main img{
  width: 100%;
  height: 620px;
  object-fit: cover;
  cursor: zoom-in;
  opacity: 1;
  transition: opacity var(--t-med);
}
.gallery-main img.is-fading{ opacity: 0; }

.gallery-zoom{
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(18,12,8,.55);
  color: var(--cream);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.gallery-zoom:hover{ background: var(--gold); color: var(--dark); transform: scale(1.06); }

.gallery-count{
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(18,12,8,.55);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: .5px;
  backdrop-filter: blur(8px);
}

.thumb-row{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.thumb-track{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
}
.thumb-track::-webkit-scrollbar{ display: none; }

.thumb{
  flex: 0 0 auto;
  width: 130px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--r-sm);
  cursor: pointer;
  opacity: .55;
  border: 2px solid transparent;
  transition: opacity var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.thumb:hover{ opacity: .85; transform: translateY(-2px); }
.thumb.active{ opacity: 1; border-color: var(--gold); box-shadow: var(--shadow-sm); }


/* ==========================================================================
   8. LIGHTBOX
   ========================================================================== */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9,6,4,.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--t-med);
}
.lightbox.open{ display: flex; opacity: 1; }

.lightbox-img{
  max-width: 88vw;
  max-height: 82vh;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp .35s var(--ease) both;
  user-select: none;
}

.lightbox-close{
  position: absolute;
  top: 26px;
  right: 30px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,250,242,.08);
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox-close:hover{ background: var(--gold); color: var(--dark); transform: rotate(90deg); }

.lightbox-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255,250,242,.08);
  color: var(--cream);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox-arrow:hover{ background: var(--gold); color: var(--dark); }
.lightbox-prev{ left: 26px; }
.lightbox-next{ right: 26px; }

.lightbox-counter{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,250,242,.08);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .5px;
}

@media (max-width: 700px){
  .lightbox-arrow{ width: 44px; height: 44px; }
  .lightbox-prev{ left: 10px; }
  .lightbox-next{ right: 10px; }
}


/* ==========================================================================
   9. ABOUT ROOM  (2 columns: description | room details)
   ========================================================================== */
.about-room{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: start;
}

.about-copy h2{
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
}
.about-copy p{ color: var(--muted); margin-bottom: 16px; font-size: 15.5px; }
.about-copy p:last-child{ margin-bottom: 0; }

.room-details{
  padding: 34px;
  border-radius: var(--r-lg);
  background: var(--brown);
  border: 1px solid var(--gold-line);
}
.room-details h3{
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-line);
}

.detail-list{ display: flex; flex-direction: column; gap: 16px; }
.detail-list li{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  color: var(--cream);
}
.detail-list i{
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 15px;
}


/* ==========================================================================
   10. ROOM FEATURES  (luxury feature cards, hover animation)
   ========================================================================== */
.features-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.feature-card{
  position: relative;
  padding: 30px 22px;
  text-align: center;
  border-radius: var(--r-md);
  background: var(--brown);
  border: 1px solid var(--gold-line);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.feature-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--gold-soft), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med);
}
.feature-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.feature-card:hover::before{ opacity: 1; }

.feature-card i{
  position: relative;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 14px;
  display: inline-block;
  transition: transform var(--t-med);
}
.feature-card:hover i{ transform: scale(1.15) translateY(-2px); }

.feature-card span{
  position: relative;
  display: block;
  font-size: 14px;
  color: var(--cream);
  letter-spacing: .2px;
}


/* ==========================================================================
   11. CAROUSEL BASE  (shared by Hotel Facilities + Nearby Places)
   Always shows 3 cards on desktop, fewer on smaller screens.
   ========================================================================== */
.carousel{
  display: flex;
  align-items: center;
  gap: 18px;
}

.carousel-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar{ display: none; }
.carousel-track > *{ scroll-snap-align: start; }

@media (max-width: 980px){
  .carousel-track{ grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 640px){
  .carousel-track{ grid-auto-columns: 82%; }
}


/* -- Facility card -- */
.facility-card{
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brown-soft);
  border: 1px solid var(--gold-line);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.facility-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-md); }
.facility-card img{ width: 100%; height: 220px; object-fit: cover; }
.facility-card h3{
  padding: 18px;
  text-align: center;
  font-size: 19px;
}

/* -- Facility icon list strip (secondary info under the carousel) -- */
.facility-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--ink-line);
}
.facility-list div{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.facility-list i{ color: var(--gold); }

@media (max-width: 900px){
  .facility-list{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .facility-list{ grid-template-columns: 1fr; }
}

/* -- Nearby place card -- */
.near-card{
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brown-soft);
  border: 1px solid var(--gold-line);
  color: var(--cream);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.near-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-md); }
.near-card img{ width: 100%; height: 200px; object-fit: cover; }
.near-card .near-body{ padding: 22px; }
.near-card h3{ font-size: 22px; margin-bottom: 6px; }
.near-card .near-distance{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.near-card p{ color: var(--muted); font-size: 14px; }
.near-card .near-map{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--cream);
}
.near-card:hover .near-map{ color: var(--gold); }


/* ==========================================================================
   12. OTHER ROOMS  (cross-sell grid)
   ========================================================================== */
.other-rooms-wrap{
    position:relative;
}

.other-rooms-grid{
    display:flex;
    gap:24px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scrollbar-width:none;

    padding:0 40px;
}

.other-rooms-grid::-webkit-scrollbar{
    display:none;
}

.other-room-card{
    flex:0 0 360px;
}

.other-room-card{
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brown);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.other-room-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.other-room-card img{ width: 100%; height: 220px; object-fit: cover; }

.other-room-body{
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.other-room-body h3{ font-size: 24px; }
.other-room-body .price{ color: var(--gold); font-weight: 700; font-size: 14.5px; }
.other-room-body .btn{ margin-top: auto; align-self: flex-start; }

/* ===== OTHER ROOMS SLIDER ===== */

.other-prev,
.other-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:52px;
    height:52px;
    border:none;
    border-radius:50%;
    background:rgba(43,28,18,.92);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:20;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}

.other-prev{
    left:-20px;
}

.other-next{
    right:-20px;
}

.other-prev:hover,
.other-next:hover{
    background:var(--gold);
    color:var(--dark);
}

/* ==========================================================================
   13. FOOTER  (identical to index.html footer)
   ========================================================================== */
footer{
  padding: 28px 7%;
  text-align: center;
  color: #b7a28d;
  background: #0b0705;
  font-size: 14px;
}
footer a:hover{ color: var(--gold); }


/* ==========================================================================
   14. SCROLL-REVEAL ANIMATION (fade + slide up on entering viewport)
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.in-view{ opacity: 1; transform: none; }

@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: none; }
}
@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}


/* ==========================================================================
   15. RESPONSIVE — TABLET (≤ 980px)
   ========================================================================== */
@media (max-width: 980px){
  .about-room{ grid-template-columns: 1fr; }
  .room-details{ order: -1; }
  .gallery-main img{ height: 480px; }
}


/* ==========================================================================
   16. RESPONSIVE — MOBILE (≤ 640px)
   ========================================================================== */
@media (max-width: 640px){
  .rm-section{ padding-top: 60px; }
  .room-hero{ padding: 130px 6% 50px; min-height: 62vh; }
  .room-hero h1{ font-size: 34px; }
  .hero-meta span{ font-size: 12.5px; padding: 8px 14px; }

  .gallery-main img{ height: 320px; }
  .thumb{ width: 96px; height: 68px; }

  .room-details{ padding: 24px; }

  .features-grid{ grid-template-columns: repeat(2, 1fr); }

  .icon-btn{ width: 40px; height: 40px; font-size: 13px; }

  .topbar{ padding: 14px 6%; }
  .topbar .brand span.brand-text{ display: none; }
}

