/* Modern hover effect: scale and border glow */
.google-btn:hover {
    background: #5a95f5;
}
.facebook-btn:hover {
    background: #3380e5;
}
@media (min-width: 768px) {
        .profile-login-form,
        .profile-signup-form {
            max-width: 520px;
            margin-left: auto;
            margin-right: auto;
        }
}
@media (min-width: 768px) {
    .profile-login-modal-content {
        max-width: 440px;
        width: 100%;
    }
}
/* Modal tab button active state */
/* Enhanced modal tab design */
.profile-modal-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    background: #f3f6fa;
    border-radius: 10px;
    padding: 6px 0;
}
.profile-modal-tab-btn {
    color: #64748b;
    background: none;
    border: none;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 1.08rem;
    padding: 10px 32px 8px 32px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: none;
    outline: none;
    position: relative;
}
.profile-modal-tab-btn.active {
    color: #1a365d !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26,54,93,0.08);
    border-bottom: 2px solid #1a365d;
    font-weight: 700;
    z-index: 2;
}
.profile-modal-tab-btn:hover:not(.active) {
    background: #e6eefb;
    color: #1a365d;
}
/* Profile Login Modal Styles */
.profile-login-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.profile-login-modal.active {
    display: flex;
}

.profile-login-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(37,99,235,0.18);
    padding: 32px 24px;
    max-width: 450px;
            .mobile-sidebar-btn {
              display: block;
              width: 100%;
              padding: 14px 0;
              margin: 14px 0;
              font-size: 1.08rem;
              font-weight: 600;
              border: none;
              border-radius: 12px;
              cursor: pointer;
              box-shadow: 0 2px 8px rgba(0,0,0,0.08);
              transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
              outline: none;
              letter-spacing: 0.02em;
              position: relative;
            }
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.close-profile-login-modal {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 5;
}

