:root {
  --page-bg: #eceeef;
  --card: #f6f7f8;
  --card-strong: #ffffff;
  --line: #dbe0e4;
  --text: #0f1318;
  --muted: #6e7680;
  --muted-soft: #9ca5ae;
  --primary: #17dddd;
  --primary-deep: #101d38;
  --danger-bg: #fff1ef;
  --danger-line: #ffcfc8;
  --danger-text: #b42318;
  --shadow-soft: 0 8px 24px rgba(13, 18, 24, 0.08);
  --shadow-glass: 0 14px 34px rgba(16, 23, 32, 0.13);
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 500px at 0% -10%, rgba(255, 255, 255, 0.82), transparent 60%),
    radial-gradient(900px 460px at 100% -20%, rgba(23, 221, 221, 0.13), transparent 58%),
    var(--page-bg);
  color: var(--text);
}

.page {
  width: min(1140px, calc(100% - 1rem));
  margin: 0.55rem auto 1.8rem;
}

.hidden {
  display: none !important;
}

.loading {
  display: grid;
  gap: 0.6rem;
}

.skeleton {
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #e2e6e9 0%, #f1f3f5 45%, #e2e6e9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}

.skeleton.media {
  height: min(66vw, 420px);
}

.skeleton.title {
  width: 88%;
  height: 42px;
}

.skeleton.line {
  width: 100%;
  height: 16px;
}

.skeleton.line.small {
  width: 34%;
}

.skeleton.action {
  width: 100%;
  height: 44px;
}

.skeleton.card {
  width: 100%;
  height: 154px;
}

.skeleton.card.tall {
  height: 260px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger-text);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.error h1 {
  margin: 0;
  font-size: 1.2rem;
}

.error p {
  margin: 0.4rem 0 0;
}

.content {
  display: grid;
  gap: 0.72rem;
}

.media-section,
.summary-section,
.attribute-card,
.location-section,
.inquiry-section {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.media-section {
  padding: 0.56rem;
}

.carousel-wrap {
  position: relative;
}

.main-media {
  width: 100%;
  height: min(74vw, 500px);
  object-fit: cover;
  border-radius: 10px;
  background: #dbe1e6;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #dce1e5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #20262d;
  cursor: pointer;
  font-size: 1.18rem;
  line-height: 1;
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

.group-card-row {
  margin-top: 0.58rem;
  display: flex;
  gap: 0.48rem;
  overflow-x: auto;
  padding-bottom: 0.14rem;
  scrollbar-width: none;
}

.group-card-row::-webkit-scrollbar {
  display: none;
}

.group-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  min-width: 112px;
  max-width: 112px;
  padding: 0.4rem;
  cursor: pointer;
}

.group-card.active {
  border-color: #14c8c8;
  box-shadow: inset 0 0 0 1px #14c8c8, 0 10px 24px rgba(20, 200, 200, 0.16);
}

.group-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  overflow: hidden;
  background: #e2e8ed;
  display: grid;
  place-items: center;
}

.group-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.group-preview-play {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(16, 22, 29, 0.7);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  line-height: 1;
}

.group-preview-badge {
  font-size: 0.61rem;
  font-weight: 700;
  color: #4f5964;
  border: 1px solid #cfd7de;
  border-radius: 999px;
  background: #f8fafb;
  padding: 0.12rem 0.4rem;
}

.group-content {
  min-width: 0;
}

.group-name {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a2129;
  line-height: 1.2;
  text-align: center;
}

.summary-section,
.inquiry-section,
.attribute-card,
.location-section {
  padding: 0.82rem;
}

.category-pill {
  display: inline-block;
  background: #ddfcfb;
  color: #0f4e53;
  border: 1px solid #baf3f3;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.48rem;
}

.property-title {
  margin: 0.48rem 0 0;
  font-size: clamp(1.24rem, 6vw, 2.05rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.property-description {
  margin: 0.44rem 0 0;
  color: #5f6873;
  font-size: 0.92rem;
  font-weight: 500;
}

.address {
  margin: 0.58rem 0 0;
  color: #55606b;
  font-weight: 500;
  font-size: 0.95rem;
}

.listed-by {
  margin: 0.42rem 0 0;
  color: #27313a;
  font-size: 0.95rem;
}

.listed-by span {
  font-weight: 700;
}

.action-row {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.55);
  min-height: 42px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: #11161c;
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

.action-btn.map {
  background: linear-gradient(180deg, #192747 0%, #111a32 100%);
  color: #ecf3ff;
  border-color: #0b1328;
}

.detail-layout {
  display: grid;
  gap: 0.72rem;
}

.left-stack {
  display: grid;
  gap: 0.72rem;
}

.attributes-section {
  display: grid;
  gap: 0.72rem;
}

.section-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.54rem;
  font-size: 1.22rem;
  font-weight: 800;
}

.section-title .dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #0dbdbd;
  display: inline-block;
  position: relative;
}

.section-title .dot::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #0dbdbd;
  position: absolute;
  top: 3px;
  left: 3px;
}

.attribute-header {
  margin: 0;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 1.16rem;
  font-weight: 800;
}

.attribute-header .bar {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  display: inline-block;
}

.attribute-grid {
  margin-top: 0.76rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.82rem;
}

.attribute-row {
  display: grid;
  gap: 0.3rem;
}

.attr-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.attr-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #121821;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: #ecf0f3;
  border: 1px solid #e0e6ea;
  color: #4a5661;
  padding: 0.17rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.option-chip img {
  width: 14px;
  height: 14px;
  object-fit: cover;
  border-radius: 4px;
}

.location-section {
  display: grid;
  gap: 0.65rem;
}

.map-preview {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #d7dde2;
}

.map-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.inquiry-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.inquiry-subtitle {
  margin: 0.35rem 0 0.82rem;
  color: #69747f;
  font-size: 0.9rem;
}

.inquiry-form {
  display: grid;
  gap: 0.64rem;
}

.inquiry-form label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #596572;
  text-transform: uppercase;
}

.inquiry-form input,
.inquiry-form textarea {
  margin-top: 0.3rem;
  width: 100%;
  border: 1px solid #dce2e7;
  background: #edf0f3;
  border-radius: 8px;
  padding: 0.64rem 0.68rem;
  font: inherit;
  font-size: 0.95rem;
  color: #10161d;
}

.inquiry-form textarea {
  min-height: 80px;
  resize: vertical;
}

.inquiry-btn {
  margin-top: 0.15rem;
  border: 0;
  border-radius: 10px;
  min-height: 45px;
  background: linear-gradient(90deg, #11d8d8 0%, #1deeee 100%);
  color: #002020;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(17, 216, 216, 0.25);
}

.inquiry-form.success {
  outline: 2px solid #5be9cb;
  border-radius: 10px;
  padding: 0.3rem;
}

.empty-media {
  background: #e5eaee;
  border-radius: 10px;
  height: min(56vw, 320px);
  display: grid;
  place-items: center;
  color: #617180;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.84);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 200;
}

@media (min-width: 760px) {
  .page {
    width: min(1180px, calc(100% - 2.1rem));
    margin-top: 1rem;
  }

  .summary-section,
  .inquiry-section,
  .attribute-card,
  .location-section {
    padding: 1rem;
  }

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

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.85fr);
    align-items: start;
    gap: 0.8rem;
  }

  .inquiry-section {
    position: sticky;
    top: 0.7rem;
    box-shadow: var(--shadow-soft);
    background: #f7f8f9;
  }
}
