/* Properties Map Styles - Westcord Commercial */

/* ========================================
   Override Squarespace Content Area
   ======================================== */

/* Target only the properties page content area */
.collection-properties #page-6875f3e74e6abb595118e303,
.collection-properties #block-6875f3e74e6abb595118e304,
.collection-properties #block-6875f3e74e6abb595118e304 > .sqs-block-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove any bottom padding/margin from main content on properties page */
.collection-properties #content {
  padding-bottom: 0 !important;
}

.collection-properties #page {
  padding-bottom: 0 !important;
}

/* ========================================
   Layout & Container Styles
   ======================================== */

.properties-container {
  display: flex;
  flex-direction: column;
  background-color: #191e29;
}

/* Filter Bar */
.properties-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 30px;
  background-color: #191e29;
  border-bottom: 1px solid #2a3140;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.filter-group {
  position: relative;
}

.filter-group label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aab0c0;
  margin-bottom: 4px;
  font-weight: 600;
}

.filter-group select {
  appearance: none;
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  color: #191e29;
  padding: 10px 35px 10px 15px;
  font-size: 13px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  cursor: pointer;
  min-width: 160px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23AB8E5B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border-radius: 4px;
}

.filter-group select:hover {
  border-color: #AB8E5B;
  box-shadow: 0 2px 4px rgba(171, 142, 91, 0.1);
}

.filter-group select:focus {
  outline: none;
  border-color: #AB8E5B;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(171, 142, 91, 0.1);
}

/* Search Input */
.filter-search {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  color: #191e29;
  padding: 10px 15px 10px 38px;
  font-size: 13px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  border-radius: 4px;
}

.search-input-wrapper input::placeholder {
  color: #999;
}

.search-input-wrapper input:hover {
  border-color: #AB8E5B;
  box-shadow: 0 2px 4px rgba(171, 142, 91, 0.1);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: #AB8E5B;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(171, 142, 91, 0.1);
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #666;
  pointer-events: none;
}

.search-input-wrapper input:focus + .search-icon {
  color: #AB8E5B;
}

.filter-reset-btn {
  background: transparent;
  border: 1px solid #AB8E5B;
  color: #AB8E5B;
  padding: 10px 20px;
  font-size: 12px;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.filter-reset-btn:hover {
  background-color: #AB8E5B;
  color: #ffffff;
}

.results-count {
  color: #aab0c0;
  font-size: 13px;
  margin-left: 15px;
  font-weight: 500;
}

/* Split View Layout */
.properties-split-view {
  display: flex;
  height: 700px;
}

/* Listings Panel */
.properties-listings-panel {
  width: 40%;
  min-width: 380px;
  max-width: 500px;
  height: 700px;
  overflow-y: auto;
  background-color: #191e29;
  border-right: 1px solid #2a3140;
}

.listings-header {
  padding: 15px 20px;
  background-color: #191e29;
  border-bottom: 1px solid #2a3140;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.listings-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #AB8E5B;
}

.listings-scroll {
  padding: 15px;
}

/* Property Cards */
.property-card {
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.property-card:hover {
  border-color: #AB8E5B;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(171, 142, 91, 0.2);
}

.property-card.active {
  border-color: #AB8E5B;
  box-shadow: 0 0 0 2px rgba(171, 142, 91, 0.3);
}

.property-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f5f5f5;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-card-image img {
  transform: scale(1.05);
}

/* Card Gallery Navigation */
.card-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
  z-index: 5;
}

.property-card:hover .card-gallery-nav {
  opacity: 1;
}

.card-gallery-nav:hover {
  background-color: #AB8E5B;
  color: #ffffff;
  border-color: #AB8E5B;
}

.card-gallery-nav svg {
  width: 20px;
  height: 20px;
}

.card-gallery-prev {
  left: 8px;
}

.card-gallery-next {
  right: 8px;
}

.card-gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  z-index: 5;
}

