/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

body {
  background-color: #fff;
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

.container {
  max-width: 1080px;
  margin: 0 auto 3rem auto;
}

.breadcrumb-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.2rem;
}

/* Container padding fix */
.container {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.listings-container {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

 /* Basic header styling */
.site-header {
    background-color: #FFF;
  }
  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
  }
  .logo {
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.1rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    font-size: 1.4rem;
    color: #333
    /* Text styling handled by parent .logo class */
  }

  .auth-links a {
    text-decoration: none;
    color: #333;
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }

  .auth-links a:hover {
    text-decoration: underline;
  }

  .auth-links .btn {
    color: #333;
    margin-left: 0.5rem;
    text-decoration: none;
    padding: 0.25rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .auth-links .btn:hover {
    color: #000;
  }


  .auth-links .btn--primary {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
  }

  /* Footer styling - similar to header but with top margin instead of bottom */
  .site-footer {
    padding: 1.2rem 1rem;
    background-color: #3a506F;
    box-shadow: 0px -1px 1px #aaa;
    margin-top: 3rem;
  }
  
  .site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
  }
  
  .site-footer .logo {
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: #f8f9fa;
  }

  .site-footer .auth-links a {
    text-decoration: none;
    color: #f8f9fa;
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }

  .site-footer .auth-links a:hover {
    text-decoration: underline;
  }
  
  .site-footer .copyright {
    color: #f8f9fa;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  /* Listing index styles */

.hero-section {
  text-align: center;
  margin: 0;
  padding: 2rem 0;
}

.listings-container {
  padding: 0px 10px 10px 10px;
}

  
.listings-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin: 0.5rem 0;
}

.listing-card-small {
  border-radius: 8px;
  padding: 0;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 0.5rem;
  border: 1px solid #CCC;
}

.listing-card {
  border-radius: 8px;
  padding: 0;
  background: #fafafa;
  margin-bottom: 0.5rem;
}

.listing-card h1 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.listing-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
  padding: 1rem;
  color: rgb(52, 78, 106);
}

.listing-card p {
  margin: 0.35rem 0;
  line-height: 1.4;
  padding: 0 1rem;
}

.listing-meta {
  font-size: 0.9rem;
  color: #555;
  margin: 0.35rem 0 0.6rem;
  padding: 0 1rem;
}

.listing-note {
  padding: 0 1rem 0.6rem;
  font-style: italic;
  font-size: 0.85rem;
  color: #444;
}

.listing-actions {
  padding: 0 1rem 1rem 1rem;
}

.new-listing-link {
  margin-top: 2rem;
}

.btn {
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  background: #e0e0e0;
  color: #333;
  display: inline-block;
  font-size: 0.9rem;
}

.btn--primary {
  background: #007bff;
  color: #fff;
  border: none;
}

.btn--secondary {
  background: #6c757d;
  color: #fff;
}

.btn--danger {
  background: #dc3545;
  color: #fff;
}

.listing-photo-preview {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* 3:2 aspect ratio */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin: 0;
}

.listing-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Listing form styles */

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-errors {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.form-errors h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.form-errors ul {
  margin-bottom: 0;
}

/* Error message styling for validation */
.error-messages {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error-messages h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.error-messages ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.error-messages li {
  margin-bottom: 0.25rem;
}

/* Field styling for multi-step forms */
.field {
  margin-bottom: 0.5rem;
}

.field label {
  display: block;
  font-weight: 500;
  color: #333;
}

.field-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-field label {
  margin: 0;
  font-weight: normal;
}

/* City selection styling */
.city-selection {
  margin: 1rem 0;
}

.city-option {
}

.city-option:hover {
}

.city-option input[type="radio"] {
  margin-right: 0.5rem;
}

.city-option label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

/* Pricing section styling */
.pricing-section {

}

.pricing-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #495057;
  font-size: 1.1rem;
}

.price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.availability-section {

}

.availability-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #495057;
  font-size: 1.1rem;
}

