.view-all-card {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fff;
  width: 100%;
  max-width: 320px;
  max-height: 368px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.view-all-card p,
.view-all-card a {
  text-decoration: none;
  color: inherit;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
}

.keystone-query-loop {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  /* Post Template / Grid Layout */
}
.keystone-query-loop .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
}
@media (max-width: 1024px) {
  .keystone-query-loop .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .keystone-query-loop .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}
.keystone-query-loop {
  /* Pagination Styling */
}
.keystone-query-loop .wp-block-query-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 3rem;
  margin-bottom: 2rem;
}
.keystone-query-loop .wp-block-query-pagination a,
.keystone-query-loop .wp-block-query-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}
.keystone-query-loop .wp-block-query-pagination a:hover,
.keystone-query-loop .wp-block-query-pagination span:hover {
  border-color: #0066fe;
  color: #0066fe;
}
.keystone-query-loop .wp-block-query-pagination .current,
.keystone-query-loop .wp-block-query-pagination span.current {
  background-color: #0066fe;
  color: #ffffff;
  border-color: #0066fe;
}

.keystone-primary-nav,
.keystone-primary-nav li {
  margin-right: 12px; /* Adjust this value to whatever looks best */
}

.keystone-feature-cards {
  padding: 40px;
  box-sizing: border-box;
  border-radius: 15px;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) !important;
  transition: 0.3s ease;
}
.keystone-feature-cards img {
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.keystone-feature-cards:hover {
  box-shadow: 2px 2px 40px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-10px);
}

.wp-block-button__link {
  transition: 0.3s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-5px);
}
.wp-block-button__link:active {
  transform: translateY(5px);
}

.keystone-property-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.keystone-property-sidebar {
  position: sticky;
  top: 40px;
  padding: 30px 24px;
  background: #ffffff; /* Crisp white background */
  border: 1px solid #e8e9ea;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); /* Soft, modern drop shadow */
  font-family: var(--wp--preset--font-family--system);
}
.keystone-property-sidebar p {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0 0 20px 0;
  text-transform: capitalize;
}

.keystone-property-specs-grid {
  display: grid;
  /* This automatically creates columns that fit the space, wrapping to the next line if needed */
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin: 25px 0;
}
.keystone-property-specs-grid .spec-card {
  background: #f5f6f7;
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #333;
}
.keystone-property-specs-grid .spec-card svg {
  color: #555;
}

.keystone-whats-special {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}
.keystone-whats-special h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.special-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.feature-pill {
  background: #f5f6f7;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  letter-spacing: 0.5px;
}

.property-description {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.keystone-property-agent-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  margin: 0 auto 15px auto;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.keystone-contact-btn {
  display: block;
  width: 100%;
  background: #006aff;
  color: #ffffff;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.keystone-contact-btn:hover {
  background: #005ce6;
}
.keystone-contact-btn:active {
  transform: scale(0.98);
}

.keystone-property-gallery {
  max-width: 1000px;
  margin: 0 auto 40px auto;
  border-radius: 12px;
  overflow: hidden;
}

.single-property-image {
  display: none;
  width: 100%;
  aspect-ratio: 16/9;
  -o-object-fit: cover;
     object-fit: cover;
}
.single-property-image.is-active {
  display: block;
}

.keystone-gallery-thumbnails {
  display: flex;
  gap: 10px;
  padding: 15px 0;
  justify-content: center;
}

.gallery-thumbnail {
  width: 120px;
  height: 80px;
  -o-object-fit: cover;
     object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}
.gallery-thumbnail.is-active {
  opacity: 1;
  border: 2px solid #333;
}

.keystone-property-header {
  margin-bottom: 30px;
  font-family: var(--wp--preset--font-family--system);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f6f7;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-transform: capitalize;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #d93c23;
  border-radius: 50%;
}

.property-price {
  font-size: 40px;
  font-weight: 800;
  color: #222;
  margin: 12px 0 12px 0;
  line-height: 1;
}

.property-address {
  font-size: 18px;
  color: #555;
  margin: 0 0 30px 0;
}

.keystone-auth-form {
  max-width: 420px;
  margin: 60px auto;
  padding: 40px;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.keystone-auth-form h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
}
.keystone-auth-form {
  /* Wrap the paragraph text at the bottom */
}
.keystone-auth-form p {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}
.keystone-auth-form p a {
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
}
.keystone-auth-form p a:hover {
  text-decoration: underline;
}

.keystone-form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}
.keystone-form-input:focus {
  border-color: #0056b3;
  outline: none;
}

