/* 
  Premium Design System for Bright Properties Portal
  Focus: Clarity, Elegance, and Luxury
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
  --primary: #c4a45e; /* Gold/Champagne */
  --primary-dark: #a68b4c;
  --secondary: #1a1a1a; /* Rich Black */
  --accent: #f8f9fa;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-main: #ffffff;
  --bg-soft: #f4f4f4;
  --glass: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .premium-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade { animation: fadeIn 1.2s ease forwards; }

/* Global Preloader */
#site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 15px rgba(196, 164, 94, 0.3)); }
  100% { transform: scale(1); opacity: 0.8; }
}

.loader-line {
  width: 150px;
  height: 2px;
  background: #eee;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: lineMove 2s infinite linear;
}

@keyframes lineMove {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Nav Logo Styling */
.nav-logo-img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 1.5rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 164, 94, 0.1);
  transition: var(--transition);
}

nav.scrolled {
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.logo:hover {
  letter-spacing: 0.05rem;
}

.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  position: relative;
  overflow: hidden;
  color: white;
  margin-top: 0;
  background: var(--secondary); /* Fallback */
}

.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
  .video-background iframe {
    width: 100vw;
    height: 56.25vw;
  }
}

@media (max-aspect-ratio: 16/9) {
  .video-background iframe {
    width: 177.78vh;
    height: 100vh;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.7));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 5.5rem;
  margin-bottom: 1.5rem;
  max-width: 1000px;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.4rem;
  max-width: 700px;
  opacity: 0.95;
  margin-bottom: 3rem;
  font-weight: 300;
  text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
  padding: 1.2rem 3rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
  transition: var(--transition);
  border: 1px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: transparent;
  backdrop-filter: blur(10px);
  color: var(--primary);
}

/* Property Grid */
.listing-section {
  padding: 6rem 5%;
  background: var(--bg-soft);
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.property-img {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.property-content {
  padding: 1.5rem;
}

.property-price {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.property-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.property-meta div i {
  color: var(--primary);
  font-size: 0.9rem;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}

.property-card:hover {
  transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.property-card:hover .property-img {
  transform: scale(1.05);
}

.property-img {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: var(--transition);
}

.property-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.btn-video {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-video:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn-video i {
  color: var(--primary);
  transition: var(--transition);
}

.btn-video:hover i {
  color: white;
}

.btn-enquire {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  border: 1px solid #ddd;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-enquire:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(196, 164, 94, 0.05);
}

.property-video-container {
  margin-top: 1.5rem;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: none; /* Controlled by JS */
}

.property-video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* Single Property Page Styles */
.page-hero {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.page-hero .hero-content {
  max-width: 800px;
  padding: 2rem;
  z-index: 2;
}

.page-hero h1 {
  font-size: 4rem;
  margin: 1rem 0;
}

.page-hero .badge {
  background: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.page-content {
  padding: 5rem 0;
  background: #fdfdfd;
}

.page-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.gallery-section {
  margin-bottom: 4rem;
}

.gallery-hero {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.strip-thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  border: 2px solid transparent;
}

.strip-thumb:hover, .strip-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-5px);
}

.description-section h3, .video-section h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.description-section p {
  line-height: 2;
  color: #555;
  font-size: 1.1rem;
}

.video-section {
  margin-top: 4rem;
}

.video-player {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-player iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* Sidebar */
.page-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  border: 1px solid #eee;
}

.pricing-card {
  background: var(--secondary);
  color: white;
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.spec-item i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 25px;
}

.amenity-list {
  list-style: none;
  padding: 0;
}

.amenity-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #555;
}

.amenity-list li i {
  color: var(--primary);
}

.related-section {
  padding: 5rem 0;
  background: white;
  border-top: 1px solid #eee;
}

@media (max-width: 992px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

/* Info Section */
.info-section {
  padding: 6rem 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.info-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.info-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.info-item p {
  font-size: 0.9rem;
}

.info-image {
  width: 100%;
  height: 500px;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1000&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  padding: 5rem 5% 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.footer-brand h3 span { color: var(--primary); }

.footer-brand p {
  color: #aaa;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #666;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .info-section { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
}
/* Floating Communication Widgets */
.contact-widgets {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
}

.widget-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
  border: none;
  cursor: pointer;
}

.widget-btn:hover {
  transform: scale(1.1) translateY(-5px);
}

.widget-btn.whatsapp { background: #25D366; }
.widget-btn.video-call { background: var(--primary); }

.widget-label {
  position: absolute;
  right: 80px;
  background: white;
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition);
}

.widget-btn:hover .widget-label {
  opacity: 1;
  transform: translateX(0);
}

/* Visit Booking Form */
.visit-booking-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.visit-booking-card h4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(196, 164, 94, 0.02);
}

.booking-success {
  text-align: center;
  padding: 2rem;
  display: none;
}

.booking-success i {
  font-size: 3rem;
  color: #25D366;
  margin-bottom: 1rem;
}

.calendar-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-calendar {
  flex: 1;
  padding: 0.8rem;
  background: #f0f0f0;
  color: var(--secondary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-calendar:hover {
  background: var(--secondary);
  color: white;
}

/* Video Call Modal */
.video-call-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.pulse-circle {
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196, 164, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(196, 164, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196, 164, 94, 0); }
}
