/* ============================================
   KT IMÓVEIS — DESIGN SYSTEM
   Shared CSS across all pages
   ============================================ */

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1A5276;
  --blue-dark: #0E3350;
  --blue-light: #2E86C1;
  --sky: #5DADE2;
  --sky-pale: #EBF5FB;
  --gold: #F4C542;
  --gold-dark: #D4A520;
  --sand: #FDF6E3;
  --cream: #F8FAFB;
  --green: #27AE60;
  --green-light: #E8F8EE;
  --red: #E74C3C;
  --orange: #F39C12;
  --white: #FFF;
  --dark: #1C2833;
  --text: #34495E;
  --gray: #7F8C8D;
  --light: #BDC3C7;
  --border: #E5E8EB;
  --font: 'Inter', sans-serif;
  --font-d: 'Playfair Display', Georgia, serif;
  --shadow: 0 4px 20px rgba(26,82,118,.07);
  --shadow-lg: 0 12px 40px rgba(26,82,118,.12);
  --radius: 14px;
  --transition: all .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed; inset: 0; background: var(--blue-dark); z-index: 9999;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  transition: opacity .4s;
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader-t { font-size: 1.8rem; font-weight: 800; color: var(--white); letter-spacing: 3px; }
.loader-t span { color: var(--gold); }
.loader-b { width: 60px; height: 2px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.loader-b::after {
  content: ''; display: block; width: 40%; height: 100%; background: var(--gold);
  animation: ld .8s ease-in-out infinite;
}
@keyframes ld { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0; transition: var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  box-shadow: 0 1px 10px rgba(0,0,0,.05); padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 40px; height: 40px; background: var(--gold); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-dark); font-weight: 800; font-size: .85rem;
}
.nav-logo-text { font-size: 1.05rem; font-weight: 700; color: var(--white); transition: color .3s; }
.nav-logo-text span { color: var(--gold); }
.nav.scrolled .nav-logo-text { color: var(--blue); }

.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links li { list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.7); text-decoration: none; font-size: .76rem;
  font-weight: 500; transition: color .3s;
}
.nav.scrolled .nav-links a { color: var(--gray); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active-link { color: var(--gold); font-weight: 600; }

.nav-right { display: flex; gap: 8px; }
.nav-btn {
  padding: 9px 18px; border-radius: 50px; text-decoration: none;
  font-weight: 600; font-size: .74rem; display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.nav-btn-gold { background: var(--gold); color: var(--blue-dark); }
.nav-btn-gold:hover { background: var(--gold-dark); }
.nav-btn-outline { border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.nav.scrolled .nav-btn-outline { border-color: var(--border); color: var(--gray); }
.nav-btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.menu-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.2rem; cursor: pointer;
}
.nav.scrolled .menu-toggle { color: var(--blue); }

/* CITY DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger i.fa-chevron-down { font-size: .55rem; transition: transform .3s; }
.nav-dropdown.open .nav-dropdown-trigger i.fa-chevron-down { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px 0; min-width: 220px; opacity: 0; visibility: hidden;
  transition: all .3s; z-index: 300;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu a {
  display: flex !important; align-items: center; gap: 8px;
  padding: 10px 18px; color: var(--text) !important; font-size: .78rem;
  text-decoration: none; transition: background .2s;
}
.nav-dropdown-menu a:hover { background: var(--cream); }
.nav-dropdown-menu a i { color: var(--blue); width: 16px; text-align: center; }

/* ============================================
   HERO (full-page, home)
   ============================================ */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&q=80') center/cover;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,51,80,.92), rgba(26,82,118,.6) 50%, rgba(93,173,226,.15));
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 140px 24px 80px; max-width: 1200px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(244,197,66,.3); padding: 7px 16px; border-radius: 50px;
  color: var(--gold); font-size: .7rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-d); font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white); line-height: 1.1; margin-bottom: 14px; font-weight: 700; max-width: 600px;
}
.hero h1 span { color: var(--gold); }
.hero-desc {
  color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.7;
  margin-bottom: 32px; max-width: 500px; font-weight: 300;
}

/* ============================================
   PAGE HERO (internal pages — shorter)
   ============================================ */
.page-hero {
  min-height: 40vh; position: relative; display: flex; align-items: center; overflow: hidden;
}
.page-hero .hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&q=80') center/cover;
}
.page-hero .hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,51,80,.92), rgba(26,82,118,.7));
}
.page-hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 120px 24px 50px; max-width: 1200px; margin: 0 auto; text-align: center;
}
.page-hero h1 {
  font-family: var(--font-d); font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white); margin-bottom: 8px;
}
.page-hero h1 span { color: var(--gold); }
.page-hero p { color: rgba(255,255,255,.6); font-size: .88rem; max-width: 500px; margin: 0 auto; }

