* {
  box-sizing: border-box;
}

:root {
  color: #16382d;
  background: #f8f5ea;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8f5ea;
  font-family: Arial, sans-serif;
}

a {
  color: inherit;
}

.home,
.detail {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
}

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

.home-header {
  color: #12382f;
}

.detail-header {
  color: #fffdf4;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.tour-list {
  display: grid;
  gap: 12px;
}

.tour-button {
  position: relative;
  display: flex;
  min-height: 104px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: #fffaf0;
  color: #12382f;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.tour-button span {
  position: relative;
  z-index: 1;
  display: flex;
  width: 62%;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 18px;
}

.tour-button strong {
  font-size: 1.55rem;
  line-height: 1;
}

.tour-button small {
  font-size: 0.9rem;
  line-height: 1.25;
}

.tour-button img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  height: 100%;
  object-fit: cover;
}

.tour-button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #fffaf0 0%, #fffaf0 54%, rgba(255, 250, 240, 0.2) 78%);
}

.tour-button.featured {
  min-height: 148px;
  border-color: #f4c33e;
  background: #073d31;
  color: #ffe06a;
}

.tour-button.featured::after {
  background: linear-gradient(90deg, #073d31 0%, #073d31 55%, rgba(7, 61, 49, 0.1) 82%);
}

.tour-button.featured strong {
  font-size: 2.25rem;
}

.detail {
  padding-bottom: 132px;
  background: rgba(255, 252, 244, 0.96);
}

.detail-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin: -20px -20px 18px;
  padding: 20px;
  background: #093d33;
}

.detail-header h1 {
  font-size: clamp(2rem, 10vw, 4rem);
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  padding: 0 14px;
  color: #fffdf4;
  font-weight: 800;
  text-decoration: none;
}

.poster-viewer {
  min-width: 0;
}

.poster-carousel {
  display: flex;
  overflow-x: auto;
  border-radius: 6px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.poster-carousel::-webkit-scrollbar {
  display: none;
}

.poster-slide {
  display: flex;
  width: 100%;
  min-width: 100%;
  margin: 0;
  align-items: flex-start;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.poster {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(22, 56, 45, 0.22);
}

.carousel-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.carousel-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #093d33;
  color: #fffdf4;
  cursor: pointer;
}

.carousel-button span {
  font-size: 2rem;
  line-height: 1;
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.28;
}

.carousel-count {
  margin: 0;
  color: #285246;
  font-weight: 800;
  text-align: center;
}

.booking-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 28px 16px 10px;
  border-top: 2px solid #e2c760;
  text-align: center;
}

.booking-panel h2,
.booking-panel p {
  margin: 0;
}

.booking-panel h2 {
  font-size: 1.5rem;
}

.booking-panel a {
  display: block;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}

.booking-qr {
  display: block;
  width: min(52vw, 220px);
  height: auto;
}

.booking-panel p {
  color: #285246;
  line-height: 1.4;
}

.booking-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(9, 61, 51, 0.2);
  background: rgba(255, 252, 244, 0.98);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}

.whatsapp-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #128c4a;
  color: white;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.booking-bar p {
  margin: 0;
  color: #285246;
  font-size: 0.92rem;
  text-align: center;
}

@media (min-width: 720px) {
  .home,
  .detail {
    padding: 32px;
  }

  .detail-header {
    margin: -32px -32px 24px;
    padding: 28px 32px;
  }

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

  .tour-button.featured {
    grid-column: 1 / -1;
  }
}
