/* Porto Rafael Real Estate - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,300;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --dark: #212527;
  --mid: #666666;
  --light: #f7f7f7;
  --white: #ffffff;
  --accent: #0078BF;
  --border: #d1d1d1;
  --blue: #0078BF;
  --blue-dark: #005f96;
  --navy: #01395c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,120,191,1);
  box-shadow: rgba(0,0,0,0.25) 0 3px 11px 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 44px;
  filter: brightness(1);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  font-weight: 500;
}

/* hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* --- HERO --- */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33,37,39,0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 13px 36px;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #fff;
  color: #fff;
  transition: all 0.25s;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: #fff;
  color: var(--dark);
}

.btn-dark {
  border-color: var(--dark);
  color: var(--dark);
}

.btn-dark:hover {
  background: var(--dark);
  color: #fff;
}

.btn-accent {
  border-color: #0078BF;
  color: #0078BF;
}

.btn-accent:hover {
  background: #0078BF;
  color: #fff;
}

/* --- SECTIONS --- */
section {
  padding: 80px 40px;
}

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0078BF;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.2;
}

.section-subtitle {
  font-family: 'Merriweather', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 40px;
  max-width: 600px;
}

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

/* --- PROPERTY CARDS --- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.prop-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.prop-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.prop-card:hover .prop-card-img {
  transform: scale(1.03);
}

.prop-card-img-wrap {
  overflow: hidden;
  height: 240px;
}

.prop-card-body {
  padding: 24px;
}

.prop-card-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0078BF;
  margin-bottom: 8px;
}

.prop-card-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.prop-card-subtitle {
  font-family: 'Merriweather', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 12px;
}

.prop-card-location {
  font-size: 0.82rem;
  color: #888;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- FILTER BAR --- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.filter-bar input,
.filter-bar select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: var(--dark);
  min-width: 180px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--dark);
}

/* --- DARK SECTION --- */
.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.section-dark p { color: rgba(255,255,255,0.8); }

/* --- SPLIT SECTION --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.split-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

.split-content {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- FULL BG SECTION --- */
.section-bg {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33,37,39,0.65);
}

.section-bg > * { position: relative; z-index: 1; }

/* --- PROPERTY DETAIL --- */
.prop-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 40px 0;
}

.prop-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.prop-gallery img:hover { opacity: 0.9; }

.prop-detail-header {
  padding: 120px 40px 60px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.prop-detail-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33,37,39,0.85) 30%, transparent);
}

.prop-detail-header-content { position: relative; z-index: 1; }

.prop-detail-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
}


/* ===== FOOTER ===== */
footer {
  background: rgba(0,120,191,1);
  color: rgba(255,255,255,0.85);
  padding: 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo-wrap img { height: 44px; }
.footer-tagline {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  display: flex;
}
.footer-social a:hover { color: #fff; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col p {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: #fff; }
@media(max-width:900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media(max-width:600px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-inner { padding: 32px 16px 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
/* --- ABOUT PAGE --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* --- CONTACT --- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .full { grid-column: 1/-1; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  outline: none;
  background: #fff;
  color: var(--dark);
  transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--dark);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

/* --- PAGE HEADER --- */
.page-header {
  padding: 160px 40px 80px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(33,37,39,0.55);
}

.page-header > * { position: relative; z-index: 1; }

/* --- NEWS GRID --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.news-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
  transition: opacity 0.2s;
}

.news-card:hover img { opacity: 0.85; }

.news-card h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--dark); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  section { padding: 60px 20px; }
  .split { grid-template-columns: 1fr; }
  .split-content { padding: 40px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .contact-form { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .page-header { padding: 120px 20px 60px; }
  .prop-detail-body { padding: 40px 20px; }
  .prop-detail-header { padding: 100px 20px 40px; }
}

/* --- DIRECTORY WIDGET STYLE (TheCamel replica) --- */
.dir-search-bar {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 2px solid #0078BF;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.dir-search-bar select,
.dir-search-bar input {
  padding: 14px 18px;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: #333;
}

.dir-search-bar select {
  border-right: 1px solid #e0e0e0;
  min-width: 160px;
  cursor: pointer;
}

.dir-search-bar input {
  flex: 1;
  min-width: 200px;
}

.dir-search-bar button {
  background: #0078BF;
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.dir-search-bar button:hover { background: #005f96; }

/* Directory card */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.dir-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}

.dir-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

.dir-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.dir-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.dir-card:hover .dir-card-img { transform: scale(1.04); }

.dir-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #0078BF;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.dir-card-badge.sold { background: #c0392b; }

.dir-card-body {
  padding: 20px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dir-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #0078BF;
  margin-bottom: 4px;
  line-height: 1.3;
}

.dir-card:hover .dir-card-title { text-decoration: underline; }

.dir-card-location {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 10px;
  font-weight: 400;
}

.dir-card-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.dir-card-readmore {
  display: inline-block;
  border: 1px solid #333;
  padding: 7px 18px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #333;
  align-self: flex-start;
  transition: all 0.2s;
}

.dir-card:hover .dir-card-readmore {
  background: #333;
  color: #fff;
}

@media (max-width: 768px) {
  .dir-search-bar { flex-wrap: wrap; }
  .dir-search-bar select { border-right: none; border-bottom: 1px solid #e0e0e0; }
  .dir-search-bar button { width: 100%; }
}

/* --- HFS SEARCH BAR (originale TheCamel replica) --- */
.hfsWidget {
  margin-bottom: 40px;
}

.homeFilterSearch {
  background: #0078BF;
  padding: 20px 24px;
  margin-bottom: 0;
}

.hfsFilterLocation {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.hfsFilterLocation select,
.hfsFilterLocation input[type="text"] {
  padding: 12px 16px;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: #333;
  height: 46px;
}

.hfsFilterLocation select {
  min-width: 160px;
  border-right: 1px solid #e0e0e0;
  cursor: pointer;
}

.hfsFilterLocation input[type="text"] {
  flex: 1;
}

.hfsBtn.hfsSearch {
  background: #005f96;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  height: 46px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.2s;
}

.hfsBtn.hfsSearch:hover { background: #004a78; }

.hfsSAF {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  text-decoration: underline;
}

.hfsSAF:hover { color: #fff; }

.hfsFilters {
  display: none;
  margin-top: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.hfsFilters.open { display: flex; }

.hfsInputContainer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.hfsLabel {
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hfsInputContainer select {
  padding: 8px 12px;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.hfs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.hfs-no-results {
  text-align: center;
  padding: 60px;
  color: #888;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.hfs-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.hfs-meta-item {
  font-size: 12px;
  color: #888;
}

@media (max-width: 768px) {
  .hfsFilterLocation { flex-wrap: wrap; }
  .hfsFilterLocation select { border-right: none; border-bottom: 1px solid #e0e0e0; width: 100%; }
  .hfsFilterLocation input[type="text"] { width: 100%; }
  .hfsBtn.hfsSearch { width: 100%; justify-content: center; }
}

/* --- NAV SOCIAL ICONS --- */
.nav-social-group {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 20px;
}
.nav-social {
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-social:hover { color: #fff; }
@media (max-width: 900px) { .nav-social-group { display: none; } }