.property-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.property-badge {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-asset-type {
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  backdrop-filter: blur(4px);
}

.badge-transaction {
  background-color: #AB8E5B;
  color: #ffffff;
}

.badge-transaction.badge-sale {
  background-color: #3498db;
  color: #fff;
}

.badge-status {
  background-color: #2ecc71;
  color: #fff;
}

.badge-status.pending {
  background-color: #f39c12;
}

.badge-status.leased,
.badge-status.sold {
  background-color: #e74c3c;
}

.property-card-content {
  padding: 15px;
}

.property-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.property-card-address {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px 0;
}

.property-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 12px;
  border-top: 1px solid #d0d0d0;
}

.property-detail {
  display: flex;
  flex-direction: column;
}

.property-detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 2px;
  font-weight: 600;
}

.property-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #AB8E5B;
}

.property-card-broker {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #d0d0d0;
  font-size: 12px;
  color: #666;
}

.property-card-broker strong {
  color: #1a1a1a;
  font-weight: 500;
}

/* Map Panel */
.properties-map-panel {
  flex: 1;
  position: relative;
  height: 700px;
}

#propertiesMap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Custom Map Info Window */
.map-info-window {
  max-width: 280px;
  font-family: 'Raleway', sans-serif;
}

.map-info-window h4 {
  margin: 0 0 5px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.map-info-window p {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #666;
}

.map-info-window .info-details {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.map-info-window .info-detail {
  font-size: 11px;
}

.map-info-window .info-detail span {
  display: block;
  font-weight: 600;
  color: #AB8E5B;
}

.map-info-window .view-details-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #AB8E5B;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.map-info-window .view-details-btn:hover {
  background-color: #8f7749;
}

/* Hide the mobile view toggle on desktop; mobile rules in the @media
   blocks below flip display:flex on. */
.mobile-view-toggle {
  display: none;
}

/* Hide the mobile filter-collapse toggle on desktop; the @media
   (max-width: 768px) block flips it on and collapses the filter bar
   into the toggle on phones only. */
.mobile-filter-toggle {
  display: none;
}

/* ========================================
   Property Detail Modal
   ======================================== */

.property-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.property-modal.active {
  display: flex;
}

.property-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.property-modal-content {
  position: relative;
  background-color: #f5f5f7;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: modalSlideIn 0.3s ease;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.property-modal-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: #666;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.property-modal-close:hover {
  background-color: #AB8E5B;
  color: #ffffff;
  border-color: #AB8E5B;
}

/* Prev / Next navigation between properties (siblings of the content panel,
   positioned on the viewport edges so they don't overlap the modal panel
   itself on desktop). */
.property-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid #d0d0d0;
  color: #333;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s;
  padding: 0;
  font-family: inherit;
}
.property-modal-nav:hover {
  background-color: #AB8E5B;
  color: #ffffff;
  border-color: #AB8E5B;
}
.property-modal-nav:focus-visible {
  outline: 2px solid #AB8E5B;
  outline-offset: 2px;
}
.property-modal-nav-prev { left: 30px; }
.property-modal-nav-next { right: 30px; }

/* If only one building matches the current filter, no point in showing
   the arrows — JS toggles this class. */
.property-modal-nav.hidden { display: none; }

/* Tighter spacing on smaller desktops/tablets where the modal occupies
   more of the viewport (modal is max-width: 900px, width: 90%). */
@media (max-width: 1100px) {
  .property-modal-nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .property-modal-nav-prev { left: 8px; }
  .property-modal-nav-next { right: 8px; }
}

/* Hide on phones — they overlap the modal content at narrow widths and
   touch-swipe would be the natural pattern there. Users can still close
   the modal and tap another property card. */
@media (max-width: 600px) {
  .property-modal-nav { display: none; }
}

.property-modal-image {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 8px 8px 0 0;
}

.property-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-modal-badges {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.property-modal-body {
  padding: 30px;
}

.property-modal-body h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.modal-address {
  color: #666;
  font-size: 15px;
  margin: 0 0 25px 0;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
}

.modal-detail {
  display: flex;
  flex-direction: column;
}

.modal-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 5px;
  font-weight: 600;
}

