:root {
  /* Palette from room photo: deep navy + light aqua + warm wood */
  --card: #0b1b33;
  --text: #e9edf5;
  --muted: #b8c7d6;
  --accent: #3f86c3;
  --radius: 18px;
  --border: #163255;
  --btn-bg: #1b3c66;
  --btn-text: #f7fafc;
  --hero-height: 150px;
  --hero-height-compact: 76px;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at 20% 20%, #4fa0d42b, #08152b 60%);
  color: var(--text)
}

a {
  text-decoration: none;
  color: inherit
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 24px
}

header {
  text-align: left;
}

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b1b33 0%, #15355d 35%, #0b1b33 100%);
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: 0 8px 24px #00000029;
  border-radius: 0;
  width: 100%;
  min-height: var(--hero-height);
  height: auto;
  transform: translateZ(0);
  backface-visibility: hidden
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: auto;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  justify-content: center;
  width: 100%
}

.hero.hero-compact .topbar {
  display: none
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto 40%;
  height: 240px;
  background: radial-gradient(circle at 30% 50%, #4fa0d430, transparent 60%);
  filter: blur(18px);
  pointer-events: none
}

h1 {
  font-size: clamp(1.45rem, 4.3vw, 2.2rem);
  margin: 0;
  white-space: normal;
  transition: none;
  color: var(--text)
}

.hero.hero-compact h1 {
  font-size: 1rem;
  white-space: nowrap
}

p {
  color: var(--muted);
  margin: 0
}

.hero.hero-compact p {
  display: none
}

.topbar {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: auto
}

#langToggle {
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--btn-text);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease
}

.hero.hero-compact .btn {
  padding: 8px 14px;
  font-size: 0.9rem
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px #00000025
}

.btn.cta {
  background: linear-gradient(135deg, #52a3e0, #3468a7);
  border: none;
  color: #f7fbff;
  box-shadow: 0 14px 40px #1d5fa070
}

.btn.airbnb {
  background: #ff385c;
  border-color: #ff385c;
  color: #fff
}

.btn.booking {
  background: #0a53b5;
  border-color: #0a53b5;
  color: #fff
}

.btn.google {
  background: #e5e7eb;
  border-color: #cbd5e1;
  color: #0f172a
}

.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
  width: 100%
}

.sticky-bar {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(11, 27, 51, .92);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #0f2442;
  box-shadow: 0 6px 18px #0000001a
}

.sticky-bar .buttons {
  padding: 10px 16px;
  max-width: 1100px;
  margin: auto
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px;
  height: auto
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform .5s ease;
  height: auto
}

.carousel-slide {
  min-width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px
}

.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform .5s ease;
  height: 100%;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
  margin: auto;
  background: var(--card);
  user-select: none;
  -webkit-user-drag: none;
}


.carousel-loading .loader-box {
  width: min(240px, 70%);
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 20px 60px #00000050
}

.carousel-loading .loader-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden
}

.carousel-loading .loader-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6bb6e9)
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  padding: 0;
  transform: translateY(-50%);
  pointer-events: none
}

.carousel-controls .btn {
  background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(4px);
  pointer-events: auto
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 6px;
}

.carousel-counter {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .4px;
  user-select: none
}

.carousel-progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  overflow: hidden;
  border: 1px solid var(--border)
}

.carousel-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6bb6e9);
  border-radius: 999px;
  transition: width .4s ease
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border)
}

.reviews-card {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px
}

.reviews-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  mask-image: linear-gradient(90deg, #000 0%, #000 85%, transparent 100%);
  scroll-padding-inline: 16px
}

.reviews-track.dragging {
  cursor: grabbing
}

.reviews-track::-webkit-scrollbar {
  height: 6px;
  background: rgba(255, 255, 255, .06)
}

.reviews-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent), #6bb6e9);
  border-radius: 999px
}

.review-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0f213d;
  min-width: 280px;
  max-width: 320px;
  scroll-snap-align: center;
  box-shadow: 0 12px 30px #00000025
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px
}

