/* CSS Custom Properties */
:root {
  /* Premium Gold & Royal Theme */
  --primary-gold: #d2ae6d;          /* Warm luxury gold */
  --primary-magenta: #A82682;       /* Deep royal purple */
  --amenities-orange: #ff9f43;      /* Elegant amber accent */
  --amenities-orange-hover: #ff7e29;/* Hover version */
  --dark-bg: #111111;               /* Deep black-grey */
  --light-bg: #faf7f5;              /* Soft off-white background */
  --text-dark: #1c1c1c;             /* Rich black text */
  --text-muted: #666666;            /* Muted gray text */
}

/* General */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #fff;
  color: #000;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: fixed;
  width:97%;
  background: transparent;
  z-index: 1000;
  transition: background 0.3s;
  box-sizing: border-box;
}


.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  color: #0a0a0a;
  cursor: pointer;
}

/* Header Schedule Button */
.schedule-btn-header {
  background: var(--primary-magenta);
  border: none;
  font-size:17px;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  transition: all 0.3s ease;
}

.schedule-btn-header:hover {
  background: #A53692;
  transform: translateY(-1px);
}


/* Sidebar */
.sidebar {
  height: 100%;
  text-align: center;
  width: 0;
  position: fixed;
  top: 0; 
  left: 0;
  background: #A82682;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 2000;
}

.sidebar a {
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
  display: block;
  transition: background 0.3s ease;
}

.sidebar a:hover {
  background: rgba(255,255,255,0.1);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: url('images/Aastha Hero Img For website.png') center/cover no-repeat;
  background-size: cover;
  z-index: -2; 
  transition: transform 0.5s ease-out;
}

@media (max-width: 480px) {
.hero-bg {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: url('images/Aastha Hero Img For website(mobile).png') center/cover no-repeat;
  background-size: cover;
  z-index: -2; 
  transition: transform 0.5s ease-out;
}
}

.hero img.overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(54, 54, 63); 
  z-index: 0;
}
.hero-text {
  position: relative;
  z-index: 1;
  text-align: left;
    WIDTH: 100%;
    margin-left: 150px;
    margin-top: 180px;
    height: 85%;
}

.hero-text h1 {
 color: #fff;
    font-size: 22px;
    text-shadow: 0 2px 8px rgba(43, 39, 39, 0.712);
    margin: 0;
}


.hero-logo {
  max-width: 200px;
  margin-bottom: 20px;
  display: block;
  margin-left: 34px;
}

@media (max-width: 768px) {
	.hero-text {
		display:none;
	}

}

/* Building Overview */
.building-overview {
  padding: 6px 6px;
  background: var(--light-bg);
}

.overview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.overview-image {
  flex: 1 1 45%;
  min-width: 300px;
}

.overview-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: auto;
  display: block;
}

.overview-info {
  flex: 1 1 50%;
  min-width: 300px;
}

.overview-info h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.overview-info p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.overview-stats {
  display: grid;
  gap: 20px;
 grid-template-columns: repeat(2,1fr);
}

.stat-block {
  flex: 1 1 45%;
  border-top: 2px solid #ddd;
  padding-top: 15px;
  text-align: center;
  min-width: 150px;
}

.stat-block h3 {
  font-size: 1.8rem;
  color: var(--primary-gold);
  margin-bottom: 5px;
}

.stat-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
/* ===== Gallery Section ===== */
.gallery-section {
  background: linear-gradient(120deg, hwb(300 95% 3% / 0.103)); /* golden → magenta */
  color: #111; /* dark text for contrast */
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #fff; /* white for better contrast on gradient */
  margin-bottom: 10px;
  position: relative;
}

.section-title2 {
  text-align: center;
  font-size: 31px;
  color: black; /* white for better contrast on gradient */
  margin-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-gold); /* dark underline */
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #eee; /* light text for readability */
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* Horizontal scroll gallery */
.gallery-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.gallery-grid::-webkit-scrollbar {
  height: 8px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: #fff; /* white scrollbar */
  border-radius: 4px;
}

.gallery-item {
  min-width: 300px; /* width of each image */
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transform: scale(0.95);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
}

