/* ============================================================
   Salavela & CO LLC — PUBLIC WEBSITE CSS
   Dark Luxury Theme | Marketing & Landing Pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   1. CSS VARIABLES — DESIGN TOKENS
   ============================================================ */
:root {
  /* Gold Palette */
  --gold-light: #D4AF7F;
  --gold-base: #C9A46A;
  --gold-warm: #B8965C;
  --gold-deep: #9F7E47;
  --gold-shine: #EDD49A;

  /* Dark Palette */
  --dark-pure: #0A0A0A;
  --dark-base: #111111;
  --dark-card: #181818;
  --dark-sidebar: #141414;
  --dark-border: #252525;
  --dark-hover: #1E1E1E;
  --dark-input: #2C2C2C;

  /* Neutrals */
  --white-soft: #F5F5F5;
  --white-muted: #B0B0B0;
  --white-dim: #707070;
  --carbon: #1C1C1C;

  /* State Colors */
  --success: #4CAF50;
  --success-dark: #388E3C;
  --warning: #FF9800;
  --error: #F44336;
  --info: #2196F3;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #D4AF7F 0%, #9F7E47 100%);
  --gradient-gold-h: linear-gradient(90deg, #9F7E47 0%, #D4AF7F 50%, #9F7E47 100%);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Globals */
  --navbar-height: 85px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* ============================================================
   2. BASE STYLES
   ============================================================ */
body {
  background-color: var(--dark-base);
  color: var(--white-soft);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--white-soft);
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  color: var(--gold-base);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--gold-light);
  text-decoration: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-base);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-deep);
}

/* ============================================================
   3. NAVBAR (GLASSMORPHISM)
   ============================================================ */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  min-height: var(--navbar-height);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  padding: 10px 0;
}

.site-navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--gold-deep);
}

.navbar-brand img {
  height: 45px;
  width: auto;
  transition: transform var(--transition-fast);
}

.navbar-brand:hover img {
  transform: scale(1.02);
}

