/* === RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #0b0b0c; /* dark background */
  color: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Base style for gradient headings (overridden for specific elements) */
h1, h3 {
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 22px;
  color: #ffd66a;
  text-align: left;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
  /* Specific override for h2 */
  -webkit-text-fill-color: #ffd66a;
  background: none;
}

p, a, li, span {
  font-weight: 300;
  line-height: 1.8;
  color: #ccc;
}

.lead {
  font-size: 1.1rem;
  color: #ccc;
}

/* === UTILITY === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 44px 0;
}

/* Fade-in Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fade-in-up {
  animation: fadeUp 0.45s ease both;
}

/* === HEADER & NAVIGATION === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(8px);
  padding: 0.8rem 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 95px;
  width: auto;
  margin-right: 12px;
}

.brand-text h1 {
  font-weight: 700;
  font-size: 1.8rem;
  text-transform: none;
  letter-spacing: 0;
  /* Reset gradient for brand logo */
  color: #ffb400;
  -webkit-text-fill-color: #ffb400;
  background: none;
}

.brand-text .staria {
  font-weight: 600;
  color: #ffd700;
}

.brand-text .dot {
  color: #ff8c00;
  font-weight: 800;
}

.brand-text p {
  font-size: 1rem;
  color: #ffcc66;
  letter-spacing: 1px;
  font-weight: 500;
  margin-top: 4px;
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

nav a {
  color: #f3f3f3;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 8px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: #ffb400;
}

.calendar-btn,
.cta-btn {
  border: none;
  outline: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  color: #000;
  white-space: nowrap;
}

.calendar-btn:hover,
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 180, 0, 0.4);
}

/* === HERO SECTION (Consolidated Video Style) === */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* Set to 100vh based on Trece Martires style */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff; /* Base color for text */
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  max-width: 800px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #f1f1f1;
}

/* === MUTE BUTTON (If needed) === */
#muteToggle {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease;
}

#muteToggle:hover {
  background: rgba(211, 47, 47, 0.8);
}

/* === PROPERTY CARDS === */
.grid-cards,
.property-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.property-card-link {
  flex: 1 1 45%;
  max-width: 350px;
  min-width: 280px;
  text-align: center;
  position: relative;
}

.property-card {
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 180, 0, 0.35);
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover img {
  transform: scale(1.08);
}

.property-card h3 {
  font-size: 1.3rem;
  margin-top: 0.8rem;
  /* Use base gradient style */
}

.property-card p {
  color: #ccc;
  font-size: 0.95rem;
  padding: 0 1.2rem 1.5rem;
}

/* ================================================= */
/* === INLINE CARD VIEW MORE BUTTON (NEW STYLE) === */
/* ================================================= */
.card-view-more-btn {
    /* Centering the button in the container */
    display: block; 
    width: fit-content;
    margin: 20px auto 0 auto; 
    
    /* Style based on the previous minimalist request */
    background: transparent;
    border: 2px solid #ffb400; /* Made border slightly thicker for inline visibility */
    color: #ffb400; 
    padding: 10px 25px;
    border-radius: 6px; 
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.card-view-more-btn:hover {
    background: #ffb400; 
    color: #0b0b0c; /* Dark text on hover */
    transform: translateY(-2px); 
    box-shadow: 0 8px 15px rgba(255, 180, 0, 0.4); 
}


/* --- DELETE OLD FLOATING BUTTON STYLES BELOW --- */
/* (The following classes/IDs related to the old floating buttons have been REMOVED)
.floating-view-btn,
#btnPreSelling,
#btnForeclosed,
#btnSecondary 
*/
/* --- END OF DELETED STYLES --- */


/* === APPOINTMENT MODAL === */
.appointment-modal .appointment-card {
  background: #fff;
  color: #000;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal.show .appointment-modal .appointment-card {
  transform: scale(1);
}

.appointment-card .card-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 32px;
  font-weight: 900;
  color: #ff8c00;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, color 0.2s ease;
}

.appointment-card .card-close:hover {
  transform: scale(1.2);
  color: #ffd700;
}

