:root {
  --black: #0f0f0f;
  --charcoal: #181818;
  --gold: #caa74a;
  --gold-soft: #e5c775;
  --white: #ffffff;
  --muted: #c7c7c7;
  --card-bg: #151515;
  --radius: 14px;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(202, 167, 74, 0.2);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.navbar {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 37px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  left: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  min-height: 92vh;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-image-bg {
  min-height: 92vh;
  background-image: url("img/hero-image.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.parallax-banner {
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.page-banner {
  min-height: 42vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35));
}

.hero-content,
.page-banner .container {
  position: relative;
  z-index: 1;
}

.hero-search {
  max-width: 640px;
  grid-template-columns: 1fr auto;
}

.hero-action-buttons {
  display: flex;
  gap: 0.55rem;
}

.hero-action-buttons button {
  white-space: nowrap;
}

.btn-whatsapp {
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #25d366;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
}

.btn-youtube {
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #ff0000;
  background: #ff0000;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.btn-youtube:hover {
  background: #e00000;
  border-color: #e00000;
  transform: translateY(-2px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.hero h1,
.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  max-width: 760px;
}

.hero p {
  max-width: 620px;
  margin: 1rem 0 1.8rem;
  color: #dfdfdf;
}

.search-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111;
  color: #f4f4f4;
  font-family: "Poppins", sans-serif;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--gold);
}

button,
.btn-primary,
.btn-outline {
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary,
.search-bar button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #111;
  box-shadow: 0 6px 16px rgba(202, 167, 74, 0.28);
}

.btn-primary:hover,
.search-bar button:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(202, 167, 74, 0.6);
  color: var(--gold-soft);
  display: inline-block;
  margin-top: 1rem;
  background: transparent;
}

.btn-outline:hover,
.active-view {
  background: rgba(202, 167, 74, 0.14);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(202, 167, 74, 0.2);
}

.section {
  padding: 4.5rem 0;
}

.section-header h2,
.section-header h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.section-header p:last-child {
  color: var(--muted);
  margin-top: 0.4rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.property-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.featured-card {
  border: 1px solid rgba(202, 167, 74, 0.2);
}

.featured-card:hover {
  border-color: var(--gold);
}

.featured-card img {
  transition: transform 0.35s ease;
}

.featured-card:hover img {
  transform: scale(1.04);
}

.property-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.card-body p {
  color: var(--muted);
}

.card-body strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold-soft);
}

.featured-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(202, 167, 74, 0.2);
  border: 1px solid rgba(202, 167, 74, 0.6);
  color: var(--gold-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.video-preview {
  margin-top: 0.8rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(202, 167, 74, 0.18);
}

.video-preview iframe {
  width: 100%;
  min-height: 180px;
  border: 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: #121212;
}

.view-switch {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin: 1rem 0;
}

#map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

#map-container iframe {
  width: 100%;
  min-height: 430px;
  border: 0;
}

.map-hidden {
  display: none;
}

.detail-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.2rem;
}

.carousel {
  position: relative;
  margin: 1.5rem 0;
  min-height: 500px;
}

.carousel-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  display: none;
}

.carousel-image.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.48);
  color: var(--white);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.virtual-tour iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  margin: 0.8rem 0 1.3rem;
}

.property-video-cta {
  margin-bottom: 1.2rem;
}

.property-photo-grid {
  margin-top: 1.2rem;
}

.property-photo-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.panel h3 {
  margin-bottom: 0.75rem;
}

.panel label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
}

#mortgage-result {
  margin-top: 0.8rem;
  color: var(--gold-soft);
  font-weight: 500;
}

.inquiry-form {
  display: grid;
  gap: 0.6rem;
}