.close-profile-login-modal:hover {
    color: #1a365d;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.profile-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* Profile Sign Up Form Styles */
.profile-signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}
.profile-signup-form input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s;
    background: #fff;
}
.profile-signup-form input:focus {
    border-color: #1a365d;
    outline: none;
}
.profile-signup-btn {
    background: linear-gradient(90deg, #1a365d, #2d4a77);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.profile-signup-btn:hover {
    background: linear-gradient(90deg, #2d4a77, #3d5a87);
}
.profile-signup-form .form-message {
    color: #d32f2f;
    font-size: 0.95rem;
    margin-top: 4px;
    min-height: 18px;
}

/* Social login buttons */
.profile-social-login { }
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6eefb;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
}
            /* Add focus ring for accessibility */
            .mobile-sidebar-btn:focus-visible {
              outline: 3px solid #2196f3;
              outline-offset: 2px;
            }
.google-btn {
    background: #4285F4;
    color: #fff;
    border: none;
}
.facebook-btn { background: linear-gradient(90deg,#1877f2,#1560d6); color: #fff; border-color: transparent; }
.social-btn i { font-size: 1.05rem; }

.profile-login-form input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.profile-login-form input:focus {
    border-color: #1a365d;
    outline: none;
}

.profile-login-btn {
    background: linear-gradient(90deg, #1a365d, #2d4a77);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-login-btn:hover {
    background: linear-gradient(90deg, #2d4a77, #3d5a87);
}

/* Small centered separator with divider lines and muted text */
.or-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 10px 0 6px 0;
}
.or-separator::before,
.or-separator::after {
    content: '';
    height: 1px;
    flex: 1 1 0;
    background: linear-gradient(90deg, rgba(26,54,93,0.06), rgba(26,54,93,0.12));
}
.or-separator[aria-hidden="true"] { pointer-events: none; }

/* Inline OR used between two social buttons inside signup flow */

.profile-login-form input[type="password"],
.profile-login-form input[type="text"],
.profile-signup-form input[type="password"],
.profile-signup-form input[type="text"] {
  width: 100%;
  min-width: 260px;
  max-width: 400px;
  font-family: inherit;
  letter-spacing: normal;
}

/* Large, highly visible Toast indicator styles for profile modal */
.profile-indicator-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 90vw;
  padding: 18px 40px 18px 20px;
  border-radius: 18px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #222;
  background: #f3f4f6;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(.4,0,.2,1), top 0.25s cubic-bezier(.4,0,.2,1);
  pointer-events: auto;
  border: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.profile-indicator-toast.show {
  display: block;
  opacity: 1;
  top: 48px;
}
.profile-indicator-toast.success {
  background: #e0f7fa;
  color: #222;
}
.profile-indicator-toast.error {
  background: #e11d48;
  color: #fff;
}
.profile-indicator-toast .toast-message {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.3;
}
.profile-indicator-toast .toast-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 1.4em;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  opacity: 0.5;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-indicator-toast .toast-close:hover {
  opacity: 1;
}

/* Simple Modern Sidebar styles: no border radius, modern box shadow */
.profile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 340px;
  background: linear-gradient(120deg, #f8fafc 60%, #e0e7ff 100%);
  box-shadow: -8px 0 32px 0 rgba(37,99,235,0.18), -1px 0 8px 0 rgba(0,0,0,0.08);
  z-index: 2100;
  display: none;
  transition: right 0.3s, box-shadow 0.2s;
  border-radius: 0;
  overflow: hidden;
}
.profile-sidebar .sidebar-content {
  padding: 2.2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  height: 100%;
}
.profile-sidebar-userinfo {
  text-align: center;
  margin-bottom: 1.2rem;
}
.profile-sidebar-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(37,99,235,0.10);
  margin-bottom: 0.7rem;
}
.profile-sidebar-username {
  font-size: 1.18rem;
  font-weight: 700;
  color: #23272f;
  margin-bottom: 0.2rem;
}
.profile-sidebar-email {
  font-size: 0.98rem;
  color: #475569;
  margin-bottom: 0.2rem;
}

/* Modern sidebar button base style */
.profile-sidebar-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  margin: 14px 0;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
  outline: none;
  letter-spacing: 0.02em;
  position: relative;
}

/* Sell Property: Vibrant blue gradient */
.profile-sidebar-btn.sell-property-btn {
  background: linear-gradient(90deg, #1976d2 0%, #2196f3 100%);
  color: #fff;
  border: 2px solid #1976d2;
  box-shadow: 0 2px 12px rgba(33,150,243,0.10);
}
.profile-sidebar-btn.sell-property-btn:hover,
.profile-sidebar-btn.sell-property-btn:focus {
  background: linear-gradient(90deg, #1565c0 0%, #1976d2 100%);
  color: #e3f2fd;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(33,150,243,0.18);
}

/* Favorites: Red-pink gradient */
.profile-sidebar-btn.favorites-btn {
  background: linear-gradient(90deg, #e53935 0%, #d81b60 100%);
  color: #fff;
  border: 2px solid #d81b60;
  box-shadow: 0 2px 12px rgba(216,27,96,0.10);
}
.profile-sidebar-btn.favorites-btn:hover,
.profile-sidebar-btn.favorites-btn:focus {
  background: linear-gradient(90deg, #b71c1c 0%, #e53935 100%);
  color: #ffcdd2;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(216,27,96,0.18);
}

/* Log In: Green gradient */
.profile-sidebar-btn.login-btn {
  background: linear-gradient(90deg, #43a047 0%, #66bb6a 100%);
  color: #fff;
  border: 2px solid #43a047;
  box-shadow: 0 2px 12px rgba(67,160,71,0.10);
}
.profile-sidebar-btn.login-btn:hover,
.profile-sidebar-btn.login-btn:focus {
  background: linear-gradient(90deg, #388e3c 0%, #43a047 100%);
  color: #c8e6c9;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(67,160,71,0.18);
}

/* Log Out: Neutral gray gradient */
.profile-sidebar-btn.logout-btn {
  background: linear-gradient(90deg, #757575 0%, #bdbdbd 100%);
  color: #fff;
  border: 2px solid #757575;
  box-shadow: 0 2px 12px rgba(117,117,117,0.10);
}
.profile-sidebar-btn.logout-btn:hover,
.profile-sidebar-btn.logout-btn:focus {
  background: linear-gradient(90deg, #616161 0%, #757575 100%);
  color: #eeeeee;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(117,117,117,0.18);
}

/* Add focus ring for accessibility */
.profile-sidebar-btn:focus-visible {
  outline: 3px solid #2196f3;
  outline-offset: 2px;
}

/* Sidebar close (X) button styles */
.profile-sidebar-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #475569;
  font-size: 2.1em;
  font-weight: 400;
  cursor: pointer;
  opacity: 0.7;
  z-index: 2200;
  transition: opacity 0.2s;
}
.profile-sidebar-close:hover {
  opacity: 1;
  color: #2563eb;
}

/* Hamburger menu button styles */
.mobile-hamburger-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  cursor: pointer;
}
.mobile-hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #23272f;
  border-radius: 2px;
  margin-bottom: 4px;
}
.mobile-hamburger-btn span:last-child {
  margin-bottom: 0;
}
/* Mobile sidebar styles */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 88vw;
  max-width: 340px;
  background: #fff;
  box-shadow: -16px 0 40px 0 rgba(37,99,235,0.22), -2px 0 12px 0 rgba(0,0,0,0.10);
  z-index: 3100;
  display: none;
  transition: right 0.3s, box-shadow 0.2s;
  border-radius: 0;
  overflow: hidden;
}
.mobile-sidebar-content {
  padding: 80px 18px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}
#mobile-sidebar-profile {
  text-align: center;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e5e7eb;
}
#mobile-sidebar-profile img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(37,99,235,0.10);
  margin-bottom: 0.5rem;
}
#mobile-sidebar-profile .username {
  font-size: 1.08rem;
  font-weight: 700;
  color: #23272f;
  margin-bottom: 0.1rem;
}
#mobile-sidebar-profile .email {
  font-size: 0.96rem;
  color: #475569;
}
.mobile-sidebar-btn {
  background: #f3f4f6;
  color: #23272f;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  font-size: 1.04rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  text-align: left;
  box-shadow: none;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.mobile-sidebar-btn:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-1px) scale(1.02);
}
.mobile-sidebar-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #475569;
  font-size: 2em;
  cursor: pointer;
  opacity: 0.7;
  z-index: 3200;
  transition: opacity 0.2s;
}
.mobile-sidebar-close:hover {
  opacity: 1;
  color: #2563eb;
}