.keystone-submit-btn {
  background-color: #006aff; /* Zillow style blue */
  color: #ffffff;
  padding: 14px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}
.keystone-submit-btn:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

.keystone-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Space between box and text */
  margin-top: 5px;
}
.keystone-checkbox-wrapper label {
  font-size: 15px;
  cursor: pointer;
}
.keystone-checkbox-wrapper .keystone-form-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.keystone-auth-message:empty {
  display: none;
}
.keystone-auth-message {
  max-width: 400px;
  margin: 0 auto 24px auto;
  padding: 14px 20px;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  border-left: 5px solid #ef4444;
  color: #991b1b;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  animation: authMessageFadeIn 0.3s ease-out forwards;
}
.keystone-auth-message strong {
  color: #7f1d1d;
  font-weight: 700;
}

@keyframes authMessageFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#keystone-reset-fields {
  display: none;
}

#back-to-login {
  display: none;
}

#keystone-login-fields,
#keystone-reset-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

#keystone-reset-fields {
  display: none;
}

.keystone-secondary-link {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  text-decoration: none;
  color: #0056b3;
}
.keystone-secondary-link:hover {
  text-decoration: underline;
}

.keystone-auth-success {
  background-color: #f0fdf4;
  border-left-color: #22c55e;
  color: #15803d;
}

#keystone-new-password-fields {
  display: flex;
  flex-direction: column;
  gap: 15px; /* This will separate the inputs and the button */
  width: 100%;
}

.agent-dashboard-form {
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.agent-dashboard-form .form-section {
  background: #ffffff;
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
}
.agent-dashboard-form .form-section.personal-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  /* Stacks columns on mobile */
}
@media (max-width: 768px) {
  .agent-dashboard-form .form-section.personal-info {
    grid-template-columns: 1fr;
  }
}
.agent-dashboard-form .form-section.professional-info {
  display: flex;
  flex-direction: column;
}
.agent-dashboard-form .dashboard-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  color: #374151;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.agent-dashboard-form .dashboard-input::-moz-placeholder {
  color: #9ca3af;
}
.agent-dashboard-form .dashboard-input::placeholder {
  color: #9ca3af;
}
.agent-dashboard-form .dashboard-input:focus {
  outline: none;
  border-color: #2563eb; /* Adjust to match your theme's primary blue */
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.agent-dashboard-form textarea.dashboard-input {
  min-height: 150px;
  resize: vertical;
  font-family: inherit;
}
.agent-dashboard-form .dashboard-submit-btn {
  background-color: #0b5edd; /* Matches your current header button */
  color: #ffffff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease opacity 0.2s ease;
  width: 100%;
  text-align: center;
}
.agent-dashboard-form .dashboard-submit-btn:hover {
  background-color: #094eb8;
}
.agent-dashboard-form .dashboard-submit-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
  background-color: #64748b !important;
}
.agent-dashboard-form .dashboard-submit-btn.is-success {
  background-color: #16a34a !important;
}
.agent-dashboard-form .dashboard-submit-btn.is-error {
  background-color: #ef4444 !important;
}
.agent-dashboard-form .avatar-upload {
  display: flex;
  justify-content: center;
}
.agent-dashboard-form .avatar-upload .avatar-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%; /* Makes it a circle */
  overflow: hidden; /* Hides anything outside the circle */
  border: 2px dashed #cbd5e1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #f8fafc;
  margin: 0 auto;
}
.agent-dashboard-form .avatar-upload .avatar-preview:hover {
  background-color: #f3f4f6;
  border-color: #0b5edd; /* Matches your theme's blue */
  color: #0b5edd;
}
.agent-dashboard-form .avatar-upload .avatar-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 1;
}
.agent-dashboard-form .avatar-upload input[type=file] {
  display: none;
}
.agent-dashboard-form input[readonly].dashboard-input {
  background-color: #f1f5f9; /* Light gray background */
  color: #64748b; /* Muted text color */
  cursor: not-allowed; /* Shows the 'disabled' circle-slash cursor */
  border-color: #e2e8f0;
}
.agent-dashboard-form input[readonly].dashboard-input:focus {
  outline: none; /* Removes the blue ring */
  box-shadow: none;
  border-color: #e2e8f0; /* Keeps the border from highlighting */
}
.agent-dashboard-form label {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  margin-top: 18px;
  letter-spacing: 0.01em;
}
.agent-dashboard-form .password-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.agent-dashboard-form .password-section .new-password-fields {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.agent-dashboard-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #2d3748;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
}

