/* ─── Custom Fonts ─── */
@font-face {
  font-family: 'EngraversMT';
  src: url('../Engravers MT Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ─── Reset / Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { padding-top: 80px; padding-bottom: 0; }
@media (max-width: 767px) { body { padding-top: 64px; padding-bottom: 64px; } }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* ─── Glassmorphism Nav ─── */
.nav-glass {
  background: rgba(249,249,249,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,198,207,0.3);
  box-shadow: 0 4px 20px rgba(0,32,69,0.06);
}

/* ─── Nav Links ─── */
.nav-link {
  font-family: 'EngraversMT', serif;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s, opacity 0.2s;
  position: relative;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: #002045;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #002045 !important; font-weight: 600; }
.nav-link:hover { opacity: 0.75; }

/* ─── Bottom Nav ─── */
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #74777f;
  padding: 4px 12px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  text-decoration: none;
  font-family: Inter, sans-serif;
}
.bottom-nav-item.active {
  color: #002045;
  background: #e6e2d8;
}
.bottom-nav-item:active { transform: scale(0.9); }

/* ─── Page Transition ─── */
#app { position: relative; }
.view {
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.view.active {
  display: block;
  opacity: 1;
}

/* ─── Scroll Reveal ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.25,1,0.5,1), transform 0.7s cubic-bezier(0.25,1,0.5,1);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ─── Hero ─── */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: hero-scale 3s cubic-bezier(0.25,1,0.5,1) forwards;
}
@media (max-width: 767px) {
  .hero-bg {
    background-position: center 70%;
    background-image: url('../img/hometel.png') !important;
  }
}
@keyframes hero-scale {
  from { transform: scale(1.1); }
  to   { transform: scale(1.05); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,32,69,0.05) 0%, rgba(0,32,69,0.55) 100%);
}

/* ─── Image zoom on hover ─── */
.img-zoom-wrap { overflow: hidden; }
.img-zoom-wrap img,
.img-zoom-bg { transition: transform 0.6s ease; }
.img-zoom-wrap:hover .img-zoom-bg,
.img-zoom-wrap:hover img { transform: scale(1.06); }

/* ─── Reviews Carousel ─── */
.reviews-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25,1,0.5,1);
}
.review-card {
  flex: 0 0 100%;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0,32,69,0.07);
}
.review-dots { display: flex; gap: 6px; justify-content: center; margin-top: 1rem; }
.review-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c4c6cf; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.review-dot.active { background: #002045; transform: scale(1.3); }

/* ─── Stars ─── */
.stars { color: #f59e0b; letter-spacing: 2px; }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-image {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 8px;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  color: #fff; font-size: 2.5rem; line-height: 1;
  background: none; border: none; cursor: pointer;
  opacity: 0.8; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 3rem; line-height: 1;
  width: 56px; height: 56px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ─── Gallery Grid ─── */
.gallery-grid {
  columns: 2; column-gap: 1rem;
}
@media (min-width: 768px) { .gallery-grid { columns: 3; } }
@media (min-width: 1024px) { .gallery-grid { columns: 4; } }
.gallery-grid-item {
  break-inside: avoid; margin-bottom: 1rem;
  border-radius: 0.75rem; overflow: hidden;
  cursor: pointer;
}
.gallery-grid-item img {
  width: 100%; display: block;
  transition: transform 0.5s ease;
}
.gallery-grid-item:hover img { transform: scale(1.05); }

/* ─── Amenity Cards ─── */
.amenity-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.25rem 1rem; text-align: center;
  background: #F7F3E9; border-radius: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.amenity-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,32,69,0.1); }

/* ─── Attraction Cards ─── */
.attraction-card {
  background: #fff; border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,32,69,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.attraction-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,32,69,0.12); }

/* ─── Apartment Cards ─── */
.apt-card {
  background: #fff; border-radius: 1.25rem;
  box-shadow: 0 8px 30px rgba(0,32,69,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.apt-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,32,69,0.14); }

/* ─── CTA Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #002045; color: #fff;
  font-family: Inter, sans-serif; font-weight: 600; font-size: 0.9375rem;
  padding: 0.875rem 2rem; border-radius: 9999px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none; border: none; cursor: pointer;
}
.btn-primary:hover { background: #1a365d; transform: scale(1.04); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #002045;
  font-family: Inter, sans-serif; font-weight: 600; font-size: 0.9375rem;
  padding: 0.875rem 2rem; border-radius: 9999px;
  border: 2px solid #002045;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none; cursor: pointer;
}
.btn-secondary:hover { background: #002045; color: #fff; transform: scale(1.04); }
.btn-secondary:active { transform: scale(0.97); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25D366; color: #fff;
  font-family: Inter, sans-serif; font-weight: 600; font-size: 0.9375rem;
  padding: 0.875rem 2rem; border-radius: 9999px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: scale(1.04); }

/* ─── Footer ─── */
footer a { text-decoration: none; }
footer a:hover { opacity: 0.75; }

/* ─── Map iframe ─── */
.map-frame { border-radius: 1rem; overflow: hidden; border: none; }

/* ─── Section spacing ─── */
.section { padding: 5rem 1.25rem; }
@media (min-width: 768px) { .section { padding: 7.5rem 4rem; } }
.section-inner { max-width: 1280px; margin: 0 auto; }

/* ─── Home Gallery Bento Grid ─── */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 120px);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .home-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 480px;
  }
}
.home-gallery-grid > div:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.home-gallery-grid > div:last-child {
  grid-column: span 2;
}
