body {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
}

.site-navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.04) 58%);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.filter-pill {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-pill.active {
  background: linear-gradient(135deg, #c8a415, #d4af37);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(200, 164, 21, 0.4);
}

.social-button {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease;
}

.social-button:hover,
.social-button:focus {
  transform: scale(1.1);
}

.admin-field {
  display: block;
}

.admin-field span {
  display: block;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #111827;
  display: block;
  font: inherit;
  min-height: 2.8rem;
  outline: none;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.admin-form-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0.85rem 1rem;
}

.admin-field-hint {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0.4rem 0 0;
}

.admin-field-error {
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 900;
  grid-column: 1 / -1;
  line-height: 1.4;
  margin: 0.45rem 0 0;
}

.admin-field.is-invalid input,
.admin-field.is-invalid select,
.admin-field.is-invalid textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.admin-feature-table label.is-invalid {
  background: #fef2f2;
}

.admin-feature-table label.is-invalid input,
.admin-feature-table label.is-invalid select {
  box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0.72);
}

.admin-feature-table label.is-invalid .admin-field-error {
  background: #fff7f7;
  padding: 0 1rem 0.85rem;
}

.admin-field textarea {
  min-height: 16rem;
  resize: vertical;
}

.admin-image-add-button {
  align-items: center;
  background: #111827;
  border: 0;
  border-radius: 0.75rem;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 0.45rem;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.admin-image-add-button:hover,
.admin-image-add-button:focus {
  background: #d97706;
  transform: translateY(-1px);
}

.admin-image-upload {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 0.85rem;
  cursor: pointer;
  display: block;
  padding: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-image-upload:hover,
.admin-image-upload:focus-within {
  background: #fffbeb;
  border-color: #f59e0b;
}

.admin-image-upload span {
  color: #374151;
  display: block;
  font-size: 0.875rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.admin-image-upload input {
  min-height: auto;
  padding: 0;
}

.admin-image-empty {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  color: #6b7280;
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  min-height: 7rem;
  padding: 1rem;
}

.admin-image-strip {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.8rem;
  scroll-snap-type: x proximity;
}

.admin-image-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  cursor: grab;
  flex: 0 0 11.5rem;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.admin-image-card:hover,
.admin-image-card:focus-within {
  border-color: #f59e0b;
}

.admin-image-card.is-dragging {
  border-color: #f59e0b;
  opacity: 0.62;
  transform: scale(0.98);
}

.admin-image-card img {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  display: block;
  object-fit: cover;
  width: 100%;
}

.admin-image-index {
  background: rgba(17, 24, 39, 0.88);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  left: 0.55rem;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  position: absolute;
  top: 0.55rem;
}

.admin-image-card-actions {
  background: #f9fafb;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.45rem;
}

.admin-image-card-actions button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  color: #374151;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.admin-image-card-actions button:hover,
.admin-image-card-actions button:focus {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}

.admin-image-card-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.admin-image-card-actions .admin-image-remove {
  color: #dc2626;
}

.admin-image-card-actions .admin-image-remove:hover,
.admin-image-card-actions .admin-image-remove:focus {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.admin-feature-table {
  border: 1px solid #e5e7eb;
  border-radius: 0.95rem;
  overflow: hidden;
}

.admin-feature-table label {
  align-items: stretch;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(9rem, 0.85fr) minmax(0, 1.15fr);
  min-height: 3.25rem;
}

.admin-feature-table label + label {
  border-top: 1px solid #e5e7eb;
}

.admin-feature-table span {
  align-items: center;
  background: #f9fafb;
  color: #4b5563;
  display: flex;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.75rem 1rem;
}

.admin-feature-table input,
.admin-feature-table select {
  background: #ffffff;
  border: 0;
  color: #111827;
  font: inherit;
  font-weight: 700;
  min-width: 0;
  outline: none;
  padding: 0.75rem 1rem;
  width: 100%;
}

.admin-feature-table input:focus,
.admin-feature-table select:focus {
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.55);
}

.html-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.html-editor-toolbar button {
  background: #111827;
  border: 0;
  border-radius: 0.65rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.55rem 0.8rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.html-editor-toolbar button:hover,
.html-editor-toolbar button:focus {
  background: #d97706;
  transform: translateY(-1px);
}

.html-editor {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #111827;
  line-height: 1.7;
  min-height: 22rem;
  outline: none;
  overflow: auto;
  padding: 1rem;
}

.html-editor:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.html-editor p,
.listing-detail-content p {
  margin: 0.75rem 0;
}

.html-editor ul,
.listing-detail-content ul {
  list-style: disc;
  margin: 1rem 0 1rem 1.5rem;
}

.detail-centered,
.listing-detail-content .detail-centered {
  text-align: center;
}

.listing-detail-content {
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.75;
}

.listing-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
}

.listing-gallery-thumbs button {
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 0.85rem;
  flex: 0 0 7.5rem;
  overflow: hidden;
  padding: 0;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.listing-gallery-thumbs button:hover,
.listing-gallery-thumbs button:focus,
.listing-gallery-thumbs button.active {
  border-color: #f59e0b;
  opacity: 1;
}

.listing-gallery-thumbs button:not(.active) {
  opacity: 0.72;
}

.listing-gallery-thumbs img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.listing-detail-content strong {
  color: #111827;
  font-weight: 900;
}

.listing-feature-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

.listing-feature-grid div {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1.2fr);
  padding: 0.85rem 0;
}

.listing-feature-grid dt {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 800;
}

.listing-feature-grid dd {
  color: #111827;
  font-weight: 900;
  margin: 0;
  overflow-wrap: anywhere;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(1) {
  animation-delay: 0.1s;
}

.animate-in:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-in:nth-child(3) {
  animation-delay: 0.3s;
}

.animate-in:nth-child(4) {
  animation-delay: 0.4s;
}

.animate-in:nth-child(5) {
  animation-delay: 0.5s;
}

.animate-in:nth-child(6) {
  animation-delay: 0.6s;
}

@media (max-width: 640px) {
  .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.94) 100%);
  }

  .admin-feature-table label {
    grid-template-columns: 1fr;
  }

  .admin-feature-table span {
    border-bottom: 1px solid #e5e7eb;
  }
}
