:root {
  color-scheme: dark;
  --panel: rgba(34, 28, 24, 0.82);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f3ede6;
  --muted: #cdbfae;
  --accent-strong: #e5b56f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 140% 60% at 50% 0%, rgba(112, 84, 40, 0.26) 0%, transparent 52%),
    linear-gradient(180deg, #17120e 0%, #090909 100%);
  background-repeat: no-repeat;
}

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

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell-hero {
  padding-top: 28px;
  padding-bottom: 24px;
}

.fullscreen-carousel-shell {
  position: relative;
  margin-bottom: 48px;
}

.carousel-intro-wrap {
  width: 100%;
}

.carousel-intro {
  width: 100%;
}

.carousel-intro h1,
.panel h2,
#carousel-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.carousel-intro h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  color: var(--accent-strong);
}

.hero-text,
.panel p,
.carousel-description {
  color: var(--muted);
  line-height: 1.75;
}

.carousel {
  position: relative;
  height: 100vh;
}

.carousel-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #050505;
}

.carousel-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.04) 38%, rgba(0, 0, 0, 0.08) 100%);
}

#carousel-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  transition: opacity 180ms ease;
}

#carousel-image:not([src]),
#carousel-image.is-loading:not([src]) {
  opacity: 0;
}

#carousel-image.is-contained {
  object-fit: contain;
  background: #050505;
}

.carousel-meta-shell {
  margin-top: 18px;
}

.carousel-overlay {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  margin-bottom: 18px;
}

.carousel-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

#carousel-title {
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  margin-bottom: 10px;
  max-width: none;
  width: 100%;
}

.carousel-description {
  max-width: none;
  width: 100%;
  margin: 0;
  font-size: 1rem;
}

.carousel-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  z-index: 4;
}

.carousel-empty[hidden] {
  display: none !important;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  height: 72px;
  width: 72px;
  border: 0;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  background: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.carousel-nav.prev {
  left: 18px;
}

.carousel-nav.next {
  right: 18px;
}

.carousel-nav:hover {
  color: var(--accent-strong);
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

.thumbnail {
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.thumbnail:hover {
  transform: translateY(-2px);
}

.thumbnail.is-active {
  background: rgba(229, 181, 111, 0.18);
  border-color: rgba(229, 181, 111, 0.45);
}

.thumbnail img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.section {
  margin-top: 40px;
}

.details-layout {
  display: grid;
  gap: 18px;
}

.details-overview {
  width: 100%;
}

.details-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel-large {
  grid-column: span 2;
}

.stat-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.inquire-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.inquire-toggle {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 600;
  color: #1a120b;
  background: linear-gradient(135deg, #f0c98d 0%, #d9a45f 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.inquire-toggle:hover,
.inquire-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
}

.inquire-panel {
  width: min(380px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: rgba(21, 16, 13, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.inquire-panel[hidden] {
  display: none !important;
}

.inquire-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.inquire-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.inquire-close {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.inquire-copy,
.inquire-status,
.inquire-form label span {
  color: var(--muted);
}

.inquire-copy {
  margin: 12px 0 18px;
  line-height: 1.7;
}

.inquire-form {
  display: grid;
  gap: 14px;
}

.inquire-form label {
  display: grid;
  gap: 7px;
}

.inquire-form input,
.inquire-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.inquire-form textarea {
  resize: vertical;
  min-height: 132px;
}

.inquire-form input:focus,
.inquire-form textarea:focus {
  outline: 1px solid rgba(229, 181, 111, 0.5);
  border-color: rgba(229, 181, 111, 0.45);
}

.inquire-submit {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 600;
  color: #1a120b;
  background: linear-gradient(135deg, #f0c98d 0%, #d9a45f 100%);
  cursor: pointer;
}

.inquire-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.inquire-status {
  margin: 0;
  min-height: 1.5em;
  line-height: 1.5;
}

.inquire-confirmation {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.inquire-confirmation[hidden] {
  display: none !important;
}

.inquire-confirmation-card {
  width: min(430px, 100%);
  padding: 34px 28px;
  border: 1px solid rgba(229, 181, 111, 0.42);
  border-radius: 28px;
  text-align: center;
  background: rgba(21, 16, 13, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.inquire-confirmation-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #1a120b;
  font-size: 2.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f0c98d 0%, #d9a45f 100%);
}

.inquire-confirmation-card h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
}

.inquire-confirmation-card p:not(.inquire-confirmation-icon) {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.inquire-confirmation-card button {
  border: 0;
  border-radius: 14px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 600;
  color: #1a120b;
  background: linear-gradient(135deg, #f0c98d 0%, #d9a45f 100%);
  cursor: pointer;
}

@media (max-width: 900px) {
  .details-panels {
    grid-template-columns: 1fr;
  }

  .panel-large {
    grid-column: span 1;
  }

  .carousel {
    height: auto;
  }

  .carousel-stage {
    height: auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  #carousel-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    background: #050505;
  }

  .carousel-stage::after {
    inset: auto 0 0 0;
    height: 36%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(ellipse 200% 42% at 50% 0%, rgba(112, 84, 40, 0.22) 0%, transparent 58%),
      linear-gradient(180deg, #17120e 0%, #090909 100%);
    background-repeat: no-repeat;
  }

  .inquire-widget {
    right: 10px;
    bottom: 10px;
  }

  .inquire-toggle {
    padding: 13px 18px;
  }

  .inquire-panel {
    width: min(100vw - 20px, 380px);
    padding: 18px;
    border-radius: 20px;
  }

  .page-shell,
  .carousel-thumbnails {
    width: min(100% - 20px, 1240px);
  }

  .page-shell-hero {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .carousel-intro h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }

  .carousel-overlay {
    margin-bottom: 16px;
  }

  .carousel-nav {
    height: 56px;
    width: 56px;
    font-size: 1.6rem;
  }

  .carousel-nav.prev {
    left: 8px;
  }

  .carousel-nav.next {
    right: 8px;
  }

  .carousel-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .thumbnail img {
    height: 70px;
  }
}