/* stagger animations */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Overlay effect */
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(255,255,255,0.1), rgba(0,0,0,0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 12px;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px) }
  100% { opacity: 1; transform: translateY(0) }
}

/* Building overview  */
.building-overview {
  display: flex;
  justify-content: center;
  padding: 20px 20px;
}

.residences-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 20px;
}

.residences-left {
  flex: 1;
  background-color: #A53692; 
  color: #fff;
  padding: 30px 20px;
  border-radius: 10px;
}

.residences-left h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.residences-left ul {
  list-style: none;
  padding: 0;
}

.residences-left li {
  cursor: pointer;
  margin-bottom: 15px;
  font-weight: bold;
  color: #fff;
  transition: all 0.3s;
}

.residences-left li.active,
.residences-left li:hover {
  color: #d2ae6d; /* golden */
  text-decoration: underline;
}

.residences-right {
  flex: 3;
  position: relative;
}

.residence-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.residence-card img {
  width: 125%;
  border-radius: 10px;
}

.residence-info {
  padding: 15px;
}

.residence-info h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.residence-info p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.residence-details {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.residence-details li {
  font-weight: bold;
}

.floorplan-img {
  margin-top: 15px;
  width: 100%;
  border-radius: 8px;
}

/* Amenities Section */
.amenities-section {
  display: flex;
  min-height: 60vh;
  position: relative;
}

.amenities-content {
  flex: 1;
  background:#A82682;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  text-align: center;
  color: white;
}

.amenities-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: white;
}

.title-underline {
  width: 80px;
  height: 3px;
  background: var(--amenities-orange);
  margin: 0 auto 40px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 593px;
  margin-bottom: 20px;
  color: white;
  font-weight: 300;
}

.navigation-controls {
  display: flex;
  gap: 10px;
}

/* Updated CSS for icon-based navigation arrows */
.nav-arrow {
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--amenities-orange);
  border-radius: 5px;
  font-size: 18px;
}

.nav-arrow:hover {
  background: transparent;
  transform: scale(1.2);
  color: var(--amenities-orange-hover);
}

.nav-arrow:active {
  transform: scale(1.1);
}

.nav-arrow i {
  font-size: 18px;
  transition: all 0.3s ease;
  color: white;
}

.nav-arrow:hover i {
  transform: scale(1.1);
}

.page-indicator {
  font-size: 1.2rem;
  color: #a0aec0;
  font-weight: 300;
}

.amenities-image {
  flex: 1.2;
  background: center/cover;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.gym-equipment {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 20px;
}

.equipment-item {
  width: 80px;
  height: 120px;
  background: linear-gradient(145deg, #A53692, #A53692);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.equipment-item::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--amenities-orange);
  border-radius: 50%;
}

.equipment-item::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 10px;
  right: 10px;
  height: 40px;
  background: #2d3748;
  border-radius: 5px;
}

.fitness-facilities {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  backdrop-filter: blur(10px);
  color: white;
}

.facility-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease forwards;
}

.facility-item:nth-child(1) { animation-delay: 0.1s; }
.facility-item:nth-child(2) { animation-delay: 0.2s; }
.facility-item:nth-child(3) { animation-delay: 0.3s; }
.facility-item:nth-child(4) { animation-delay: 0.4s; }
.facility-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.facility-emoji {
  font-size: 1.2rem;
  margin-right: 15px;
  min-width: 25px;
}

/* Location */
.location-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  max-width: 1535px;
  padding-top: 60px;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  gap: 20px;
}

.map-container {
  width: 58%;
  min-width: 300px;
}

.map-container iframe {
  width: 100%;
  height: 650px;
  border: none;
  display: block;
}

.location-card {
  position: absolute;
 right: 210px;
  top: 220px;
  text-align: center;
  background: var(--primary-magenta);
  color: var(--white);
  padding: 50px;
  width: 35%;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}


.location-card h2 {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  color: white;
  margin-top: -16px;
}

.location-card p {
  font-size: 20px;
  color: white;
  margin: 30px 0;
}

.location-card i {
  color: white;
  margin-right: 10px;
}

.direction-btn {
  display: inline-block;
  background: white;
  color: var(--primary-magenta);
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.3s;
}

