/* =============================================
   LAYOUT PRINCIPAL — coluna única que ocupa o viewport
============================================= */
#page-listing {
  flex-direction: column;
  min-height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
}

.spaces-panel {
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}



/* =============================================
   CABEÇALHO DA MARCA
============================================= */
.panel-brand {
  background: linear-gradient(135deg, var(--brand-primary)0%, var(--brand-secondary) 100%);
  padding: 16px 20px 14px;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.panel-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.panel-brand-name span {
  color: rgba(255, 255, 255, 0.65);
}

.panel-brand-tagline {
  font-size: 0.78rem;
  opacity: 0.82;
  margin-bottom: 10px;
}

.panel-brand-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.panel-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.panel-stat strong {
  font-size: 1rem;
  font-weight: 800;
}

.panel-stat span {
  font-size: 0.62rem;
  opacity: 0.78;
}

/* =============================================
   FILTROS
============================================= */
.panel-filters {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 20%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: flex-start;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 10;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 160px;
}

.panel-filters .field-label {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0;
}

.panel-filters .field-input {
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  height: 44px;
}

.panel-filters .field-input:hover {
  background: #EAECEF;
}

.panel-filters .field-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-lt);
}

.panel-filters input[type="range"] {
  height: 6px;
  border-radius: 3px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.price-display {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-left: 6px;
  background: var(--primary-lt);
  padding: 2px 8px;
  border-radius: 12px;
}

.btn-reset {
  background: #FFF0F2;
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FF4D4F;
  transition: all var(--transition);
  white-space: nowrap;
  align-self: flex-end;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-reset:hover {
  background: #FF4D4F;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.2);
}

.filter-amenities-container {
  width: 100%;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.amenities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-tag-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.amenity-tag-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.amenity-tag-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Barra de contagem */
.panel-results-bar {
  padding: 7px 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

/* =============================================
   ÁREA PRINCIPAL: wrapper com margens
============================================= */
.panel-content-wrapper {
  height: calc(100vh - var(--navbar-h) - 240px);
  /* Ajustado para incluir as tags de comodidade */
  display: flex;
  justify-content: center;
  padding: 32px 5%;
  overflow: hidden;
  min-height: 420px;
  background-color: var(--bg);
}

.panel-content {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  gap: 5%;
  /* Espaço flexível */
  overflow: hidden;
  min-height: 0;
}

/* ── Lista de espaços (scrollável) ── */
.spaces-scroll {
  width: 55%;
  flex: 0 0 55%;
  overflow-y: auto;
  min-width: 0;
  padding-right: 10px;
}

.spaces-scroll::-webkit-scrollbar {
  width: 6px;
}

.spaces-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.spaces-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

/* ── Mapa card (direita, fixo) ── */
.map-card-wrapper {
  width: 40%;
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.map-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Mapa mais quadrado */
  max-height: 100%;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.map-card-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.map-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.map-card-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
}

#leaflet-map {
  flex: 1;
  min-height: 0;
}

/* =============================================
   GRID DE CARDS
============================================= */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

/* =============================================
   CARD DE ESPAÇO
============================================= */
.space-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.space-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.space-card--active {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.space-card:hover .card-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}

.card-badge--featured {
  background: var(--primary);
  color: #fff;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-location {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.card-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.card-price span {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
}

.btn-details {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-details:hover {
  background: var(--primary-dk);
}

/* =============================================
   EMPTY STATE
============================================= */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* =============================================
   RESPONSIVIDADE
============================================= */

/* Tela média: ajustar proporções se necessário */
@media (max-width: 1100px) {
  .spaces-scroll {
    width: 50%;
    flex: 0 0 50%;
  }

  .map-card-wrapper {
    width: 45%;
    flex: 0 0 45%;
  }
}

/* Tablet: mapa vira linha abaixo dos cards */
@media (max-width: 780px) {
  #page-listing {
    height: auto;
    overflow: visible;
  }

  .spaces-panel {
    overflow: visible;
  }

  .panel-content-wrapper {
    padding: 20px 4%;
  }

  .panel-content {
    flex-direction: column;
    overflow: visible;
    gap: 20px;
  }

  .spaces-scroll {
    width: 100%;
    flex: none;
    overflow-y: visible;
    max-height: none;
    padding-right: 0;
  }

  .map-card-wrapper {
    width: 100%;
    flex: none;
  }

  .map-card {
    aspect-ratio: auto;
    height: 350px;
  }

  .spaces-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .spaces-grid {
    grid-template-columns: 1fr;
  }

  .panel-brand {
    padding: 14px 16px 12px;
  }

  .panel-filters {
    padding: 10px 14px;
  }

  .panel-content {
    padding: 12px 14px;
  }
}

/* =============================================
   SECTION DE SOLUÇÕES
============================================= */
.solutions-section {
  background: #F7F8FC;
  padding: 80px 5%;
  border-top: 1px solid var(--border);
}

.solutions-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.solutions-header {
  text-align: center;
  margin-bottom: 56px;
}

.solutions-eyebrow {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.solutions-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #1A1A2E;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.solutions-subtitle {
  font-size: 1rem;
  color: #6B7280;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grid de cards de soluções */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 1100px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solutions-section {
    padding: 48px 5%;
  }
}

.solution-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  border: 1.5px solid #E5E7EB;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.solution-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tamanho dos SVGs dentro do solution-icon */
.solution-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

.solution-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1A1A2E;
  line-height: 1.2;
}

.solution-desc {
  font-size: 0.88rem;
  color: #6B7280;
  line-height: 1.7;
  flex: 1;
}

.solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solution-list li {
  font-size: 0.83rem;
  color: #374151;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ícone de check nos itens da lista */
.sol-check {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #10B981;
  stroke-width: 2.5;
}

.solution-cta {
  margin-top: 4px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: gap 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.solution-cta:hover {
  opacity: 0.75;
  gap: 10px;
  text-decoration: underline;
}

/* Banner CTA inferior */
.solutions-cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-banner-text strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.cta-banner-text span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  line-height: 1.6;
}

.cta-banner-btn {
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 14px;
  padding: 14px 28px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.cta-banner-btn:hover {
  background: var(--primary-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}