/* Map Wrapper khusus Footer */
.footer-map-wrapper {
  border: 1px solid var(--border-color);
  max-height: 320px;
  min-height: 180px;
  width: 100%;
  margin: 0 0 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: #181818;
  position: relative;
}

.footer-map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

:root {
  --gold: #c5a473;
  --gold-light: #d4ba8e;
  --gold-dark: #9a7e53;
  --black: rgba(6, 16, 31, 0.85);
  --black-light: #222222;
  --light-gray: #cccccc;
  --dark-gray: #888888;
}

.luxury-footer {
  background-color: var(--black);
  padding: 5rem 0 2rem 0;
  color: var(--light-gray);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  position: relative;
  border-top: 1px solid var(--gold-dark);
}

/* Main footer content columns */
.footer-column {
  margin-bottom: 1rem;
  padding-left: 4px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically by default */
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  align-self: center; /* Center logo horizontally */
}

.footer-logo:hover {
  opacity: 1;
}

/* Headings like "Contact Us", "Quick Links" */
.footer-heading {
  font-family: 'Times New Roman', Times, serif;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

/* Decorative underline for headings */
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--gold-dark);
}

.footer-column p {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

/* Icons for address, phone, email */
.footer-column p i.fas {
  color: var(--gold);
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.social-links + p {
  margin-top: 20px; 
}

/* Social Media Links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: -0.25rem;
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.social-icon:hover,
.social-icon:focus {
  background-color: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(197, 164, 115, 0.2);
}

/* Quick Links List */
.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-link {
  color: var(--light-gray);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

.footer-link i.fas {
  color: var(--gold-dark);
  font-size: 0.75em;
  margin-right: 8px;
  transition: all 0.3s ease-in-out;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--gold-light);
  transform: translateX(5px);
}

.footer-link:hover i.fas {
  color: var(--gold-light);
}

/* The divider line above the copyright text */
.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
  border: 0;
  opacity: 0.5;
  margin: 2rem 0;
}

/* Copyright Section */
.copyright {
  text-align: center;
  color: var(--dark-gray);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin: 0;
}

.copyright i.far {
  font-size: 0.9em;
  margin-right: 4px;
}

/* ====== RESPONSIVE ALIGNMENT FIXES ====== */

/* Desktop & Large Tablets (992px and up) */
@media (min-width: 992px) {
  .luxury-footer .container > .row:first-child {
    display: flex;
    align-items: center; /* Center all items vertically */
    min-height: 320px; /* Ensure consistent height */
  }
  
  .luxury-footer .footer-column {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    height: 100%;
  }
  
  /* Center logo column content */
  .luxury-footer .footer-column:first-child {
    align-items: center;
    text-align: center;
  }
  
  /* Center contact info column */
  .luxury-footer .footer-column:nth-child(2) {
    align-items: flex-start;
    text-align: left;
  }
  
  /* Center map column */
  .luxury-footer .footer-column:last-child {
    align-items: center;
    justify-content: center;
  }
  
  .footer-map-wrapper {
    margin-bottom: 0;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer-map-wrapper iframe {
    height: 100%;
    min-height: 280px;
  }
  
  /* Reset heading alignment for desktop */
  .luxury-footer .footer-heading {
    text-align: left;
  }
  
  /* Center logo column heading */
  .luxury-footer .footer-column:first-child .footer-heading {
    text-align: center;
  }
  
  /* Center logo column heading underline */
  .luxury-footer .footer-column:first-child .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Medium Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .luxury-footer .container > .row:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  
  .footer-column {
    margin-bottom: 2rem;
  }
  
  .footer-heading {
    font-size: 1.3rem;
  }
  
  .footer-map-wrapper {
    height: 260px;
    min-height: 220px;
  }
  
  .footer-map-wrapper iframe {
    height: 100%;
    min-height: 220px;
  }
}

/* Small Tablets & Mobile (767px and below) */
@media (max-width: 767.98px) {
  .luxury-footer {
    padding-top: 3.5rem;
  }
  
  .luxury-footer .container > .row:first-child {
    display: block; /* Reset to block for mobile */
  }
  
  .footer-column {
    text-align: center;
    margin-bottom: 2.5rem;
    display: block; /* Reset flex for mobile */
  }
  
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Center the decorative underline on mobile */
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-map-wrapper {
    height: 220px;
    min-height: 180px;
    max-height: 280px;
    margin-bottom: 1rem;
  }
  
  .footer-map-wrapper iframe {
    min-height: 180px;
    height: 100%;
  }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
  .luxury-footer {
    padding-top: 3rem;
  }
  
  .footer-heading {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .footer-column {
    margin-bottom: 2rem;
    padding-left: 2px;
    padding-right: 2px;
  }
  
  .footer-map-wrapper {
    height: 200px;
    min-height: 160px;
    max-height: 220px;
  }
  
  .footer-map-wrapper iframe {
    min-height: 160px;
  }
  
  .social-links {
    gap: 0.5rem;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Landscape Mobile (up to 667px height) */
@media (max-height: 667px) and (orientation: landscape) {
  .luxury-footer {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
  
  .footer-column {
    margin-bottom: 1rem;
  }
  
  .footer-map-wrapper {
    height: 180px;
    min-height: 140px;
    max-height: 200px;
  }
  
  .footer-map-wrapper iframe {
    min-height: 140px;
  }
}

/* iPad specific fixes */
@media (min-width: 768px) and (max-width: 1024px) {
  .luxury-footer .container > .row:first-child {
    align-items: center;
  }
  
  .footer-column {
    margin-bottom: 1.5rem;
  }
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .luxury-footer .container > .row:first-child {
    min-height: 340px;
    align-items: center; /* Ensure center alignment on large screens */
  }
  
  .luxury-footer .footer-column {
    justify-content: center; /* Perfect center alignment */
  }
  
  .footer-map-wrapper {
    min-height: 300px;
    max-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer-map-wrapper iframe {
    min-height: 300px;
  }
}
@media (width: 1024px) and (height: 1366px) and (orientation: portrait) {
  .luxury-footer{
    padding-top: 130px;
  }
}