:root {
  --dk-ink: #191816;
  --dk-charcoal: #585857;
  --dk-muted: #7b7770;
  --dk-border: #e4ddd2;
  --dk-surface: #fffdfa;
  --dk-warm: #f7f2e8;
  --dk-accent: #f8a918;
  --dk-accent-dark: #d88d08;
}

body {
  font-family: "Mulish", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dk-charcoal);
}

textarea {
  resize: vertical;
}

.dk-page {
  background:
    linear-gradient(180deg, rgba(247, 242, 232, 0.72), rgba(255, 253, 250, 0) 360px),
    var(--dk-surface);
}

.dk-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 18px;
}

.dk-container-embed {
  padding: 18px 8px;
}

.dk-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.dk-eyebrow {
  color: var(--dk-accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dk-title {
  color: var(--dk-ink);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.12;
  margin-top: 4px;
}

.dk-copy {
  color: var(--dk-muted);
  line-height: 1.65;
  margin-top: 10px;
  max-width: 680px;
}

.dk-filter {
  background: #fff;
  border: 1px solid var(--dk-border);
  border-radius: 5px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 160px 150px auto;
  margin-bottom: 22px;
  padding: 12px;
}

.dk-filter-embed {
  margin-top: 0;
}

.dk-input {
  border: 1px solid var(--dk-border);
  border-radius: 5px;
  color: var(--dk-ink);
  height: 44px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.dk-input:focus {
  border-color: var(--dk-accent);
  box-shadow: 0 0 0 3px rgba(248, 169, 24, 0.16);
}

.dk-btn {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  line-height: 1.15;
  min-height: 42px;
  padding: 0 16px;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: normal;
}

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

.dk-btn-accent {
  background: var(--dk-accent);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #fff;
}

.dk-btn-accent:hover {
  background: var(--dk-accent-dark);
}

.dk-btn-dark {
  background: var(--dk-ink);
  border: 1px solid var(--dk-ink);
  color: #fff;
}

.dk-btn-phone {
  background: var(--dk-accent);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #fff;
}

.dk-btn-phone:hover {
  background: var(--dk-accent-dark);
}

.dk-btn-whatsapp {
  background: #25d366;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #fff;
}

.dk-btn-whatsapp:hover {
  background: #1ebe5d;
}

.dk-btn-outline {
  background: #fff;
  border: 1px solid var(--dk-border);
  color: var(--dk-charcoal);
}

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

.dk-card {
  background: #fff;
  border: 1px solid var(--dk-border);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dk-card:hover {
  border-color: rgba(248, 169, 24, 0.55);
  box-shadow: 0 16px 36px rgba(25, 24, 22, 0.08);
  transform: translateY(-2px);
}

.dk-card-media {
  aspect-ratio: 4 / 3;
  background: var(--dk-warm);
  overflow: hidden;
}

.dk-card-media img,
.dk-main-image img,
.dk-thumb {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dk-placeholder {
  align-items: center;
  color: #a29a90;
  display: grid;
  height: 100%;
  justify-items: center;
}

.dk-card-body {
  padding: 16px;
}

.dk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dk-badge {
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.dk-badge-condition {
  background: rgba(248, 169, 24, 0.13);
  color: #9a6200;
}

.dk-badge-sold {
  background: #eee8dd;
  color: var(--dk-charcoal);
}

.dk-card-title {
  color: var(--dk-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.32;
  margin-top: 12px;
  min-height: 48px;
}

.dk-card-meta {
  color: var(--dk-muted);
  font-size: 14px;
  margin-top: 8px;
}

.dk-card-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
}

.dk-price {
  color: var(--dk-ink);
  font-size: 18px;
  font-weight: 800;
}

.dk-empty {
  background: #fff;
  border: 1px solid var(--dk-border);
  border-radius: 5px;
  padding: 34px;
  text-align: center;
}

.dk-detail-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.dk-back {
  color: var(--dk-charcoal);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 6px;
  margin-bottom: 18px;
}

.dk-main-image {
  aspect-ratio: 4 / 3;
  background: var(--dk-warm);
  border: 1px solid var(--dk-border);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.dk-gallery.is-switching .dk-main-image img {
  opacity: 0;
  transform: scale(1.01);
}

.dk-main-image img {
  transition: opacity 140ms ease, transform 180ms ease;
}

.dk-gallery-nav {
  align-items: center;
  background: rgba(25, 24, 22, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 160ms ease, transform 160ms ease;
  width: 40px;
  z-index: 2;
}

.dk-gallery-nav:hover {
  background: var(--dk-accent);
  transform: translateY(-50%) scale(1.04);
}

.dk-gallery-prev {
  left: 14px;
}

.dk-gallery-next {
  right: 14px;
}

.dk-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 12px;
}

.dk-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--dk-border);
  border-radius: 5px;
}

.dk-thumb-button {
  border-radius: 5px;
  display: block;
  outline: none;
}

.dk-thumb-button.is-active .dk-thumb,
.dk-thumb-button:focus-visible .dk-thumb {
  border-color: var(--dk-accent);
  box-shadow: 0 0 0 3px rgba(248, 169, 24, 0.2);
}

.dk-panel {
  background: #fff;
  border: 1px solid var(--dk-border);
  border-radius: 5px;
  padding: 22px;
}

.dk-sticky {
  position: sticky;
  top: 18px;
}

.dk-detail-title {
  color: var(--dk-ink);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.16;
  margin-top: 12px;
}

.dk-specs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.dk-spec {
  border: 1px solid var(--dk-border);
  border-radius: 5px;
  padding: 12px;
}

.dk-spec dt {
  color: var(--dk-muted);
  font-size: 13px;
}

.dk-spec dd {
  color: var(--dk-ink);
  font-weight: 800;
  margin-top: 3px;
}

.dk-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.dk-actions .dk-btn {
  min-height: 46px;
  padding: 0 14px;
}

.dk-section {
  background: #fff;
  border: 1px solid var(--dk-border);
  border-radius: 5px;
  margin-top: 16px;
  padding: 22px;
}

.dk-section h2 {
  color: var(--dk-ink);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.dk-rich-content {
  color: var(--dk-charcoal);
  font-size: 14px;
  line-height: 1.75;
}

.dk-rich-content > * + * {
  margin-top: 12px;
}

.dk-rich-content h2,
.dk-rich-content h3,
.dk-rich-content h4 {
  color: var(--dk-ink);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 18px;
}

.dk-rich-content h2 {
  font-size: 20px;
}

.dk-rich-content h3 {
  font-size: 17px;
}

.dk-rich-content h4 {
  font-size: 15px;
}

.dk-rich-content strong {
  color: var(--dk-ink);
  font-weight: 800;
}

.dk-rich-content ul,
.dk-rich-content ol {
  padding-left: 22px;
}

.dk-rich-content ul {
  list-style: disc;
}

.dk-rich-content ol {
  list-style: decimal;
}

.dk-rich-content li + li {
  margin-top: 5px;
}

.dk-rich-content blockquote {
  border-left: 3px solid var(--dk-accent);
  color: var(--dk-muted);
  padding-left: 14px;
}

.dk-rich-content a {
  color: var(--dk-accent-dark);
  font-weight: 800;
  text-decoration: underline;
}

.dk-rich-content table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.dk-rich-content td,
.dk-rich-content th {
  border: 1px solid var(--dk-border);
  padding: 8px 10px;
  text-align: left;
}

.dk-rich-editor-toolbar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--dk-border);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: var(--dk-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
}

.dk-rich-editor-toolbar span {
  border: 1px solid var(--dk-border);
  border-radius: 4px;
  color: var(--dk-charcoal);
  font-size: 12px;
  font-weight: 800;
  min-height: 26px;
  padding: 4px 8px;
}

.dk-rich-editor {
  background: #fff;
  border: 1px solid var(--dk-border);
  border-radius: 0 0 6px 6px;
  color: var(--dk-charcoal);
  line-height: 1.65;
  min-height: 190px;
  outline: none;
  padding: 12px;
}

.dk-rich-editor:focus {
  border-color: var(--dk-accent);
  box-shadow: 0 0 0 3px rgba(248, 169, 24, 0.16);
}

.dk-rich-editor p,
.dk-rich-editor ul,
.dk-rich-editor ol,
.dk-rich-editor blockquote,
.dk-rich-editor table {
  margin-bottom: 10px;
}

.dk-rich-editor ul,
.dk-rich-editor ol {
  padding-left: 22px;
}

.dk-rich-editor ul {
  list-style: disc;
}

.dk-rich-editor ol {
  list-style: decimal;
}

.dk-feature-list {
  display: grid;
  gap: 9px;
}

.dk-feature-list li {
  align-items: flex-start;
  color: var(--dk-charcoal);
  display: flex;
  gap: 9px;
}

.dk-feature-list i {
  color: var(--dk-accent-dark);
  flex: none;
  margin-top: 3px;
}

.dk-admin-login-page {
  background:
    linear-gradient(180deg, rgba(247, 242, 232, 0.82), rgba(255, 253, 250, 0) 420px),
    #fffdfa;
  color: var(--dk-charcoal);
}

.dk-admin-login-main {
  display: grid;
  min-height: 100vh;
  padding: 32px 16px;
  place-items: center;
}

.dk-admin-login-card {
  background: #fff;
  border: 1px solid var(--dk-border);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(25, 24, 22, 0.08);
  padding: 28px;
  width: min(100%, 420px);
}

.dk-admin-login-logo {
  display: block;
  height: 56px;
  object-fit: contain;
  object-position: left center;
  width: 176px;
}

.dk-admin-input {
  background: #fff;
  border: 1px solid var(--dk-border);
  border-radius: 6px;
  color: var(--dk-ink);
  height: 44px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.dk-admin-input:focus {
  border-color: var(--dk-accent);
  box-shadow: 0 0 0 3px rgba(248, 169, 24, 0.16);
}

.dk-admin-login-button {
  align-items: center;
  background: var(--dk-accent);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  height: 44px;
  justify-content: center;
  padding: 0 16px;
  width: 100%;
}

.dk-admin-login-button:hover {
  background: var(--dk-accent-dark);
}

@media (max-width: 880px) {
  .dk-header,
  .dk-detail-grid,
  .dk-filter {
    grid-template-columns: 1fr;
  }

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

  .dk-sticky {
    position: static;
  }
}

@media (max-width: 620px) {
  .dk-container {
    padding: 22px 12px;
  }

  .dk-container-embed {
    padding: 14px 4px;
  }

  .dk-title {
    font-size: 34px;
  }

  .dk-grid,
  .dk-actions,
  .dk-specs,
  .dk-thumbs {
    grid-template-columns: 1fr;
  }

  .dk-card-title {
    min-height: auto;
  }

  .dk-card-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
