html {
  height: 100%;
  width: 100%;
}* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e67e22;
  --accent-color: #f39c12;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.nav-logo span {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.admin-link {
  background: var(--accent-color);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
}

.admin-link:hover {
  background: var(--secondary-color);
  color: white !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1920&h=1080&fit=crop') center/cover;
  animation: subtle-zoom 20s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
  0% {
      transform: scale(1);
  }

  100% {
      transform: scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: blue;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* Featured Properties */
.featured-preview {
  padding: 80px 0;
  background: var(--bg-light);
}

.featured-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.property-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.property-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-available {
  background: #27ae60;
  color: white;
}

.status-reserved {
  background: #f39c12;
  color: white;
}

.status-sold {
  background: #e74c3c;
  color: white;
}

.pdf-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pdf-info {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-content {
  padding: 1.5rem;
}

.property-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.property-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* About Section */
.about {
  padding: 80px 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.agent-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.credentials {
  margin-bottom: 2rem;
}

.credentials p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

/* Developments Section */
.developments {
  padding: 80px 0;
  background: var(--bg-light);
}

.developments h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--secondary-color);
  background: transparent;
  color: var(--secondary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color);
  color: white;
}

/* Financing Section */
.financing {
  padding: 80px 0;
  background: var(--bg-light);
}

.financing h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.financing-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.financing-simulator {
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.financing-tabs {
  display: flex;
  background: var(--primary-color);
}

.tab-btn {
  flex: 1;
  padding: 1rem 2rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.financing-form {
  padding: 2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 10px;
}

.form-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section h3 i {
  color: var(--secondary-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.imput-fix{
  width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 14px;
}

.form-group input,
.form-group select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px; /* Evita zoom no iOS */
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

/* Estilos para campos com erro */
.form-group input.field-error,
.form-group select.field-error {
  border-color: #e74c3c;
  background-color: #fdf2f2;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input.field-error:focus,
.form-group select.field-error:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

/* Mensagens de validação */
.validation-errors {
  background: #fdf2f2;
  border: 1px solid #e74c3c;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  color: #721c24;
}

.validation-errors .error-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #c0392b;
}

.validation-errors .error-header i {
  font-size: 1.2rem;
  color: #e74c3c;
}

.validation-errors .error-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.validation-errors .error-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(231, 76, 60, 0.2);
  position: relative;
  padding-left: 1.5rem;
}

.validation-errors .error-list li:last-child {
  border-bottom: none;
}

.validation-errors .error-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-weight: bold;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.simulation-results {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 10px;
}

.simulation-results h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.result-card:hover {
  transform: translateY(-2px);
}

.result-card h4 {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.financing-recommendations {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.financing-recommendations h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.recommendation-item {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg-light);
  border-radius: 5px;
  border-left: 4px solid var(--secondary-color);
  font-size: 0.9rem;
  line-height: 1.4;
}

.recommendation-item:last-child {
  margin-bottom: 0;
}

.recommendation-item.warning {
  border-left-color: #f39c12;
  background: #fff3cd;
}

.recommendation-item.success {
  border-left-color: #27ae60;
  background: #d4edda;
}

.recommendation-item.info {
  border-left-color: #3498db;
  background: #d6eaf8;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: white;
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

.contact-item h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-form {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 15px;
}

.contact-form h3 {
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.form-info {
  margin: 1rem 0;
  text-align: center;
}

.form-info small {
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-info i {
  color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px; /* Evita zoom no iOS */
  -webkit-appearance: none;
  appearance: none;
}

.contact-form textarea {
  resize: vertical;
}

/* Admin Section */
.admin {
  padding: 80px 0;
  background: var(--bg-light);
  min-height: 100vh;
}

.admin-login,
.admin-panel {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.admin-panel {
  max-width: 800px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.admin-settings {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.admin-settings h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.close:hover {
  color: var(--primary-color);
}

/* Property Detail Modal */
.property-detail-modal {
  max-width: 90%;
  max-height: 90vh;
}

/* Image Category Buttons */
.image-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.category-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.category-btn:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
}

.category-btn i {
  font-size: 0.7rem;
}

/* Image Category Grid */
.image-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.category-preview {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.category-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-image {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light);
}

.category-info {
  padding: 1rem;
  text-align: center;
}

.category-info h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1rem;
}

.category-info p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Property PDFs */
.property-pdfs {
  margin: 2rem 0;
}

.pdf-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pdf-item {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #ddd;
  transition: all 0.3s;
  cursor: pointer;
}

.pdf-item:hover {
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.pdf-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.pdf-item .pdf-name {
  font-weight: 600;
  color: var(--primary-color);
  word-break: break-word;
}

/* Admin Controls */
.admin-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  display: none;
  gap: 5px;
  z-index: 5;
}

.admin-controls.active {
  display: flex;
}

.admin-btn {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.admin-btn.edit-btn {
  background: var(--accent-color);
  color: white;
}

.admin-btn.delete-btn {
  background: #e74c3c;
  color: white;
}

.admin-btn:hover {
  transform: scale(1.1);
}

/* Edit Property Modal */
.edit-property-modal {
  max-width: 800px;
}

.property-images {
  margin-bottom: 1.5rem;
}

/* Image Carousel */
.property-image-carousel {
  position: relative;
  margin-bottom: 2rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

.carousel-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 10;
}

.property-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.property-image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.property-map {
  margin-top: 1.5rem;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

/* OpenStreetMap Styles */
.osm-map {
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 15px;
    font-family: var(--font-family);
    line-height: 1.4;
}

/* Leaflet controls styling */
.leaflet-control-zoom a {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.leaflet-control-zoom a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  color: white;
  font-size: 1.5rem;
}

.chat-tooltip {
  position: absolute;
  right: 70px;
  background: var(--primary-color);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s;
  pointer-events: none;
}

.whatsapp-float:hover .chat-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* PDF Viewer Modal */
.pdf-viewer-content {
  max-width: 95%;
  max-height: 95vh;
  width: 1000px;
  height: 700px;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.pdf-viewer-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-control-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.pdf-control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.pdf-viewer-header .close {
  color: white;
  position: static;
  background: rgba(255, 255, 255, 0.2);
  width: 35px;
  height: 35px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pdf-viewer-container {
  flex: 1;
  position: relative;
  background: #f5f5f5;
}

#pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.pdf-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
}

.pdf-error i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: block;
}

.pdf-error a {
  color: var(--secondary-color);
  text-decoration: none;
}

.pdf-error a:hover {
  text-decoration: underline;
}

.btn-download {
    display: inline-block;
    margin: 10px 10px 0 0;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: #0056b3;
    color: white;
}

/* Chatbot Modal */
.chatbot-content {
  max-width: 500px;
  height: 600px;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.chatbot-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header .close {
  color: white;
  position: static;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bot-message,
.user-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  word-wrap: break-word;
}

.bot-message {
  background: #f1f3f4;
  align-self: flex-start;
}

.user-message {
  background: var(--secondary-color);
  color: white;
  align-self: flex-end;
}

.quick-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.quick-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.quick-btn:hover {
  background: var(--accent-color);
}

.chatbot-input {
  padding: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.chatbot-input input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}

.chatbot-input button {
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-input .send-btn {
  background: var(--secondary-color);
  color: white;
}

.chatbot-input .send-btn:hover {
  background: var(--accent-color);
  transform: scale(1.05);
}

.chatbot-input .restart-btn {
  background: #6c757d;
  color: white;
}

.chatbot-input .restart-btn:hover {
  background: #5a6268;
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
      display: flex;
  }

  .nav-menu {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background-color: white;
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: var(--shadow);
      padding: 2rem 0;
  }

  .nav-menu.active {
      left: 0;
  }

  .hero-content h1 {
      font-size: 2.5rem;
  }

  .hero-buttons {
      flex-direction: column;
      align-items: center;
  }

  .about-content {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .contact-content {
      grid-template-columns: 1fr;
  }

  .property-grid {
      grid-template-columns: 1fr;
  }

  .filter-buttons {
      flex-direction: column;
      align-items: center;
  }

  .financing-tabs {
      flex-direction: column;
  }

  .form-row {
      grid-template-columns: 1fr;
  }

  .results-grid {
      grid-template-columns: 1fr;
  }

  .form-actions {
      flex-direction: column;
      align-items: center;
  }

  .whatsapp-float {
      bottom: 15px;
      right: 15px;
      width: 50px;
      height: 50px;
  }

  .chat-tooltip {
      display: none;
  }
}

@media (max-width: 768px) {
  .pdf-viewer-content {
      width: 95%;
      height: 80vh;
  }

  .pdf-viewer-header {
      padding: 0.75rem;
  }

  .pdf-viewer-header h3 {
      font-size: 1rem;
  }

  .pdf-control-btn {
      width: 30px;
      height: 30px;
      font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
      font-size: 2rem;
  }

  .hero-content p {
      font-size: 1.1rem;
  }

  .modal-content {
      margin: 10% auto;
      width: 95%;
      padding: 1rem;
  }

  .pdf-viewer-content {
      width: 98%;
      height: 85vh;
      margin: 5% auto;
  }

  .pdf-viewer-header {
      padding: 0.5rem;
      flex-direction: column;
      gap: 0.5rem;
      align-items: flex-start;
  }

  .pdf-controls {
      align-self: flex-end;
  }

  .chatbot-content {
      height: 500px;
  }
}

/* Admin Access Styles */
.admin-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--secondary-color);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
      opacity: 0;
      transform: translateX(300px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

/* Accessibility */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-to-main:focus {
  top: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-light);
  padding: 0.75rem 0;
  font-size: 0.9rem;
  margin-top: 70px;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 600;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--text-light);
}

/* Section Descriptions */
.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Form Help Text */
.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Financing Benefits */
.financing-benefits {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.financing-benefits h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.financing-benefits ul {
  list-style: none;
  padding: 0;
}

.financing-benefits li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.financing-benefits li:last-child {
  border-bottom: none;
}

.financing-benefits li:before {
  content: "✓";
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.financing-benefits strong {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Lazy Loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
  background: #f0f0f0;
}

img.lazy-loaded {
  opacity: 1;
}

.lazy-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

.lazy-image.lazy-loaded {
  animation: fadeInImage 0.3s ease;
}

@keyframes fadeInImage {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

/* Performance optimizations para imagens */
.property-image,
.carousel-slide img {
  will-change: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Placeholder para imagens carregando */
.property-image[data-bg]:not(.lazy-loaded)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 2px solid #f0f0f0;
  border-top: 2px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Otimização para conexões lentas */
@media (max-width: 768px) and (max-device-width: 768px) {
  .property-image {
    background-size: cover;
    will-change: transform;
  }
  
  .carousel-slide img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  /* Reduzir qualidade de imagens em mobile para melhor performance */
  .property-grid {
    gap: 1rem;
  }
  
  .property-card {
    margin-bottom: 1rem;
  }
}

/* Indicador de conexão lenta */
.slow-connection-warning {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #f39c12;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 1000;
  display: none;
  animation: slideInRight 0.3s ease;
}

/* Otimização de animações para dispositivos lentos */
@media (prefers-reduced-motion: reduce) {
  .lazy-image,
  img.lazy {
    transition: none;
  }
  
  .fadeInImage {
    animation: none;
  }
}

/* Lazy Loading Styles */
.category-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.category-btn .image-count {
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
}

.category-btn:hover .image-count {
    background: var(--secondary-color);
}

/* Loading spinner personalizado */
.lazy-loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.lazy-loading-indicator i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Otimização de performance para imagens */
.property-image img {
    will-change: transform;
    backface-visibility: hidden;
}

.carousel-slide img {
    will-change: opacity;
    backface-visibility: hidden;
}

/* Preloader para carregamento de imagens */
.image-preloader {
    position: relative;
    overflow: hidden;
}

.image-preloader::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Structured Data Indicators (for testing) */
.schema-indicator {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: var(--secondary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0.7;
  pointer-events: none;
  z-index: 9999;
}

/* Performance Optimizations */
.property-card {
  contain: layout style paint;
}

.carousel-slide {
  contain: layout style paint;
}

/* Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  :root {
      --text-dark: #000000;
      --text-light: #333333;
      --shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
  }

  .hero-background {
      animation: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .whatsapp-float,
  .admin-controls,
  .modal {
      display: none !important;
  }

  .hero {
      height: auto;
      page-break-after: always;
  }

  .property-card {
      break-inside: avoid;
      margin-bottom: 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
      transform: rotate(0deg);
  }

  100% {
      transform: rotate(360deg);
  }
}

/* iOS Specific Fixes */
input, textarea, select {
  -webkit-appearance: none;
  -webkit-border-radius: 0;
  border-radius: 8px;
}

/* Fix iOS input zoom */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
  font-size: 16px !important;
}

/* Fix iOS Safari address bar issues */
.hero {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

/* Fix iOS touch delays */
a, button, input, textarea {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

button, .btn-primary, .btn-secondary {
  -webkit-appearance: none;
  touch-action: manipulation;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .breadcrumbs {
      font-size: 0.8rem;
      padding: 0.5rem 0;
  }

  .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .footer-social {
      justify-content: center;
  }

  .section-description {
      font-size: 1rem;
      padding: 0 1rem;
  }

  .image-category-buttons {
      flex-direction: column;
      align-items: stretch;
  }

  .category-btn {
      justify-content: center;
      padding: 8px 12px;
      font-size: 0.9rem;
  }

  .image-category-grid {
      grid-template-columns: 1fr;
  }

  .category-preview {
      max-width: 300px;
      margin: 0 auto;
  }
}