.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 16px; font-size: .72rem;
}
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }
.breadcrumb i { color: rgba(255,255,255,.3); font-size: .55rem; }

/* ============================================
   SEARCH BOX
   ============================================ */
.search-box {
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 24px; max-width: 900px; overflow: hidden;
}
.search-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.s-tab {
  padding: 8px 16px; border-radius: 50px; font-size: .72rem; font-weight: 600;
  border: none; cursor: pointer; transition: var(--transition);
  background: var(--cream); color: var(--gray); white-space: nowrap; flex-shrink: 0;
}
.s-tab.active { background: var(--blue); color: var(--white); }
.search-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.sf { display: flex; flex-direction: column; gap: 3px; }
.sf label {
  font-size: .65rem; font-weight: 600; color: var(--gray);
  text-transform: uppercase; letter-spacing: .5px;
}
.sf select, .sf input {
  padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .8rem; font-family: var(--font); color: var(--text);
}
.sf select:focus, .sf input:focus { border-color: var(--blue); outline: none; }
.search-go {
  background: var(--gold); color: var(--blue-dark); padding: 10px 20px;
  border-radius: 50px; font-weight: 700; font-size: .78rem; border: none;
  cursor: pointer; height: 42px; white-space: nowrap; transition: var(--transition);
}
.search-go:hover { background: var(--gold-dark); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar { position: relative; z-index: 5; margin-top: -36px; }
.stats-inner {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 24px 32px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 1200px; margin: 0 auto;
}
.stat { text-align: center; }
.stat strong {
  font-family: var(--font-d); font-size: 1.8rem; font-weight: 700;
  color: var(--blue); display: block;
}
.stat strong span { color: var(--gold); }
.stat small { font-size: .68rem; color: var(--gray); }

/* ============================================
   SECTIONS
   ============================================ */
.sec { padding: 80px 24px; }
.sec-head { text-align: center; max-width: 580px; margin: 0 auto 44px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky-pale); color: var(--blue); padding: 5px 14px;
  border-radius: 50px; font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}
.sec-title {
  font-family: var(--font-d); font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--dark); margin-bottom: 8px; line-height: 1.2;
}
.sec-title span { color: var(--blue); }
.sec-desc { color: var(--gray); font-size: .84rem; line-height: 1.7; font-weight: 300; }

/* ============================================
   SERVICES GRID
   ============================================ */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: var(--transition);
  text-decoration: none; color: var(--text); display: block;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.svc-i {
  width: 52px; height: 52px; border-radius: 50%; background: var(--sky-pale);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 1.15rem; color: var(--blue); transition: var(--transition);
}
.svc:hover .svc-i { background: var(--blue); color: var(--white); }
.svc h3 { font-size: .88rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.svc p { font-size: .74rem; color: var(--gray); line-height: 1.5; }

/* ============================================
   PROPERTY GRID & CARDS
   ============================================ */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prop {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border); cursor: pointer;
}
.prop:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sky); }

.prop-img { height: 220px; overflow: hidden; position: relative; }
.prop-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.prop:hover .prop-img img { transform: scale(1.04); }

.prop-tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px;
  font-size: .6rem; font-weight: 700; text-transform: uppercase; z-index: 2; color: var(--white);
}
.tag-venda { background: var(--blue); }
.tag-aluguel { background: var(--orange); }
.tag-temporada { background: var(--green); }

.prop-fav {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--gray); cursor: pointer; z-index: 2; transition: var(--transition);
}
.prop-fav:hover { color: var(--red); }

.prop-rating {
  position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.6);
  color: var(--gold); padding: 3px 8px; border-radius: 6px; font-size: .68rem;
  font-weight: 600; z-index: 2;
}
.prop-gallery-count {
  position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6);
  color: var(--white); padding: 3px 8px; border-radius: 6px; font-size: .65rem; z-index: 2;
}

