@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 80px auto 40px; /* Top margin accounts for fixed header */
  padding: 20px;
  position: relative;
  z-index: 1;
  background-color: var(--bg-dark);
  overflow-y: visible;
}
.header {
  text-align: center;
  padding: 40px 0 20px;
}

.header h1 {
  font-size: 2.8rem;
  color: white;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.2rem;
  color: #4a5568;
}

.welcome-section {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 20px;
  text-align: center;
  margin-top: 30px;
  border-radius: 10px;
}

.welcome-content {
  max-width: 600px;
  margin: 0 auto;
}

.welcome-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.welcome-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background-color: #e53e3e;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Hangouts Page Styles */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.category-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.category-content {
  padding: 20px;
}

.category-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #2d3748;
}

.category-content p {
  color: #718096;
  margin-bottom: 20px;
}

.category-button {
  display: inline-block;
  background-color: #4299e1;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-button:hover {
  background-color: #3182ce;
}

/* Listing Page Styles */
.listing-header {
  position: static;
  background-color: black;
  color: white;
  text-align:center;
  padding: 30px 0;
  margin-bottom: 40px;
}

.listing-header h2 {
  font-size: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: white;
  text-decoration: none;
  margin-bottom: 15px;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link::before {
  margin-right: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-button {
  background-color: #e2e8f0;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.filter-button.active {
  background-color: #4299e1;
  color: white;
}

/* Corrected Styles for Shopping Mall Cards */
/* Ensure the main grid container allows for equal height rows */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  grid-auto-rows: 1fr; /* ADDED: Makes all rows the same height */
}

/* Style for individual listing cards */
.listing-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex; /* ADDED: Enable Flexbox */
  flex-direction: column; /* ADDED: Stack content vertically */
  height: 100%; /* ADDED: Take full height of grid cell */
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Image within the card */
.listing-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  flex-shrink: 0; /* ADDED: Prevent image from shrinking */
}

/* Content area within the card */
.listing-content {
  padding: 20px;
  display: flex; /* ADDED: Enable Flexbox for content */
  flex-direction: column; /* ADDED: Stack content vertically */
  flex-grow: 1; /* ADDED: Allow content to take available space */
  justify-content: space-between; /* ADDED: Distribute content evenly */
}

/* Title of the listing (mall name) */
.listing-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #000000; /* MODIFIED: Changed to black */
  flex-shrink: 0; /* ADDED: Prevent title from shrinking */
}

/* Area information */
.listing-area {
  color: #e53e3e;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-shrink: 0; /* ADDED: Prevent area from shrinking */
}

.listing-area::before {
    margin-right: 5px;
}

/* Description of the listing */
.listing-description {
  color: #718096;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1; /* ADDED: Allow description to take available space */
}

/* Features section */
.listing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  flex-shrink: 0; /* ADDED: Prevent features from shrinking */
}

.listing-feature {
  background-color: #ebf4ff;
  color: #4299e1;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* Responsive adjustments for listings grid */
@media (max-width: 768px) {
  .listings-grid {
    grid-template-columns: 1fr;
  }
}

/* Navigation */
.nav {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #e53e3e;
}

.nav-link.active {
  color: #e53e3e;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.2rem;
  }
  
  .welcome-content h2 {
    font-size: 2rem;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  /* This media query for listings-grid is now redundant due to the new rule above */
  /* .listings-grid {
    grid-template-columns: 1fr;
  } */
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  .welcome-content h2 {
    font-size: 1.6rem;
  }
  
  .welcome-section {
    padding: 80px 20px;
  }
  
  .cta-button {
    padding: 10px 25px;
  }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-darker);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-family: var(--font-cormorant);
    font-size: 28px;
    font-weight: 700;
    color: var(--temple-maroon);
}

.logo h1 span {
    color: var(--temple-gold);
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 8px;
}

nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

nav ul li a:hover {
    color: var(--temple-maroon);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--temple-gold);
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Dark Mode Base Styles */
:root {
    --temple-maroon: #B52E5A;
    --temple-gold: #FFC107;
    --temple-saffron: #FFA000;
    --temple-ochre: #D45A2A;
    --temple-stone: #A0A0A0;
    --font-cormorant: 'Cormorant Garamond', serif;
    --font-poppins: 'Poppins', sans-serif;
    --bg-dark: #121212;
    --bg-darker: #0D0D0D;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-poppins);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-darker);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-family: var(--font-cormorant);
    font-size: 28px;
    font-weight: 700;
    color: var(--temple-maroon);
}

.logo h1 span {
    color: var(--temple-gold);
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 8px;
}

nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

nav ul li a:hover {
    color: var(--temple-maroon);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--temple-gold);
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--temple-maroon);
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Category Grid Styles */
.header {
    text-align: center;
    margin: 40px 0;
}

.header h1 {
    font-family: var(--font-cormorant);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.category-card {
    background-color: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-content {
    padding: 20px;
}

.category-content h3 {
    font-family: var(--font-cormorant);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.category-content p {
    color: white;
    margin-bottom: 15px;
    font-size: 0.95rem;
opacity: 0.9; 
}

.category-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--temple-maroon);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: var(--temple-ochre);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--bg-darker);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        padding: 20px;
        z-index: 100;
        border-bottom: 1px solid var(--border-color);
    }
    
    nav.active ul {
        flex-direction: column;
    }
    
    nav.active ul li {
        margin: 10px 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
}