.modal-detail-value {
  font-size: 18px;
  font-weight: 600;
  color: #AB8E5B;
}

.modal-description {
  padding: 25px 0;
  border-bottom: 1px solid #d0d0d0;
}

.modal-description h4 {
  margin: 0 0 10px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  font-weight: 600;
}

.modal-description p {
  margin: 0;
  color: #666;
  line-height: 1.7;
  font-size: 14px;
}

.modal-broker {
  padding: 25px 0;
}

.modal-broker h4 {
  margin: 0 0 10px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  font-weight: 600;
}

.modal-broker p {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.modal-contact-btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: #AB8E5B;
  color: #fff !important;
  border: none;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-contact-btn:hover {
  background-color: #c9a96a;
  color: #fff !important;
}

.modal-map-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: #333;
  font-size: 13px;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-map-btn:hover {
  border-color: #AB8E5B;
  color: #AB8E5B;
  background-color: rgba(171, 142, 91, 0.05);
  box-shadow: 0 2px 4px rgba(171, 142, 91, 0.1);
}

/* Modal tablet sizing - better fit on smaller tablets */
@media (max-width: 768px) {
  .property-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .property-modal-image {
    height: 250px;
  }

  .property-modal-body {
    padding: 25px;
  }
}

@media (max-width: 600px) {
  .property-modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
  }

  .property-modal-image {
    height: 200px;
  }

  .property-modal-body {
    padding: 20px;
  }

  .property-modal-body h2 {
    font-size: 20px;
  }

  .modal-details-grid {
    gap: 15px;
  }

  .modal-detail-value {
    font-size: 16px;
  }

  /* Table horizontal scroll on small screens */
  .spaces-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .spaces-table {
    min-width: 400px;
  }
}

/* Loading State */
.properties-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #aab0c0;
}

.properties-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #3a4255;
  border-top-color: #AB8E5B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 60px 30px;
  color: #aab0c0;
}

.no-results h4 {
  color: #e5e7eb;
  margin-bottom: 10px;
  font-weight: 600;
}

.no-results p {
  margin-bottom: 20px;
  color: #aab0c0;
}

/* ========================================
   Mobile Responsive Styles
   ======================================== */

/* Laptop screens - search bar on its own row */
@media (max-width: 1600px) {
  .filter-search {
    flex: 1 1 100%;
    max-width: none;
    min-width: auto;
    order: -1;
    margin-bottom: 4px;
  }
}

@media (max-width: 1024px) {
  .properties-listings-panel {
    width: 45%;
    min-width: 320px;
  }
}

/* Tablet intermediate - better layout between desktop and mobile */
@media (max-width: 900px) {
  .properties-listings-panel {
    width: 40%;
    min-width: 280px;
  }

  .properties-map-panel {
    width: 60%;
  }

  /* Slightly reduce map height for better fit */
  .properties-split-view {
    height: 600px;
  }

  #propertiesMap {
    height: 100%;
  }
}