.prop-body { padding: 16px; }
.prop-body h3 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; line-height: 1.3; }
.prop-loc { font-size: .72rem; color: var(--gray); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.prop-specs { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.prop-spec { font-size: .68rem; color: var(--gray); display: flex; align-items: center; gap: 3px; }
.prop-spec i { color: var(--blue-light); font-size: .72rem; }

.prop-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.prop-price { font-family: var(--font-d); font-size: 1.15rem; color: var(--blue); font-weight: 700; }
.prop-price small { font-size: .6rem; color: var(--gray); font-family: var(--font); font-weight: 400; }

.prop-action {
  padding: 7px 14px; border-radius: 50px; font-size: .68rem; font-weight: 600;
  border: none; cursor: pointer; transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.action-reserve { background: var(--green); color: var(--white); }
.action-reserve:hover { background: #219150; }
.action-interest { background: var(--blue); color: var(--white); }
.action-interest:hover { background: var(--blue-dark); }

.prop-share {
  position: absolute; top: 10px; right: 46px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--gray); cursor: pointer; z-index: 2; transition: var(--transition);
  border: none;
}
.prop-share:hover { color: var(--blue); background: var(--white); }

/* ============================================
   FILTERS
   ============================================ */
.filter-row { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.f-btn {
  padding: 8px 18px; border-radius: 50px; font-size: .72rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--white); color: var(--gray);
  cursor: pointer; transition: var(--transition);
}
.f-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.f-btn:hover { border-color: var(--blue); color: var(--blue); }
.f-btn.active:hover { color: var(--white); }

/* Bairro filter row */
.bairro-filter-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.bairro-filter-select {
  padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 50px;
  font-size: .76rem; font-family: var(--font); color: var(--text);
  background: var(--white); cursor: pointer; transition: var(--transition);
  min-width: 200px; text-align: center; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237F8C8D'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 32px;
}
.bairro-filter-select:focus { border-color: var(--blue); outline: none; }
.bairro-filter-select:hover { border-color: var(--blue); }

/* ============================================
   PREVIEW SECTION (home page)
   ============================================ */
.preview-more { display: flex; justify-content: center; margin-top: 28px; }
.preview-more a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: var(--transition);
  border: 2px solid var(--blue); color: var(--blue);
}
.preview-more a:hover { background: var(--blue); color: var(--white); }

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--cream);
  max-width: 1200px; margin: 0 auto;
}
.about-img { overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.about-txt { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.about-txt h2 {
  font-family: var(--font-d); font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--dark); margin-bottom: 12px; line-height: 1.2;
}
.about-txt h2 span { color: var(--blue); }
.about-txt p { font-size: .84rem; color: var(--gray); line-height: 1.8; margin-bottom: 14px; }

.about-creds { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.cred {
  display: flex; align-items: center; gap: 8px; background: var(--white);
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border);
}
.cred i { color: var(--gold); font-size: 1rem; }
.cred div strong { font-size: .72rem; color: var(--dark); display: block; }
.cred div span { font-size: .6rem; color: var(--gray); }

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar { background: var(--blue); padding: 32px 24px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1200px; margin: 0 auto; text-align: center;
}
.trust-item i { font-size: 1.2rem; color: var(--gold); margin-bottom: 6px; display: block; }
.trust-item h4 { font-size: .76rem; color: var(--white); font-weight: 600; }
.trust-item p { font-size: .6rem; color: rgba(255,255,255,.4); }

/* ============================================
   REVIEWS
   ============================================ */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: var(--transition);
}
.rev:hover { box-shadow: var(--shadow); border-color: var(--sky); }
.rev-stars { color: var(--gold); font-size: .78rem; letter-spacing: 2px; margin-bottom: 8px; }
.rev p {
  font-size: .82rem; color: var(--text); line-height: 1.6; margin-bottom: 10px;
  font-style: italic; font-weight: 300;
}
.rev strong { font-size: .76rem; color: var(--dark); display: block; }
.rev small { font-size: .62rem; color: var(--gray); }

/* ============================================
   CTA
   ============================================ */
.cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--sky));
  padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: -80px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.03);
}
.cta-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 2; }
.cta h2 { font-family: var(--font-d); font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--white); margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: 24px; line-height: 1.6; }
.cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-w {
  background: var(--white); color: var(--blue); padding: 13px 26px; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; gap: 8px; transition: var(--transition);
}
.btn-w:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: rgba(255,255,255,.5); padding: 48px 24px 18px; }
.ft-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  max-width: 1200px; margin: 0 auto 24px;
}
.footer h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--white); margin-bottom: 10px;
}
.ft-brand p { font-size: .76rem; line-height: 1.6; margin-bottom: 10px; }
.ft-social { display: flex; gap: 8px; }
.ft-social a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); text-decoration: none; transition: var(--transition); font-size: .8rem;
}
.ft-social a:hover { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }
.footer a {
  color: rgba(255,255,255,.4); text-decoration: none; font-size: .76rem;
  display: block; margin-bottom: 5px; transition: color .2s;
}
.footer a:hover { color: var(--gold); }
.ft-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 12px;
  text-align: center; font-size: .65rem; color: rgba(255,255,255,.2);
  max-width: 1200px; margin: 0 auto;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.wpp {
  position: fixed; bottom: 20px; right: 20px; z-index: 99;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.wpp-tip {
  background: var(--white); color: var(--dark); padding: 8px 14px;
  border-radius: 12px 12px 4px 12px; box-shadow: var(--shadow-lg);
  font-size: .74rem; font-weight: 500; transform: translateY(6px);
  opacity: 0; transition: var(--transition); pointer-events: none;
}
.wpp:hover .wpp-tip { transform: translateY(0); opacity: 1; }
.wpp-b {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: var(--transition);
  animation: wp 2.5s infinite;
}
.wpp-b:hover { transform: scale(1.1); }
@keyframes wp {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.35); }
  70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================
   MODALS
   ============================================ */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000;
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 24px; overflow-y: auto;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--white); border-radius: 16px; max-width: 520px;
  width: 100%; padding: 32px; position: relative;
}
.modal-x {
  position: absolute; top: 12px; right: 16px; background: none;
  border: none; font-size: 1.2rem; color: var(--gray); cursor: pointer;
}
.modal-x:hover { color: var(--dark); }
.modal h2 { font-family: var(--font-d); font-size: 1.3rem; color: var(--dark); margin-bottom: 4px; }
.modal .msub { font-size: .78rem; color: var(--gray); margin-bottom: 18px; line-height: 1.5; }

