:root {
  --primary: #d94a46;
  --primary-dark: #b93a36;
  --text-main: #111827;
  --text-muted: #4b5563;
  --bg-body: #f3f4f6;
  --bg-card: #ffffff;
  --accent: #e8d47f;

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  display: block;
  height: clamp(32px, 5vw, 48px);
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 640px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .logo {
    height: 32px;
    max-width: 140px;
  }
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb span {
  color: #9ca3af;
}

.lang-selector {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.lang-btn:focus-visible,
.zone-btn:focus-visible,
.zoom-btn:focus-visible,
.view-toggle-btn:focus-visible,
.btn-primary:focus-visible,
.slideshow-btn:focus-visible,
.slideshow-dot:focus-visible,
.slideshow-fullscreen-btn:focus-visible,
.gallery-fullscreen-close:focus-visible,
.gallery-fullscreen-share:focus-visible,
.gallery-fullscreen-btn:focus-visible,
.lot-modal-close:focus-visible,
.map-fullscreen-close:focus-visible,
.derrotero-table tbody tr:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Main layout */
.main {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Removed redundant media queries */

@media (max-width: 640px) {
  .main {
    padding: 1.5rem 1rem;
  }
}

/* Large desktop tweaks if needed */
@media (min-width: 1400px) {

  .header-inner,
  .footer-inner {
    max-width: 1600px;
  }

  .main {
    max-width: 1600px;
    padding: 3rem 4rem;
  }

  .map-wrapper {
    height: 75vh;
    min-height: 550px;
  }

  .map-container {
    min-height: 75vh;
  }

  .derrotero-table-wrapper {
    min-height: 75vh;
    max-height: 80vh;
  }
}

/* Left column - Content */
.content-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Gallery + Condominio 50/50 */
.gallery-and-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 850px) {
  .gallery-and-intro {
    grid-template-columns: 1fr;
  }
}

/* Slideshow */
.slideshow {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-md);
}

.slideshow-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  height: 100%;
}

.slideshow-slide {
  flex: 0 0 100%;
  height: 100%;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s;
  z-index: 2;
  opacity: 0;
}

.slideshow:hover .slideshow-btn {
  opacity: 1;
}

.slideshow-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}

.slideshow-btn.prev {
  left: 1rem;
}

.slideshow-btn.next {
  right: 1rem;
}

.slideshow-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 999px;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.slideshow-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slideshow-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.slideshow-fullscreen-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s;
  z-index: 3;
  opacity: 0;
}

.slideshow:hover .slideshow-fullscreen-btn {
  opacity: 1;
}

.slideshow-fullscreen-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.slideshow-slide {
  cursor: pointer;
}

/* Gallery fullscreen modal */
.gallery-fullscreen-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483646;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-fullscreen-modal.visible {
  display: flex;
}

.gallery-fullscreen-content {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-fullscreen-content img {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-fullscreen-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.gallery-fullscreen-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.gallery-fullscreen-share {
  position: absolute;
  top: 1rem;
  right: 4rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.gallery-fullscreen-share:hover {
  background: #fff;
  transform: scale(1.1);
}

.gallery-fullscreen-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.gallery-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.gallery-fullscreen-btn.prev {
  left: 1rem;
}

.gallery-fullscreen-btn.next {
  right: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-main) 0%, #4b5563 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Fallback */
}

.card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.card-desc-multiline {
  white-space: pre-line;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .highlight {
  font-size: 1.125rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

/* Characteristics */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}

.feature-tag:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.check-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  stroke-width: 3px;
}

.feature-tag::before {
  content: none;
}

/* CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 6px -1px rgba(217, 74, 70, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(217, 74, 70, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.lot-modal-cta.disabled {
  background: #9ca3af !important;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Map section */
.map-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 231, 235, 0.6);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-body);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
}

.search-box input {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  width: 140px;
  color: var(--text-main);
}

.search-box input:focus {
  outline: none;
}

.zone-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zone-filter-with-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sales-metric {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.zone-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.zone-btn:hover {
  background: var(--bg-body);
  color: var(--text-main);
}

.zone-btn.active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.zoom-controls {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.zoom-btn:hover {
  background: var(--bg-body);
  color: var(--text-main);
  border-color: #d1d5db;
}

.zoom-btn i {
  width: 20px;
  height: 20px;
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-body);
  border-radius: var(--radius-md);
}

.view-toggle-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.view-toggle-btn:hover {
  color: var(--text-main);
}

.view-toggle-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.view-toggle-btn i {
  width: 20px;
  height: 20px;
}

.map-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 70vh;
  box-shadow: var(--shadow-md);
}

.map-wrapper {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  position: relative;
  z-index: 1;
}

/* Map fullscreen modal - portal at body level, always on top */
.map-fullscreen-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647;
  background: var(--bg-body, #fff);
  display: none;
  flex-direction: column;
  align-items: stretch;
}

.map-fullscreen-modal.visible {
  display: flex;
}

.map-fullscreen-slot {
  flex: 1;
  min-height: 0;
  position: relative;
}

.map-fullscreen-modal .map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.map-fullscreen-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 50%;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s, background 0.2s;
}

