/* ============================================================
   HOTELS - DETAIL (HotelDetails.aspx)
   ------------------------------------------------------------
   Page-only rules for a single hotel (hotels/hotel-details.jpg):
   photo grid, title/address, tabs and the all-photos viewer.
   Loads after common.css - see /website/FrontEnd/STYLE-GUIDE.md.
   Reuses .container and the colour + type tokens from there.
   ============================================================ */

.hotel-detail{padding:40px 0 var(--section-space-sm);}

/* ===== PHOTO GRID =====
   Large photo on the left, up to four smaller ones on the right.
   .hd-gallery--N = number of tiles rendered (1-5). */
.hd-gallery{
  position:relative;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:4px;
  height:clamp(260px,34vw,400px);
  border-radius:8px;
  overflow:hidden;
}
.hd-gallery-item{
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  padding:0;
  border:none;
  background:var(--cream-2);
  cursor:pointer;
  overflow:hidden;
}
.hd-gallery-item img{width:100%;height:100%;object-fit:cover;transition:opacity .25s ease;}
.hd-gallery-item:hover img{opacity:.9;}
.hd-gallery-item:first-child{grid-row:1 / span 2;}

.hd-gallery--1{grid-template-columns:1fr;grid-template-rows:1fr;}
.hd-gallery--2{grid-template-columns:2fr 1fr;}
.hd-gallery--2 .hd-gallery-item:nth-child(2){grid-row:1 / span 2;}
.hd-gallery--3{grid-template-columns:2fr 1fr;}
.hd-gallery--4 .hd-gallery-item:nth-child(4){grid-column:2 / span 2;}

.hd-gallery-all{
  position:absolute;
  right:10px;
  bottom:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border:none;
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font-family:inherit;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  box-shadow:0 1px 4px rgba(0,0,0,.15);
}
.hd-gallery-all:hover{background:var(--cream-2);}

/* ===== TITLE + ADDRESS ===== */
.hd-title{
  margin-top:26px;
  font-size:clamp(26px,2.6vw,32px);
  font-weight:400;
  line-height:1.25;
  color:var(--ink);
}
.hd-address{
  margin-top:8px;
  font-size:14px;
  color:var(--muted);
}

/* ===== TABS ===== */
.hd-tabs{
  display:flex;
  flex-wrap:wrap;
  margin-top:24px;
  border-bottom:1px solid var(--line);
}
.hd-tab{
  margin-bottom:-1px;
  padding:10px 10px 12px;
  border:none;
  border-bottom:3px solid transparent;
  background:none;
  color:var(--ink);
  font-family:inherit;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  cursor:pointer;
}
.hd-tab:hover{color:var(--color-heading);}
.hd-tab.is-active{border-bottom-color:var(--color-heading);color:var(--color-heading);}

.hd-panel{padding:24px 0 6px;}
.hd-panel[hidden]{display:none;}
.hd-panel p{
  max-width:900px;
  margin-bottom:14px;
  font-size:var(--fs-body);
  line-height:var(--lh-body);
}

/* Icon + text facts (check-in/out, phone, email) - same 5-column grid
   as the amenity icons in the design. */
.hd-facts{
  display:grid;
  grid-template-columns:repeat(5,max-content);
  gap:22px 48px;
  margin-top:22px;
  list-style:none;
}
.hd-fact{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:14px;
  line-height:1.35;
  min-width:0;
}
.hd-fact svg{flex-shrink:0;color:var(--ink);}
.hd-fact span{overflow-wrap:break-word;min-width:0;}
.hd-fact a:hover{text-decoration:underline;}

.hd-more{
  display:inline-block;
  margin-top:10px;
  font-size:14px;
  color:var(--color-heading);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ===== ALL PHOTOS VIEWER ===== */
.hd-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:60px 20px;
  background:rgba(13,20,32,.95);
}
.hd-lightbox[hidden],
.hd-lightbox [hidden]{display:none;}
.hd-lightbox-stage{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin:0;
  min-width:0;
}
.hd-lightbox-image{
  max-width:min(1200px,80vw);
  max-height:78vh;
  object-fit:contain;
}
.hd-lightbox-count{color:#fff;font-size:13px;letter-spacing:.1em;}
.hd-lightbox-close,
.hd-lightbox-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  flex-shrink:0;
  border:1px solid rgba(255,255,255,.5);
  border-radius:50%;
  background:none;
  color:#fff;
  cursor:pointer;
}
.hd-lightbox-close:hover,
.hd-lightbox-nav:hover{background:rgba(255,255,255,.12);}
.hd-lightbox-close{position:absolute;top:20px;right:20px;}

@media (max-width:1100px){
  .hd-facts{grid-template-columns:repeat(3,max-content);}
}
@media (max-width:640px){
  .hd-gallery,
  .hd-gallery--2,
  .hd-gallery--3,
  .hd-gallery--4,
  .hd-gallery--5{grid-template-columns:1fr;grid-template-rows:1fr;height:260px;}
  .hd-gallery-item:not(:first-child){display:none;}
  .hd-gallery-item:first-child{grid-row:auto;grid-column:auto;}
  .hd-facts{grid-template-columns:1fr;}
  .hd-lightbox{gap:8px;padding:60px 8px;}
  .hd-lightbox-nav{width:36px;height:36px;}
  .hd-lightbox-image{max-width:calc(100vw - 104px);}
}