@media (max-width: 768px) {
  /* Collapsed-filters toggle button — visible on mobile only.
     Sits above the filter bar; tapping it expands/collapses the
     filter bar. Filter bar defaults to collapsed so users land
     directly on the property listings.
     Sized as an inline pill (auto-width, gold-outlined) rather than
     a full-bleed button, so it reads as a UI control distinct from
     the LIST/MAP segmented toggle below it. */
  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    margin: 16px 12px 14px 12px;
    padding: 11px 22px;
    background: transparent;
    color: #AB8E5B;
    border: 1.5px solid #AB8E5B;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 40px;
    box-sizing: border-box;
    align-self: flex-start;
  }
  .mobile-filter-toggle:active {
    background: rgba(171, 142, 91, 0.12);
  }
  .mobile-filter-toggle-chevron {
    transition: transform 0.2s ease;
  }
  .mobile-filter-toggle[aria-expanded="true"] .mobile-filter-toggle-chevron {
    transform: rotate(180deg);
  }
  .mobile-filter-toggle[aria-expanded="true"] {
    background: #AB8E5B;
    color: #fff;
    border-color: #AB8E5B;
  }
  /* When expanded the filter bar appears directly below; tighten
     the toggle's bottom margin so it visually groups with the
     expanded panel instead of floating between sections. */
  .mobile-filter-toggle[aria-expanded="true"] {
    margin-bottom: 8px;
  }

  /* Filter bar is hidden by default on mobile. Becomes visible when
     the toggle is expanded (JS adds .is-expanded). Use flex (not
     block) when shown so the existing wrap layout still works. */
  .properties-filter-bar {
    display: none;
  }
  .properties-filter-bar.is-expanded {
    display: flex;
  }

  .properties-split-view {
    flex-direction: column;
    height: auto;
  }

  .properties-listings-panel {
    width: 100%;
    max-width: none;
    min-width: auto;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #d0d0d0;
    order: 2;
  }

  .properties-map-panel {
    width: 100%;
    height: 350px;
    order: 1;
  }

  #propertiesMap {
    height: 350px;
  }

  /* Mobile view toggle (Zillow-style) — defaults to LIST view on phones,
     hiding the map; user can flip to MAP via the toggle. */
  .mobile-view-toggle {
    display: flex;
    gap: 0;
    margin: 0 12px 12px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }
  .mobile-view-toggle-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    font-family: inherit;
  }
  .mobile-view-toggle-btn.is-active {
    background-color: #AB8E5B;
    color: #fff;
  }
  .mobile-view-toggle-btn:not(.is-active):hover {
    background-color: #f5f5f5;
  }

  /* Default state on mobile: list mode (map hidden). The map panel
     becomes visible only when .view-mode-map is on the split view. */
  .properties-split-view:not(.view-mode-map) .properties-map-panel {
    display: none;
  }
  .properties-split-view.view-mode-map .properties-listings-panel {
    display: none;
  }
  .properties-split-view.view-mode-map .properties-map-panel {
    display: block;
    height: calc(100vh - 220px);
    min-height: 400px;
    order: 1;
  }
  .properties-split-view.view-mode-map #propertiesMap {
    height: 100% !important;
  }

  .properties-filter-bar {
    padding: 15px;
    gap: 10px;
  }

  .filter-group {
    flex: 1 1 calc(50% - 5px);
  }

  .filter-search {
    flex: 1 1 100%;
    max-width: none;
  }

  .filter-group select {
    width: 100%;
    min-width: auto;
    padding: 12px 35px 12px 15px; /* Larger touch targets */
  }

  /* Larger touch targets for filter dropdowns */
  .multiselect-selected {
    padding: 12px 35px 12px 15px;
    min-height: 44px;
  }

  .multiselect-option {
    padding: 12px 15px;
  }

  /* Larger search input touch target */
  .search-input-wrapper input {
    padding: 12px 15px 12px 40px;
    min-height: 44px;
  }

  .filter-reset-btn {
    margin-left: 0;
    flex: 1 1 100%;
    margin-top: 5px;
    padding: 12px 20px; /* Larger touch target */
    min-height: 44px;
  }

  .results-count {
    flex: 1 1 100%;
    margin-left: 0;
    text-align: center;
  }

  .property-card-image {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .filter-group {
    flex: 1 1 100%;
  }

  .property-card-details {
    gap: 10px;
  }

  .property-detail {
    flex: 1 1 calc(50% - 5px);
  }
}

/* ========================================
   Map Marker Styles (via JavaScript)
   ======================================== */