.dashboard-sidebar,
.dashboard-main-content {
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar {
  padding: 20px 15px;
}
.dashboard-sidebar .sidebar-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.dashboard-sidebar .sidebar-identity .sidebar-avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  -o-object-fit: cover;
     object-fit: cover;
}
.dashboard-sidebar .sidebar-identity .sidebar-user-info {
  display: flex;
  flex-direction: column;
}
.dashboard-sidebar .sidebar-identity .sidebar-user-info .sidebar-greeting {
  font-size: 0.8rem;
  color: #718096;
}
.dashboard-sidebar .sidebar-identity .sidebar-user-info .sidebar-username {
  font-size: 0.95rem;
  color: #1a202c;
}
.dashboard-sidebar .dashboard-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dashboard-sidebar .dashboard-tab {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #555;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.dashboard-sidebar .dashboard-tab:hover {
  background-color: #f0f2f5;
}
.dashboard-sidebar .dashboard-tab.active {
  background-color: #007bff;
  color: #fff;
}
.dashboard-sidebar .dashboard-tab.logout-link {
  margin-top: 15px;
  color: #e53e3e;
}
.dashboard-sidebar .dashboard-tab.logout-link:hover {
  background-color: #fff5f5;
  color: #c53030;
}

.dashboard-main-content {
  padding: 40px;
}

/* --- Global Button Styles --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}
.btn-primary {
  background-color: #007bff;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #0056b3;
}
.btn-outline {
  border-color: #007bff;
  color: #007bff;
  background: transparent;
}
.btn-outline:hover {
  background: #f0f7ff;
}
.btn-danger-outline {
  border-color: #e53e3e;
  color: #e53e3e;
  background: transparent;
}
.btn-danger-outline:hover {
  background: #fff5f5;
}
.btn-large {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* --- Shared Dashboard Header --- */
.dashboard-header {
  display: flex;
  justify-content: space-between; /* Pushes title to left, button to right */
  align-items: center;
  margin-bottom: 30px; /* This adds the exact space you need above the cards */
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
}
.dashboard-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1a202c;
}

/* --- Shared Success Message --- */
.success-banner {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 15px 20px;
  margin-bottom: 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideDown 0.4s ease-out forwards;
}

.danger-banner {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px 20px;
  margin-bottom: 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- Properties Grid Tab --- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.property-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.property-card .property-card-image {
  position: relative;
  height: 200px;
}
.property-card .property-card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.property-card .property-card-image .status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #48bb78;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}
.property-card .property-card-content {
  padding: 20px;
  flex-grow: 1;
}
.property-card .property-card-content .property-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.property-card .property-card-content .property-price {
  color: #007bff;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 12px;
}
.property-card .property-card-content .property-meta {
  color: #718096;
  font-size: 0.9rem;
}
.property-card .property-card-content .property-meta span {
  margin-right: 5px;
}
.property-card .property-card-actions {
  padding: 15px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
}
.property-card .property-card-actions .btn {
  width: 100%;
  flex: 1;
  text-align: center;
}
.property-card .property-card-actions form {
  display: contents;
  width: 100%;
  flex: 1;
}

.dashboard-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 8px;
}
.dashboard-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-decoration: none;
  color: #718096;
  transition: all 0.2s ease;
}
.dashboard-pagination .page-numbers.current, .dashboard-pagination .page-numbers:hover {
  background: #007bff;
  color: #fff;
}

