* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #2c5530 0%, #4a7c59 50%, #6b8e23 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.header {
  text-align: center;
  margin-bottom: 25px;
}

.header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 300;
}

.header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Statistics Section */
.statistics-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 15px;
}

.statistics-loading {
  text-align: center;
  padding: 10px;
  color: #666;
  font-size: 0.9rem;
}

.statistics-content {
  display: none;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 768px) {
  .statistics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 10px;
  background: #fafffe;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 124, 89, 0.1);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Additional Statistics Section */
.additional-statistics-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
}

.additional-stats-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.additional-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 10px;
}

.additional-stat-item {
  text-align: center;
  padding: 15px;
  background: #fafffe;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.additional-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 124, 89, 0.1);
}

.additional-stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 5px;
}

.additional-stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-list-section {
  background: #fafffe;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e8f5e8;
}

.stats-list-title {
  color: #2c5530;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-list-loading {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  padding: 10px;
}

.stats-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e8f5e8;
  transition: all 0.3s ease;
}

.stats-list-item:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(74, 124, 89, 0.1);
  border-color: #4a7c59;
}

.stats-list-name {
  font-weight: 500;
  color: #2c5530;
  flex: 1;
  margin-right: 15px;
}

.stats-list-value {
  font-weight: 600;
  color: #4a7c59;
  font-size: 0.9rem;
}

.stats-list-rank {
  background: #4a7c59;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Responsive adjustments for additional statistics */
@media (max-width: 768px) {
  .additional-statistics-section {
    padding: 15px;
    margin-top: 15px;
  }

  .additional-stats-content {
    gap: 20px;
  }

  .stats-list-section {
    padding: 15px;
  }

  .stats-list-title {
    font-size: 1.1rem;
  }

  .stats-list-item {
    padding: 8px 12px;
  }

  .stats-list-name {
    font-size: 0.9rem;
  }

  .stats-list-value {
    font-size: 0.8rem;
  }
}

.search-section {
  background: white;
  border-radius: 15px;
  /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);*/
  padding: 0;
  margin-bottom: 10px;
}

.search-input-container {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: 2px solid #e8f5e8;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  background: #fafffe;
}

.search-input:focus {
  border-color: #4a7c59;
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.1);
}

.search-input::placeholder {
  color: #999;
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  /*background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);*/
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-button:hover {
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 124, 89, 0.3);
}

/* Search term highlighting */
.search-highlight {
  background-color: #ffeb3b;
  color: #333;
  font-weight: 600;
  padding: 1px 2px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(255, 235, 59, 0.3);
}

/* Owner Statistics Styles */
.owner-statistics {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.owner-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.owner-stats-header h3 {
  margin: 0;
  color: #2c5530;
  font-size: 1.2rem;
}

.document-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.document-badge.cpf {
  background-color: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
}

.document-badge.cnpj {
  background-color: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #ce93d8;
}

.owner-stats-loading {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.9rem;
}

.owner-stats-content {
  display: none;
}

.owner-stats-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.owner-stats-summary .stat-item {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.owner-stats-summary .stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 124, 89, 0.1);
}

.owner-neighborhoods-section,
.owner-properties-section {
  margin-bottom: 20px;
}

.owner-neighborhoods-section h4,
.owner-properties-section h4 {
  margin: 0 0 10px 0;
  color: #2c5530;
  font-size: 1rem;
  font-weight: 600;
}

.neighborhoods-list {
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  max-height: 200px;
  overflow-y: auto;
}

.neighborhood-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #f1f3f4;
}

.neighborhood-item:last-child {
  border-bottom: none;
}

.neighborhood-item:hover {
  background-color: #f8f9fa;
}

.neighborhood-name {
  font-weight: 500;
  color: #333;
}

.neighborhood-count {
  font-size: 0.9rem;
  color: #666;
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 12px;
}

.properties-list {
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  max-height: 300px;
  overflow-y: auto;
}

.property-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f1f3f4;
}

.property-item:last-child {
  border-bottom: none;
}

.property-item:hover {
  background-color: #f8f9fa;
}

.property-item .property-name {
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 4px;
}