/* Custom marker label styles applied via Maps API */
.custom-marker {
  background-color: #AB8E5B;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.custom-marker:hover,
.custom-marker.active {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(171, 142, 91, 0.4);
}

/* Cluster styles */
.cluster-marker {
  background-color: #f5f5f7;
  border: 2px solid #AB8E5B;
  color: #AB8E5B;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Animation & Transitions
   ======================================== */

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar Styling */
.properties-listings-panel::-webkit-scrollbar,
.listings-scroll::-webkit-scrollbar {
  width: 8px;
}

.properties-listings-panel::-webkit-scrollbar-track,
.listings-scroll::-webkit-scrollbar-track {
  background: #191e29;
}

.properties-listings-panel::-webkit-scrollbar-thumb,
.listings-scroll::-webkit-scrollbar-thumb {
  background-color: #3a4255;
  border-radius: 4px;
}

.properties-listings-panel::-webkit-scrollbar-thumb:hover,
.listings-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #AB8E5B;
}

/* ========================================
   Building Card - Spaces Count
   ======================================== */

.property-card-spaces {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #d0d0d0;
}

.spaces-count {
  font-size: 13px;
  color: #AB8E5B;
  font-weight: 500;
}

.spaces-count.sale-label {
  color: #3498db;
  font-weight: 600;
}

/* ========================================
   Modal - Spaces Table
   ======================================== */

.modal-spaces-section {
  margin-top: 20px;
}

.modal-spaces-section h4 {
  margin: 0 0 15px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #AB8E5B;
}

.spaces-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spaces-table th {
  text-align: left;
  padding: 10px 12px;
  background: linear-gradient(135deg, #2a3545 0%, #323d4f 100%);
  color: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(171, 142, 91, 0.2);
}
}

.spaces-table td {
  padding: 12px;
  border-bottom: 1px solid #d0d0d0;
  color: #191e29 !important;
  background-color: transparent;
}

.spaces-table tbody td {
  color: #191e29 !important;
}

.spaces-table tr td {
  color: #191e29 !important;
}

.spaces-table tr:last-child td {
  border-bottom: none;
}

.spaces-table tr:hover {
  background-color: rgba(171, 142, 91, 0.1);
}

.spaces-table tr.space-unavailable {
  opacity: 0.5;
}

.spaces-table tr.space-unavailable td {
  color: #999;
}

/* Space Images Button */
.space-images-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 3px 8px;
  margin-left: 8px;
  cursor: pointer;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
  vertical-align: middle;
}

.space-images-btn:hover {
  border-color: #AB8E5B;
  color: #AB8E5B;
  background: rgba(171, 142, 91, 0.05);
}

.space-images-btn svg {
  flex-shrink: 0;
}

/* Space Images Expandable Row */
.space-images-row td {
  padding: 8px 12px 16px !important;
  border-bottom: 1px solid #d0d0d0;
  background-color: #fafafa !important;
}

.space-images-row:hover,
.space-images-row:hover td {
  background-color: #fafafa !important;
}

/* Space Gallery */
.space-gallery {
  background: #eeeef0;
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
}

.space-gallery-main {
  position: relative;
  text-align: center;
  border-radius: 4px;
  overflow: hidden;
  background: #e4e4e6;
}

.space-gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.space-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  color: #fff !important;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.space-gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.space-gallery-prev { left: 8px; }
.space-gallery-next { right: 8px; }

.space-gallery-nav svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.space-gallery-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  color: #fff !important;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.4;
}

.space-gallery-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.space-thumb {
  width: 56px;
  height: 42px;
  min-width: 56px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.2s;
  background: #ddd;
}

.space-thumb.active {
  border-color: #AB8E5B;
}

.space-thumb:hover {
  border-color: #AB8E5B;
}

.space-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Space Status Badges */
.space-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.space-status.status-available {
  background-color: rgba(76, 175, 80, 0.2);
  color: #81c784;
}

.space-status.status-vacant {
  background-color: rgba(76, 175, 80, 0.2);
  color: #81c784;
}

.space-status.status-pending {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffd54f;
}

.space-status.status-leased {
  background-color: rgba(244, 67, 54, 0.2);
  color: #e57373;
}

.space-status.status-other {
  background-color: rgba(158, 158, 158, 0.2);
  color: #bdbdbd;
}