.map-fullscreen-close:hover {
  background: #f9fafb;
  transform: scale(1.1);
}

.map-fullscreen-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid #f3f4f6;
  font-size: 0.8125rem;
  color: var(--text-muted);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.map-legend-dot--vendido {
  background: var(--primary);
}

.map-legend-dot--disponible {
  background: var(--accent);
}

.map-legend-dot--bosque {
  background: #b4d0a2;
}

.map-disclaimer {
  position: absolute;
  bottom: 3.5rem;
  right: 1rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #9ca3af;
  font-style: italic;
  pointer-events: none;
  z-index: 10;
}

.map-wrapper .leaflet-overlay-pane svg {
  pointer-events: none;
  background: transparent !important;
}

.map-wrapper #lots-svg-overlay #layer2 path {
  cursor: pointer;
  touch-action: manipulation;
  transition: fill 0.2s, fill-opacity 0.2s, filter 0.2s, stroke-width 0.2s;
  pointer-events: all;
  fill: var(--accent) !important;
  fill-opacity: 0.5 !important;
  stroke: #fff;
  stroke-width: 0.1 !important;
}

.map-wrapper #lots-svg-overlay #layer2 path:hover {
  fill-opacity: 0.7 !important;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  transform: scale(1.001);
}

.map-wrapper #lots-svg-overlay #layer2 path.lot-selected {
  fill-opacity: 0.8 !important;
  stroke: var(--text-main) !important;
  stroke-width: 0.5 !important;
  filter: drop-shadow(0 0 8px rgba(232, 212, 127, 0.6));
}

.map-wrapper #lots-svg-overlay #layer2 path.lot-vendido {
  fill: var(--primary) !important;
  fill-opacity: 0.6 !important;
}

.map-wrapper #lots-svg-overlay #layer2 path.lot-vendido:hover {
  fill-opacity: 0.8 !important;
}

.map-wrapper #lots-svg-overlay #layer2 path.lot-hidden {
  opacity: 0.1;
  fill: #9ca3af !important;
  pointer-events: none;
}

.derrotero-table-wrapper {
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  overflow: auto;
  min-height: 70vh;
  max-height: 80vh;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.derrotero-table-wrapper.visible {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

.map-container.hidden {
  display: none;
}

.derrotero-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.derrotero-table th,
.derrotero-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

.derrotero-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
}

.derrotero-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}

.derrotero-table tbody tr:hover {
  background: #f8fafc;
}

.derrotero-table tbody tr.lot-selected-row {
  background: #fffbeb;
}

.derrotero-table .lot-vendido-cell {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.derrotero-table .lot-vendido-cell::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.derrotero-table tbody tr.lot-hidden {
  display: none;
}

.map-wrapper #lots-svg-overlay #layer2 path.lot-highlight {
  fill-opacity: 0.9 !important;
  filter: drop-shadow(0 0 10px var(--accent));
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    filter: drop-shadow(0 0 10px var(--accent)) brightness(1.2);
  }

  50% {
    filter: drop-shadow(0 0 20px var(--accent)) brightness(1.5);
  }
}

#layer1 path {
  display: none;
}

/* Tooltip */
/* Modal lot info */
.lot-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lot-modal-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

.lot-modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(20px);
  display: flex;
  gap: 2rem;
  align-items: stretch;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lot-modal-backdrop.visible .lot-modal {
  transform: scale(1) translateY(0);
}

.lot-modal h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.lot-modal-detail {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.75rem;
}

.lot-modal-detail strong {
  color: var(--text-main);
  font-weight: 600;
}

.lot-modal-info {
  flex: 1;
  min-width: 0;
}

.lot-modal-preview {
  flex: 0 0 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  min-height: 140px;
  padding: 1rem;
}

.lot-modal-preview svg {
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.lot-modal-preview svg path {
  fill: var(--accent);
  fill-opacity: 1;
  stroke: var(--text-main);
  stroke-width: 0.5;
}

.lot-modal-preview svg path.lot-vendido {
  fill: var(--primary);
}

@media (max-width: 500px) {
  .lot-modal {
    flex-direction: column-reverse;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .lot-modal-preview {
    min-height: 100px;
    flex: 0 0 auto;
  }
}

.lot-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lot-modal-close:hover {
  background: #e2e8f0;
  color: var(--text-main);
  transform: rotate(90deg);
}

.lot-modal-close i {
  width: 20px;
  height: 20px;
}

/* Info panel */
.info-panel {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-panel strong {
  color: var(--text-main);
}

.info-panel .selected-lot {
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  color: var(--text-muted);
  font-size: 0.9375rem;
  z-index: 100;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.search-no-results {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* Footer */
.site-footer {
  width: 100%;
  background: #1f2937;
  color: #f3f4f6;
  padding: 4rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}

.footer-block h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}

.footer-block p,
.footer-block a {
  font-size: 1rem;
  color: #e5e7eb;
  text-decoration: none;
  line-height: 1.6;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-block a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--primary);
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  height: 4rem;
  width: auto;
  display: block;
  opacity: 0.9;
}

.footer-dev-credit {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-dev-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-dev-link:hover {
  color: #fff;
}

.footer-dev-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.9;
}