/* ----------------------------------
   AMAR TORI — Premium White Theme
---------------------------------- */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&family=Cormorant+Garamond:wght@400;600&display=swap');

:root {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --gold: #b89b33;
  --soft-gold: #f2e6b1;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --gradient-1: radial-gradient(1200px 800px at 10% 10%, #3a86ff08, transparent 60%),
                 radial-gradient(1000px 700px at 80% 20%, #ff006e07, transparent 60%),
                 radial-gradient(900px 700px at 50% 90%, #ffd16607, transparent 60%);
  --btn-gradient: linear-gradient(135deg, #ffe08a 0%, #ffc371 45%, #ff9a44 100%);
  --btn-gradient-hover: linear-gradient(135deg, #ff9a44 0%, #ffc371 55%, #ffe08a 100%);
}

/* Base */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

/* Animated aurora layer */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: none; /* keep code, hide for white theme */
}
.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  inset: -20% -10% -10% -20%;
  background: var(--gradient-1);
  filter: blur(40px) saturate(120%);
  animation: auroraMove 16s ease-in-out infinite alternate;
}
.bg-aurora::after {
  inset: -10% -20% -20% -10%;
  transform: rotate(8deg) scale(1.02);
  animation-duration: 22s;
}

@keyframes auroraMove {
  0% { transform: translate3d(-2%, -2%, 0) scale(1); opacity: 0.7; }
  100% { transform: translate3d(2%, 2%, 0) scale(1.05); opacity: 1; }
}

/* Progress bar */
#progressBar {
  position: fixed;
  left: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--soft-gold));
  width: 0;
  z-index: 10000;
}

/* Header */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  backdrop-filter: blur(6px);
  z-index: 1000;
}
.topbar.scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.95);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(184,155,51,0.25);
}

.brand-text .small {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: bold;
}

.brand-text .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
}

/* Navigation */
.nav {
  display: flex;
  gap: 20px;
}
.nav.open {
  display: flex;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--gold);
  background: rgba(184,155,51,0.1);
}

.cta {
  color: var(--gold);
  border: 1px solid var(--gold);
}

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  position: relative;
  text-align: center;
  padding: 80px 5%;
  background: linear-gradient(180deg, #fff 0%, #f9f9f9 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-head {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--text);
}

.hero-head span {
  color: var(--gold);
  text-shadow:
    2px 2px 4px #111,
    -2px -2px 4px #111,
    2px -2px 4px #111,
    -2px 2px 4px #111;
}


.hero-sub {
  color: var(--muted);
  margin-top: 10px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-image: var(--btn-gradient);
  color: #111;
  border: 0;
  box-shadow: 0 10px 20px rgba(255, 156, 68, 0.35);
  transform: translateZ(0);
}

.btn-primary:hover {
  background-image: var(--btn-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 156, 68, 0.4);
}

.btn-primary:active { transform: translateY(0); box-shadow: 0 10px 20px rgba(255,156,68,0.35); }

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 25%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-ghost:hover {
  background: var(--soft-gold);
  color: #111;
}

/* Sections */
.section {
  padding: 80px 5%;
  max-width: 1100px;
  margin: 0 auto;
}
/* initial reveal state */
.section, .floor-card, .masonry img, .contact-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-head {
  text-align: center;
  margin-bottom: 30px;
}

.section-head .muted {
  color: var(--muted);
}

/* Floor Cards */
.floors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.floor-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: none;
}

.floor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* sheen */
.floor-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: rotate(25deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.floor-card:hover::after {
  transform: translateX(220%) rotate(25deg);
}

.floor-badge {
  position: absolute;
  margin: 12px;
  background: var(--gold);
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.floor-img {
  height: 165px;
  background-size: cover;
  background-position: center;
}

.floor-body {
  padding: 16px;
}

.floor-body h3 {
  margin: 8px 0 6px;
  color: var(--text);
}

.price {
  font-size: 18px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 10px;
}

/* Slightly smaller buttons inside floor cards */
.floor-card .btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
}

/* Whole Cottage */
.whole-card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 28px;
  backdrop-filter: none;
  position: relative;
  isolation: isolate;
  /* subtle gradient border */
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(255,208,124,0.6), rgba(255,154,68,0.35)) border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whole-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* decorative spotlight */
.highlight-block .whole-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 200px;
  background: radial-gradient(600px 160px at 50% 0%, rgba(255, 214, 150, 0.25), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ribbon */
.ribbon {
  position: absolute;
  top: -14px;
  left: 14px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ffe08a, #ff9a44);
  color: #111;
  font-weight: 800;
  font-size: 12px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 8px 18px rgba(255,154,68,0.35);
  pointer-events: none;
  z-index: 2;
}

.price-big {
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 0 #fff;
}

.whole-left h2 {
  margin: 0 0 8px;
}
.whole-left .muted {
  margin: 0 0 14px;
  display: block;
}

/* Gallery */
.gallery .section-title {
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.masonry img {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s, box-shadow 0.35s;
}

.masonry img:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* Contact */
.contact-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: none;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184,155,51,0.15);
}

