/* Frontend styles for Propex */
/* Ensure theme compatibility */
.propex-main * {
  box-sizing: border-box;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.propex-main { 
  background: #fafafa; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
}
.propex-listings-fullwidth,
.propex-single-fullwidth { 
  background: #f8f9fa; 
  min-height: 100vh; 
  padding: 0;
}
.propex-hero { background: radial-gradient(1200px 600px at 10% 0%, #eef4ff 10%, #fff 60%); padding: 48px 0 24px; }
.propex-hero h1 { font-size: 40px; margin: 0 0 8px; }
/* Top Filter Bar */
.propex-filter-bar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.propex-filters-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.filter-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-dropdown {
  position: relative;
}

.filter-select {
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  min-width: 100px;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 8px;
  padding-right: 32px;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input-bar {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.search-input-bar:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.price-dropdown {
  position: relative;
}

.price-trigger {
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  min-width: 300px;
  z-index: 10;
  display: none;
}
.price-dropdown.open .price-dropdown-content{ display:block; }

.price-inputs-horizontal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-input-inline {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  width: 120px;
}

.price-to {
  color: #6b7280;
  font-size: 14px;
}

/* Dual range slider */
.price-slider{min-width:320px;margin-bottom:10px}
.dual-range{position:relative;height:32px;margin:6px 0}
.dual-range input[type=range]{position:absolute;left:0;right:0;top:0;width:100%;pointer-events:none;-webkit-appearance:none;background:transparent;height:32px}
.dual-range input[type=range]::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;height:16px;width:16px;border-radius:50%;background:#111827;border:2px solid #fff;box-shadow:0 0 0 1px #111827;cursor:pointer}
.dual-range input[type=range]::-moz-range-thumb{pointer-events:auto;height:16px;width:16px;border-radius:50%;background:#111827;border:2px solid #fff;box-shadow:0 0 0 1px #111827;cursor:pointer}
.slider-track{position:absolute;left:0;right:0;top:50%;height:4px;transform:translateY(-50%);background:#e5e7eb;border-radius:999px}
.range-values{display:flex;justify-content:space-between;font-size:12px;color:#111827}

.filters-btn,
.save-search-btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.filters-btn {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #374151;
}

.filters-btn:hover {
  background: #f3f4f6;
}

.save-search-btn {
  background: #1f2937;
  border: 1px solid #1f2937;
  color: white;
}

.save-search-btn:hover {
  background: #111827;
}

.propex-main-fullwidth {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.results-bar-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}

.results-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.results-count {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: white;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid #e5e7eb;
}

.view-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.view-btn.active,
.view-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.view-btn.active {
  background: #1f2937;
  color: white;
}

.sort-select-horizontal {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  color: #374151;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 8px;
  padding-right: 32px;
  min-width: 160px;
}

.sort-select-horizontal:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.propex-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  padding: 0;
}

.propex-grid.grid-view {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media(max-width: 1200px){ 
  .propex-grid{ 
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  } 
}

@media(max-width: 900px){ 
  .propex-grid{ 
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  } 
}

@media(max-width: 600px){ 
  .propex-grid{ 
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  } 
}

/* List View Styles */
.propex-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.propex-grid.list-view .propex-card-fullwidth {
  display: flex;
  flex-direction: row;
  height: auto;
  max-width: none;
  border-radius: 12px;
  overflow: hidden;
}

.propex-grid.list-view .card-image {
  width: 360px;
  height: 260px;
  flex-shrink: 0;
  position: relative;
}

.propex-grid.list-view .image-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 12px;
  background: none;
}

.propex-grid.list-view .price-tag {
  background: rgba(0, 0, 0, 0.8);
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.propex-grid.list-view .card-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.propex-grid.list-view .property-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; color:#374151; }
.propex-grid.list-view .meta-item{ background:#f3f4f6; border:1px solid #e5e7eb; border-radius:8px; padding:6px 8px; font-size:12px; }

.propex-grid.list-view .card-header {
  margin-bottom: 0;
}

.propex-grid.list-view .property-address {
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.propex-grid.list-view .listing-key {
  font-size: 13px;
  background: #f8f9fa;
  padding: 6px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

.propex-grid.list-view .property-details {
  margin: 0;
  gap: 24px;
  flex-wrap: nowrap;
}

.propex-grid.list-view .detail-item {
  font-size: 15px;
  white-space: nowrap;
}

.propex-grid.list-view .detail-item strong {
  font-size: 16px;
}

.propex-grid.list-view .property-location {
  font-size: 14px;
  margin-top: 8px;
}

.propex-grid.list-view .property-tags {
  margin-top: 8px;
}

.propex-grid.list-view .property-type-tag {
  font-size: 12px;
}

.propex-grid.list-view .transaction-type-tag {
  font-size: 12px;
}

.propex-grid.list-view .status-ribbon {
  top: 16px;
  right: -40px;
}

@media(max-width: 768px) {
  .propex-grid.list-view .propex-card-fullwidth {
    flex-direction: column;
  }
  
  .propex-grid.list-view .card-image {
    width: 100%;
    height: 280px;
  }
  
  .propex-grid.list-view .card-content {
    padding: 20px;
  }
  
  .propex-grid.list-view .property-details {
    flex-wrap: wrap;
    gap: 16px;
  }
}
.propex-card-fullwidth { 
  background: #fff; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 1px 3px rgba(0,0,0,.12); 
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.propex-card-fullwidth:hover { 
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.card-image { 
  display: block; 
  position: relative; 
  width: 100%; 
  height: 200px;
  background-size: cover; 
  background-position: center; 
  overflow: hidden;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
}

.price-tag { 
  background: rgba(0, 0, 0, 0.8); 
  color: #fff; 
  padding: 6px 12px; 
  border-radius: 6px; 
  font-weight: 600; 
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.status-ribbon {
  position: absolute;
  top: 8px;
  right: -35px;
  background: #ef4444;
  color: white;
  padding: 6px 45px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transform: rotate(45deg);
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.status-ribbon.active {
  background: #10b981;
}

.status-ribbon.new {
  background: #10b981;
}

.status-ribbon.price-change {
  background: #f59e0b;
}

.status-ribbon.pending {
  background: #8b5cf6;
}

.status-ribbon.sold {
  background: #6b7280;
}

.status-ribbon.off-market {
  background: #dc2626;
}

.status-ribbon.withdrawn {
  background: #9ca3af;
}

.status-ribbon.expired {
  background: #7c2d12;
}

.card-content { 
  padding: 16px; 
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.property-address { 
  margin: 0; 
  font-size: 16px; 
  line-height: 1.3; 
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.property-address a { 
  text-decoration: none; 
  color: inherit;
  transition: color 0.2s ease;
}

.property-address a:hover {
  color: #2563eb;
}

.listing-key {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.property-details { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  margin: 8px 0;
}

.detail-item { 
  color: #6b7280; 
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.detail-item strong {
  color: #374151;
  font-weight: 600;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6b7280;
  font-size: 13px;
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.property-type-tag {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transaction-type-tag {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.chips svg {
  opacity: 0.7;
}

.chip::before {
  display: none;
}

.property-type { 
  background: linear-gradient(135deg, #fef3e2 0%, #fde68a 100%); 
  color: #92400e; 
  border: 1px solid #fbbf24;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  display: inline-block;
  text-align: center;
}

.no-results-fullwidth {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.no-results-icon {
  margin-bottom: 20px;
  opacity: 0.4;
}

.no-results-fullwidth h3 {
  font-size: 20px;
  color: #374151;
  margin: 0 0 8px;
  font-weight: 600;
}

.no-results-fullwidth p {
  font-size: 14px;
  margin: 0;
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.4;
}
/* Modern Pagination */
.propex-pagination-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 60px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.page-link:hover {
  border-color: #667eea;
  color: #667eea;
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.page-link.current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-link.first,
.page-link.last,
.page-link.prev,
.page-link.next {
  padding: 0;
  width: 40px;
}

.page-link svg {
  width: 18px;
  height: 18px;
}

.page-dots {
  color: #9ca3af;
  font-weight: 500;
  padding: 0 8px;
}

.page-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

.per-page-select {
  padding: 6px 10px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  font-size: 12px;
  cursor: pointer;
}

.per-page-select:focus {
  outline: none;
  border-color: #667eea;
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#propex-results {
  position: relative;
  min-height: 400px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .loading-spinner {
  position: static;
  transform: none;
}
.propex-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; padding: 12px 14px; border-radius: 8px; }

/* Modern Single Property Page */
.propex-single-modern { 
  margin: 20px auto 48px auto;
  max-width: 1400px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Back Button Top */
.back-button-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #374151;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.back-button-top:hover {
  background: #4b5563;
  text-decoration: none;
}

.back-button-top svg {
  flex-shrink: 0;
}

/* Old Back Button (remove) */
.back-button-container {
  display: none;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.back-button:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.back-button svg {
  transition: transform 0.3s ease;
}

.back-button:hover svg {
  transform: translateX(-2px);
}

.property-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  color: white;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.property-header-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.property-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: white;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}

.property-header .property-location {
  color: white;
}

.property-header .property-location svg {
  color: white;
}

.property-location svg {
  opacity: 0.8;
}

.price-display {
  text-align: right;
}

.price-value {
  font-size: 36px;
  font-weight: 700;
  display: block;
}

.price-per-sqft {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
  display: block;
}

.property-quick-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-item svg {
  opacity: 0.9;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modern Gallery */
.gallery-modern {
  margin-bottom: 32px;
}

.gallery-main-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gallery-main {
  width: 100%;
  padding-top: 56%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.gallery-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.gallery-thumbs-container {
  margin-top: 16px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.gallery-thumbs .thumb {
  width: 100%;
  padding-top: 75%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-thumbs .thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-thumbs .thumb.active {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Content Grid */
.property-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .property-content-grid {
    grid-template-columns: 1fr;
  }
}

.content-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.section-title svg {
  color: #667eea;
}

.section-content {
  color: #4b5563;
  line-height: 1.7;
}

.section-content.highlights {
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f0ff 100%);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

.details-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.detail-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
  text-align: right;
}

/* Sidebar */
.sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

/* Map card */
.map-card .sidebar-map iframe{
  width:100%;
  height:300px;
  border:0;
  border-radius:12px;
}

.financial-details,
.location-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-map {
  margin-top: 16px;
}

.location-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
}

.financial-item,
.location-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.financial-label,
.location-label {
  font-size: 13px;
  color: #6b7280;
}

.financial-value,
.location-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

.cta-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cta-card .sidebar-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cta-text {
  margin: 0 0 20px;
  opacity: 0.95;
  font-size: 14px;
  color: white;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.btn-cta-primary {
  background: white;
  color: #667eea;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hide common theme blog headers on plugin pages */
body.propex-page .page-title, 
body.propex-page .entry-title, 
body.propex-page .breadcrumbs, 
body.propex-page .site-breadcrumbs,
body.propex-page .page-header,
body.propex-page .rh_page__head,
body.propex-page .rh_page__title { display:none !important; }

/* Hide common blog sidebars/archives on plugin pages */
body.propex-page .sidebar, 
body.propex-page .widget-area, 
body.propex-page aside, 
body.propex-page .archive-sidebar, 
body.propex-page .blog-sidebar { display:none !important; }

/* If Elementor header/footer chosen, hide theme header/footer wrappers */
body.propex-page.has-el-header header, 
body.propex-page.has-el-header .site-header, 
body.propex-page.has-el-header .elementor-location-header { display:none !important; }
body.propex-page.has-el-footer footer, 
body.propex-page.has-el-footer .site-footer, 
body.propex-page.has-el-footer .elementor-location-footer { display:none !important; }

/* ===== SERHANT STYLE TEMPLATE ===== */

/* Base Serhant Styles */
.propex-serhant-style {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #333;
}

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

/* Navigation Bar */
.serhant-nav-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.serhant-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #001A72;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.serhant-back-button:hover {
  color: #0056b3;
  text-decoration: none;
}

.serhant-back-button svg {
  flex-shrink: 0;
}

/* Premium Hero Section */
.serhant-hero-premium {
  background: #ffffff;
  padding: 40px 0 30px;
  border-bottom: 1px solid #e5e7eb;
}

/* Premium Hero Header */
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.hero-address {
  flex: 1;
}

.property-address-premium {
  font-size: 42px;
  font-weight: 300;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.property-location-premium {
  font-size: 18px;
  color: #666;
  font-weight: 400;
}

.hero-price-section {
  text-align: right;
}

.price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 36px;
  font-weight: 600;
  color: #001A72;
  line-height: 1;
  margin-bottom: 6px;
}

.price-detail {
  font-size: 14px;
  color: #666;
}

/* Property Key Details */
.property-key-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #f0f0f0;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  transition: all 0.2s;
}

.detail-card:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  color: #001A72;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
}

.detail-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Enhanced Gallery */
.serhant-gallery {
  padding: 0;
  background: #000;
}

.gallery-wrapper {
  position: relative;
}

.gallery-main-serhant {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.gallery-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.gallery-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.gallery-btn:hover:not(:disabled) {
  background: white;
  transform: scale(1.05);
}

.gallery-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-info {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gallery-counter {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.gallery-expand {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.gallery-expand:hover {
  background: white;
  transform: scale(1.05);
}

/* Gallery Thumbnails */
.gallery-thumbnails {
  background: #000;
  padding: 16px 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.thumbnails-track {
  display: flex;
  gap: 8px;
  padding: 0 20px;
}

.thumbnail {
  flex: 0 0 120px;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: white;
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.thumbnail.active .thumbnail-overlay {
  opacity: 0;
}

.thumbnail:hover .thumbnail-overlay {
  opacity: 0.3;
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-slide {
  display: none;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.modal-slide.active {
  display: block;
}

.modal-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
}

.modal-prev,
.modal-next {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10001;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

body.modal-open {
  overflow: hidden;
}

/* Content Layout */
.serhant-content {
  padding: 60px 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

/* Main Content */
.content-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #001A72;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.section-content {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.overview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.overview-label {
  font-weight: 600;
  color: #333;
}

.overview-value {
  color: #666;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.feature-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.feature-label {
  font-weight: 500;
  color: #333;
}

.feature-value {
  color: #666;
  font-weight: 600;
}

.location-map-serhant iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 12px;
}

/* Sidebar */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.primary-card {
  background: linear-gradient(135deg, #001A72 0%, #0056b3 100%);
  color: white;
  border: none;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.primary-card .sidebar-title {
  color: white;
}

.card-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 24px 0;
}

.tour-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-tour-primary,
.btn-tour-secondary {
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-tour-primary {
  background: white;
  color: #001A72;
}

.btn-tour-primary:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
}

.btn-tour-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-tour-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Premium Mortgage Calculator */
.mortgage-calculator-premium {
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

.sidebar-title-premium {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: -0.025em;
}

.mortgage-form-premium {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-input-group label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.calc-input-group.half {
  display: inline-block;
}

.calc-row:has(.half) {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.prefix {
  position: absolute;
  left: 12px;
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

.calc-input {
  width: 100%;
  padding: 12px 14px 12px 28px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  background: white;
  transition: all 0.2s ease-in-out;
}

.calc-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.calc-input:focus,
.calc-select:focus {
  outline: none;
  border-color: #001A72;
  box-shadow: 0 0 0 3px rgba(0, 26, 114, 0.15);
  transform: translateY(-1px);
}

.down-payment-inputs {
  display: grid;
  grid-template-columns: 1fr 60px 20px;
  gap: 8px;
  align-items: center;
}

.percent-input {
  width: 100%;
  padding: 10px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.suffix {
  color: #999;
  font-size: 14px;
}

.suffix-text {
  position: absolute;
  right: 12px;
  color: #999;
  font-size: 12px;
}

.rate-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.rate-input-wrapper .suffix {
  position: absolute;
  right: 12px;
}

/* Payment Result Section */
.payment-result-premium {
  margin-top: 24px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.monthly-payment-section {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.payment-label-premium {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 12px;
}

.payment-amount-premium {
  font-size: 36px;
  font-weight: 800;
  color: #001A72;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.payment-visual-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.payment-chart-container {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#payment-chart {
  width: 140px;
  height: 140px;
  display: block;
}

.payment-breakdown-compact {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.breakdown-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.breakdown-dot.principal {
  background: #001A72;
}

.breakdown-dot.taxes {
  background: #8B92A8;
}

.breakdown-dot.hoa {
  background: #E5E7EB;
}

.breakdown-label {
  flex: 1;
  color: #666;
}

.breakdown-amount {
  font-weight: 600;
  color: #1a1a1a;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-icon {
  font-size: 12px;
  color: #999;
  cursor: help;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 12px;
  color: #666;
  font-weight: 500;
}

.input-suffix {
  position: absolute;
  right: 12px;
  color: #666;
  font-size: 13px;
}

.money-input {
  padding: 10px 12px 10px 24px !important;
  width: 100%;
}

.percentage-input {
  display: flex;
  align-items: center;
  position: relative;
  width: 80px;
}

.percentage-input input {
  padding: 10px 28px 10px 12px !important;
  width: 100%;
}

.dual-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.slider-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rate-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #e5e7eb 0%, #001A72 50%, #e5e7eb 100%);
  outline: none;
  cursor: pointer;
}

.rate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #001A72;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rate-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #001A72;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-value {
  display: flex;
  align-items: center;
  gap: 4px;
}

.slider-value input {
  width: 60px;
  padding: 6px 8px !important;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  text-align: center;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #001A72;
  box-shadow: 0 0 0 3px rgba(0, 26, 114, 0.1);
}

/* Payment Display */
.payment-display {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.payment-chart {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
}

#payment-chart {
  width: 200px;
  height: 200px;
}

.chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.payment-amount {
  font-size: 28px;
  font-weight: 700;
  color: #001A72;
}

.payment-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.payment-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.breakdown-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.breakdown-item.principal .breakdown-color {
  background: #001A72;
}

.breakdown-item.taxes .breakdown-color {
  background: #8B92A8;
}

.breakdown-item.hoa .breakdown-color {
  background: #E5E7EB;
}

.breakdown-label {
  flex: 1;
  color: #374151;
  font-weight: 600;
  font-size: 13px;
}

.breakdown-value {
  color: #111827;
  font-weight: 700;
  text-align: right;
  font-size: 14px;
}

.btn-reset {
  width: 100%;
  padding: 12px 24px;
  background: white;
  color: #001A72;
  border: 1px solid #001A72;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  margin-top: 16px;
}

.btn-reset:hover {
  background: #001A72;
  color: white;
}

.btn-calculate {
  padding: 14px 24px;
  background: #001A72;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-calculate:hover {
  background: #0056b3;
}

/* Agent Info */
.agent-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.agent-name {
  font-weight: 700;
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.agent-title {
  color: #666;
  font-size: 14px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-contact-primary,
.btn-contact-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-contact-primary {
  background: #001A72;
  color: white;
  border: none;
}

.btn-contact-primary:hover {
  background: #0056b3;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-contact-secondary {
  background: white;
  color: #001A72;
  border: 1px solid #001A72;
}

.btn-contact-secondary:hover {
  background: #f8f9fa;
  text-decoration: none;
}

/* Similar Properties */
.serhant-similar {
  background: #f8f9fa;
  padding: 60px 0;
}

.similar-title {
  font-size: 32px;
  font-weight: 700;
  color: #001A72;
  margin: 0 0 40px 0;
  text-align: center;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.similar-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.similar-image {
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
}

.similar-price {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 26, 114, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

.similar-content {
  padding: 20px;
}

.similar-address {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.similar-address a {
  color: #333;
  text-decoration: none;
}

.similar-address a:hover {
  color: #001A72;
  text-decoration: none;
}

.similar-details {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #666;
}

.similar-details span {
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  
  .hero-price {
    text-align: center;
  }
  
  .property-stats {
    justify-content: center;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .serhant-container {
    padding: 0 16px;
  }
  
  .property-title {
    font-size: 28px;
  }
  
  .price-main {
    font-size: 36px;
  }
  
  .property-stats {
    gap: 24px;
  }
  
  .stat-number {
    font-size: 24px;
  }
  
  .gallery-main-serhant {
    height: 300px;
  }
  
  .overview-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .similar-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-price {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .property-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .sidebar-card {
    padding: 24px;
  }
  
  .serhant-hero {
    padding: 40px 0;
  }
  
  .serhant-content {
    padding: 40px 0;
  }
  
  .serhant-similar {
    padding: 40px 0;
  }
}

/* ===== END SERHANT STYLE ===== */

/* Modern Similar Listings Carousel */
.propex-similar {
  margin: 48px 0;
  padding: 32px 0;
  background: #f9fafb;
  border-radius: 20px;
}

.propex-similar-fullwidth {
  margin: 48px 0 0 0;
  padding: 48px 20px;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.propex-similar-fullwidth .sim-head {
  max-width: 1400px;
  margin: 0 auto 32px auto;
}

.propex-similar-fullwidth .sim-rail {
  max-width: 1400px;
  margin: 0 auto;
}

.sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 16px;
}

.sim-head h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.sim-rail {
  position: relative;
  padding: 0 16px;
}

.sim-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}

.sim-track::-webkit-scrollbar {
  height: 6px;
}

.sim-track::-webkit-scrollbar-track {
  background: transparent;
}

.sim-track::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 3px;
}

.sim-track::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

.sim-card {
  min-width: 280px;
  max-width: 280px;
  flex: 0 0 auto;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
}

.sim-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.sim-thumb {
  display: block;
  position: relative;
  text-decoration: none;
}

.sim-image {
  width: 100%;
  padding-top: 65%;
  background-size: cover;
  background-position: center;
}

.sim-price-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.sim-body {
  padding: 16px;
}

.sim-addr {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.sim-addr a {
  text-decoration: none;
  color: #1f2937;
  transition: color 0.2s ease;
}

.sim-addr a:hover {
  color: #667eea;
}

.sim-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
}

.sim-meta span {
  display: flex;
  align-items: center;
}

.sim-nav {
  display: flex;
  gap: 8px;
}

.sim-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sim-btn:hover {
  border-color: #667eea;
  background: #f0f4ff;
  transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .propex-filter-bar {
    padding: 12px;
  }
  
  .propex-filters-horizontal {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .filter-bar-left {
    flex-direction: column;
    gap: 8px;
  }
  
  .search-input-wrapper {
    max-width: none;
    order: -1;
  }
  
  .filter-bar-right {
    justify-content: space-between;
  }
  
  .propex-main-fullwidth {
    padding: 12px;
  }
  
  .results-bar-horizontal {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .results-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .property-header {
    padding: 20px;
  }
  
  .property-title {
    font-size: 24px;
  }
  
  .price-value {
    font-size: 28px;
  }
  
  .property-quick-stats {
    gap: 12px;
  }
  
  .stat-item {
    padding: 8px 12px;
  }
  
  .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  
  .sim-card {
    min-width: 240px;
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .property-header-content {
    flex-direction: column;
  }
  
  .price-display {
    text-align: left;
  }
  
  .filter-actions {
    flex-direction: column;
  }
  
  .btn-search,
  .btn-reset {
    width: 100%;
  }
  
  /* Serhant template mobile improvements */
  .mortgage-calculator-premium {
    padding: 20px 16px;
    margin: 16px 0;
  }
  
  .sidebar-title-premium {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .payment-amount-premium {
    font-size: 28px;
  }
  
  .payment-chart-container {
    width: 120px;
    height: 120px;
  }
  
  .payment-visual-section {
    gap: 20px;
  }
  
  .down-payment-inputs {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .calc-input {
    padding: 10px 12px 10px 24px;
    font-size: 14px;
  }
}