/* Overlay for mobile sidebar */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 41, 59, 0.38);
  z-index: 3099;
  display: none;
  transition: opacity 0.3s;
}
.mobile-sidebar-overlay.show {
  display: block;
  opacity: 1;
}

/* Logout confirmation modal styles */
.logout-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,41,59,0.38);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logout-confirm-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.18);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 260px;
  max-width: 90vw;
  text-align: center;
}
.logout-confirm-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #23272f;
  margin-bottom: 0.7rem;
}
.logout-confirm-message {
  font-size: 1.02rem;
  color: #475569;
  margin-bottom: 1.2rem;
}
.logout-confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.logout-confirm-btn {
  background: #f3f4f6;
  color: #23272f;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.logout-confirm-btn.logout-confirm-yes {
  background: #e11d48;
  color: #fff;
}
.logout-confirm-btn.logout-confirm-yes:hover {
  background: #b91c1c;
}
.logout-confirm-btn.logout-confirm-cancel:hover {
  background: #2563eb;
  color: #fff;
}

@media (max-width: 600px) {
  .profile-modal {
    width: 94vw !important;
    max-width: 340px !important;
    min-width: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 1.2rem 1rem !important;
  }
  .profile-modal-content {
    padding: 0.5rem 0.2rem !important;
  }
  .profile-login-modal-content {
    max-width: 320px !important;
    width: 96vw !important;
    padding: 1rem 0.5rem !important;
  }
}

/* Mobile sidebar Sell Property button mimics desktop modern-btn */

.mobile-sidebar-btn.sell-property-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f5f6fa;
  color: #23272f;
  border: 1.5px solid #e5e7eb;
  padding: 13px 28px;
  border-radius: 18px;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 0.7rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s, transform 0.12s;
  letter-spacing: 0.03em;
}
.mobile-sidebar-btn.sell-property-btn:hover,
.mobile-sidebar-btn.sell-property-btn:focus {
  background: #eceff4;
  color: #1a365d;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.03);
}

/* Mobile sidebar Favorites button mimics desktop view-favorites-btn */
.mobile-sidebar-btn.favorites-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f5f6fa;
  color: #23272f;
  border: 1.5px solid #e5e7eb;
  padding: 13px 28px;
  border-radius: 18px;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 0.7rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s, transform 0.12s;
  letter-spacing: 0.03em;
}
 .mobile-sidebar-btn.favorites-btn:hover,
 .mobile-sidebar-btn.favorites-btn:focus {
  background: #eceff4;
  color: #1a365d;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.03);
}

/* Mobile sidebar Log In button: green color */
.mobile-sidebar-btn.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f5f6fa;
  color: #23272f;
  border: 1.5px solid #e5e7eb;
  padding: 13px 28px;
  border-radius: 18px;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 0.7rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s, transform 0.12s;
  letter-spacing: 0.03em;
}
 .mobile-sidebar-btn.login-btn:hover,
 .mobile-sidebar-btn.login-btn:focus {
  background: #eceff4;
  color: #1a365d;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.03);
}

/* Mobile sidebar Log Out button: gray color */
.mobile-sidebar-btn.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f5f6fa;
  color: #23272f;
  border: 1.5px solid #e5e7eb;
  padding: 13px 28px;
  border-radius: 18px;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 0.7rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s, transform 0.12s;
  letter-spacing: 0.03em;
}
 .mobile-sidebar-btn.logout-btn:hover,
 .mobile-sidebar-btn.logout-btn:focus {
  background: #eceff4;
  color: #1a365d;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.03);
}