/* Map Section */
.map-section {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 1100px;
  margin: 40px auto;
  backdrop-filter: none;
}

.map-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.map-section h3 {
  color: var(--gold);
  font-size: 1.3rem;
}

.map-section p {
  color: var(--muted);
  max-width: 500px;
}

.map-box {
  width: 340px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* facts list with icons */
.facts {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.facts li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-weight: 600;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe08a, #ff9a44);
  box-shadow: 0 6px 14px rgba(255,154,68,0.35);
  /* checkmark */
  mask:
    radial-gradient(circle 10px at 7px 13px, #0000 11px, #000 12px) subtract,
    linear-gradient(#000 0 0) center/60% 2px no-repeat;
}

.whole-actions .btn-primary {
  border-radius: 999px;
  padding: 12px 20px;
  display: inline-block;
  margin-top: 8px;
}

.whole-right {
  justify-self: end;
  text-align: left;
}

/* Footer */
footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 20px 5%;
  text-align: center;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

footer .footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

footer .footer-logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 8px rgba(184,155,51,0.25);
}

footer .footer-logo span {
  font-weight: 600;
  color: var(--gold);
}

footer p {
  color: var(--muted);
  margin: 4px 0;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 820px) {
  .map-wrapper {
    flex-direction: column;
  }
  .whole-card {
    flex-direction: column;
  }
  .hero-head {
    font-size: 32px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 5%;
    left: 5%;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
  }
  .nav.open {
    display: flex;
  }
  .menu-btn {
    display: block;
  }
}

/* ====== GALLERY ZOOM LIGHTBOX ====== */
.masonry img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.masonry img:hover {
  transform: scale(1.05);
}

/* Lightbox backdrop */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255,255,255,0.3);
  animation: fadeIn 0.3s ease;
}

/* Zoomed state with panning */
.lightbox img.zoomed {
  cursor: grab;
  touch-action: none;
  /* transform is controlled inline by JS for translate + scale */
}
.lightbox img.zoomed:active {
  cursor: grabbing;
}

/* Close button */
.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* Arrows */
.lightbox .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px 20px;
  transition: opacity 0.3s;
}

.lightbox .arrow:hover {
  opacity: 0.7;
}

.lightbox .arrow.left {
  left: 20px;
}

.lightbox .arrow.right {
  right: 20px;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

/* Decorative orbs in hero */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px) saturate(120%);
  opacity: 0.6;
  z-index: 1;
}
.orb-1 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #ff9a9e, transparent 60%); top: 10%; left: 8%; animation: float1 12s ease-in-out infinite; }
.orb-2 { width: 180px; height: 180px; background: radial-gradient(circle at 70% 30%, #a1c4fd, transparent 60%); top: 18%; right: 10%; animation: float2 14s ease-in-out infinite; }
.orb-3 { width: 140px; height: 140px; background: radial-gradient(circle at 40% 60%, #fbc2eb, transparent 60%); bottom: 12%; left: 18%; animation: float3 16s ease-in-out infinite; }

@keyframes float1 { 0% { transform: translateY(0) } 100% { transform: translateY(18px) } }
@keyframes float2 { 0% { transform: translateY(0) } 100% { transform: translateY(-14px) } }
@keyframes float3 { 0% { transform: translateY(0) } 100% { transform: translateY(12px) } }

/* Rate pill styling */
.rate-pill {
  margin: 24px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  color: var(--text);
}
.rate-pill .pill-left { color: var(--black); font-weight: bold; }
.rate-pill .pill-right { color: var(--soft-gold); font-weight: 700; }

/* Utility: glass class (used by sections/cards) */
.glass {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}

#formMessage {
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
#formMessage:empty {
  display: none;
}