/* Required field indicators */
label:after {
  content: "";
}

label[for*="title"]:after,
label[for*="description"]:after,
label[for*="min_price"]:after,
label[for*="city"]:after {
}

/* Form validation states */
.form-control:invalid {
  border-color: #dc3545;
}

.form-control:valid {
  border-color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .price-fields {
    grid-template-columns: 1fr;
  }
  
  .pricing-section,
  .availability-section {
    padding: 1rem;
  }
}

/* Filter form styles */


.filter-form-wrapper {
  /* Sidebar positioning */
  position: sticky;
  top: 90px; /* adjust to sit just below the header */
  align-self: flex-start;
  width: 260px;
  padding: 1rem;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  /* Ensure sidebar doesn’t stretch full width on large screens */
  flex: 0 0 260px;
}

/* Stacked form fields */
.filter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Ensure label/input pairs stack nicely */
.filter-form div {
  display: flex;
  flex-direction: column;
}

.filter-form input[type="text"],
.filter-form input[type="number"],
.filter-form input[type="date"] {
  padding: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Pagination styles */
.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.pagination .current {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Photo gallery styles */
.photo-gallery {
  max-width: 500px;
  margin: 0 auto 2rem auto;
  text-align: center;       /* centers inline elements like buttons if needed */

}

.main-photo-container {
  width: 500px;
  overflow: hidden;
  border-radius: 10px;
}

.main-photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
}

.thumbnail {
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease-in-out;
}

.thumbnail:hover {
  border-color: #007BFF;
}

/* Two-column layout for listing details */
.listing-details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.listing-info-column {
  padding-right: 1rem;
}

.listing-media-column {
  padding-left: 1rem;
}

.listing-details {
  background: #f8f9fa;
  padding: 0;
}

.listing-details p {
  margin-bottom: 1rem;
  line-height: 1.6;
  margin-top: 0;
  padding-top: 0;
}

.listing-details p:last-child {
  margin-bottom: 0;
}

/* Map styling */
.listing-map {
  margin-top: 2rem;
}

.listing-map h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.2rem;
}

.map-container {
  width: 100%;
  height: 300px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f8f9fa;
  color: #666;
  text-align: center;
}

.map-placeholder p:first-child {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .listing-details-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .listing-info-column,
  .listing-media-column {
    padding: 0;
  }
}

/* Success StoriesCarousel styles */

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  background-color: #28a745;
}

.carousel-arrow {
  background-color: white;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
  z-index: 1;
  margin: 0 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  color: #f0f0f0;
}

.carousel-slide h3 {
  color: #ffffff !important;
}