.direction-btn i {
  margin-left: 8px;
}

/* Logo Section */


/* Popup */
/* Base Popup Styles */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.popup.active {
  display: flex;
}

.popup-content {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  animation: slideIn 0.3s ease-out;
  box-sizing: border-box;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #000000;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 0;
  line-height: 1;
}

.popup-close:hover {
  color: #333;
  transform: rotate(90deg);
}

/* Heading */
.popup-content h2 {
  margin: 0 0 30px 0;
  font-size: 28px;
  color: #333;
  font-weight: 600;
  text-align: center;
}

/* Form Styles */
#scheduleForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#scheduleForm input {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

#scheduleForm input:focus {
  outline: none;
  border-color: #A82682;
  box-shadow: 0 0 0 3px rgba(168, 38, 130, 0.1);
}

#scheduleForm input::placeholder {
  color: #999;
}

/* Submit Button */
#scheduleForm button[type="submit"] {
  width: 100%;
  padding: 16px;
  background-color: #A82682;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  margin-top: 10px;
}

#scheduleForm button[type="submit"]:hover {
  background-color: #8a1f6b;
  transform: translateY(-2px);
}

#scheduleForm button[type="submit"]:active {
  transform: translateY(0);
}

/* Tablet Devices (768px and below) */
@media screen and (max-width: 768px) {
  .popup-content {
    max-width: 450px;
    padding: 35px 30px;
  }

  .popup-content h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  #scheduleForm input {
    padding: 14px 16px;
    font-size: 15px;
  }

  #scheduleForm button[type="submit"] {
    padding: 15px;
    font-size: 17px;
  }
}

/* Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
  .popup {
    padding: 15px;
  }

  .popup-content {
    padding: 30px 25px;
    border-radius: 10px;
    max-width: 100%;
  }

  .popup-close {
    top: 12px;
    right: 12px;
    font-size: 28px;
    width: 36px;
    height: 36px;
  }

  .popup-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  #scheduleForm {
    gap: 16px;
  }

  #scheduleForm input {
    padding: 13px 15px;
    font-size: 15px;
  }

  #scheduleForm button[type="submit"] {
    padding: 14px;
    font-size: 16px;
    margin-top: 5px;
  }
}

/* Small Mobile Devices (360px and below) */
@media screen and (max-width: 360px) {
  .popup-content {
    padding: 25px 20px;
  }

  .popup-content h2 {
    font-size: 20px;
    margin-bottom: 18px;
  }

  #scheduleForm input {
    padding: 12px 14px;
    font-size: 14px;
  }

  #scheduleForm button[type="submit"] {
    padding: 13px;
    font-size: 15px;
  }

  .popup-close {
    font-size: 26px;
    width: 32px;
    height: 32px;
  }
}

/* Large Desktop (1920px and above) */
@media screen and (min-width: 1920px) {
  .popup-content {
    max-width: 600px;
    padding: 50px;
  }

  .popup-content h2 {
    font-size: 32px;
    margin-bottom: 35px;
  }

  #scheduleForm input {
    padding: 18px 20px;
    font-size: 18px;
  }

  #scheduleForm button[type="submit"] {
    padding: 18px;
    font-size: 20px;
  }
}

/*Building Residences Section */
.building-residences {
  display: flex;
  padding: 50px 20px;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar */
.residences-sidebar {
  width: 250px;
  background-color: var(--primary-magenta);
  color: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  height: fit-content;
}

.sidebar-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: bold;
}

.residence-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.residence-nav li {
  cursor: pointer;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  transition: all 0.3s;
  padding: 10px;
  border-radius: 5px;
}

.residence-nav li.active,
.residence-nav li:hover {
  color: #d2ae6d;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.residences-main {
  flex: 1;
}