/* Navbar Links */
.site-navbar .nav-link {
  color: var(--white-soft) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
  text-transform: uppercase;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-item.active .nav-link {
  color: var(--gold-base) !important;
}

/* Dropdown Menu */
.site-navbar .dropdown-menu {
  background-color: var(--dark-card);
  border: 1px solid var(--dark-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  padding: 10px 0;
  margin-top: 15px;
  /* Gap from nav link */
}

/* Caret/Arrow for dropdown */
.site-navbar .dropdown-toggle::after {
  vertical-align: 0.155em;
  border-top-color: var(--gold-base);
}

.site-navbar .dropdown-item {
  color: var(--white-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 20px;
  transition: all var(--transition-fast);
}

.site-navbar .dropdown-item:hover {
  background-color: var(--dark-hover);
  color: var(--gold-base);
  padding-left: 25px;
  /* Subtle indent animation */
}

/* Mobile Toggler */
.navbar-dark .navbar-toggler {
  border-color: rgba(201, 164, 106, 0.3);
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201, 164, 106, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   4. FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 60px 0 20px 0;
  position: relative;
}

/* Golden top border accent */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold-h);
  opacity: 0.5;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-description {
  color: var(--white-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-heading {
  color: var(--gold-base);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--white-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold-base);
  transform: translateX(5px);
}

.footer-contact-info p {
  color: var(--white-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-info .material-symbols-outlined {
  color: var(--gold-deep);
  font-size: 1.2rem;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-copy {
  color: var(--white-dim);
  font-size: 0.85rem;
  margin: 0;
}

.management-link {
  color: var(--white-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}

.management-link:hover {
  color: var(--gold-base);
}

/* ============================================================
   5. PAGE WRAPPER & UTILITIES
   ============================================================ */
.public-main-content {
  /* Offset for fixed navbar */
  padding-top: var(--navbar-height);
  min-height: calc(100vh - 350px);
}

.section-padding {
  padding: 80px 0;
}

.bg-dark-card {
  background-color: var(--dark-card);
}

.text-gold {
  color: var(--gold-base) !important;
}

/* Fancy Titles */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--white-soft);
  text-align: center;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--gold-base);
  font-style: italic;
}

.section-subtitle {
  text-align: center;
  color: var(--white-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

/* ============================================================
   6. CONTACT PAGE COMPONENT
   ============================================================ */
.contact-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-info-item .icon-wrapper {
  background: rgba(201, 164, 106, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-info-item .material-symbols-outlined {
  color: var(--gold-base);
}

.contact-form-control {
  background-color: var(--dark-input);
  border: 1px solid var(--dark-border);
  color: var(--white-soft);
  padding: 12px 15px;
  border-radius: 6px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form-control:focus {
  background-color: var(--dark-hover);
  border-color: var(--gold-base);
  box-shadow: 0 0 0 2px rgba(201, 164, 106, 0.2);
  color: var(--white-soft);
}

.contact-form-control::placeholder {
  color: var(--white-dim);
}

.btn-submit {
  background: var(--gradient-gold);
  color: var(--dark-pure);
  font-weight: 600;
  padding: 12px 35px;
  border: none;
  border-radius: 4px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cancel {
  min-width: 250px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold-base);
  border: 1px solid var(--gold-base);
  padding: 12px 35px;
  border-radius: 4px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 164, 106, 0.3);
  color: var(--dark-pure);
}

.is-invalid {
  border-color: var(--error) !important;
}

.text-danger {
  color: var(--error) !important;
  font-weight: 100;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* ============================================================
   7. ABOUT PAGE COMPONENT
   ============================================================ */
.hero-about {
  position: relative;
  background-image: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)), url('../images/about_hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 180px 0 100px 0;
  border-bottom: 1px solid var(--dark-border);
}

/* -----------------------------------------------------------
   12. SELECT DROPDOWN STYLING FOR DARK THEME
   ----------------------------------------------------------- */
#dltUbicacion,
#dltUbicacion option {
  color: var(--white-soft) !important;
  background-color: var(--dark-card) !important;
  background: var(--dark-card) !important;
}

/* Ensure placeholder option also displays correctly */
#dltUbicacion option[value=""] {
  color: var(--white-muted);
}

/* ============================================================
   8. BUILD PROCESS COMPONENT
   ============================================================ */
.hero-process {
  position: relative;
  background-image: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)), url('../images/process_hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 180px 0 100px 0;
  border-bottom: 1px solid var(--dark-border);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(201, 164, 106, 0.15);
  /* Semi-transparent gold */
  position: absolute;
  top: -30px;
  left: 0;
  z-index: 0;
  line-height: 1;
}

.process-text-wrap {
  position: relative;
  z-index: 1;
}

/* ============================================================
   9. VIDEO GALLERY COMPONENT
   ============================================================ */
.hero-video {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 180px 0 100px 0;
  border-bottom: 1px solid var(--dark-border);
}

.video-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--gold-base);
}

.video-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--dark-base);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.video-card:hover .video-thumbnail-wrapper img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.video-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.play-icon {
  font-size: 4rem !important;
  color: var(--white-soft);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease, transform 0.3s ease;
}

.play-overlay:hover .play-icon {
  color: var(--gold-base);
  transform: scale(1.1);
}

.video-title {
  color: var(--white-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
}

/* ============================================================
   10. PHOTO GALLERY COMPONENT
   ============================================================ */
.hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 180px 0 100px 0;
  border-bottom: 1px solid var(--dark-border);
}

/* ============================================================
   11. INDEX / HOME COMPONENT
   ============================================================ */
.hero-index {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--dark-border);
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.8));
  z-index: -1;
}

.search-bar-container {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.feature-counter {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  color: var(--gold-base);
  line-height: 1;
  margin-bottom: 10px;
}

.testimonial-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 30px;
  height: 100%;
  transition: border-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--gold-base);
}

.property-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--gold-base);
}

.property-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: var(--dark-base);
}

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

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

.property-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-price {
  font-size: 1rem;
  color: var(--gold-base);
  font-weight: 100;
  text-align: center;
}

.property-features {
  display: flex;
  gap: 15px;
  color: var(--white-dim);
  font-size: 0.9rem;
  margin: 15px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--dark-border);
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   13. HOME PLANS COMPONENT
   ============================================================ */
.hero-plans {
  position: relative;
  background-image: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)), url('../images/plans_hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 180px 0 100px 0;
  border-bottom: 1px solid var(--dark-border);
}

/* -----------------------------------------------------------
   14. SELECT DROPDOWN STYLING FOR DARK THEME
   ----------------------------------------------------------- */
#dltUbicacion,
#dltUbicacion option,
#dltStatus,
#dltStatus option {
  color: var(--white-soft) !important;
  background-color: var(--dark-card) !important;
  background: var(--dark-card) !important;
}

#lblPrecio {
  color: var(--gold-base);
  font-size: 1rem;
}

/* Ensure placeholder option also displays correctly */
#dltUbicacion option[value=""],
#dltStatus option[value="255"] {
  color: var(--white-muted) !important;
}