/* --- Add/Edit Property Form Tab --- */
.dashboard-form .form-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.dashboard-form .form-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #2d3748;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 10px;
}
.dashboard-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.dashboard-form .form-group {
  margin-bottom: 16px;
}
.dashboard-form .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #4a5568;
  font-size: 0.9rem;
}
.dashboard-form .form-group input[type=text],
.dashboard-form .form-group input[type=number],
.dashboard-form .form-group textarea,
.dashboard-form .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  box-sizing: border-box;
  background-color: #fff;
  font-family: inherit;
}
.dashboard-form .form-group input[type=text]:focus,
.dashboard-form .form-group input[type=number]:focus,
.dashboard-form .form-group textarea:focus,
.dashboard-form .form-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.dashboard-form .form-group input[type=file] {
  width: 100%;
  padding: 8px;
  background: #f7fafc;
  border: 1px dashed #cbd5e0;
  border-radius: 6px;
  cursor: pointer;
  color: #4a5568;
  font-family: inherit;
  /* Targets the native OS "Choose File" button */
}
.dashboard-form .form-group input[type=file]::file-selector-button {
  padding: 8px 16px;
  margin-right: 12px;
  background-color: #e2e8f0;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  color: #2d3748;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.dashboard-form .form-group input[type=file]::file-selector-button:hover {
  background-color: #cbd5e0;
}
.dashboard-form {
  /* Amenities Categories & Checkbox Grid */
  /* Amenities Dropdown Accordions */
}
.dashboard-form .amenities-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dashboard-form .amenities-container .amenity-category {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px 20px;
  transition: background-color 0.2s ease;
}
.dashboard-form .amenities-container .amenity-category[open] {
  background: #fff;
  border-color: #cbd5e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.dashboard-form .amenities-container .amenity-category summary {
  font-size: 0.95rem;
  color: #1a202c;
  font-weight: 600;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboard-form .amenities-container .amenity-category summary::-webkit-details-marker {
  display: none;
}
.dashboard-form .amenities-container .amenity-category summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: #718096;
  transition: transform 0.2s ease;
}
.dashboard-form .amenities-container .amenity-category[open] summary::after {
  content: "-";
}
.dashboard-form .amenities-container .amenity-category .checkbox-grid {
  /* Change from grid to flex-wrap so items flow organically */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.dashboard-form .amenities-container .amenity-category .checkbox-grid .checkbox-group {
  /* This makes each card size itself according to its text, instead of filling a grid track */
  display: inline-flex;
  align-items: center;
  width: auto;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.dashboard-form .amenities-container .amenity-category .checkbox-grid .checkbox-group:hover {
  border-color: #cbd5e0;
  background: #f8fafc;
}
.dashboard-form .amenities-container .amenity-category .checkbox-grid .checkbox-group input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #007bff;
  margin: 0;
}
.dashboard-form .amenities-container .amenity-category .checkbox-grid .checkbox-group label {
  margin: 0;
  cursor: pointer;
  font-weight: normal;
  font-size: 0.88rem;
  color: #4a5568;
  /* Let the text dictate its own width without forcing 100% */
  width: auto;
  white-space: nowrap; /* Keeps single-line text unbroken */
}

.agents-page {
  max-width: 1440px;
  margin: auto;
}
.agents-page .agent-search-form {
  margin: 24px 40px;
  background-color: #ffffff;
  border: 1px solid #e8e9ea;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.agents-page .agent-search-form input {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  width: 340px;
}
.agents-page .agent-search-form button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.agents-page .agent-search-form button:active {
  transform: scale(0.95);
}
.agents-page .agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 40px;
}
.agents-page .agent-card {
  background-color: #ffffff;
  border: 1px solid #e8e9ea;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; /* Overrides the default serif font */
}
.agents-page .agent-card .agent-card-image {
  flex-shrink: 0;
}
.agents-page .agent-card .agent-card-image img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.agents-page .agent-card .agent-card-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
}
.agents-page .agent-card .agent-card-details h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: #2a2a33;
}
.agents-page .agent-card .agent-card-details > p {
  /* Targets the bio paragraph specifically */
  margin: 0 0 16px 0;
  font-size: 15px;
  color: #54565b;
  line-height: 1.4;
}
.agents-page .agent-card .agent-card-details .agent-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  /* Forces the email and phone side-by-side */
}
.agents-page .agent-card .agent-card-details .agent-contact-info .contact-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap; /* Keeps them from breaking if the screen gets too small */
}
.agents-page .agent-card .agent-card-details .agent-contact-info p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #54565b;
  display: flex;
  align-items: center; /* Perfectly centers the icon with the text */
  gap: 6px;
  padding: 4px 0;
}
.agents-page .agent-card .agent-card-details .agent-contact-info p .dashicons {
  color: #006aff; /* Applies the Zillow blue to the contact icons */
  font-size: 16px; /* Scales the icons to match the paragraph text */
  width: 16px;
  height: 16px;
}
.agents-page .agent-card .agent-card-details .agent-contact-info a {
  text-decoration: none;
  color: inherit;
}
.agents-page .agent-card .agent-card-details .agent-social-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.agents-page .agent-card .agent-card-details .agent-social-links a {
  text-decoration: none;
  color: #006aff;
  font-size: 20px;
  transition: opacity 0.2s;
}
.agents-page .agent-card .agent-card-details .agent-social-links a:hover {
  opacity: 0.7;
}

