/* Enhanced My Account Profile & Saved Listings Styles */

/* My Account Page Layout */
.my-account-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Account Header */
.account-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background: #c82333;
}

/* Tab Navigation */
.account-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

.tab-button {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
  border-bottom: none;
  padding: 15px 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.tab-button:first-child {
  border-top-left-radius: 8px;
}

.tab-button:last-child {
  border-top-right-radius: 8px;
}

.tab-button:hover {
  background: #e9ecef;
  color: #333;
}

.tab-button.active {
  background: white;
  color: #007cba;
  border-color: #007cba;
  border-bottom: 1px solid white;
  margin-bottom: -1px;
  z-index: 1;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Section */
.profile-section {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-info {
  margin-bottom: 20px;
}

.profile-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.profile-field {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007cba;
}

.profile-field-label {
  font-weight: bold;
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.profile-field-value {
  color: #333;
  font-size: 16px;
}

.edit-profile-btn {
  background: #007cba;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.edit-profile-btn:hover {
  background: #005a87;
}

/* Profile Edit Form */
.profile-edit-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.profile-edit-form h3 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #333;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.password-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #e0e0e0;
}

.password-section h4 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e0e0e0;
}

.profile-loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

.profile-message {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 500;
}

.profile-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.profile-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Listings Section */
.listings-section, .saved-listings-section {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  /* Make saved listings section scrollable for sticky toolbar */
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.listings-section h2, .saved-listings-section h2 {
  margin-top: 0;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

/* Login Form Styles */
.login-form-container {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.login-form-container h3 {
  color: #333;
  margin-bottom: 10px;
}

.login-form-container p {
  color: #666;
  margin-bottom: 30px;
}

.login-form {
  text-align: left;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.login-form button[type="submit"] {
  width: 100%;
  background: #007cba;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-form button[type="submit"]:hover {
  background: #005a87;
}

.login-links {
  margin-top: 20px;
  text-align: center;
}

.login-links p {
  margin: 10px 0;
  font-size: 14px;
}

.login-links a {
  color: #007cba;
  text-decoration: none;
}

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

.login-message {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 500;
}

.login-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.login-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.logged-out-message {
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.logged-out-message h3 {
  color: #333;
  margin-bottom: 15px;
}

.logged-out-message p {
  color: #666;
  margin-bottom: 10px;
}

.logged-out-message .register-link {
  color: #007cba;
  text-decoration: none;
  font-weight: 600;
}

.logged-out-message .register-link:hover {
  text-decoration: underline;
}

/* Enhanced My Account Saved Listings Styles */

.saved-listings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
  /* Remove sticky positioning since toolbar is outside scrollable area */
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
  /* Keep backdrop blur for visual appeal */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(248, 249, 250, 0.95);
}

.selection-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#selection-count {
  font-weight: bold;
  color: #333;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-small {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  min-width: auto;
}

.btn-primary {
  background: #007cba;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #005a87;
}

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

.btn-secondary:hover:not(:disabled) {
  background: #545b62;
}

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

.btn-danger:hover:not(:disabled) {
  background: #c82333;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #218838;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Enhanced Grid Layout */
.saved-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.listing-card-wrapper.enhanced-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

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

.card-selection {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.property-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.card-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.listing-card-wrapper:hover .card-image img {
  transform: scale(1.05);
}

.heart.save-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 5;
  transition: all 0.3s ease;
}

.heart.save-heart:hover {
  background: white;
  transform: scale(1.1);
}

/* Enhanced Card Content */
.card-content-enhanced {
  padding: 20px;
}

.property-header {
  margin-bottom: 15px;
}

.price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.price {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.mls-number {
  font-size: 12px;
  color: #7f8c8d;
  background: #ecf0f1;
  padding: 4px 8px;
  border-radius: 4px;
}

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

.stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #34495e;
}

.stat i {
  width: 16px;
  height: 16px;
  background-size: contain;
}

.property-address {
  margin: 15px 0;
  line-height: 1.4;
}

.property-address strong {
  color: #2c3e50;
  font-size: 16px;
}

.property-details {
  margin: 15px 0;
}

.property-type {
  font-weight: bold;
  color: #27ae60;
  margin-bottom: 5px;
}

.subdivision {
  font-size: 14px;
  color: #7f8c8d;
}

.property-status {
  margin: 15px 0;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-other {
  background: #f8d7da;
  color: #721c24;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.property-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ecf0f1;
}

/* Modal Styles */
.comparison-modal, .request-info-modal, .forgot-password-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.comparison-modal-content, .request-info-modal-content, .forgot-password-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Forgot Password Modal Specific Styles */
.forgot-password-modal-content {
  max-width: 450px;
  width: 100%;
}

.forgot-password-modal .modal-body {
  padding: 20px;
}

.forgot-password-modal .modal-body p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.forgot-password-modal .form-group {
  margin-bottom: 20px;
  padding: 0;
}

.forgot-password-modal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.forgot-password-modal .form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.forgot-password-modal .form-group input:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.forgot-password-modal .btn-primary {
  background: #007cba;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.forgot-password-modal .btn-primary:hover:not(:disabled) {
  background: #005a87;
}

.forgot-password-modal .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.forgot-password-message {
  padding: 12px;
  border-radius: 4px;
  margin-top: 15px;
  font-weight: 500;
}

.forgot-password-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.forgot-password-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Password Reset Form Styles */
.password-reset-form-container {
  max-width: 450px;
  margin: 0 auto;
  text-align: center;
}

.password-reset-form-container h3 {
  color: #333;
  margin-bottom: 10px;
}

.password-reset-form-container p {
  color: #666;
  margin-bottom: 30px;
}

.password-reset-form {
  text-align: left;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.password-reset-form .form-group {
  margin-bottom: 20px;
}

.password-reset-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.password-reset-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.password-reset-form input[type="password"]:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.password-reset-form small {
  display: block;
  color: #666;
  font-size: 14px;
  margin-top: 5px;
}

.password-reset-form button[type="submit"] {
  width: 100%;
  background: #007cba;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.password-reset-form button[type="submit"]:hover:not(:disabled) {
  background: #005a87;
}

.password-reset-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reset-links {
  margin-top: 20px;
  text-align: center;
}

.reset-links p {
  margin: 10px 0;
  font-size: 14px;
}

.reset-links a {
  color: #007cba;
  text-decoration: none;
}

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

.reset-message {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 500;
}

.reset-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.reset-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.comparison-header h2 {
  margin: 0;
  flex-grow: 1;
}

.comparison-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.layout-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.layout-selector select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 14px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: #333;
}

.comparison-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.comparison-grid.layout-2 {
  grid-template-columns: repeat(2, 1fr);
}

.comparison-grid.layout-3 {
  grid-template-columns: repeat(3, 1fr);
}

.comparison-grid.layout-4 {
  grid-template-columns: repeat(4, 1fr);
}

.comparison-grid.layout-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Responsive comparison grid */
@media (max-width: 1200px) {
  .comparison-grid.layout-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .comparison-grid.layout-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .comparison-grid.layout-5,
  .comparison-grid.layout-4,
  .comparison-grid.layout-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .comparison-grid {
    grid-template-columns: 1fr !important;
  }
}

.comparison-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.comparison-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.comparison-card h3 {
  color: #2c3e50;
  margin: 10px 0;
}

.comparison-card p {
  margin: 5px 0;
  font-size: 14px;
}

.properties-summary {
  padding: 20px;
  background: #f8f9fa;
  margin: 0 20px;
  border-radius: 8px;
}

.properties-summary h3 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 15px;
  padding: 0 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

#request-info-form {
  padding-bottom: 20px;
}

/* Form Button Centering */
.form-button-center {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.form-button-center .btn-success {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .my-account-page {
    padding: 10px;
  }
  
  .account-tabs {
    margin-bottom: 15px;
  }
  
  .tab-button {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .tab-button:first-child {
    border-radius: 8px 8px 0 0;
  }
  
  .tab-button:last-child {
    border-radius: 0 0 8px 8px;
  }
  
  .profile-section,
  .listings-section,
  .saved-listings-section {
    padding: 15px;
    margin: 0 -10px; /* Extend to window edge */
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-actions button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
  
  .profile-display-grid {
    grid-template-columns: 1fr;
  }
  
  .saved-listings-toolbar {
    flex-direction: column;
    align-items: stretch;
    position: relative; /* Remove sticky on mobile */
    top: auto;
    margin: 0 -15px 15px -15px; /* Extend to edges */
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .selection-info, .bulk-actions {
    justify-content: center;
  }
  
  .bulk-actions button {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 14px;
  }
  
  /* Hide comparison button on mobile */
  #compare-btn {
    display: none !important;
  }
  
  .saved-listings-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .property-stats {
    flex-direction: column;
    gap: 8px;
  }
  
  .property-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .property-actions button {
    width: 100%;
    padding: 10px;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-modal-content, .request-info-modal-content {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }

  .logout-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Loading States */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007cba;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

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

/* Icon placeholders (you can replace with actual icons) */
.icon-bed:before { content: "🛏️"; }
.icon-bath:before { content: "🛁"; }
.icon-sqft:before { content: "📐"; }

/* Favorites Feature Styles */
.view-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.favorite-btn, .favorite-btn-modal {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.favorite-btn:hover, .favorite-btn-modal:hover {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.favorite-btn.favorited, .favorite-btn-modal.favorited {
  background: #ffc107;
  color: #212529;
  border-color: #ffc107;
}

.favorite-btn.favorited:hover, .favorite-btn-modal.favorited:hover {
  background: #e0a800;
  border-color: #d39e00;
}

.favorite-icon {
  font-size: 14px;
  margin-right: 4px;
}

.favorites-header {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.favorites-info h3 {
  margin: 0 0 8px 0;
  color: #856404;
  font-size: 20px;
}

.favorites-info p {
  margin: 0;
  color: #856404;
  font-size: 14px;
}

#request-info-favorites-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
}

#request-info-favorites-btn:hover {
  background: #218838;
}

.comparison-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.comparison-actions button {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
}

.saved-listings-toolbar {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  /* Remove sticky positioning since toolbar is outside scrollable area */
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(248, 249, 250, 0.95);
}

.saved-listings-toolbar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mobile adjustments for favorites */
@media (max-width: 768px) {
  .favorites-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .saved-listings-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .saved-listings-toolbar > div {
    justify-content: center;
  }
  
  .view-filters {
    order: -1;
  }
}