.property-item .property-address {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.property-item .property-neighborhood {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.property-item .property-cci {
  color: #999;
  font-size: 0.8rem;
  font-family: monospace;
}

.limit-message {
  padding: 10px 15px;
  background: #fff3cd;
  color: #856404;
  border-top: 1px solid #ffeaa7;
  font-size: 0.85rem;
  text-align: center;
  font-style: italic;
}

.no-data {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
}

.owner-stats-error {
  display: none;
  padding: 15px;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  margin-top: 10px;
}

/* Responsive adjustments for owner statistics */
@media (max-width: 768px) {
  .owner-stats-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .owner-stats-summary {
    grid-template-columns: 1fr;
  }

  .neighborhoods-list,
  .properties-list {
    max-height: 250px;
  }
}

/* Email Notification Styles */
.consultation-results {
  display: none;
  padding: 0;
}

.email-notification-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.notification-header {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 25px;
  text-align: center;
  position: relative;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  display: block;
}

.notification-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.notification-message {
  padding: 25px;
  text-align: center;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.email-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.message-content h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

.message-content p {
  margin: 0 0 15px 0;
  color: #666;
  line-height: 1.5;
}

.email-address {
  background: #e3f2fd;
  color: #1976d2;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  border: 2px solid #bbdefb;
}

.notification-details {
  padding: 20px 25px;
  background: white;
}

.notification-info {
  padding: 20px 25px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.info-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.info-text p {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-weight: 600;
  text-align: center;
}

.info-text ul {
  margin: 0;
  padding-left: 20px;
  color: #666;
}

.info-text li {
  margin-bottom: 5px;
  line-height: 1.4;
}

.notification-footer {
  padding: 20px 25px;
  background: white;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.footer-text {
  margin: 0 0 15px 0;
  color: #666;
  font-style: italic;
  font-size: 0.9rem;
}

.close-modal-btn {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.2);
}

.close-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

/* Responsive adjustments for email notification */
@media (max-width: 768px) {
  .email-notification-container {
    margin: 10px;
    border-radius: 8px;
  }

  .notification-header {
    padding: 20px 15px;
  }

  .notification-header h3 {
    font-size: 1.3rem;
  }

  .success-icon {
    font-size: 2.5rem;
  }

  .notification-message {
    padding: 20px 15px;
  }

  .email-icon {
    font-size: 2rem;
  }

  .email-address {
    font-size: 1rem;
    padding: 10px 15px;
  }

  .notification-details,
  .notification-info,
  .notification-footer {
    padding: 15px;
  }

  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

.loading {
  display: none;
  text-align: center;
  padding: 20px;
  color: #666;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4a7c59;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.results-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: none;
}

.results-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5e8;
}

.results-count {
  color: #f6f6f6;
  font-size: 1.1rem;
  font-weight: 600;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 15px;
}

.property-card {
  background: #fafffe;
  border: 2px solid #e8f5e8;
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(74, 124, 89, 0.15);
  border-color: #4a7c59;
}

.property-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);
}

.property-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 12px;
  line-height: 1.3;
}

.property-address {
  color: #666;
  margin-bottom: 8px;
  font-size: 1rem;
}

.property-neighborhood {
  color: #4a7c59;
  font-weight: 500;
  margin-bottom: 12px;
}

.property-cci {
  background: #e8f5e8;
  color: #2c5530;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
        background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);
        color: white;
        padding: 25px 30px;
        border-radius: 15px 15px 0 0;
        position: relative;
    }

    .modal-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .modal-subtitle {
        opacity: 0.9;
        font-size: 1rem;
    }

    .ver-dados-btn {
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        font-size: 20px;
        cursor: pointer;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.3s ease;
        title: 'Ver Dados do CPF/CNPJ';
    }

    .ver-dados-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .close {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .close:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.modal-body {
  padding: 15px;
}

.property-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.detail-item {
  background: #f8fdf8;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid #4a7c59;
}

.detail-label {
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.detail-value {
  color: #333;
  font-size: 1rem;
  line-height: 1.3;
}

.detail-item-combined {
  background: #f8fdf8;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid #4a7c59;
  grid-column: span 2;
}

.combined-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.combined-field {
  flex: 1;
  min-width: 120px;
}

.combined-field .detail-label {
  margin-bottom: 2px;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #c33;
  display: none;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #4a7c59;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s ease-out;
  position: relative;
}

.toast.error {
  border-left-color: #e74c3c;
}

.toast.success {
  border-left-color: #27ae60;
}

.toast.warning {
  border-left-color: #f39c12;
}

.toast.info {
  border-left-color: #3498db;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast.error .toast-icon {
  color: #e74c3c;
}

.toast.success .toast-icon {
  color: #27ae60;
}

.toast.warning .toast-icon {
  color: #f39c12;
}

.toast.info .toast-icon {
  color: #3498db;
}

.toast-message {
  flex: 1;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: #f0f0f0;
  color: #666;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast.removing {
  animation: toastSlideOut 0.3s ease-in forwards;
}

/* Ver Dados Button - New positioning below CGC */
.ver-dados-btn-inline {
  background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);
  color: white;
  border: none;
  padding: 2px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 5px;
  width: fit-content;
}

.ver-dados-btn-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.ver-dados-btn-inline .eye-icon {
  font-size: 16px;
}

/* Consultation Results Styles */
.consultation-results {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.results-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);
  color: white;
  border-radius: 8px;
}