.agent-pagination {
  display: flex;
  justify-content: center;
  margin: 24px 0;
  gap: 8px;
}
.agent-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-decoration: none;
  color: #718096;
  transition: all 0.2s ease;
}
.agent-pagination .page-numbers.current, .agent-pagination .page-numbers:hover {
  background: #007bff;
  color: #fff;
}

@media (max-width: 768px) {
  .agents-page .agent-search-form {
    flex-direction: column;
    gap: 16px;
  }
  .agents-page .agent-search-form input {
    width: 100%;
  }
  .agents-page .agent-search-form button {
    width: 100%;
  }
  .agents-page {
    /* 1. Stack the cards into a single column */
  }
  .agents-page .agent-grid {
    grid-template-columns: 1fr;
    margin: 24px 16px; /* Shrinks the outside margins to fit phone screens */
  }
  .agents-page {
    /* 2. Stack the image on top of the text inside the card */
  }
  .agents-page .agent-card {
    flex-direction: column;
    text-align: center;
  }
  .agents-page .agent-card .agent-card-details {
    align-items: center; /* Centers the text block under the image */
  }
  .agents-page .agent-card .contact-row {
    justify-content: center; /* Centers the email and phone */
  }
  .agents-page .agent-card .agent-social-links {
    justify-content: center; /* Centers the social icons */
  }
}
.profile-master-wrap {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: sans-serif; /* Fallback to match your theme */
}
.profile-master-wrap .profile-business-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 2.5rem;
  border: 1px solid #f0f0f0;
}
.profile-master-wrap .profile-business-card .card-avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.profile-master-wrap .profile-business-card .contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.profile-master-wrap .profile-business-card .contact-info h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #2a2a33;
  text-underline-offset: 4px; /*[cite: 23] */
  text-decoration-thickness: 2px;
}
.profile-master-wrap .profile-business-card .contact-info .agent-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.profile-master-wrap .profile-business-card .contact-info .agent-contact-info a {
  text-decoration: none;
  color: #444; /*[cite: 23] */
}
.profile-master-wrap .profile-business-card .contact-info .agent-contact-info p {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}
.profile-master-wrap .profile-business-card .contact-info .agent-contact-info .dashicons {
  color: #0066fe;
  margin-right: 8px; /*[cite: 23] */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 18px;
  height: 18px;
}
.profile-master-wrap .profile-business-card .contact-info .agent-contact-info .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem; /*[cite: 23] */
  align-items: center;
  /* Forces the license <p> tag onto its own line[cite: 21, 23] */
}
.profile-master-wrap .profile-business-card .contact-info .agent-contact-info .contact-row > p {
  width: 100%;
  margin-top: 0.25rem;
}
.profile-master-wrap .profile-business-card .contact-info .agent-contact-info .social-row {
  display: flex;
  gap: 12px;
  margin-top: 0.5rem; /*[cite: 23] */
}
.profile-master-wrap .profile-business-card .contact-info .agent-contact-info .social-row .dashicons {
  margin: 0;
  font-size: 22px;
  width: 22px;
  height: 22px;
}
.profile-master-wrap .profile-about-section {
  margin-bottom: 3.5rem;
}
.profile-master-wrap .profile-about-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.profile-master-wrap .profile-about-section p {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Forces the text to cut off after 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  /* This class will be added by JavaScript when the user clicks */
}
.profile-master-wrap .profile-about-section p.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.profile-master-wrap .profile-about-section .read-more-toggle {
  background: none;
  border: none;
  color: #0066fe;
  font-size: 1rem;
  font-weight: 600;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
}
.profile-master-wrap .profile-about-section .read-more-toggle:hover {
  text-decoration: underline;
}
.profile-master-wrap .profile-listings-sale,
.profile-master-wrap .profile-listings-rent {
  margin-bottom: 3.5rem;
}
.profile-master-wrap .profile-listings-sale .listings-header,
.profile-master-wrap .profile-listings-rent .listings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.profile-master-wrap .profile-listings-sale .listings-header h2,
.profile-master-wrap .profile-listings-rent .listings-header h2 {
  margin: 0;
  font-size: 1.4rem;
}
.profile-master-wrap .profile-listings-sale .listings-header .slider-controls,
.profile-master-wrap .profile-listings-rent .listings-header .slider-controls {
  display: flex;
  gap: 12px;
}
.profile-master-wrap .profile-listings-sale .listings-header .slider-controls .nav-arrow,
.profile-master-wrap .profile-listings-rent .listings-header .slider-controls .nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d1d1d5;
  color: #2a2a33; /* Zillow-style dark grey */
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-master-wrap .profile-listings-sale .listings-header .slider-controls .nav-arrow:hover,
.profile-master-wrap .profile-listings-rent .listings-header .slider-controls .nav-arrow:hover {
  border-color: #869099;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.profile-master-wrap .profile-listings-sale .listings-header .slider-controls .nav-arrow.is-disabled,
.profile-master-wrap .profile-listings-rent .listings-header .slider-controls .nav-arrow.is-disabled {
  opacity: 0.3;
  pointer-events: none; /* Physically prevents the user from clicking */
  cursor: default;
}
.profile-master-wrap .profile-listings-sale .listings-track,
.profile-master-wrap .profile-listings-rent .listings-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  /* Hide scrollbar for a clean, app-like slider */
}
.profile-master-wrap .profile-listings-sale .listings-track::-webkit-scrollbar,
.profile-master-wrap .profile-listings-rent .listings-track::-webkit-scrollbar {
  display: none;
}
.profile-master-wrap .profile-listings-sale .listings-track,
.profile-master-wrap .profile-listings-rent .listings-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.profile-master-wrap .profile-listings-sale .simple-property-card,
.profile-master-wrap .profile-listings-rent .simple-property-card {
  flex: 0 0 320px; /* Forces a strict fixed width and refuses to squish */
  border: 1px solid #d1d1d5;
  border-radius: 8px;
  overflow: hidden; /* Critically clips the square image corners to the rounded border */
  background: #ffffff;
}
.profile-master-wrap .profile-listings-sale .simple-property-card .feature-image a,
.profile-master-wrap .profile-listings-rent .simple-property-card .feature-image a {
  display: block;
}
.profile-master-wrap .profile-listings-sale .simple-property-card .feature-image img,
.profile-master-wrap .profile-listings-rent .simple-property-card .feature-image img {
  width: 100%;
  height: 220px;
  -o-object-fit: cover;
     object-fit: cover; /* Prevents vertical or small photos from stretching */
  display: block;
}
.profile-master-wrap .profile-listings-sale .simple-property-card .property-details,
.profile-master-wrap .profile-listings-rent .simple-property-card .property-details {
  padding: 18px 16px; /* Slightly more top/bottom padding for the wrapper */
  display: flex;
  flex-direction: column;
  gap: 10px; /* This single rule controls the space between ALL text lines perfectly */
}
.profile-master-wrap .profile-listings-sale .simple-property-card .property-details .property-title,
.profile-master-wrap .profile-listings-rent .simple-property-card .property-details .property-title {
  margin: 0; /* Margins removed so the flex gap does all the work */
  font-size: 1rem;
}
.profile-master-wrap .profile-listings-sale .simple-property-card .property-details .property-title a,
.profile-master-wrap .profile-listings-rent .simple-property-card .property-details .property-title a {
  text-decoration: none;
  color: #0066fe;
}
.profile-master-wrap .profile-listings-sale .simple-property-card .property-details .property-title a:hover,
.profile-master-wrap .profile-listings-rent .simple-property-card .property-details .property-title a:hover {
  text-decoration: underline;
}
.profile-master-wrap .profile-listings-sale .simple-property-card .property-details .property-price,
.profile-master-wrap .profile-listings-rent .simple-property-card .property-details .property-price {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2a2a33;
}
.profile-master-wrap .profile-listings-sale .simple-property-card .property-details .property-address,
.profile-master-wrap .profile-listings-rent .simple-property-card .property-details .property-address {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-master-wrap .profile-listings-sale .simple-property-card .property-details .property-meta,
.profile-master-wrap .profile-listings-rent .simple-property-card .property-details .property-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #2a2a33;
}
.profile-master-wrap .profile-listings-sale .simple-property-card .property-details .property-meta span,
.profile-master-wrap .profile-listings-rent .simple-property-card .property-details .property-meta span {
  font-weight: 600;
}
.profile-master-wrap {
  /* Basic Mobile Responsive */
}
@media (max-width: 768px) {
  .profile-master-wrap .profile-business-card {
    flex-direction: column;
    text-align: center;
  }
}/*# sourceMappingURL=style.css.map */