.inquiry-property-tag {
  color: var(--gold-soft);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.inquiry-status {
  margin-top: 0.35rem;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.panel .btn-whatsapp {
  margin-top: 0.75rem;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.gallery-section {
  background: linear-gradient(180deg, #101010 0%, #0f0f0f 100%);
}

.video-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.video-carousel-track {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  scroll-behavior: smooth;
  transition: transform 0.5s ease;
}

.tour-card {
  background: #151515;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, border-color 0.35s ease;
  display: block;
  position: relative;
  min-width: 100%;
}

.tour-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tour-card p {
  padding: 0.8rem 1rem 1rem;
  color: #e0e0e0;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(202, 167, 74, 0.65);
  background: rgba(10, 10, 10, 0.6);
  color: var(--gold-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}

.tour-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.tour-card:hover img {
  transform: scale(1.06);
}

.tour-card:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(202, 167, 74, 0.2);
}

.gallery-link-wrap {
  margin-top: 1.4rem;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.about-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(202, 167, 74, 0.2);
}

.about-copy p {
  color: #d2d2d2;
  margin-bottom: 1rem;
}

.testimonial-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: #141414;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.quote-mark {
  color: var(--gold);
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  line-height: 1;
}

.testimonial-card p {
  color: #d4d4d4;
  margin: 0.3rem 0 0.8rem;
}

.lead-section {
  background: #111;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.lead-copy p {
  color: #d0d0d0;
}

.lead-form-wrap {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
}

.calendar-link {
  margin-top: 0.7rem;
  width: 100%;
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-note {
  color: #d0d0d0;
  margin-bottom: 0.8rem;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(202, 167, 74, 0.35);
  background: #121212;
  color: #efefef;
  padding: 0.75rem 0.9rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-social-btn i {
  font-size: 1.15rem;
}

.contact-social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(202, 167, 74, 0.1);
}

.contact-social-btn.whatsapp i {
  color: #25d366;
}

.contact-social-btn.instagram i {
  color: #e1306c;
}

.contact-social-btn.linkedin i {
  color: #0a66c2;
}

.contact-social-btn.twitter i {
  color: #ffffff;
}

.contact-social-btn.youtube i {
  color: #ff0000;
}

.contact-social-btn.facebook i {
  color: #1877f2;
}

.blog-form {
  display: grid;
  gap: 0.75rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
}

.blog-form input[type="file"] {
  padding: 0.55rem;
}

.blog-posts-head {
  margin-top: 2rem;
}

.blog-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.info-page-content {
  display: grid;
  gap: 1.2rem;
}

.three-column-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.legal-layout h2 {
  margin: 1rem 0 0.45rem;
}

.legal-layout h2:first-child {
  margin-top: 0;
}

.legal-layout p {
  color: #d8d8d8;
}

.career-form {
  display: grid;
  gap: 0.7rem;
}

.career-form input[type="file"] {
  padding: 0.55rem;
}

.blog-card {
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card .card-body small {
  display: block;
  color: var(--gold-soft);
  margin-bottom: 0.45rem;
}

.empty-blog-state {
  border: 1px dashed rgba(202, 167, 74, 0.35);
  border-radius: var(--radius);
  padding: 1.1rem;
  color: #cfcfcf;
  text-align: center;
}

.site-footer {
  border-top: 1px solid rgba(202, 167, 74, 0.2);
  padding: 2.2rem 0;
  background: #0c0c0c;
}

.mobile-bottom-nav {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.footer-grid h4 {
  margin-bottom: 0.5rem;
}

.footer-grid a,
.footer-grid p {
  color: #cbcbcb;
  display: block;
  margin: 0.3rem 0;
}

.admin-login-link {
  color: var(--gold-soft) !important;
  font-weight: 600;
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(202, 167, 74, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.socials a i {
  font-size: 0.95rem;
  line-height: 1;
}

.socials a:hover {
  background: rgba(202, 167, 74, 0.2);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(460px, 100%);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.admin-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.admin-row {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
}

.admin-row p {
  color: #d0d0d0;
  margin: 0.2rem 0;
}

.admin-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #d0d0d0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 950px) {
  .search-bar {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .lead-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .three-column-cards {
    grid-template-columns: 1fr;
  }

  .video-carousel {
    grid-template-columns: 1fr;
  }

  .video-carousel .carousel-btn {
    position: static;
    transform: none;
    justify-self: center;
  }

  .contact-social-grid {
    grid-template-columns: 1fr;
  }

  .hero-action-buttons {
    width: 100%;
  }

  .hero-action-buttons button,
  .hero-action-buttons .btn-whatsapp,
  .hero-action-buttons .btn-youtube {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 74px;
  }

  .nav-toggle,
  .nav-links {
    display: none !important;
  }

  .navbar {
    min-height: 72px;
    justify-content: center;
  }

  .hero {
    min-height: 92vh;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .hero-search {
    max-width: 100%;
  }

  .hero-action-buttons {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-action-buttons button,
  .hero-action-buttons .btn-whatsapp {
    flex: 1 1 calc(50% - 0.4rem);
    text-align: center;
  }

  .hero-action-buttons .btn-youtube {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-banner {
    min-height: 36vh;
  }

  .carousel-image {
    height: 300px;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(202, 167, 74, 0.28);
  }

  .mobile-bottom-nav a {
    padding: 0.68rem 0.2rem 0.7rem;
    text-align: center;
    color: #cfcfcf;
    font-size: 0.78rem;
    font-weight: 500;
    position: relative;
  }

  .mobile-bottom-nav a.active {
    color: var(--white);
  }

  .mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: var(--gold);
  }
}