.results-header h3 {
  margin: 0 0 5px 0;
  font-size: 1.3rem;
}

.results-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.results-actions {
  text-align: center;
  margin-bottom: 20px;
}

.download-pdf-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.download-pdf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4);
}

.results-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-section {
  background: #f8fdf8;
  border: 1px solid #e8f5e8;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #4a7c59;
}

.result-section h4 {
  margin: 0 0 15px 0;
  color: #2c5530;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-item {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #e8f5e8;
}

.data-item:last-child {
  border-bottom: none;
}

.data-item strong {
  min-width: 120px;
  color: #2c5530;
  font-weight: 600;
}

.consultation-json {
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 300px;
  overflow-y: auto;
}

/* Responsive adjustments for consultation results */
@media (max-width: 768px) {
  .consultation-results {
    padding: 15px;
  }

  .results-header h3 {
    font-size: 1.1rem;
  }

  .download-pdf-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .data-item {
    flex-direction: column;
    gap: 4px;
  }

  .data-item strong {
    min-width: auto;
  }

  .consultation-json {
    font-size: 11px;
    padding: 10px;
  }
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #666;
  display: none;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.links-section {
  background: white;
  border-radius: 15px;
  /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);*/
  /*padding: 10px;*/
  margin-bottom: 10px;
}

.links-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5e8;
}

.links-title {
  color: #4a7c59;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.links-subtitle {
  color: #666;
  font-size: 0.9rem;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 768px) {
  .links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.link-item {
  background: #f0ffe9;
  padding: 10px 10px;
  cursor: pointer;
  transition: all 0.3s  ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 25px;
}

.link-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 124, 89, 0.15);
  text-decoration: none;
  color: inherit;
}

.link-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 12px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}

.link-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c5530;
  line-height: 1.2;
  text-align: left;
  word-break: break-word;
  flex: 1;
}

.links-loading {
  text-align: center;
  padding: 20px;
  color: #666;
  display: none;
}

.links-error {
        text-align: center;
        padding: 15px;
        color: #c33;
        background: #fee;
        border-radius: 8px;
        margin: 10px 0;
        display: none;
    }

    /* Email Input Form Styles */
    .email-form {
        display: none;
        text-align: center;
        padding: 10px 10px;
    }

    .email-form h3 {
        color: #2c5530;
        margin-bottom: 10px;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .email-form p {
        color: #666;
        margin-bottom: 10px;
        font-size: 1rem;
        line-height: 1.5;
    }

    .email-input {
        width: 100%;
        max-width: 400px;
        padding: 15px 20px;
        font-size: 1.1rem;
        border: 2px solid #e8f5e8;
        border-radius: 10px;
        outline: none;
        transition: all 0.3s ease;
        background: #fafffe;
        margin-bottom: 25px;
    }

    .email-input:focus {
        border-color: #4a7c59;
        box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.1);
    }

    .continue-btn {
        background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);
        color: white;
        border: none;
        padding: 15px 40px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s ease;
        min-width: 150px;
    }

    .continue-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(74, 124, 89, 0.3);
    }

    .continue-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    /* PIX Payment Styles */
    .pix-payment {
        display: none;
        text-align: center;
        padding: 30px 20px;
    }

    .pix-payment h3 {
        color: #2c5530;
        margin-bottom: 5px;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .pix-payment .amount {
        color: #4a7c59;
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .qr-code-container {
        background: white;
        border: 2px solid #e8f5e8;
        border-radius: 15px;
        margin-bottom: 5px;
        display: inline-block;
    }

    .qr-code-image {
        max-width: 200px;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .pix-code-container {
        background: #f8fdf8;
        border: 2px solid #e8f5e8;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 20px;
        position: relative;
    }

    .pix-code {
        font-family: 'Courier New', monospace;
        font-size: 0.9rem;
        color: #333;
        word-break: break-all;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .copy-btn {
        background: #4a7c59;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .copy-btn:hover {
        background: #3a6249;
        transform: translateY(-1px);
    }

    .copy-btn.copied {
        background: #28a745;
    }

    .pix-info {
        color: #666;
        font-size: 0.9rem;
        margin-top: 20px;
        line-height: 1.5;
    }

    .loading-pix {
        display: none;
        text-align: center;
        padding: 40px 20px;
        color: #666;
    }

@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .search-section {
    padding: 0;
  }

  .search-input {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .property-detail-grid {
    grid-template-columns: 1fr;
  }
}
