/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure a good height */
    position: relative;
  }

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 50px; /* Pill shape */
}

/* Specific style for the "List Your Business" button in hero section */
.hero-buttons .btn-outline-light {
  color: #000000; /* Black text */
  border-color: #000000; /* Black border */
  background-color: #ffffff; /* White background */
}

.hero-buttons .btn-outline-light:hover {
  color: #333333; /* Darker grey text on hover */
  background-color: #f0f0f0; /* Slightly darker white background on hover */
  border-color: #333333; /* Darker grey border on hover */
}

/* Elegant New Listings Section - Hero Style */
.new-listings-section {
  padding: 80px 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: -60px; /* Overlap with hero for visual effect */
  position: relative;
  z-index: 10;
}

.section-header-elegant {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 15px;
  position: relative;
}

.section-header-elegant::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #000 0%, #666 100%);
  border-radius: 2px;
}

.section-title-elegant {
  font-size: 2.8em;
  margin: 0 0 16px 0;
  color: #000;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-subtitle-elegant {
  font-size: 1.2em;
  color: #666;
  margin: 0 0 32px 0;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.view-all-btn-elegant {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #000;
  color: white;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.view-all-btn-elegant::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.view-all-btn-elegant:hover::before {
  left: 100%;
}

.view-all-btn-elegant:hover {
  background: #333;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.view-all-btn-elegant i {
  transition: transform 0.3s ease;
}

.view-all-btn-elegant:hover i {
  transform: translateX(4px);
}

.listings-grid-elegant {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 15px;
}

.listing-card-elegant {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.listing-card-elegant:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image-elegant {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.listing-card-elegant:hover .card-image-elegant {
  transform: scale(1.02);
}

.category-badge-elegant {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
}

.card-content-elegant {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-elegant {
  font-size: 1.3em;
  font-weight: 200;
  margin: 0 0 8px 0;
  color: #333;
  line-height: 1.3;
  font-family: 'Noto Sans KR', '맑은 고딕', Malgun Gothic, 'Apple SD Gothic Neo', sans-serif;
}

.price-elegant {
  font-size: 1.4em;
  font-weight: 700;
  color: #666;
  margin-bottom: 12px;
}

.card-description-elegant {
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.875em;
  flex-grow: 1;
  min-height: 3em; /* 최소 3줄 높이 확보 */
  font-family: 'Noto Sans KR', '맑은 고딕', Malgun Gothic, 'Apple SD Gothic Neo', sans-serif;
}

.card-footer-elegant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
  margin-top: auto; /* 하단에 고정 */
}

.location-elegant {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #777;
  font-size: 0.9em;
}

.location-elegant i {
  color: #999;
}

.view-btn-elegant {
  color: #ffc107;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 300;
  transition: all 0.3s ease;
  border: 1px solid #ffc107;
}

.view-btn-elegant:hover {
  background: #ffc107;
  color: white;
  text-decoration: none;
}

/* Empty State */
.empty-state-elegant {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state-elegant h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

.empty-state-elegant p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.add-listing-btn-elegant {
  display: inline-block;
  background: #000;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.add-listing-btn-elegant:hover {
  background: #333;
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-listings-section {
    padding: 60px 0;
    margin-top: -40px;
  }
  
  .section-header-elegant {
    margin-bottom: 50px;
  }
  
  .section-header-elegant::before {
    width: 40px;
    height: 3px;
  }
  
  .section-title-elegant {
    font-size: 2.2em;
  }
  
  .section-subtitle-elegant {
    font-size: 1.1em;
    margin-bottom: 28px;
  }
  
  .view-all-btn-elegant {
    padding: 12px 28px;
    font-size: 0.95em;
  }
  
  .listings-grid-elegant {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-footer-elegant {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Search Section */
.search-section-main {
  background: linear-gradient(135deg, #333 0%, #000 100%); /* Dark grey to black gradient */
  color: white;
  padding: 80px 0;
  margin-top: 60px; /* Space from New Listings */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.search-title {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.search-subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.access-info {
  background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 30px;
  color: #fff;
  font-size: 0.95em;
  display: inline-block; /* Fit content */
}
.access-info a {
  color: #ffc107; /* Warning yellow for contrast */
  text-decoration: underline;
}
.access-info a:hover {
  color: #ffe082;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.search-form .form-group {
  flex: 1;
  min-width: 200px; /* Minimum width for form fields */
  position: relative;
}

.search-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.1em;
}

.search-input-field {
  padding-left: 45px; /* Space for icon */
}

.search-btn {
  flex-shrink: 0; /* Don't shrink button */
  padding: 12px 25px;
  font-size: 1.1em;
  background-color: #000; /* Black search button */
  border-color: #000;
  color: #fff;
}
.search-btn:hover {
  background-color: #333;
  border-color: #333;
}

/* All Listings Section */
.all-listings-section {
  padding: 60px 0;
}

.all-listings-section .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0 15px; /* Match container padding */
}

.all-listings-section .section-header h2 {
  font-size: 2.2em;
  margin: 0;
  color: #333;
  font-weight: 700;
}

.all-listings-section .sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px; /* For smaller screens */
}

@media (min-width: 768px) {
  .all-listings-section .sort-options {
    margin-top: 0;
  }
}

.all-listings-section .small-info {
  padding: 0 15px; /* Match container padding */
  margin-bottom: 20px;
}


/* 여기서 부터 검사 시작 */
/* Base styles */









/* Header styles (retained from previous, adjusted for new design) */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensure header is always on top */
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff; /* Changed to white */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main-header .container {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .main-header .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 8px; /* Reduced gap for tighter logo/text */
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700; /* Bolder */
  text-decoration: none;
  color: #000; /* Black color */
}

.logo-link .icon {
  height: 24px;
  width: 24px;
  color: #000; /* Black color for icon */
}

.logo-link .logo-text {
  font-size: 22px; /* Slightly larger */
  font-weight: 700; /* Bolder */
  color: #000; /* Black color */
}


.actions-section {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 20px; /* Adjusted gap for new elements */
}

@media (min-width: 768px) {
  .actions-section {
    gap: 24px;
  }
}

/* Removed search-bar, search-icon, search-input styles */
/* Removed icon-button, notification-dot, avatar-container, avatar-image styles */

.contact-link {
  color: #000; /* Black for contact link */
  font-weight: 600;
}

.login-link {
  color: #000; /* Blue for login link */
  font-weight: 600;
}

.avatar-container {
  height: 36px; /* Slightly larger */
  width: 36px;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid #e0e0e0; /* Subtle border */
  cursor: pointer; /* Indicate clickable */
  transition: border-color 0.2s ease;
}

.avatar-container:hover {
  border-color: #007bff; /* Highlight on hover */
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/* Hamburger Menu Button (Mobile Only) */
.hamburger-menu-btn {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #333;
  margin-left: 15px; /* Space from avatar/notification */
}

@media (max-width: 767px) {
  .hamburger-menu-btn {
    display: block; /* Show on mobile */
  }
}


/* Mobile Navigation Container (Slide-in Menu) */
.mobile-nav-container {
  position: fixed;
  top: 0;
  right: -300px; /* Start off-screen to the right */
  width: 280px; /* Width of the slide-in menu */
  height: 100%;
  background-color: #fff;
  z-index: 1002; /* Above the overlay */
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-out;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-nav-container.is-open {
  right: 0; /* Slide into view */
}

.mobile-nav-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #555;
  align-self: flex-end; /* Align to top right */
  margin-bottom: 20px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-links .nav-link {
  font-size: 1.1em;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #333;
}

.mobile-nav-links .nav-link:last-of-type {
  border-bottom: none;
}

.mobile-list-button {
  width: 100%;
  margin-top: 20px;
  padding: 12px 0;
  font-size: 1.05em;
}


/* Main content container */
.main-content {
  flex-grow: 1;
  padding-top: 0; /* Hero section handles its own padding */
  padding-bottom: 0px; /* General bottom padding for main content */
}

/* Hero Section (New Design) */
.hero-section {
  background-color: #666666; /* Changed to solid dark grey */
  color: #fff;
  padding: 100px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure a good height */
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 50px; /* Pill shape */
}

/* Specific style for the "List Your Business" button in hero section */
.hero-buttons .btn-outline-light {
  color: #000000; /* Black text */
  border-color: #000000; /* Black border */
  background-color: #ffffff; /* White background */
}

.hero-buttons .btn-outline-light:hover {
  color: #333333; /* Darker grey text on hover */
  background-color: #f0f0f0; /* Slightly darker white background on hover */
  border-color: #333333; /* Darker grey border on hover */
}

/* New Listings Section (New Design) */
.new-listings-section {
  padding: 60px 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: -60px; /* Overlap with hero for visual effect */
  position: relative;
  z-index: 10;
}

.new-listings-section .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 0 15px; /* Match container padding */
}

.new-listings-section .section-title-group {
  display: flex;
  flex-direction: column;
}

.new-listings-section .section-header h2 {
  font-size: 2.2em;
  margin: 0;
  color: #333;
  font-weight: 700;
}

.new-listings-section .section-header p {
  font-size: 1.1em;
  color: #666;
  margin: 5px 0 0;
}

.new-listings-section .view-all-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  color: #555;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.new-listings-section .view-all-button:hover {
  background-color: #f0f2f5;
  color: #000; /* Black on hover */
}

.new-listings-section .view-all-button .arrow-icon {
  font-size: 1.2em;
  line-height: 1;
}

/* Listing Cards Grid (New Listings Section & All Listings Section) */
.listing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 15px; /* Match container padding */
}

.listing-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.listing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.listing-image-container {
  position: relative;
  width: 100%;
  height: 200px; /* Fixed height for images */
  overflow: hidden;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images cover the area without distortion */
  transition: transform 0.3s ease;
}
.listing-card:hover .listing-image {
  transform: scale(1.05);
}

.listing-image-container .category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: 600;
  z-index: 5;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4em;
  color: #333;
  line-height: 1.3;
  font-weight: 700;
}

.card-content .price-new {
  font-size: 1.2em;
  font-weight: 700;
  color: #000; /* Black for price */
  margin-bottom: 15px;
}

.card-content .description-new {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.card-content .card-footer-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.card-content .progress-text {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

.card-content .continue-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #000; /* Black for continue button */
  font-weight: 600;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.card-content .continue-button:hover {
  color: #555; /* Darker grey on hover */
}

.card-content .continue-button .arrow-icon {
  font-size: 1.2em;
  line-height: 1;
}

/* Search Section (New Design) */
.search-section-main {
  background: linear-gradient(135deg, #333 0%, #000 100%); /* Dark grey to black gradient */
  color: white;
  padding: 80px 0;
  margin-top: 60px; /* Space from New Listings */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.search-title {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.search-subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.access-info {
  background-color: #000; /* Semi-transparent white */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0px;
  padding: 15px 20px;
  margin-bottom: 0px;
  color: #fff;
  font-size: 0.95em;
  display: block; /* Full width */
  width: 100%;
  text-align: center; /* Center align text */
}
.access-info a {
  color: #ffc107; /* Warning yellow for contrast */
  text-decoration: underline;
}
.access-info a:hover {
  color: #ffe082;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.search-form .form-group {
  flex: 1;
  min-width: 200px; /* Minimum width for form fields */
  position: relative;
}

.search-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.1em;
}

.search-input-field {
  padding-left: 45px; /* Space for icon */
}

.search-btn {
  flex-shrink: 0; /* Don't shrink button */
  padding: 12px 25px;
  font-size: 1.1em;
  background-color: #000; /* Black search button */
  border-color: #000;
  color: #fff;
}
.search-btn:hover {
  background-color: #333;
  border-color: #333;
}

/* All Listings Section (New Design) */
.all-listings-section {
  padding: 60px 0;
}

.all-listings-section .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0 15px; /* Match container padding */
}

.all-listings-section .section-header h2 {
  font-size: 2.2em;
  margin: 0;
  color: #333;
  font-weight: 700;
}

.all-listings-section .sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px; /* For smaller screens */
}

@media (min-width: 768px) {
  .all-listings-section .sort-options {
    margin-top: 0;
  }
}

.all-listings-section .small-info {
  padding: 0 15px; /* Match container padding */
  margin-bottom: 20px;
}

.listing-card .card-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 8px;
}

.listing-card .card-meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}
.listing-card .card-meta i {
  margin-right: 5px;
}
.listing-card .card-meta .separator {
  margin: 0 8px;
  color: #ccc;
}

.listing-card .card-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.listing-card .card-info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.listing-card .price-tag {
  font-size: 1.3em;
  font-weight: 700;
  color: #000; /* Black for price */
}

.listing-card .views-count {
  font-size: 0.9em;
  color: #777;
}
.listing-card .views-count i {
  margin-right: 5px;
}

.listing-card .card-actions {
  padding: 15px 20px 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #eee;
  text-align: center;
}

.listing-card .view-details-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 1.05em;
  border-radius: 8px;
  background-color: #000; /* Black view details button */
  border-color: #000;
  color: #fff;
}
.listing-card .view-details-btn:hover {
  background-color: #333;
  border-color: #333;
}

.featured-badge {
  background-color: #ffc107;
  color: #333;
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
}
.realtor-badge {
  background-color: #28a745; /* Green for realtor */
  color: white;
  position: absolute;
  top: 15px;
  left: 100px; /* Adjusted position */
  z-index: 5;
}
.private-badge {
  background-color: #6c757d;
  color: white;
  position: absolute;
  top: 50px; /* Below featured/realtor */
  left: 15px;
  z-index: 5;
}

.favorite-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.favorite-btn:hover {
  background: white;
  transform: scale(1.1);
  color: #e74c3c;
}
.favorite-btn.active {
  color: #e74c3c;
}

.no-results {
  text-align: center;
  padding: 50px 0;
  grid-column: 1 / -1; /* Span full width in grid */
}
.no-results h4 {
  font-size: 1.8em;
  color: #555;
  margin-bottom: 15px;
}
.no-results p {
  font-size: 1.1em;
  color: #777;
}
.no-results a {
  color: #000; /* Black for links in no results */
  text-decoration: underline;
}

.placeholder-icon-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f2f5;
  color: #ccc;
}

/* 매물 상세 페이지 스타일 (기존 유지, 새 디자인과 호환되도록) */
.listing-detail-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.listing-image-gallery {
  margin-bottom: 30px;
}

.listing-image-gallery .main-image {
  width: 100%;
  height: 450px; /* 메인 이미지 고정 높이 */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: none; /* 기본적으로 모두 숨기고, 활성 이미지만 표시 */
}

.listing-image-gallery .main-image.active {
  display: block;
}

.listing-image-gallery .thumbnail-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px; /* 스크롤바를 위한 공간 */
}

.listing-image-gallery .thumbnail {
  width: 120px; /* 썸네일 크기 조정 */
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.listing-image-gallery .thumbnail.active {
  border-color: #000; /* 활성 썸네일 테두리 (검정) */
}

.listing-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #333;
  font-weight: 700;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.95em;
  color: #666;
}

.listing-meta .badge {
  font-size: 0.9em;
  padding: 5px 10px;
}

.listing-meta i {
  margin-right: 5px;
}

.listing-header .price {
  font-size: 2.5em;
  font-weight: 800;
  color: #000; /* Black for price */
  margin-bottom: 20px;
}

.listing-description p {
  line-height: 1.7;
  color: #555;
}

.listing-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.listing-details-grid div {
  background-color: #f9f9f9;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 1em;
  color: #444;
  font-weight: 500;
}

.listing-contact-info p {
  margin-bottom: 10px;
  color: #555;
}

.listing-contact-info strong {
  color: #333;
}

.listing-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.listing-actions .btn {
  padding: 12px 25px;
  font-size: 1.05em;
  border-radius: 8px;
  background-color: #000; /* Black for action buttons */
  border-color: #000;
  color: #fff;
}
.listing-actions .btn:hover {
  background-color: #333;
  border-color: #333;
}

.comments-section .comment-list {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fcfcfc;
}

.comments-section .comment-item {
  padding: 15px 0;
  border-bottom: 1px dashed #eee;
}

.comments-section .comment-item:last-child {
  border-bottom: none;
}

.comments-section .comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  min-height: 100px;
  font-size: 1em;
}

.sidebar-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-card h4 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  font-weight: 700;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card ul li {
  margin-bottom: 12px;
}

.sidebar-card ul li a {
  text-decoration: none;
  color: #000; /* Black for sidebar links */
  font-weight: 500;
  transition: color 0.2s ease;
}

.sidebar-card ul li a:hover {
  text-decoration: underline;
  color: #555; /* Darker grey on hover */
}

/* 여기 까지 나중에 삭제 */



/* Section Titles */
.main-footer h5 {
  color: #333333;
  font-weight: 600;
  font-size: 1em;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation Links */
.main-footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-footer .footer-link {
  color: #666666;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.main-footer .footer-link:hover {
  color: #333333;
  text-decoration: none;
}

/* Social Media */
.main-footer .social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.main-footer .social-link {
  width: 32px;
  height: 32px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.main-footer .social-link:hover {
  background: #333333;
  color: #ffffff;
  border-color: #333333;
  text-decoration: none;
}

/* Footer Bottom */
.main-footer .footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
  margin-top: 40px;
}

.main-footer .footer-bottom p {
  color: #666666;
  font-size: 0.85em;
  margin-bottom: 0;
}

.main-footer .footer-bottom .footer-nav {
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.main-footer .footer-bottom .footer-link {
  font-size: 0.85em;
  color: #666666;
}

.main-footer .footer-bottom .footer-link:hover {
  color: #333333;
}

/* Privacy Choice Icon */
.main-footer .privacy-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-footer .privacy-choice-icon {
  width: 20px;
  height: 20px;
  background: #007bff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7em;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-footer {
    padding: 40px 0 20px 0;
    margin-top: 60px;
  }
  
  .main-footer .logo-link {
    font-size: 1.5em;
  }
  
  .main-footer .logo-link .icon {
    width: 36px;
    height: 36px;
  }
  
  .main-footer .social-links {
    justify-content: flex-start;
  }
  
  .main-footer .footer-bottom {
    text-align: center;
  }
  
  .main-footer .footer-bottom .d-flex {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-footer .footer-bottom .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .main-footer .col-lg-3,
  .main-footer .col-lg-2,
  .main-footer .col-md-6,
  .main-footer .col-md-3,
  .main-footer .col-sm-6 {
    margin-bottom: 30px;
  }
  
  .main-footer .footer-bottom .footer-nav {
    gap: 12px;
  }
}