.carousel-slide p {
  color: #e8e8e8;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

/* Multi-step form improvements */
.neighborhood-selection {
  margin: 1rem 0;
}

.neighborhood-option {
}

.neighborhood-option input[type="checkbox"] {
  margin-right: 0.5rem;
}

.no-neighborhoods {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  text-align: center;
}

.help-text {
}

/* Practice step styling */
.practice-info {
  margin: 1rem 0;
}

.amenities-section {
  margin-top: 2rem;
}

.amenities-section h3 {
  margin-bottom: 0.5rem;
}

.section-description {
  color: #666;
  margin-bottom: 1rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1rem;
}

.amenity-option {
}

.amenity-option input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Categorized amenities styles */
.amenities-categories {
  margin: 1.5rem 0;
}

.amenity-category {
  margin-bottom: 1.5rem;
}

.amenity-category:last-child {
  margin-bottom: 0;
}

.amenity-category h4 {
  margin: 0 0 0.2rem 0;
  font-size: 1.1rem;
  color: #495057;
  font-weight: 600;
  padding-bottom: 0.5rem;
}

.amenity-category .amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.amenity-category .amenity-option {
  display: flex;
  align-items: center;
  margin: 0;
}

.amenity-category .amenity-option input[type="checkbox"] {
  margin-right: 0.6rem;
  transform: scale(1.1);
}

.amenity-category .amenity-option label {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .amenity-category .amenities-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .amenity-category {
    padding: 1rem;
  }
}

/* Photo upload styling */
.photo-upload-section {
  margin: 1rem 0;
}

.current-photos {
  margin-top: 2rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
  text-align: center;
}

.photo-preview {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.photo-controls {
  margin-top: 0.5rem;
}

.photo-controls input[type="checkbox"] {
  margin-right: 0.5rem;
}

.no-photos {
  padding: 2rem;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 4px;
  color: #666;
}

/* Preview page styling */
.listing-preview {
  margin: 1rem 0 2rem;
}

.preview-section {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.preview-section:last-child {
  border-bottom: none;
}

.preview-section h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.preview-details p {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.preview-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.preview-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.preview-actions {
}

.preview-note {
  text-align: center;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
}

/* Form actions improvements */
.form-actions {
  margin-top: 1rem;
}

.form-actions .btn {
  margin: 0 0.2rem;
}

.btn--secondary {
  background-color: #6c757d;
  color: white;
  border: none;
}

.btn--secondary:hover {
  background-color: #5a6268;
}

/* Listing show page improvements */
.listing-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.listing-section:last-child {
  border-bottom: none;
}

.listing-section h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.3rem;
}

.detail-grid {
  display: grid;
  gap: 0.5rem;
}

.detail-grid p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.negotiable-badge {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.amenity-tag {
  display: inline-block;
  background-color: #f8f9fa;
  color: #495057;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.9rem;
  border: 1px solid #dee2e6;
}

.no-photos {
  padding: 2rem;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  color: #6c757d;
  margin-bottom: 1rem;
}

.no-photos p {
  margin: 0;
  font-size: 1.1rem;
}

/* Responsive improvements for listing details */
@media (max-width: 768px) {
  .listing-details-container {
    flex-direction: column;
  }
  
  .listing-info-column,
  .listing-media-column {
    width: 100%;
  }
  
  .listing-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .amenities-list {
    justify-content: center;
  }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 1.2rem;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: #666;
  background-color: rgb(69, 69, 155);
}

.breadcrumb-link {
  color: #FFF;
  text-decoration: none;
}

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

.breadcrumb-separator {
  margin: 0 0.2rem;
  color: #999;
}

/* Post Listing button */
.post-listing-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.post-listing-btn {
  background: #28a745; /* Bootstrap success green */
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  display: inline-block;
  text-decoration: none;
  border-radius: 4px;
}

.post-listing-btn:hover {
  background: #218838; /* Darker green on hover */
}

/* =====================================================================
   LoopNet-inspired Professional Theme – 2025-07
   ---------------------------------------------------------------------*/
:root {
  --ln-primary: #002B6C;        /* Navy */
  --ln-accent: #D92028;         /* Red CTA */
  --ln-bg: #F5F5F7;             /* Light page background */
  --ln-surface: #FFFFFF;        /* Card/background */
  --ln-border: #E0E0E0;         /* Divider */
  --ln-text: #2A2A2A;           /* Base text */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --font-sans: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* Base */
body {
  background-color: #FFF;
  color: var(--ln-text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Header */
.site-header {
  z-index: 1000;
  background-color: #FFF;
  border-bottom: 1px solid #e7e7e7;
  padding: 1em 2em;
}

.logo {
  color: #000;
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-links a {
  color: #666;
  font-weight: 600;
}

.auth-links a:hover {
  color: var(--ln-accent);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--ln-accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: #b81d21;
}

.btn--secondary {
  background: var(--ln-surface);
  color: var(--ln-primary);
  border: 1px solid var(--ln-border);
}

.btn--secondary:hover {
  background: var(--ln-primary);
  color: #ffffff;
}

/* Cards & Listing grid */
.listing-card {
  background: var(--ln-surface);
  border-radius: 12px;
}

.listing-card:hover {
}

.listing-card h2 {
  color: var(--ln-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Forms */
.form-control {
  border: 1px solid var(--ln-border);
  border-radius: 4px;
  padding: 0.55rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--ln-accent);
  box-shadow: 0 0 0 3px rgba(217, 32, 40, 0.25);
}

label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: inline-block;
}

/* Hero section */
.hero-section {
  background: var(--ln-surface);
  padding: 2rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

/* Breadcrumbs */
.breadcrumb-link {
}

.breadcrumb-separator {
  color: var(--ln-border);
}

/* Pagination */
.pagination a {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--ln-border);
  border-radius: 4px;
  color: var(--ln-primary);
}

.pagination .current {
  background: var(--ln-primary);
  color: #ffffff;
  border-color: var(--ln-primary);
}

/* Footer */
.site-footer {
  background: var(--ln-primary);
  color: #ffffff;
  padding: 2rem 1rem;
}

.site-footer a {
  color: #ffffff;
}

/* Responsive tweaks */
@media (min-width: 1200px) {
  .hero-section {
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
  }
}
/* ===================================================================== */

/* --------------------------------------------------------------------
   Listing Show Page Tweaks – Professional Theme
   ------------------------------------------------------------------*/
.listing-card--detail {
  padding: var(--space-8);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.listing-card--detail h1 {
  color: var(--ln-primary);
  font-size: var(--font-size-h1);
  margin-bottom: var(--space-5);
  line-height: 1.2;
}

.listing-details-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-6);
  margin-top: var(--space-5);
  align-items: flex-start;
}

.listing-info-column {
  padding-right: var(--space-4);
}

.listing-media-column {
  padding-left: var(--space-4);
}

@media (max-width: 768px) {
  .listing-details-container {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .listing-info-column,
  .listing-media-column {
    padding: 0;
  }
}

.listing-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--ln-border);
}

.listing-section:last-child {
  border-bottom: none;
}

.listing-section h3 {
  margin-bottom: var(--space-3);
  color: var(--ln-primary);
  font-size: var(--font-size-h3);
  font-weight: 600;
}

.detail-grid {
  display: grid;
  gap: var(--space-2);
}

.detail-grid p {
  margin: var(--space-2) 0;
  line-height: 1.6;
}

.negotiable-badge {
  background: var(--ln-accent);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.amenity-tag {
  background: var(--ln-bg);
  border: 1px solid var(--ln-border);
  color: var(--ln-text);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.photo-gallery {
  margin-bottom: var(--space-5);
}

.main-photo-container {
  border-radius: 8px;
  overflow: hidden;
}

.thumbnail {
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.thumbnail:hover,
.thumbnail.active-thumb {
  border-color: var(--ln-primary);
}
/* -------------------------------------------------------------------- */

/* Responsive container paddings */
@media (min-width: 768px) {
  .container {
    padding-left: var(--space-5); /* 24px */
    padding-right: var(--space-5);
  }
  .listings-container {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
}

@media (min-width: 1200px) {
  .container {
    padding-left: var(--space-6); /* 32px */
    padding-right: var(--space-6);
  }
  .listings-container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* Increase inner column padding */
.listing-info-column {
  padding-right: var(--space-6);
}

.listing-media-column {
  padding-left: var(--space-6);
}

/* Side-by-side listings layout (sidebar + grid) */
@media (min-width: 768px) {
  .listings-container.user-with-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-areas:
      "header header"
      "sidebar content";
    gap: 2rem;
    align-items: flex-start;
  }

  .listings-container.user-with-sidebar h1 {
    grid-area: header;
    margin-top: 0; /* tidy header spacing */
  }

  .filter-form-wrapper {
    grid-area: sidebar;
    margin-bottom: 0; /* no extra space below once in grid */
  }

  .listings-grid {
    grid-area: content;
    margin-left: 0; /* reset any previous offset */
  }
}

/* Revert to stacked flow on small screens */
@media (max-width: 767px) {
  .listings-container.user-with-sidebar {
    display: block;
  }

  .filter-form-wrapper {
    position: static;
    width: 100%;
    margin-bottom: 1.5rem;
  }
}