/* Modal description section adjustment for spaces */
.modal-description {
  max-height: 300px;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .spaces-table {
    font-size: 12px;
  }

  .spaces-table th,
  .spaces-table td {
    padding: 8px 6px;
  }

  .spaces-table th:first-child,
  .spaces-table td:first-child {
    min-width: 60px;
  }

  .space-gallery-main img {
    max-height: 250px;
  }

  .space-gallery-nav {
    width: 28px;
    height: 28px;
  }

  .space-gallery-nav svg {
    width: 14px;
    height: 14px;
  }

  .space-thumb {
    width: 44px;
    height: 33px;
    min-width: 44px;
  }
}

/* ========================================
   Multi-Select Dropdown Filters
   ======================================== */

.filter-multiselect {
  position: relative;
}

.multiselect-dropdown {
  position: relative;
  min-width: 180px;
}

/* Wider dropdown for brokers */
#filterBroker.multiselect-dropdown {
  min-width: 200px;
}

.multiselect-selected {
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  color: #191e29;
  padding: 10px 35px 10px 15px;
  font-size: 13px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23AB8E5B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
}

.multiselect-dropdown:hover .multiselect-selected {
  border-color: #AB8E5B;
  box-shadow: 0 2px 4px rgba(171, 142, 91, 0.1);
}

.multiselect-dropdown.open .multiselect-selected {
  border-color: #AB8E5B;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(171, 142, 91, 0.1);
}

.multiselect-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0 0 4px 4px;
}

.multiselect-dropdown.open .multiselect-options {
  display: block;
}

.multiselect-option {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.15s;
  font-size: 13px;
  color: #191e29 !important;
  font-weight: 500;
  white-space: nowrap;
}

.multiselect-option:hover {
  background-color: #e8e9eb;
}

.multiselect-option input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #AB8E5B;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.multiselect-option.selected {
  background-color: rgba(171, 142, 91, 0.1);
}

/* Scrollbar for multiselect options */
.multiselect-options::-webkit-scrollbar {
  width: 6px;
}

.multiselect-options::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.multiselect-options::-webkit-scrollbar-thumb {
  background-color: #d0d0d0;
  border-radius: 3px;
}

.multiselect-options::-webkit-scrollbar-thumb:hover {
  background-color: #AB8E5B;
}

/* ========================================
   Range Input Filters
   ======================================== */

.filter-range {
  min-width: 180px;
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-inputs input[type="number"] {
  width: 70px;
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  color: #191e29;
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  border-radius: 4px;
}

.range-inputs input[type="number"]:hover {
  border-color: #AB8E5B;
  box-shadow: 0 2px 4px rgba(171, 142, 91, 0.1);
}

.range-inputs input[type="number"]:focus {
  outline: none;
  border-color: #AB8E5B;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(171, 142, 91, 0.1);
}

.range-inputs input[type="number"]::placeholder {
  color: #999;
}

/* Hide number input spinners */
.range-inputs input[type="number"]::-webkit-outer-spin-button,
.range-inputs input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.range-inputs input[type="number"] {
  -moz-appearance: textfield;
}

.range-separator {
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

/* ========================================
   Image Gallery Styles
   ======================================== */

.property-modal-gallery {
  position: relative;
  background-color: #f5f5f5;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f5f5f5;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  color: #333;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background-color: #AB8E5B;
  color: #ffffff;
  border-color: #AB8E5B;
}

.gallery-prev {
  left: 15px;
}

.gallery-next {
  right: 15px;
}

.gallery-nav.hidden {
  display: none;
}

.gallery-thumbnails {
  display: flex;
  gap: 5px;
  padding: 10px;
  background-color: #f5f5f5;
  overflow-x: auto;
}

.gallery-thumbnail {
  width: 60px;
  height: 45px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}

.gallery-thumbnail:hover {
  opacity: 0.8;
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: #AB8E5B;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnails:empty {
  display: none;
}

/* ========================================
   Modal Header & Badges
   ======================================== */

.modal-header {
  margin-bottom: 20px;
}

.modal-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.modal-badges .property-badge {
  font-size: 11px;
  padding: 5px 12px;
}

/* ========================================
   Modal Description Section
   ======================================== */

.modal-description {
  padding-bottom: 20px;
  border-bottom: 1px solid #d0d0d0;
  margin-bottom: 20px;
}

.modal-description h4 {
  margin: 0 0 12px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #AB8E5B;
  font-weight: 600;
}

.modal-description p {
  margin: 0;
  color: #666;
  line-height: 1.7;
  font-size: 14px;
}

/* Multi-paragraph + bulleted property descriptions. The renderer in
   properties-map.js converts plain-text descriptions into <p> + <ul>
   blocks; these rules give them readable spacing. */
.modal-description p + p,
.modal-description p + ul,
.modal-description ul + p {
  margin-top: 0.9em;
}
.modal-description ul {
  margin: 0;
  padding-left: 1.4em;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  list-style: disc;
}
.modal-description li {
  margin-bottom: 0.25em;
}

/* ========================================
   Modal Sale Details Section
   ======================================== */

.modal-sale-details {
  padding-bottom: 20px;
  border-bottom: 1px solid #d0d0d0;
  margin-bottom: 20px;
}

.modal-sale-details h4 {
  margin: 0 0 15px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #AB8E5B;
  font-weight: 600;
}

.sale-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 15px;
}

.sale-detail-item {
  display: flex;
  flex-direction: column;
}

.sale-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 5px;
  font-weight: 600;
}

