.detail-hero {
  padding-bottom: 2.6rem;
}

.detail-main {
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.detail-card,
.detail-section,
.detail-side-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.45rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.detail-card {
  overflow: hidden;
}

.image-stage {
  position: relative;
  overflow: hidden;
  background: #08161f;
}

.image-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 31, 0.1) 0%, rgba(8, 22, 31, 0.18) 42%, rgba(8, 22, 31, 0.28) 100%);
  pointer-events: none;
}

.detail-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
  transform-origin: center center;
  cursor: zoom-in;
}

.image-tools {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.tool-btn {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(11, 27, 35, 0.76);
  color: #fff;
  border-radius: 0.55rem;
  padding: 0.38rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.45rem;
  padding: 0.65rem;
  border-top: 1px solid #ecdcbf;
  border-bottom: 1px solid #ecdcbf;
  background: rgba(255, 248, 236, 0.94);
}

.thumb-btn {
  border: 1px solid #e2cfac;
  border-radius: 0.7rem;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.thumb-btn:hover {
  transform: translateY(-1px);
}

.thumb-btn img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.thumb-btn.active {
  border-color: #0f766e;
  box-shadow: 0 0 0 1px #0f766e inset, 0 10px 18px rgba(14, 107, 106, 0.16);
}

.detail-content {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.detail-content h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(2.3rem, 4.8vw, 3.4rem);
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

.detail-subline,
.detail-address {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-address {
  font-size: 0.94rem;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(19, 37, 45, 0.08);
  border-radius: 999px;
  background: #fff7ea;
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-copy {
  margin: 0;
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.detail-overview-block {
  padding-top: 0.15rem;
  border-top: 1px dashed rgba(19, 37, 45, 0.12);
}

.detail-side {
  position: sticky;
  top: 1rem;
}

.detail-side-card {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.side-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}

.detail-side-price {
  padding: 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, #123743 0%, #0e6b6a 100%);
  box-shadow: 0 18px 30px rgba(18, 55, 67, 0.18);
}

.price-caption {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.detail-side-price .price-tier-inline {
  max-width: 100%;
}

.detail-side-price .price-tier-label {
  white-space: normal;
}

.detail-side-price .detail-side-note {
  color: rgba(255, 255, 255, 0.84);
}

.detail-side-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-side-lead {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(217, 138, 49, 0.24);
  border-radius: 1rem;
  background: #fff7ea;
  font-weight: 600;
  line-height: 1.6;
}

.detail-side-note-strong {
  padding-top: 0.9rem;
  border-top: 1px dashed #e5d3b2;
}

.policy-grid {
  display: grid;
  gap: 0.65rem;
}

.policy-card {
  padding: 0.8rem 0.9rem;
  border: 1px solid #ead7b6;
  border-radius: 1rem;
  background: #fffaf1;
}

.policy-card strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
}

.policy-card span {
  display: block;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink);
}

.detail-actions {
  flex-direction: column;
}

.detail-actions .btn {
  width: 100%;
}

.detail-section {
  margin-top: 1rem;
  padding: 1.15rem;
}

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

.detail-section-note {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: right;
}

.room-options {
  margin: 0;
  padding-top: 0;
  border-top: none;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.room-card {
  border: 1px solid rgba(19, 37, 45, 0.1);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff9ef 0%, #fffdf8 100%);
  padding: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(17, 36, 45, 0.08);
}

.room-card.active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(14, 107, 106, 0.18), 0 18px 26px rgba(17, 36, 45, 0.1);
  background: linear-gradient(180deg, #f3fdfb 0%, #ffffff 100%);
}

.room-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.room-card p {
  margin: 0.18rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.room-price-line {
  margin-top: 0.65rem;
}

.room-total {
  margin: 0.85rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-weight: 700;
}

.room-total .price-tier-inline,
#roomTotal.price-tier-inline {
  vertical-align: middle;
}

.detail-stats .price-tier-inline::before,
.room-price-line .price-tier-inline::before,
.room-total .price-tier-inline::before,
#roomTotal.price-tier-inline::before {
  bottom: -0.21rem;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}

.kv-item {
  border: 1px solid #ead7b6;
  border-radius: 1rem;
  background: #fffaf1;
  padding: 0.8rem 0.9rem;
}

.kv-item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  opacity: 1;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kv-item span {
  color: var(--ink);
  line-height: 1.6;
}

.plain-list {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}

.plain-list li {
  margin: 0.3rem 0;
  line-height: 1.6;
}

.chips-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips-list li {
  margin: 0;
  border: 1px solid rgba(217, 138, 49, 0.25);
  background: #fff5e5;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-size: 0.86rem;
}

.detail-list-grid {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.detail-list-grid li {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #ead7b6;
  border-radius: 1rem;
  background: #fffaf1;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid #ead7b6;
  border-radius: 1rem;
  padding: 0.65rem 0.85rem;
  background: #fffaf1;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.image-menu {
  position: fixed;
  z-index: 3000;
  display: none;
  background: #fff;
  border: 1px solid #d4c29f;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.image-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 0.5rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.image-menu button:hover {
  background: #fff4df;
}

@media (max-width: 1100px) {
  .detail-layout,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .detail-main {
    margin-top: -1.25rem;
  }

  .detail-image {
    height: 290px;
  }

  .gallery-strip {
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  }

  .thumb-btn img {
    height: 58px;
  }

  .detail-content {
    padding: 1rem;
  }

  .detail-content h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .section-head {
    align-items: flex-start;
  }

  .detail-section-note {
    text-align: left;
  }

  .room-grid,
  .detail-list-grid,
  .kv-grid {
    grid-template-columns: 1fr;
  }
}