.content-area {
  position: relative;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #A53692;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero Image */
.residence-hero {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* Residence Details Container */
.resident-details {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.residence-content {
  flex: 1;
}

.residence-title {
  font-size: 2rem;
  color: #A53692;
  margin-bottom: 15px;
  font-weight: bold;
}

.residence-description {
  font-size: 19px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 25px;
}


/* Floor Plan Area */
.floorplan-area {
  flex: 1;
  max-width: 450px;
}

.floorplan-container {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.floorplan-title {
  font-size: 1.3rem;
  color: #A53692;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.floorplan-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .building-residences {
    flex-direction: column;
    padding: 30px 15px;
    gap: 30px;
  }

  .residences-sidebar {
    width: 100%;
    padding: 20px 15px;
  }

  .sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
  }

  .residence-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .residence-nav li {
    margin-bottom: 0;
    font-size: 1rem;
    padding: 10px 20px;
  }

  .residence-hero {
    height: 250px;
    margin-bottom: 25px;
  }

  .resident-details {
    flex-direction: column;
    gap: 0px;
  }

  .residence-content {
    width: auto;
  }

  .residence-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .residence-description {
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.8;
  }

  .residence-specs {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .spec-item {
    padding: 12px;
	display: none;
  }

  .spec-label {
    font-size: 0.85rem;
  }

  .spec-value {
    font-size: 1.1rem;
  }

  .floorplan-area {
    width: 100%;
    max-width: 100%;
  }

  .floorplan-container {
    padding: 20px 15px;
  }

  .floorplan-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .floorplan-image {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .residence-nav {
    flex-direction: column;
    gap: 10px;
  }

  .residence-nav li {
    width: 89%;
    text-align: center;
  }

  .residence-specs {
    grid-template-columns: -1fr;
  }

  .residence-hero {
    height: 200px;
  }
  
  .map-container iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}
}
        /* Loading Animation */
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255,255,255,0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .loading-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid #e9ecef;
            border-top: 3px solid #2d3561;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .residences-sidebar {
                width: 300px;
                padding: 40px 30px;
            }
            
            .floorplan-area {
                width: 350px;
            }
        }

        @media (max-width: 968px) {
            .building-residences {
                flex-direction: column;
            }
            
            .residences-sidebar {
                width: auto;
                padding: 30px 20px;
            }
            
            .sidebar-title {
                font-size: 1.8rem;
                margin-bottom: 30px;
                text-align: center;
            }
            
            .residence-nav {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .residences-main {
                flex-direction: column;
            }
            
            .floorplan-area {
                width: 100%;
                border-left: none;
                border-top: 1px solid #e9ecef;
            }
            
            .residence-content {
                padding: 30px 20px;
            }
        }

        @media (max-width: 580px) {
            .residence-nav {
                grid-template-columns: -1fr;
            }
            
            .residence-specs {
                grid-template-columns:  repeat(2, 1fr);
            }
        }

/* Responsive Design */
@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .overview-container {
    flex-direction: column;
  }
  
  .overview-image,
  .overview-info {
    flex: 1 1 100%;
    min-width: auto;
  }
  
  .stat-block {
    flex: 1 1 100%;
  }

  .residences-container {
    flex-direction: column;
  }
  
  .amenities-section {
    flex-direction: column;
  }
  
  .amenities-content {
    padding:  20px;
  }
  
  .amenities-title {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .fitness-facilities {
    position: static;
    transform: none;
    margin-top: 20px;
    max-width: none;
  }
}


/* Optional: make cards align in rows on larger screens */
@media (min-width: 430px) {
  .service-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .amenities-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .section-title2 {
    font-size: 1.4rem;
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .nav-arrow i {
    font-size: 16px;
  }
  
  .nav-arrow svg {
    width: 16px;
    height: 16px;
  }
  
  .arrow-icon {
    font-size: 18px;
  }

  .overview-info h2 {
    font-size: 1.5rem;
  }
  
  .stat-block h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .location-card { position: static;
        width: 66%;
        /* margin-top: 20px; */
        margin: 10px auto;
        text-align: center;}
  .map-container { width: 100%; }
}
  
  @media (max-width: 450px) {
  .location-card { position: static;
        width: 100%;
        /* margin-top: 20px; */
        margin: 10px auto;
        text-align: center;}
  }

/* Mobiles (≤600px) */
@media (max-width: 600px) {
  .location-card h2 { font-size: 26px; width: 100%; }
  .location-card p { font-size: 16px; }
}