:root {
  --bg: #080a0c;
  --panel: #11161a;
  --panel-2: #171d22;
  --ink: #fbf7ee;
  --muted: #b8afa3;
  --gold: #d6b46d;
  --gold-2: #f1d99b;
  --green: #16a267;
  --green-dark: #0d7b52;
  --line: rgba(214, 180, 109, 0.2);
  --soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(214, 180, 109, 0.16), transparent 30rem),
    radial-gradient(circle at 80% 15%, rgba(22, 162, 103, 0.12), transparent 24rem),
    linear-gradient(135deg, #080a0c 0%, #11161a 55%, #241b12 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

body, button, input, select, textarea { font: inherit; }

a { color: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 46px);
  background: rgba(8, 10, 12, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-2), #9d7431);
  color: #161009;
  font-weight: 900;
}

.brand strong, .brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a, .nav-whatsapp, .primary-btn, .secondary-btn {
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.main-nav a {
  padding: 0 14px;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.nav-whatsapp, .primary-btn {
  border: 0;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 14px 34px rgba(22, 162, 103, 0.22);
}

.secondary-btn {
  border: 1px solid var(--line);
  padding: 0 18px;
  background: rgba(214, 180, 109, 0.1);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(28px, 6vw, 74px) clamp(16px, 4vw, 46px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.hero-text, .section-heading p, .room-card p, .benefit-grid p, .location-card p, .review-grid p, .faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 620px;
  font-size: 1.08rem;
}

.hero-actions, .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.compact-actions {
  margin-top: 14px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span, .availability-badge, .feature-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-media, .gallery-main {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(214, 180, 109, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.hero-media img, .gallery-main img, .room-photo img, .thumb img, .slide-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-placeholder {
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.photo-placeholder strong {
  display: block;
  color: var(--gold-2);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.section {
  padding: clamp(34px, 6vw, 76px) clamp(16px, 4vw, 46px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.featured-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 440px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.slide-card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(17, 22, 26, 0.9);
}

.slide-photo {
  height: 250px;
}

.slide-card div:not(.slide-photo) {
  padding: 16px;
}

.room-grid, .pricing-grid, .review-grid, .admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-sections {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.category-block {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(23, 29, 34, 0.84), rgba(12, 15, 18, 0.92));
  box-shadow: var(--shadow);
}

.category-copy {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

.category-copy h2 {
  margin-bottom: 0;
}

.category-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.category-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: var(--panel);
  min-height: 220px;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card:focus-visible,
.thumb:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.nav-whatsapp:focus-visible,
.main-nav a:focus-visible {
  outline: 3px solid rgba(241, 217, 155, 0.8);
  outline-offset: 3px;
}

.room-card, .price-card, .benefit-grid article, .location-card, .review-grid article, .admin-card, .details-info {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 29, 34, 0.96), rgba(12, 15, 18, 0.96));
  box-shadow: var(--shadow);
}

.room-card, .price-card, .benefit-grid article, .location-card, .review-grid article, .admin-card, .details-info {
  padding: 18px;
}

.room-photo {
  height: 230px;
  margin: -18px -18px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.price-card strong {
  display: block;
  font-size: 2rem;
  color: var(--gold-2);
}

.price-card span {
  color: var(--muted);
  font-weight: 700;
}

.short-stay-note {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  border: 1px solid rgba(22, 162, 103, 0.34);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(22, 162, 103, 0.14), rgba(214, 180, 109, 0.08));
  box-shadow: var(--shadow);
}

.short-stay-note strong {
  color: var(--gold-2);
  font-size: 1.04rem;
}

.short-stay-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 22, 26, 0.92);
  box-shadow: var(--shadow);
}

.pricing-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.pricing-table-wrap th,
.pricing-table-wrap td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.pricing-table-wrap th {
  color: var(--gold-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-table-wrap td {
  color: var(--ink);
}

.pricing-table-wrap tr:last-child td {
  border-bottom: 0;
}

.pricing-table-wrap a {
  color: #6ff0b4;
  font-weight: 900;
  text-decoration: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.location-card {
  position: sticky;
  top: 96px;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.gallery {
  display: grid;
  gap: 12px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.thumb {
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(17, 22, 26, 0.88);
}

label {
  display: grid;
  gap: 8px;
  color: var(--gold-2);
  font-size: 0.84rem;
  font-weight: 900;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(214, 180, 109, 0.28);
  border-radius: 10px;
  background: #090d10;
  color: var(--ink);
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  padding-top: 12px;
  resize: vertical;
}

.form-wide { grid-column: 1 / -1; }

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(17, 22, 26, 0.82);
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.map-section iframe {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 18px;
  filter: saturate(0.9) contrast(1.05);
}

.admin-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-box strong {
  display: block;
  color: var(--gold-2);
  font-size: 2rem;
}

.admin-category {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.admin-category:last-child { border-bottom: 0; }

.admin-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.image-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 4vw, 46px);
  border-top: 1px solid var(--line);
  background: #07090a;
}

.site-footer p { margin-bottom: 0; color: var(--muted); }

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1dbf73, #0d7b52);
  color: white;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 84vh;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(17, 22, 26, 0.94);
  color: var(--ink);
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  transform: translate(-50%, 18px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f7ecd0;
  color: #18110a;
  font-weight: 900;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.room-card, .price-card, .slide-card, .benefit-grid article, .review-grid article {
  animation: riseIn 420ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .room-grid, .pricing-grid, .review-grid, .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero, .details-layout, .split-section, .admin-panel, .category-block {
    grid-template-columns: 1fr;
  }

  .location-card, .category-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-whatsapp {
    min-height: 40px;
    padding: 0 12px;
  }

  .featured-slider {
    grid-auto-columns: minmax(240px, 82vw);
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .hero-media, .gallery-main {
    min-height: 300px;
  }

  .room-grid, .pricing-grid, .review-grid, .benefit-grid, .admin-stats, .booking-form {
    grid-template-columns: 1fr;
  }

  .category-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thumb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-controls {
    grid-template-columns: 1fr;
  }

  .form-wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-actions, .card-actions, .site-footer {
    flex-direction: column;
  }

  .primary-btn, .secondary-btn, .nav-whatsapp {
    width: 100%;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    min-height: 48px;
    padding: 0 14px;
    max-width: calc(100vw - 24px);
  }

  .category-block {
    padding: 12px;
  }

  .category-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 260px;
  }

  .pricing-table-wrap table {
    min-width: 620px;
  }

  .lightbox {
    padding: 12px;
  }
}