.sale-detail-value {
  font-size: 18px;
  font-weight: 600;
  color: #AB8E5B;
}

.rent-roll-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: #191e29;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 15px;
}

.rent-roll-link:hover {
  border-color: #AB8E5B;
  color: #AB8E5B;
  background-color: rgba(171, 142, 91, 0.05);
  box-shadow: 0 2px 4px rgba(171, 142, 91, 0.1);
}

.rent-roll-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ========================================
   Modal Availabilities Section
   ======================================== */

.modal-availabilities {
  padding-bottom: 20px;
  border-bottom: 1px solid #d0d0d0;
  margin-bottom: 20px;
}

.modal-availabilities h4 {
  margin: 0 0 15px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #AB8E5B;
}

.modal-availabilities p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* ========================================
   Modal Brochures Section
   ======================================== */

.modal-brochures {
  padding-bottom: 20px;
  border-bottom: 1px solid #d0d0d0;
  margin-bottom: 20px;
}

.modal-brochures h4 {
  margin: 0 0 12px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #AB8E5B;
}

.brochure-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brochure-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.brochure-link:hover {
  border-color: #AB8E5B;
  color: #AB8E5B;
  background-color: rgba(171, 142, 91, 0.05);
  box-shadow: 0 2px 4px rgba(171, 142, 91, 0.1);
}

.brochure-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.modal-brochures:empty,
.modal-brochures.hidden {
  display: none;
}

/* ========================================
   Modal Brokers Section
   ======================================== */

.modal-brokers {
  padding-bottom: 20px;
}

.modal-brokers h4 {
  margin: 0 0 15px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #AB8E5B;
}

.brokers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.broker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

.broker-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}

.broker-photo {
  width: 100%;
  aspect-ratio: 500 / 575;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #2a3140;
  border: none;
}

.broker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.broker-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #AB8E5B;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 24px;
}

.broker-info {
  min-width: 0;
}

.broker-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.broker-title {
  font-size: 11px;
  color: #666;
  margin: 0;
}

.broker-link {
  color: #AB8E5B;
  text-decoration: none;
  font-size: 11px;
  display: inline-block;
  margin-top: 4px;
}

.broker-link:hover {
  text-decoration: underline;
}

/* ========================================
   Map Info Window with Image
   ======================================== */

.map-info-window-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 2px;
}

/* ========================================
   Mobile Responsive Updates
   ======================================== */

