/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file follow the same ordering precedence as the cascade.
 */

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   GLOBAL SMOOTH TRANSITIONS
   ======================================== */

/* Base transition for all interactive elements */
button,
a,
.btn,
.card,
.property-card,
.advantage-card,
.form-control,
.form-select,
.nav-item,
.tab-btn,
.nav-link,
.navbar-menu a,
input[type="submit"],
input[type="button"],
.logout-btn,
.badge,
.table tbody tr,
.table tbody td {
  transition: all 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Ajustes do container para dispositivos móveis */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

/* Navbar */
.navbar {
  background: linear-gradient(90deg, rgba(206, 164, 0, 0.15) 0%, rgba(255, 255, 255, 0.98) 100%);
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(206, 164, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.logo-text {
  position: relative;
  overflow: hidden;
}

.logo-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(206, 164, 0, 0.15) 30%,
    rgba(206, 164, 0, 0.25) 50%,
    rgba(206, 164, 0, 0.15) 70%,
    transparent 100%
  );
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.logo:hover .logo-text {
  color: #cea400;
  text-shadow: 0 0 8px rgba(206, 164, 0, 0.3);
  transition: all 0.3s ease 0.2s;
}

.logo:hover .logo-text::before {
  left: 100%;
}

.logo-text span {
  position: relative;
  z-index: 2;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background-image: url(/logo_fm.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #cea400;
}

.nav-link.dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-arrow {
  font-size: 0.8rem;
}

.contact-btn {
  background: #cea400;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #b5910a;
  transform: translateY(-1px);
}

.area-restrita {
  font-size: 0.8rem !important;
  opacity: 0.7;
  color: #666 !important;
  transition: opacity 0.3s ease;
}

.area-restrita:hover {
  opacity: 1;
  color: #cea400 !important;
}

/* Hero Section */
.hero {
  background: 
    linear-gradient(135deg, rgba(26, 26, 46, 0.88) 0%, rgba(22, 33, 62, 0.88) 50%, rgba(15, 52, 96, 0.88) 100%),
    url(/img_ponte_hercilio.png);
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  color: white;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* ========================================
   MOBILE FIXES - FORÇA BRUTA PARA FUNCIONAR
   ======================================== */
   
@media screen and (max-width: 768px) {
  .navbar {
    padding: 0.3rem 0 !important;
    height: auto !important;
  }
  
  .hero {
    padding: 50px 0 20px !important;
    padding-top: 60px !important;
    min-height: 100vh !important;
    background-attachment: scroll !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  
  .hero-content {
    margin-top: 10px !important;
    padding: 0 1rem !important;
    gap: 1rem !important;
  }
  
  .hero-text {
    text-align: center !important;
    margin-top: 0 !important;
  }
  
  .hero-text h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.8rem !important;
    margin-top: 0 !important;
  }
  
  .hero-text p {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
    max-width: none !important;
  }
  
  .hero-buttons {
    margin-bottom: 1rem !important;
    gap: 0.6rem !important;
    justify-content: center !important;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 0.25rem 0 !important;
  }
  
  .logo-icon {
    width: 28px !important;
    height: 28px !important;
  }
  
  .logo-text {
    font-size: 0.95rem !important;
  }
  
  .hero {
    padding: 40px 0 15px !important;
    padding-top: 50px !important;
  }
  
  .hero-content {
    margin-top: 5px !important;
    padding: 0 0.8rem !important;
  }
  
  .hero-text h1 {
    font-size: 1.6rem !important;
    margin-bottom: 0.6rem !important;
  }
  
  .hero-text p {
    font-size: 0.9rem !important;
    margin-bottom: 0.8rem !important;
  }
}

@media screen and (max-width: 375px) {
  .hero {
    padding: 35px 0 10px !important;
    padding-top: 45px !important;
  }
  
  .hero-text h1 {
    font-size: 1.5rem !important;
  }
  
  .hero-text p {
    font-size: 0.85rem !important;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(206,164,0,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(/%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.highlight {
  color: #cea400;
  position: relative;
}

.hero-text p {
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Filter Form */
.filter-form {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  color: #333;
  border: 1px solid rgba(206, 164, 0, 0.1);
}

.form-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #666;
}

.tab-btn.active {
  color: #cea400;
  border-bottom-color: #cea400;
}

.tab-btn:hover {
  color: #cea400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  min-width: 0; /* Força que ambos os campos tenham a mesma largura */
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
  font-size: 0.95rem;
}

.form-select {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.form-select:focus {
  outline: none;
  border-color: #cea400;
  box-shadow: 0 0 0 3px rgba(206, 164, 0, 0.1);
}

.form-select:hover {
  border-color: #cea400;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background: #cea400;
  color: white;
}

.btn-primary:hover {
  background: #b5910a;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #333;
}

.btn-search {
  width: 100%;
  background: #cea400;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.25rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background: #b5910a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(206, 164, 0, 0.3);
}

.btn-cta {
  background: #cea400;
  color: white;
}

.btn-info {
  background: #cea400;
  color: white;
  width: 100%;
  margin-top: auto;
}

/* Advantages Section */
.advantages {
  padding: 80px 0;
  background: #f8f9fa;
}

.advantages h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #333;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.advantage-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.advantage-card:hover {
  transform: translateY(-5px);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(206, 164, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon svg {
  width: 40px;
  height: 40px;
  fill: #cea400;
}

.advantage-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.advantage-card p {
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: #f1f3f4;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
}

.cta-text p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-image {
  display: flex;
  justify-content: center;
}

.placeholder-image {
  width: 100%;
  height: 300px;
  background: #e9ecef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image svg {
  width: 80px;
  height: 80px;
}

/* Properties Section */
.properties {
  padding: 80px 0;
}

.properties-sale {
  background: #f8f9fa;
}

.filtros-aplicados {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #cea400;
  margin-bottom: 2rem;
}

.filtros-aplicados .text-muted {
  color: #666 !important;
  font-size: 0.9rem;
}

.btn-outline-secondary {
  border: 1px solid #6c757d;
  color: #6c757d;
  background: transparent;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  text-decoration: none;
}

.properties h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #333;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-5px);
}

.property-image {
  height: 250px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-image .placeholder-image {
  height: 100%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.property-info p {
  color: #666;
  margin-bottom: 1rem;
}

.property-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.property-features span {
  background: rgba(206, 164, 0, 0.1);
  color: #cea400;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.property-price {
  margin-bottom: 1rem;
}

.property-price strong {
  color: #cea400;
  font-size: 1.4rem;
  font-weight: 700;
}

/* Responsive Design */
@media (min-width: 1200px) {
  .properties-grid {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .advantages-grid {
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .cta-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  
  .logo-icon {
    width: 35px;
    height: 35px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .navbar-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .contact-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .area-restrita {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .hero {
    padding: 80px 0 30px;
    min-height: 100vh;
    background-attachment: scroll;
  }
  
  .hero-content {
    padding: 0 1.5rem;
    gap: 1.5rem;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: none;
  }
  
  .hero-buttons {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .filter-form {
    padding: 1.25rem;
    margin-top: 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ADMIN STYLES - Painel Administrativo
   ======================================== */

.admin-body {
  font-family: 'Inter', sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Admin Header */
.admin-header {
  background: white;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #cea400;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-image: url(/logo_fm.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #6c757d;
}

.logout-btn {
  background: #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.admin-sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid #e9ecef;
  padding: 2rem 0;
}

.admin-nav {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: #f8f9fa;
  color: #cea400;
  border-left-color: #cea400;
  text-decoration: none;
}

.nav-item.active {
  background: rgba(206, 164, 0, 0.1);
  color: #cea400;
  border-left-color: #cea400;
  font-weight: 600;
}

.nav-icon {
  font-size: 1.2rem;
}

/* Main Content */
.admin-main {
  flex: 1;
  padding: 2rem;
}

/* Admin Page Header Section */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem 2rem 1rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.admin-page-header h1 {
  color: #495057;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-page-header h1 i {
  color: #cea400;
  font-size: 1.5rem;
}

.admin-page-header .header-actions p {
  color: #6c757d;
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.card-header h3 {
  margin: 0;
  color: #495057;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* Tables */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin: 0;
}

.table thead th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 2px solid #e9ecef;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: rgba(206, 164, 0, 0.05);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-administrador {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.badge-gerente {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.badge-corretor {
  background: rgba(0, 123, 255, 0.15);
  color: #007bff;
}

.badge-assistente {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

.badge-apartamento {
  background: rgba(0, 123, 255, 0.15);
  color: #007bff;
}

.badge-casa {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

/* Dashboard Styles */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 1.5rem;
  background: rgba(206, 164, 0, 0.1);
  color: #cea400;
  padding: 1rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content h3 {
  font-size: 2rem;
  color: #cea400;
  margin: 0;
  font-weight: 700;
}

.stat-content p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.action-card:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.action-icon {
  font-size: 1.2rem;
  background: rgba(206, 164, 0, 0.1);
  color: #cea400;
  padding: 0.75rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-content h3 {
  color: #495057;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.action-content p {
  color: #6c757d;
  margin: 0;
  font-size: 0.85rem;
}

.recent-properties {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.property-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.property-item:last-child {
  border-bottom: none;
}

.property-info h4 {
  margin: 0 0 0.25rem 0;
  color: #495057;
  font-size: 1rem;
  font-weight: 600;
}

.property-info p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.property-price strong {
  color: #cea400;
  font-size: 1.1rem;
  font-weight: 700;
}

.property-actions {
  display: flex;
  gap: 0.5rem;
}

.text-muted {
  color: #6c757d !important;
  font-size: 0.9rem;
}

/* Image Gallery Styles */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   MODAL STYLES - Popup de Imóveis
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 2rem;
  box-sizing: border-box;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

/* Scrollbar customizada para o modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 0 16px 16px 0;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #cea400 0%, #b5910a 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b5910a 0%, #a0800a 100%);
  width: 10px;
}

/* Scrollbar Firefox */
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: #cea400 #f8f9fa;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 3px solid #cea400;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 16px 16px 0 0;
  color: #333;
  position: relative;
}

.modal-header::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #cea400 0%, #b5910a 100%);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

.modal-close {
  background: rgba(206, 164, 0, 0.1);
  border: 1px solid rgba(206, 164, 0, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #cea400;
}

.modal-close:hover {
  background: #cea400;
  color: white;
  border-color: #cea400;
  transform: scale(1.05);
}

.modal-close span {
  font-size: 1.25rem;
  font-weight: bold;
}

.modal-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.modal-image {
  position: relative;
}

.image-carousel {
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 250px;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.no-image {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
  border-radius: 12px;
  font-style: italic;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(206, 164, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(206, 164, 0, 1);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.carousel-btn span {
  font-size: 1.5rem;
  font-weight: bold;
}

.image-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(206, 164, 0, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #cea400;
  border-color: #cea400;
}

.indicator:hover {
  border-color: #cea400;
  background: rgba(206, 164, 0, 0.5);
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-section h4 {
  color: #cea400;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(206, 164, 0, 0.2);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item span:last-child {
  font-weight: 600;
  color: #495057;
}

.info-section p {
  color: #495057;
  line-height: 1.6;
  margin: 0;
}

.modal-price {
  background: linear-gradient(135deg, rgba(206, 164, 0, 0.08) 0%, rgba(181, 145, 10, 0.08) 100%);
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(206, 164, 0, 0.25);
  text-align: center;
}

.price-label {
  display: block;
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.price-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #cea400;
  display: block;
}

.modal-footer {
  padding: 1.5rem 2rem 2rem 2rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: #f8f9fa;
  border-radius: 0 0 16px 16px;
}

.modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .modal-header h3 {
    font-size: 1.2rem;
  }
  
  .modal-close {
    width: 32px;
    height: 32px;
  }
  
  .modal-close span {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 1.5rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .modal-image img {
    height: 200px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-footer {
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: #cea400;
  color: white;
}

.btn-primary:hover {
  background: #b5910a;
  box-shadow: 0 4px 12px rgba(206, 164, 0, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-warning {
  background: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background: #e0a800;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-info:hover {
  background: #138496;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Actions Column */
.actions {
  white-space: nowrap;
}

.actions .btn {
  margin-right: 0.25rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #495057;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: #cea400;
  box-shadow: 0 0 0 3px rgba(206, 164, 0, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  margin-top: 2rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.alert-danger {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-info {
  background: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.alert h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.alert ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: #495057;
}

/* Rows and Columns */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.75rem;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0.75rem;
}

.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0.75rem;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0.75rem;
}

.col-sm-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-sm-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
  }
  
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .nav-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  
  .nav-item:hover,
  .nav-item.active {
    border-left: none;
    border-bottom-color: #cea400;
  }
  
  .col-md-6,
  .col-md-8,
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .admin-page-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }
  
  .admin-page-header h1 {
    font-size: 1.5rem;
  }
  
  .header-actions {
    justify-content: center;
  }
  
  .table-responsive {
    overflow-x: auto;
  }
  
  .actions .btn {
    margin-bottom: 0.25rem;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .property-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .property-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .properties-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }


@media (max-width: 480px) {
  .navbar {
    padding: 0.4rem 0;
  }
  
  .navbar .container {
    gap: 0.5rem;
  }
  
  .logo-icon {
    width: 30px;
    height: 30px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .navbar-menu {
    gap: 0.4rem;
  }
  
  .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .contact-btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
  }
  
  .area-restrita {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .hero {
    padding: 60px 0 20px;
    min-height: 100vh;
    background-attachment: scroll;
    display: flex;
    align-items: flex-start;
    padding-top: 70px;
  }
  
  .hero-content {
    padding: 0 1rem;
    gap: 1rem;
    margin-top: 10px;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  
  .hero-text p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .filter-form {
    padding: 1rem;
    margin-top: 0.5rem;
  }
  
  .advantages h2,
  .properties h2 {
    font-size: 1.8rem;
  }
}

/* Ajustes específicos para dispositivos com altura pequena (celulares em paisagem) */
@media (max-height: 600px) and (max-width: 768px) {
  .navbar {
    padding: 0.3rem 0;
  }
  
  .hero {
    padding: 50px 0 20px;
    min-height: auto;
    padding-top: 55px;
    align-items: flex-start;
  }
  
  .hero-content {
    gap: 0.8rem;
    margin-top: 0;
  }
  
  .hero-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }
  
  .hero-text p {
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    line-height: 1.4;
  }
  
  .hero-buttons {
    margin-bottom: 0.7rem;
    gap: 0.5rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .filter-form {
    padding: 0.8rem;
    margin-top: 0.2rem;
  }
}

/* Ajustes específicos para altura muito pequena (landscape em celulares pequenos) */
@media (max-height: 500px) and (max-width: 768px) {
  .navbar {
    padding: 0.2rem 0;
  }
  
  .hero {
    padding: 40px 0 15px;
    padding-top: 45px;
    min-height: auto;
  }
  
  .hero-content {
    gap: 0.6rem;
  }
  
  .hero-text h1 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }
  
  .hero-text p {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }
  
  .hero-buttons {
    margin-bottom: 0.6rem;
    gap: 0.4rem;
  }
  
  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .filter-form {
    padding: 0.6rem;
    margin-top: 0.1rem;
  }
}

/* Ajuste adicional para dispositivos muito pequenos */
@media (max-width: 320px) {
  .navbar {
    padding: 0.3rem 0;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  .logo-text {
    font-size: 0.95rem;
  }
  
  .hero {
    padding: 50px 0 15px;
    padding-top: 60px;
    display: flex;
    align-items: flex-start;
  }
  
  .hero-content {
    padding: 0 0.75rem;
    gap: 0.75rem;
    margin-top: 5px;
  }
  
  .hero-text h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }
  
  .hero-text p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }
  
  .hero-buttons {
    gap: 0.5rem;
    margin-bottom: 0.8rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .filter-form {
    padding: 0.8rem;
    margin-top: 0.3rem;
  }
}
