/* Directing Template Styles - Based on https://themewagon.github.io/directing/ */

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  background-color: #f8f9fa;
  margin: 0;
  padding-top: 80px; /* Account for fixed header */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== HEADER STYLES ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header--fixed {
  background: #1a1a1a;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

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

.header__logo a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.header__menu ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s ease;
  position: relative;
}

.header__menu ul li a:hover,
.header__menu ul li.active a {
  color: #ff6b35;
}

.header__menu ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b35;
  transition: width 0.3s ease;
}

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

.header__menu__right .login-btn {
  color: #fff;
  background: #ff6b35;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header__menu__right .login-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 20px 0;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin: 10px 0;
}

.mobile-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 10px 20px;
  display: block;
  transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: #ff6b35;
}

.mobile-menu.active {
  display: block;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: -80px; /* Pull hero up to eliminate gap under fixed header */
  padding-top: 80px; /* Add padding to keep content below header */
}

/* Background images container */
.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

/* Grid layout for 8 images (4x2) */
.hero__images-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  height: 100%;
  width: 100%;
}

/* Individual image tile */
.hero__image-tile {
  overflow: hidden;
  position: relative;
}

.hero__image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
  /* Optimize for caching and performance */
  will-change: transform;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Subtle hover effect */
.hero__image-tile:hover img {
  transform: scale(1.05);
}

/* Dark overlay for text readability */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.7) 100%
    ),
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 1; /* Overlay should sit below content and dropdowns */
}

.hero__content {
  position: relative;
  z-index: 10; /* Ensure content is above overlay */
}


/* ===== CATEGORIES SECTION ===== */
.categories__item {
  transition: all 0.3s ease;
}

.categories__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.categories__item:hover .border {
  border-color: #ff6b35 !important;
}

.categories__item__icon {
  font-size: 4rem;
}

.category-count {
  color: #ff6b35;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Category tabs are now handled by Bootstrap buttons */

/* Section titles are now handled by Bootstrap display classes */

/* ===== LISTINGS SECTION ===== */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.listing-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.listing-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.listing-item__image {
  height: 200px;
  background: linear-gradient(45deg, #ff6b35, #e55a2b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
}

.listing-item__content {
  padding: 25px;
}

.listing-item__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.listing-item__info {
  color: #666;
  margin-bottom: 15px;
}

.listing-item__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.listing-item__rating .stars {
  color: #ffc107;
}

.listing-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listing-item__category {
  background: #ff6b35;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.listing-item__status {
  font-weight: 600;
  color: #28a745;
}

.listing-item__status.closed {
  color: #dc3545;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
  background: #f8f9fa;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.how-it-works__item {
  text-align: center;
  position: relative;
}

.how-it-works__number {
  width: 80px;
  height: 80px;
  background: #ff6b35;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 30px;
}

.how-it-works__item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.how-it-works__item p {
  color: #666;
  line-height: 1.6;
}

/* ===== LOCATIONS SECTION ===== */
.locations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.location-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.location-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.location-card__stats {
  color: #666;
  margin-bottom: 20px;
}

.location-card__stats span {
  display: block;
  margin: 5px 0;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background: #fff;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.testimonial-item {
  background: #f8f9fa;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  position: relative;
}

.testimonial-item::before {
  content: '"';
  font-size: 4rem;
  color: #ff6b35;
  position: absolute;
  top: -10px;
  left: 30px;
  font-family: Georgia, serif;
}

.testimonial-item p {
  font-style: italic;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author h5 {
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.testimonial-author span {
  color: #666;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 0 30px;
}

.footer__brand {
  margin-bottom: 30px;
}

.footer__brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer__brand p {
  color: #ccc;
  line-height: 1.6;
}

.footer__links h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__links ul {
  list-style: none;
}

.footer__links ul li {
  margin-bottom: 10px;
}

.footer__links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__links ul li a:hover {
  color: #ff6b35;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .header__menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }


  .categories__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
  }

  .locations__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .hero__content {
    padding: 0 15px;
  }


  .categories__item {
    padding: 30px 20px;
  }

  .listing-item__content {
    padding: 20px;
  }
}

/* ===== BOOTSTRAP OVERRIDES ===== */
:root {
  --bs-primary: #ff6b35;
  --bs-primary-rgb: 255, 107, 53;
}

.btn-primary {
  --bs-btn-bg: #ff6b35;
  --bs-btn-border-color: #ff6b35;
  --bs-btn-hover-bg: #e55a2b;
  --bs-btn-hover-border-color: #e55a2b;
  --bs-btn-focus-shadow-rgb: 255, 107, 53;
  --bs-btn-active-bg: #d94d1f;
  --bs-btn-active-border-color: #d94d1f;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
  --bs-btn-color: #ff6b35;
  --bs-btn-border-color: #ff6b35;
  --bs-btn-hover-bg: #ff6b35;
  --bs-btn-hover-border-color: #ff6b35;
  --bs-btn-focus-shadow-rgb: 255, 107, 53;
  --bs-btn-active-bg: #ff6b35;
  --bs-btn-active-border-color: #ff6b35;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.text-primary {
  color: #ff6b35 !important;
}

.bg-primary {
  background-color: #ff6b35 !important;
}

/* Text shadow utility */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