@media (max-width: 768px) {
  .filter-multiselect,
  .filter-range {
    flex: 1 1 calc(50% - 5px);
  }

  .multiselect-dropdown {
    width: 100%;
    min-width: auto;
  }

  .range-inputs input[type="number"] {
    width: 100%;
    flex: 1;
  }

  .gallery-main {
    aspect-ratio: 16 / 9;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .brokers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .filter-multiselect,
  .filter-range {
    flex: 1 1 100%;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .gallery-thumbnail {
    width: 50px;
    height: 38px;
  }
}

/* ========================================
   Property Inquiry Modal
   ======================================== */

.inquiry-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.inquiry-modal.active {
  display: flex;
}

.inquiry-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.inquiry-modal-content {
  position: relative;
  background-color: #f5f5f7;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.inquiry-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.inquiry-modal-close:hover {
  background: #AB8E5B;
  color: #ffffff;
  border-color: #AB8E5B;
}

.inquiry-modal-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #d0d0d0;
}

.inquiry-modal-header h2 {
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 15px 0;
  font-family: 'Raleway', sans-serif;
}

.inquiry-property-name {
  color: #AB8E5B;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.inquiry-property-address {
  color: #999;
  font-size: 14px;
  margin: 0;
}

.inquiry-form {
  padding: 25px 30px 30px;
}

.inquiry-form-group {
  margin-bottom: 20px;
}

.inquiry-form-group label {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.inquiry-form-group label .required {
  color: #AB8E5B;
}

.inquiry-form-group input,
.inquiry-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: #f5f5f7;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: #333;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.inquiry-form-group input:hover,
.inquiry-form-group textarea:hover {
  border-color: #AB8E5B;
}

.inquiry-form-group input:focus,
.inquiry-form-group textarea:focus {
  outline: none;
  border-color: #AB8E5B;
  box-shadow: 0 0 0 3px rgba(171, 142, 91, 0.15);
}

.inquiry-form-group input::placeholder,
.inquiry-form-group textarea::placeholder {
  color: #999;
}

.inquiry-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.inquiry-form-row {
  display: flex;
  gap: 15px;
}

.inquiry-form-row .inquiry-form-group {
  flex: 1;
}

.inquiry-form-footer {
  margin-top: 25px;
}

.inquiry-privacy {
  color: #999;
  font-size: 12px;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.inquiry-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background-color: #AB8E5B;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.inquiry-submit-btn:hover {
  background-color: #9a7d4e;
}

.inquiry-submit-btn:active {
  transform: scale(0.98);
}

.inquiry-submit-btn:disabled {
  background-color: #666;
  cursor: not-allowed;
}

.inquiry-submit-btn .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Success State */
.inquiry-success,
.inquiry-error {
  padding: 50px 30px;
  text-align: center;
}

.success-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(76, 175, 80, 0.15);
  border: 2px solid #4CAF50;
  border-radius: 50%;
  color: #4CAF50;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.error-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(244, 67, 54, 0.15);
  border: 2px solid #F44336;
  border-radius: 50%;
  color: #F44336;
  font-size: 36px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.inquiry-success h3,
.inquiry-error h3 {
  color: #1a1a1a;
  font-size: 20px;
  margin: 0 0 10px 0;
}

.inquiry-success p,
.inquiry-error p {
  color: #666;
  font-size: 14px;
  margin: 0 0 25px 0;
  line-height: 1.6;
}

.inquiry-error p a {
  color: #AB8E5B;
}

.inquiry-close-btn,
.inquiry-retry-btn {
  padding: 12px 30px;
  background-color: transparent;
  border: 1px solid #AB8E5B;
  border-radius: 4px;
  color: #AB8E5B;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.inquiry-close-btn:hover,
.inquiry-retry-btn:hover {
  background-color: #AB8E5B;
  color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
  .inquiry-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .inquiry-modal-header,
  .inquiry-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .inquiry-form-row {
    flex-direction: column;
    gap: 0;
  }

  .inquiry-modal-header h2 {
    font-size: 20px;
    padding-right: 30px;
  }
}