.appointment-card .card-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
}

.appointment-form label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}

.appointment-form input,
.appointment-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* Container for buttons: use Flexbox to put them side-by-side */
.appointment-form .form-actions {
  display: flex;
  gap: 15px; /* Space between the two buttons */
  margin-top: 20px;
}

/* Make all action buttons consistent */
.appointment-form .submit-btn,
.appointment-form .form-actions button {
  flex: 1;
  width: auto;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  margin-top: 0; /* Ensures consistent vertical spacing */
}

/* Submit Button Style */
.appointment-form .submit-btn {
  background: linear-gradient(to right, #ffcc00, #ff8c00);
  border: none;
  color: #000;
}

.appointment-form .submit-btn:hover {
  background: linear-gradient(to right, #ffd700, #ff6a00);
  transform: translateY(-1px);
}

/* Clear All button Style */
.appointment-form .clear-btn {
  background: transparent;
  border: 2px solid #ff8c00;
  color: #ff8c00;
}

.appointment-form .clear-btn:hover {
  background: #ff8c00;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.success-message {
  text-align: center;
  padding: 20px;
  color: #000;
}

.success-message h3 {
  color: #ff8c00;
  margin-bottom: 10px;
}

/* === FOOTER === */
.about-footer-section {
  padding: 40px 0;
  background: #111;
  border-top: 1px solid #222;
}

.about-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.about-block,
.footer-block {
  flex: 1;
  min-width: 250px;
}

.about-block h3 {
  color: #ffd66a;
  margin-bottom: 10px;
}

.about-block p {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.copyright {
  font-size: 0.8rem;
  color: #666;
  padding-top: 15px;
  border-top: 1px solid #333;
  margin-top: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  color: #ccc;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: #ffb400;
  transform: translateY(-2px);
}

/* === SCROLL TO TOP BUTTON === */
#scrollTopBtn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd966, #ff8a00);
  color: #0b0b0b;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 200, 50, 0.6);
  opacity: 0;
  transition: opacity 0.5s ease;
}

#scrollTopBtn.show::after {
  opacity: 1;
}

/* === MEDIA QUERIES (RESPONSIVE DESIGN) === */
@media (max-width: 768px) {
  /* Header */
  .nav {
    flex-direction: column;
    text-align: center;
    flex-wrap: wrap;
  }
  nav {
    margin-top: 10px;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .logo-img {
    height: 80px;
  }
  .brand-text h1 {
    font-size: 1.4rem;
  }
  .brand-text p {
    font-size: 0.7rem;
  }
  nav a,
  .calendar-btn,
  .cta-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  /* Hero */
  .hero {
    height: 60vh;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  /* Footer */
  .about-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
  
  /* Inline button mobile adjustments */
  .card-view-more-btn {
    font-size: 0.9rem;
    padding: 8px 20px;
  }
}

@media (max-width: 480px) {
  .appointment-form .form-actions {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
}

/* === INFO VIEWER STYLES === */
.info-viewer {
  position: fixed;
  bottom: 20px;
  left: 20px; 
  width: 280px;
  background: #ffffff;
  border: 1px solid #FFD700; /* Staria Gold Border */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-family: 'Poppins', sans-serif;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 320ms ease, transform 320ms ease, visibility 320ms;
  display: none;
}

.info-viewer.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.info-header {
  background: #0b74de;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* FIX: X BUTTON (Clean, no border) */
#closeInfo {
  background: transparent !important;
  border: none !important;
  color: white !important;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  outline: none !important;
}

/* FIX: STARIA GOLD FONT */
.info-body {
  padding: 15px;
  color: #FFD700 !important; /* STARIA GOLD COLOR */
  background-color: #000000; /* Dark background so gold is visible */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.info-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #0b74de;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

.info-icon.show {
  display: flex;
  opacity: 1;
}

/* FIX: PULSATING ANIMATION */
.info-icon.pulse {
  animation: staria-pulse 2s infinite !important;
}

@keyframes staria-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); /* Gold Pulse */
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    transform: scale(1);
  }
}