@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #061434 0, #00091B 60%);
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
  color: inherit;
}

/* Layout wrapper */

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 80px; /* bottom padding so content stays above mobile CTA */
  animation: fadeIn 800ms ease;
}

/* Language toggle */

.lang-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  min-height: 36px; /* Better touch target */
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0.7;
  transition: background 160ms ease, opacity 160ms ease, transform 120ms ease, border-color 160ms ease;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.lang-btn .flag {
  font-size: 14px;
}

.lang-btn.active {
  background: rgba(173, 30, 255, 0.3);
  border-color: #ad1eff;
  opacity: 1;
  transform: translateY(-1px);
}

.lang-btn:hover {
  opacity: 1;
}

/* Fade-in animation */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header / hero */

.header {
  text-align: center;
}

.logo {
  display: block;
  margin: 0 auto 18px;
  max-width: 260px;
  height: auto;
}

.section {
  margin-top: 40px;
}

.section h2 {
  font-size: 26px;
  margin: 0 0 10px;
  text-align: center;
}

.section p {
  margin: 0 auto 22px;
  max-width: 640px;
}

.section-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  opacity: 0.7;
}

.section-hero h1 {
  font-size: 30px;
  line-height: 1.1;
  margin: 8px auto 12px;
  max-width: 520px;
}

.hero-subtitle {
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.hero-actions .menu-button {
  width: 100%;
  min-height: 44px; /* Ensure touch-friendly size */
}

/* Hero poster */

.hero-poster {
  margin: 18px auto 18px;
  max-width: 550px;
  width: 100%;
  padding: 0 4px; /* Small padding to prevent edge touching on mobile */
}

.hero-poster-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(173, 30, 255, 0.5);
}

/* Buttons */

.menu-button {
  display: inline-block;
  padding: 12px 26px;
  min-height: 44px; /* Touch-friendly minimum size */
  border-radius: 999px;
  border: 2px solid #ad1eff;
  color: #ffffff;
  background: rgba(79, 235, 254, 0.15);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  transition: all 200ms ease;
  box-shadow: 0 8px 24px rgba(166, 15, 253, 0.35);
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.menu-button.primary {
  background: #ad1eff;
  border-color: #ad1eff;
}

.menu-button.secondary {
  background: transparent;
}

.menu-button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.menu-button.whatsapp-btn {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.5);
}

.menu-button.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.3);
  border-color: #25d366;
}

.menu-button:hover,
.menu-button:focus-visible {
  background: #ad1eff;
  color: #00091B;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 32px rgba(166, 15, 253, 0.45);
  outline: none;
}

/* About pills */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 235, 254, 0.4);
  font-size: 12px;
  opacity: 0.9;
}

/* Rooms / gallery */

.section-rooms .room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.room-card {
  background: rgba(6, 20, 52, 0.92);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(173, 30, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  text-align: left;
}

.room-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.room-card h3 {
  font-size: 18px;
  margin: 12px 16px 4px;
}

.room-card p {
  margin: 0 16px 14px 16px;
  text-align: left;
}

/* Visit / location */

.section-visit .visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 8px;
}

.section-visit .visit-grid > div:first-child {
  text-align: left;
}

.section-visit h3 {
  font-size: 18px;
  margin: 0 0 6px;
  text-align: left;
}

.section-visit .visit-grid > div:last-child h3 {
  text-align: left;
}

.address {
  text-align: left;
  margin: 0 0 22px; /* remove auto-centering from .section p */
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.hours-list li {
  margin-bottom: 4px;
}

/* FAQ */

.section-faq .faq-list {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: rgba(6, 20, 52, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(79, 235, 254, 0.4);
  margin-bottom: 10px;
  padding: 10px 14px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 600;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.5;
}

/* Footer / social */

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.icons {
  text-align: center;
  margin-bottom: 10px;
}

.icons a {
  display: inline-block;
  margin: 0 8px;
  transition: transform 150ms ease, opacity 150ms ease;
}

.icons a:hover {
  transform: translateY(-2px) scale(1.05);
  opacity: 0.9;
}

.footer-note {
  font-size: 12px;
  opacity: 0.7;
  margin: 0;
}

/* Mobile sticky CTA */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 100;
}

.mobile-cta-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid #ad1eff;
  color: #ffffff;
  background: #ad1eff;
}

.mobile-cta-btn.secondary {
  background: transparent;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 16px;
  width: 44px;
  height: 44px;
  min-width: 44px; /* Ensure touch-friendly size */
  min-height: 44px;
  border-radius: 50%;
  background: rgba(173, 30, 255, 0.9);
  border: 2px solid #ad1eff;
  color: #ffffff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, background 150ms ease;
  box-shadow: 0 8px 24px rgba(166, 15, 253, 0.35);
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  touch-action: manipulation; /* Improve touch response */
}

.back-to-top.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ad1eff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(166, 15, 253, 0.45);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Mobile-specific improvements */
@media (max-width: 480px) {
  .wrapper {
    padding: 20px 12px 80px; /* Slightly reduced padding on very small screens */
  }
  
  .section h2 {
    font-size: 22px; /* Slightly smaller headings on very small screens */
  }
  
  .hero-subtitle {
    font-size: 15px; /* Ensure readable text size */
    line-height: 1.5;
  }
  
  .lang-toggle {
    margin-bottom: 16px;
  }
  
  .hero-poster {
    padding: 0;
    margin: 18px -12px; /* Full width on very small screens */
  }
  
  .hero-poster-img {
    border-radius: 12px; /* Slightly smaller radius on mobile */
  }
}

/* Larger screens */
@media (min-width: 700px) {
  .mobile-cta {
    display: none;
  }
  
  .back-to-top {
    bottom: 24px;
    right: 24px;
  }
  
  .section-hero h1 {
    font-size: 42px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  
  .hero-actions .menu-button {
    width: auto;
    min-width: 140px;
  }

  .section-rooms .room-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-visit .visit-grid {
    grid-template-columns: 1.1fr 1.1fr;
    align-items: start;
  }

  .section-visit .visit-grid > div:first-child {
    text-align: left;
  }

  .section-visit .visit-grid > div:last-child {
    text-align: left;
  }

  .wrapper {
    padding: 32px 24px 40px;
  }
}