:root {
  /* Colors - Modern, Light Mode */
  --bg-main: #FAFAFA;
  --bg-surface: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;

  /* Brand Accents - Ocean & Sand inspired */
  --primary: #0F375A;
  /* Deep blue representing the sea */
  --primary-hover: #1E4D7A;
  --secondary: #D4AF37;
  /* Gold/Sand representing the sun/beach */
  --secondary-hover: #C19B2E;

  /* UI Elements */
  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 8px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-heavy-bg: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0px auto 24px auto;
  padding: 0 24px;
}

.section {
  padding: 32px 0;
}

.section-header {
  margin-bottom: 32px;
}

.center {
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background-color: var(--bg-main);
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-heavy {
  background: var(--glass-heavy-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(15, 55, 90, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: var(--border-radius-md);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  height: 48px;
  width: auto;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

/* Custom language selector */
#lang-selector-wrap {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1.5px solid #E5E7EB;
  background: white;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--primary);
}

#lang-selector-wrap.open .lang-btn {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(176, 102, 61, 0.12);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 6px;
  margin: 0;
  min-width: 110px;
  z-index: 1000;
}

#lang-selector-wrap.open .lang-dropdown {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}

.lang-option:hover {
  background: #F3F4F6;
}

.lang-option.active {
  background: #FDF3EE;
  color: var(--primary);
  font-weight: 700;
}

/* Hero Section */
.modern-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 140px 0 80px 0;
  background: var(--bg-main);
  overflow: hidden;
}

.hero-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.modern-hero .hero-content {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 40px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(15, 55, 90, 0.08);
  color: var(--primary);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modern-hero .hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.modern-hero .hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 400;
}

.modern-hero .hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

.hero-image-wrapper {
  position: absolute;
  top: 88px;
  right: 0;
  width: 50vw;
  height: calc(100% - 88px);
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
  mask-image: linear-gradient(to right, transparent, black 15%);
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.hero-img-backdrop {
  position: absolute;
  top: 5%;
  right: -5%;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: 1;
  opacity: 0.15;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 32px;
}

.properties-grid {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.agents-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 800px;
  margin: 0 auto;
}

/* Property Cards */
.property-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.property-img {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-img img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.property-info {
  padding: 24px;
  background: white;
}

.property-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  line-height: 1.2;
}

.property-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(15, 55, 90, 0.8);
}

.price-tba {
  color: var(--text-muted);
  font-weight: 500;
}

/* Search Section */
.search-section {
  position: relative;
  padding: 80px 0;
}

.search-box {
  padding: 48px;
  border-radius: var(--border-radius-lg);
}

.search-header {
  text-align: center;
  margin-bottom: 32px;
}

.search-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.search-form {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.search-input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-group svg {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
}

.search-input-group input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: var(--border-radius-md);
  border: 1px solid #E5E7EB;
  font-size: 1.125rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.search-input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 55, 90, 0.1);
}

.btn-search {
  padding: 16px 40px;
  font-size: 1.125rem;
  border-radius: var(--border-radius-md);
  white-space: nowrap;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: 30px;
  background: white;
  border: 1px solid #E5E7EB;
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  background: #F3F4F6;
}

.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Agents Section */
.single-agent-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.agent-card.luxury-agent-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition);
  padding: 0;
}

.agent-card.luxury-agent-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.luxury-agent-card .agent-img-wrap {
  flex: 0 0 45%;
  height: auto;
  min-height: 400px;
  overflow: hidden;
  margin: 0;
}

.luxury-agent-card .agent-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.luxury-agent-card:hover .agent-img-wrap img {
  transform: scale(1.05);
}

.luxury-agent-card .agent-info {
  flex: 1;
  padding: 48px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.luxury-agent-card h3 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.luxury-agent-card .agent-role {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.agent-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  font-size: 1.125rem;
  color: var(--text-main);
  transition: var(--transition);
  font-weight: 500;
  gap: 12px;
  position: relative;
}

.contact-link svg {
  color: var(--primary);
  flex-shrink: 0;
}

.contact-link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Contact CTA */
.contact-cta {
  background-color: var(--bg-surface);
  border-top: 1px solid #E5E7EB;
}

/* Copy Email Tooltip Styles */
.copy-email {
  color: #2563EB;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: var(--transition);
}

.copy-email:hover {
  text-decoration-color: #2563EB;
}

.copy-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #111827;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
  z-index: 10;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
}

.copy-tooltip.fade-out {
  opacity: 0;
}

/* Footer */
.footer {
  background-color: white;
  padding: 40px 0;
  border-top: 1px solid #E5E7EB;
}

.footer-logo {
  height: 40px;
  margin: 0 auto 16px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .modern-hero .hero-content h1 {
    font-size: 3.5rem;
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 40px;
  }

  .modern-hero .hero-content {
    flex: auto;
    max-width: 100%;
    padding-right: 0;
    text-align: center;
  }

  .modern-hero .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    margin-top: 0;
    margin-bottom: 32px;
    max-width: 100%;
    -webkit-mask-image: linear-gradient(to top, transparent, black 15%);
    mask-image: linear-gradient(to top, transparent, black 15%);
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
  }

  .section {
    padding: 32px 0;
  }

  #properties {
    padding-top: 32px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .section-header p {
    font-size: 1rem;
  }

  .modern-hero {
    padding: 75px 0 24px 0;
  }

  .modern-hero .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .modern-hero .hero-content p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-container {
    gap: 0px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .agent-card.luxury-agent-card {
    flex-direction: column;
  }

  .agent-card.luxury-agent-card .agent-img-wrap {
    min-height: 0px;
    width: 100%;
  }

  .agent-card.luxury-agent-card .agent-info {
    padding: 24px 16px;
    text-align: center;
  }

  .contact-link {
    font-size: 1rem;
  }

  .agent-contact-info {
    align-items: center;
  }

  .contact-link:hover {
    transform: none;
  }

  .property-img {
    height: auto;
    aspect-ratio: 3/2;
  }

  .property-info {
    padding: 16px;
  }

  .property-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .property-price {
    font-size: 1.1rem;
  }

  .modern-hero .hero-buttons {
    display: flex;
    width: 100%;
    gap: 12px;
  }

  .modern-hero .hero-buttons .btn {
    flex: 1;
    padding: 0 10px;
    height: 54px;
    max-height: 54px;
    font-size: 0.9rem;
  }

  .hero-image-wrapper {
    height: 45vh;
    margin-bottom: 8px;
    top: 0;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    max-width: none;
    -webkit-mask-image: linear-gradient(to top, transparent, black 15%);
    mask-image: linear-gradient(to top, transparent, black 15%);
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-main);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 2001;
}

.lightbox-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.lightbox-prev {
  left: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.luxury-agent-card h3 {
  font-size: 1.75rem;
  line-height: 1.2;
}