/* Base Custom Properties / Variables */
:root {
  /* Light Mode Palette */
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #059669; /* Emerald-600 */
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --secondary: #0d9488; /* Teal-600 */
  --secondary-hover: #0f766e;
  --secondary-light: #f0fdfa;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --navbar-height: 72px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Palette overrides */
[data-theme="dark"] {
  --bg-primary: #0f172a; /* Slate-900 */
  --bg-card: #1e293b; /* Slate-800 */
  --bg-muted: #0b0f19;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #34d399; /* Emerald-400 */
  --primary-hover: #10b981;
  --primary-light: rgba(52, 211, 153, 0.1);
  --secondary: #2dd4bf; /* Teal-400 */
  --secondary-hover: #14b8a6;
  --secondary-light: rgba(45, 212, 191, 0.1);
  --border: #334155; /* Slate-700 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* CSS Reset & General Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 16px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Typography Customizations */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-muted);
}

/* Common Layout Components */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.bg-muted {
  background-color: var(--bg-muted);
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.125rem;
  margin-top: 16px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

/* Sticky Glassmorphic Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background-color: rgba(248, 250, 252, 0.8); /* Light Mode default */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background-color: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  height: 32px;
  width: auto;
  display: block;
  transition: filter var(--transition-normal);
}

.nav-brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.nav-brand-text .dot {
  color: var(--primary);
}

/* Footer brand elements */
.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-symbol {
  height: 36px;
  width: auto;
  display: block;
  transition: filter var(--transition-normal);
}

.footer-brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.footer-brand-text .dot {
  color: var(--primary);
}

/* Hero Logo positioning */
.hero-brand-logo {
  margin-bottom: 20px;
}

.hero-logo {
  height: 90px;
  width: auto;
  display: block;
  transition: filter var(--transition-normal);
}

/* Dark mode filters */
[data-theme="dark"] .nav-logo,
[data-theme="dark"] .footer-logo-symbol,
[data-theme="dark"] .hero-logo {
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Toggle Customization */
#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}

#theme-toggle:hover {
  background-color: var(--bg-muted);
  transform: rotate(15deg);
}

#theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Switch theme-toggle visibility */
.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

.nav-cta-btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  background-color: var(--primary);
  color: #ffffff !important;
  border-radius: var(--radius-sm);
}

.nav-cta-btn:hover {
  background-color: var(--primary-hover);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--navbar-height) + 40px);
  padding-bottom: 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.location-badge svg {
  width: 16px;
  height: 16px;
}

.hero-content h1 {
  margin-bottom: 20px;
  color: var(--text);
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  width: 100%;
}

.image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background-color: var(--border);
  aspect-ratio: 16/9;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-visual:hover .hero-img {
  transform: scale(1.03);
}

/* Room Grid Section */
.kamar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.kamar-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.kamar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.kamar-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--border);
}

.kamar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.kamar-card:hover .kamar-image img {
  transform: scale(1.05);
}

.kamar-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.tag-vip {
  background-color: var(--primary);
}

.tag-standard {
  background-color: var(--secondary);
}

.kamar-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kamar-info h3 {
  margin-bottom: 8px;
}

.kamar-desc {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.facilities-bullets {
  margin-bottom: 32px;
}

.facilities-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.facilities-bullets li svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.kamar-price-box {
  background-color: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  border: 1px dashed var(--border);
}

.price-item {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.price-unit {
  font-size: 0.75rem;
  font-weight: 400;
}

.kamar-disclaimer {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

/* Specifications / Amenities Section */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.spec-card {
  background-color: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.spec-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.spec-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.spec-icon svg {
  width: 24px;
  height: 24px;
}

.spec-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.spec-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Tata Tertib / Rules Section */
.rules-container {
  max-width: 800px;
  margin: 0 auto;
}

.rules-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.rule-item {
  display: flex;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.6;
  font-feature-settings: "tnum";
}

.rule-text h4 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.rule-text p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Calculator & Booking Form Section */
.calculator-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.calculator-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  min-width: 250px;
}

label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

input, select {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--bg-primary);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* Calculator Summary Box */
.calculator-summary {
  background-color: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 12px 0;
  border: 1px solid var(--border);
}

.calculator-summary h4 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.summary-row strong {
  color: var(--text);
}

.summary-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.total-row {
  margin-bottom: 12px;
}

.total-row span {
  font-weight: 700;
  color: var(--text);
}

.total-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary) !important;
}

.summary-note {
  font-size: 0.775rem;
  line-height: 1.4;
}

.wa-icon {
  margin-right: 10px;
}

/* Location & Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.info-block {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-text h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.info-text p {
  font-size: 0.95rem;
}

.text-hint {
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Map Card */
.map-visual-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-header h4 {
  font-size: 1rem;
}

.map-header span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.map-body {
  padding: 24px;
}

.custom-route-map {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

/* Map Route colors */
.custom-route-map text {
  font-family: var(--font-sans);
}

.custom-route-map [stroke="var(--border)"] {
  stroke: var(--border);
}

.custom-route-map [fill="var(--bg-card)"] {
  fill: var(--bg-card);
}

.custom-route-map [fill="var(--bg-muted)"] {
  fill: var(--bg-muted);
}

.custom-route-map [fill="var(--primary)"] {
  fill: var(--primary);
}

.custom-route-map [stroke="var(--primary)"] {
  stroke: var(--primary);
}

.custom-route-map [fill="var(--primary-light)"] {
  fill: var(--primary-light);
}

.custom-route-map [fill="var(--text)"] {
  fill: var(--text);
}

.custom-route-map [fill="var(--text-muted)"] {
  fill: var(--text-muted);
}

.map-notes {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: flex-start;
}

.landmark-bullet {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(5, 150, 105, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

.map-notes p {
  font-size: 0.85rem;
}

/* Footer Section */
.main-footer {
  background-color: #0f172a; /* Fixed dark background for footer to ground the page */
  color: #f8fafc;
  padding: 64px 24px;
}

.main-footer h3, .main-footer h4 {
  color: #ffffff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.footer-brand-section {
  max-width: 400px;
}

.footer-brand-section h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.footer-brand-section h3 .dot {
  color: #34d399; /* Emerald 400 */
}

.footer-brand-section p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links-section h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-section a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links-section a:hover {
  color: #ffffff;
}

.footer-credits {
  grid-column: 1 / -1;
  border-top: 1px solid #334155;
  padding-top: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 60px 20px;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu a {
    font-size: 1.25rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Hamburger animation when active */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .calculator-card {
    padding: 24px;
  }
}