.review-text {
  color: var(--text);
  line-height: 1.5
}

.stars {
  color: #fbbf24;
  font-size: 18px;
  letter-spacing: 2px
}

.map-card {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card)
}

.map-card iframe {
  width: 100%;
  border: 0;
  height: 360px;
  display: block
}

.map-card .map-info {
  padding: 16px;
  color: var(--muted)
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 32px
}

@media(max-width:640px) {
  body {
    font-size: 14px
  }

  .container {
    padding: 18px
  }

  header {
    padding: 0
  }

  :root {
    --hero-height: 120px;
    --hero-height-compact: 60px;
  }

  .hero-inner {
    padding: 16px 12px;
    gap: 10px
  }

  h1 {
    font-size: 1.15rem;
    line-height: 1.2;
    margin-top: 4px;
    color: var(--text)
  }

  h2 {
    font-size: 1.25rem;
    color: var(--text)
  }

  #galleryHeading,
  #infoHeading,
  #mapHeading {
    color: var(--text);
    text-shadow: none
  }

  .btn {
    padding: 9px 14px;
    font-size: 0.9rem
  }

  .topbar {
    top: 6px;
    right: 10px
  }

  .btn {
    padding: 9px 14px;
    font-size: 0.9rem
  }

  .topbar {
    justify-content: flex-end
  }

  .buttons {
    justify-content: center
  }

  .carousel {
    height: auto;
    min-height: 0;
    padding: 10px
  }

  .carousel-track {
    height: auto
  }

  .carousel-slide {
    min-height: auto;
    height: auto
  }

  .carousel-slide img {
    aspect-ratio: 4/3;
    max-height: 60vh;
    object-fit: cover
  }

  .lb-wrap {
    width: 92vw;
    height: 82vh
  }

  .lb-wrap img {
    object-fit: contain
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000
}

.lightbox.active {
  display: flex
}

.lb-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto
}

.lb-wrap img {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
  margin: 0 auto
}

.nav,
.close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center
}

.close {
  top: 8px;
  right: 8px;
  font-size: 18px
}

.prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%)
}

.next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%)
}

.nav:hover,
.close:hover {
  box-shadow: none
}

.lightbox .btn,
.carousel-controls .btn {
  transition: none !important;
  transform: none !important
}

.lightbox .btn:hover,
.carousel-controls .btn:hover {
  transform: none !important;
  box-shadow: none !important
}

/* utility hidden class used by JS to hide loader */
.carousel-loading.hidden { display: none !important; opacity: 0; pointer-events: none }

/* center loader inside carousel */
.carousel-loading {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.carousel-loading .loader-box {
  width: min(360px, 70%);
}

/* Visual tweaks to match the original gallery look (rounded frame, circular nav buttons) */
.carousel {
  padding: 16px;
  border-radius: 20px;
  border: 6px solid rgba(11,27,51,0.6);
  box-shadow: 0 10px 30px rgba(3,8,18,0.6), inset 0 2px 0 rgba(255,255,255,0.02);
  background: linear-gradient(180deg, rgba(8,21,43,0.98), rgba(11,27,51,0.98));
}

.carousel-slide img {
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* make picture inside slide larger and centered */
.carousel-slide picture {
  display: block;
  width: 92%;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: calc(100% - 10px);
  display: block;
}

.carousel-controls {
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.carousel-controls .btn {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.72);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  font-size: 20px;
}

#carouselPrev {
  position: absolute;
  left: 5px;
}

#carouselNext {
  position: absolute;
  right: 5px;
}

.carousel-meta {
  margin-top: 0; /* remove margin that pushes meta out of visible area */
  align-items: center;
  padding-top: 20px;
}

.carousel-counter {
  color: var(--muted);
  font-size: 13px;
  margin-left: 8px;
}

.carousel-progress {
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.carousel-progress span {
  background: linear-gradient(90deg, var(--accent), #6bb6e9);
  height: 100%;
  display: block;
  border-radius: 999px;
}
