/* ── FONTS ───────────────────────────────── */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}


@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}


/* ══ GENERAL ════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --page-max-width: 1400px;

  --navy: #0b1628;
  --navy2: #132236;
  --gold: #c9a84c;
  --gold-lt: #e8c97a;
  --slate: #3d5a80;
  --cream: #f5f0e8;
  --white: #ffffff;
  --sub: #5a7a94;
  --bronze: #8a6338;
  --bronze-light: #a77a47;

  --radius: 4px;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--navy);
  color: var(--cream);
  overflow-x: hidden;
}
#page {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
}


/* ══ BREADCRUMBS ════════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 22px;

  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--sub);
}

.breadcrumb a {
  color: var(--sub);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold);
}



/* ══ PHONE NUMBERS ════════════════════════════════════════════ */
/*
 * Prevent iOS/Safari from applying its default blue,
 * underlined styling to automatically detected phone numbers.
 */
.phone-number {
  text-decoration: none;
}

.phone-number a,
a.phone-number {
  color: inherit;
  text-decoration: none;
}

.phone-number a:visited,
.phone-number a:hover,
.phone-number a:active,
a.phone-number:visited,
a.phone-number:hover,
a.phone-number:active {
  color: inherit;
  text-decoration: none;
}


/* ══ NAV ════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;

  transition:
    background 0.4s,
    backdrop-filter 0.4s,
    border-color 0.4s;
}

.nav-inner {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 60px;
}

nav.scrolled {
  background: #0b1628;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-logo span {
  color: var(--gold);
}
.nav-center {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-center a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-center a:hover {
  color: var(--gold);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 24px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--gold-lt);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  background: rgba(11, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-drawer.open {
  opacity: 1;
}
.nav-drawer a {
  font-size: 1.4rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-drawer a:hover {
  color: var(--gold);
}
.nav-drawer .drawer-cta {
  margin-top: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 2px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ══ LANGUAGE SWITCHER ════════════════════════════════════════════ */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--sub);
  transition: color 0.2s;
}

.language-link:hover {
  color: var(--white);
}

.language-link.active {
  color: var(--gold);
}

.language-link + .language-link::before {
  content: "·";
  margin: 0 0.15rem;
  color: var(--sub);
}

/* Drawer */

.drawer-languages {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
}

.nav-drawer .drawer-lang {
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--sub);
  text-decoration: none;
}

.nav-drawer .drawer-lang:hover {
  color: var(--white);
}

.nav-drawer .drawer-lang.active {
  color: var(--gold);
}

.nav-drawer .drawer-lang + .drawer-lang::before {
  content: "·";
  margin: 0 0.15rem;
  color: var(--sub);
}


/* ══ VIEW MORE BUTTON ═══════════════════════════════ */
.view-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
}
.btn-view-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 15px 40px;
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--gold-lt) 50%,
    var(--gold) 100%
  );
  background-size: 200% 100%;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition:
    background-position 0.5s ease,
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
  animation: shimmer 3s infinite;
  overflow: hidden;
}
.btn-view-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: sheen 3s infinite 1s;
}
.btn-view-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
  background-position: 100% 0;
}
.btn-view-more:active {
  transform: translateY(0);
}
.btn-view-more svg {
  flex-shrink: 0;
  transition: transform 0.25s;
}
.btn-view-more:hover svg {
  transform: translateX(4px);
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 0;
  }
  50% {
    background-position: 100% 0;
  }
}
@keyframes sheen {
  0% {
    transform: translateX(-100%);
  }
  30%,
  100% {
    transform: translateX(100%);
  }
}

/* ══ CARDS ══════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.property-card {
  background: var(--navy2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.6s,
    transform 0.6s cubic-bezier(0.22, 0.68, 0, 1.2),
    box-shadow 0.35s,
    border-color 0.3s;
  text-decoration: none;
}
.property-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 168, 76, 0.22);
  border-color: rgba(201, 168, 76, 0.22);
}
.property-card:nth-child(2) {
  transition-delay: 0.1s;
}
.property-card:nth-child(3) {
  transition-delay: 0.2s;
}
.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.property-card:hover .card-image img {
  transform: scale(1.06);
}
.property-card--badges {
  position: absolute;
  top: 13px;
  left: 13px;

  display: flex;
  gap: 6px;
}

.property-badge {
  padding: 4px 10px;

  border-radius: 2px;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-sale {
  background: var(--gold);
  color: var(--navy);
}
.badge-rent {
  background: var(--slate);
  color: var(--white);
}
.badge-new {
  background: #2ecc71;
  color: #0a2a1a;
}
.badge-feat {
  background: var(--bronze);
  color: var(--white);
  border: 1px solid var(--bronze-light);
}
.card-body {
  padding: 22px 22px 20px;
}
.card-price {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.card-price small {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--sub);
  font-weight: 400;
}
.card-name {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.card-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-loc {
  min-width: 0;
  font-size: 0.77rem;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 18px;
}
.card-reference {
  flex-shrink: 0;

  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;

  color: var(--sub);
}
.card-meta {
  display: flex;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.93rem;
  color: var(--sub);
}

/* ══ FOR RENT / SALE TOGGLE (animated slider) ══════ */
.filter-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-tabs {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  width: fit-content;
}
.filter-tab-slider {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.filter-tab {
  position: relative;
  z-index: 1;
  padding: 11px 32px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sub);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  transition: color 0.25s;
  min-width: 130px;
  text-align: center;
}
.filter-tab.active {
  color: var(--navy);
}
.filter-tab:not(.active):hover {
  color: var(--cream);
}


/* ══ REDIRECT PROPERTY PAGES ═════════════════════════════════════════════ */

.redirect-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.redirect-page h1 {
  margin-bottom: 12px;
}

.redirect-page p {
  margin: 0 0 16px;
}

.redirect-link {
  font-weight: 600;
  color: var(--gold);
}


/* ══ FOOTER ═════════════════════════════════════════════ */

.site-footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  font-size: 0.85rem;
  color: var(--sub);
}

.footer-copyright,
.footer-credits {
  margin: 0;
}

.footer-credits {
  text-align: right;
}


/* ══ FOOTER RESPONSIVE ══════════════════════════════════ */

@media (max-width: 580px) {
  .footer-inner {
    padding: 20px 24px;

    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-credits {
    text-align: left;
  }
}

/* ══ KEYFRAMES ═══════════════════════════════════════*/
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.reveal-text {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s,
    transform 0.7s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.reveal-text.revealed {
  opacity: 1;
  transform: translateY(0);
}
.profile-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s,
    transform 0.7s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.profile-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══ RESPONSIVE ══════════════════════════════════════*/
/* ALWAYS order the breakpoints from largest to smallest */


@media (max-width: 960px) {
  .nav-center {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  section {
    padding: 70px 24px;
  }
  #agent-profile {
    flex-direction: column;
    padding: 48px 24px;
    gap: 32px;
  }
  .agent-stats {
    justify-content: center;
  }
  .agent-contact-btn {
    align-items: center;
    flex-direction: row;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .listings-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .lp-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #list-property {
    padding: 70px 24px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-center,
  .nav-cta {
    display: none;
  }

  .nav-inner {
    padding: 16px 20px;
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
  #agent-profile {
    padding: 40px 20px;
  }
  .agent-contact-btn {
    flex-direction: column;
    width: 100%;
  }
  .btn-whatsapp,
  .btn-call {
    justify-content: center;
  }
  .card-info-row {
    gap: 10px;
  }
  .card-reference {
    font-size: 0.64rem;
  }
}

@media (max-width: 550px) {
  .language-switcher {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