.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: .68rem; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.fg input, .fg select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .8rem; font-family: var(--font); color: var(--text);
}
.fg input:focus, .fg select:focus { border-color: var(--blue); outline: none; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.f-submit {
  width: 100%; padding: 13px; background: var(--blue); color: var(--white);
  border: none; border-radius: 50px; font-weight: 700; font-size: .82rem;
  cursor: pointer; transition: var(--transition); margin-top: 6px;
}
.f-submit:hover { background: var(--blue-dark); }
.f-note { font-size: .62rem; color: var(--gray); text-align: center; margin-top: 8px; }

/* ============================================
   BOOKING MODAL
   ============================================ */
.bk-card {
  display: flex; gap: 12px; background: var(--cream); border-radius: 10px;
  padding: 12px; margin-bottom: 16px;
}
.bk-card img { width: 90px; height: 70px; border-radius: 8px; object-fit: cover; }
.bk-card h3 { font-size: .84rem; font-weight: 700; color: var(--dark); }
.bk-card p { font-size: .68rem; color: var(--gray); }
.bk-card .bk-p { font-family: var(--font-d); font-size: .95rem; color: var(--blue); font-weight: 700; margin-top: 2px; }

.bk-actions {
  display: flex; gap: 8px; margin-top: 14px;
}

/* ============================================
   PROPERTY DETAIL MODAL
   ============================================ */
.detail-modal .modal { max-width: 800px; padding: 0; overflow: hidden; }
.detail-gallery { height: 320px; overflow: hidden; position: relative; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .g-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .8rem; color: var(--dark); border: none;
  z-index: 2; transition: var(--transition);
}
.g-nav:hover { background: var(--white); }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-count {
  position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6);
  color: var(--white); padding: 4px 10px; border-radius: 6px; font-size: .68rem; z-index: 2;
}
.detail-body { padding: 28px; }
.detail-body h2 { font-family: var(--font-d); font-size: 1.4rem; color: var(--dark); margin-bottom: 4px; }
.detail-body .d-loc {
  font-size: .78rem; color: var(--gray); margin-bottom: 14px;
  display: flex; align-items: center; gap: 4px;
}
.detail-specs { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.d-spec {
  display: flex; align-items: center; gap: 6px; background: var(--cream);
  padding: 8px 14px; border-radius: 8px; font-size: .76rem; color: var(--text);
}
.d-spec i { color: var(--blue); }
.detail-desc { font-size: .84rem; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.detail-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.d-am {
  padding: 5px 12px; border-radius: 50px; font-size: .66rem;
  background: var(--sky-pale); color: var(--blue); font-weight: 500;
}
.detail-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.detail-price { font-family: var(--font-d); font-size: 1.6rem; color: var(--blue); font-weight: 700; }
.detail-price small { font-size: .7rem; color: var(--gray); font-family: var(--font); font-weight: 400; }
.detail-cta {
  padding: 12px 24px; border-radius: 50px; font-weight: 700; font-size: .82rem;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition); color: var(--white);
}

.detail-share-row { padding: 12px 0 0; text-align: center; }
.detail-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 50px; font-size: .76rem; font-weight: 500;
  background: var(--cream); color: var(--text); border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.detail-share-btn:hover { background: var(--sky-pale); color: var(--blue); border-color: var(--blue); }

/* ============================================
   CALENDAR
   ============================================ */
.cal { user-select: none; }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-header button {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  width: 28px; height: 28px; cursor: pointer; font-size: .7rem;
  color: var(--text); transition: var(--transition);
}
.cal-header button:hover { border-color: var(--blue); color: var(--blue); }
.cal-header span { font-size: .78rem; font-weight: 600; color: var(--dark); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-day-name { font-size: .55rem; color: var(--gray); padding: 4px 0; font-weight: 600; }
.cal-day {
  font-size: .68rem; padding: 6px 2px; border-radius: 6px; cursor: pointer;
  transition: var(--transition); border: 1px solid transparent;
}
.cal-day:hover:not(.blocked):not(.empty) { background: var(--sky-pale); border-color: var(--blue-light); }
.cal-day.empty { cursor: default; }
.cal-day.today { font-weight: 700; color: var(--blue); }
.cal-day.blocked { background: #FEE; color: #C99; cursor: not-allowed; text-decoration: line-through; }
.cal-day.selected { background: var(--blue); color: #fff; font-weight: 600; }
.cal-day.in-range { background: var(--sky-pale); color: var(--blue); }

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton-card { pointer-events: none; }
.skeleton-card .prop-img { background: var(--cream); }
.skeleton-line { border-radius: 6px; background: var(--cream); }
.skeleton-pulse {
  animation: skeletonPulse 1.2s ease-in-out infinite;
}
@keyframes skeletonPulse {
  0% { opacity: .6; }
  50% { opacity: .3; }
  100% { opacity: .6; }
}

/* ============================================
   REVEAL ANIMATIONS — otimizado (mais rápido)
   ============================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESULTS COUNT
   ============================================ */
.results-count {
  text-align: center; margin-bottom: 20px; font-size: .82rem; color: var(--gray);
}
.results-count strong { color: var(--blue); font-weight: 700; }

/* ============================================
   SHARE TOAST
   ============================================ */
.share-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--dark); color: var(--white); padding: 12px 24px; border-radius: 50px;
  font-size: .82rem; font-weight: 500; z-index: 9999; opacity: 0;
  transition: all .3s ease; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .prop-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   RESPONSIVE — 768px (mobile)
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,51,80,.97); flex-direction: column; align-items: center;
    justify-content: center; gap: 20px; z-index: 200; padding: 60px 24px;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { list-style: none; text-align: center; width: 100%; }
  .nav-links > li > a { color: var(--white) !important; font-size: 1.1rem; font-weight: 600; }
  .nav-right { display: none; }
  .menu-toggle { display: block; z-index: 201; }

  /* Mobile city dropdown — inline, not absolute */
  .nav-dropdown { width: 100%; text-align: center; }
  .nav-dropdown-trigger { justify-content: center; }
  .nav-dropdown-menu {
    position: static !important; transform: none !important;
    background: rgba(255,255,255,.08); border-radius: 10px;
    box-shadow: none; min-width: unset; width: 100%; max-width: 280px;
    margin: 8px auto 0; padding: 6px 0;
    opacity: 1 !important; visibility: visible !important;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a {
    color: rgba(255,255,255,.8) !important; font-size: .85rem;
    padding: 8px 16px; justify-content: center;
  }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,.1); }
  .nav-dropdown-menu a i { color: var(--gold); }

  .search-grid { grid-template-columns: 1fr; }
  .svc-grid, .prop-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .about-txt { padding: 32px 24px; }
  .fg-row { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .detail-gallery { height: 220px; }
  .detail-specs { gap: 8px; }
  .d-spec { padding: 6px 10px; font-size: .7rem; }
  .page-hero { min-height: 35vh; }
  /* Booking modal — scroll + sticky actions */
  #bookingModal.modal-bg { padding: 10px; }
  #bookingModal .modal { max-height: calc(100vh - 20px); overflow-y: auto; padding-bottom: 0; }
  .bk-actions {
    position: sticky; bottom: 0; background: var(--white);
    padding: 14px 0 20px; border-top: 1px solid var(--border);
    z-index: 2; margin-top: 8px;
  }
}
