/* Shared utility classes to replace inline style="" attributes */

/* Width percentages */
.w-20 { width: 20%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.w-100 { width: 100%; }

/* Max heights */
.max-h-409 { max-height: 409px; }

/* Text alignment */
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

/* Margins */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

/* Padding */
.p-0 { padding: 0; }

/* Dashboard section heading (used by qodef-m-section-heading / section-heading component) */
.qodef-m-section-heading {
  text-align: center;
  padding-top: 2rem;
  margin-bottom: 1.5rem;
}

.qodef-m-section-heading .qodef-m-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark, #1a1a2e);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.qodef-m-section-heading .qodef-m-text {
  font-size: 1rem;
  color: var(--text-muted, #636e72);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
}

/* Property card action-button tooltip fix:
   The tooltip was clipped by the .property-image-container overflow:hidden.
   Move it to the left side of the button where it remains inside the card. */
.action-btn::after {
  right: calc(100% + 8px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) scale(0);
  white-space: nowrap;
}

.action-btn::before {
  right: calc(100% + 3px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-left-color: #2c3e50;
}

.action-btn:hover::after {
  transform: translateY(-50%) scale(1);
}

/* Dashboard quick-link active state */
.quick-links-card .quick-link.active {
  background: var(--primary-light, #f1f4f6);
  border-radius: var(--radius-md, 12px);
  box-shadow: inset 0 0 0 2px var(--primary, #f9c23c);
}

.quick-links-card .quick-link.active .quick-link-icon {
  background: var(--primary-dark, #1a1a2e);
  color: #fff;
  transform: scale(1.05);
}

.quick-links-card .quick-link.active span {
  color: var(--primary-dark, #1a1a2e);
  font-weight: 700;
}

/* Dashboard property-card completion mini placement */
.price-container .im-completion-mini {
  position: relative;
  bottom: auto;
  right: auto;
  margin-left: auto;
}

/* Services page controls-bar enhancement */
.controls-bar {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06));
  padding: 1rem 1.25rem;
  gap: 1rem;
}

.search-input {
  background: var(--bg-secondary, #f8fafc);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: .85rem 2.75rem .85rem 1rem;
  font-size: .95rem;
  transition: all .2s ease;
}

.search-input:focus {
  border-color: var(--primary, #f9c23c);
  box-shadow: 0 0 0 4px rgba(249, 194, 60, .15);
  background: #fff;
  outline: none;
}

.sort-dropdown {
  background: var(--bg-secondary, #f8fafc);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: .75rem 2.5rem .75rem 1rem;
  font-weight: 500;
  transition: all .2s ease;
}

.sort-dropdown:focus {
  border-color: var(--primary, #f9c23c);
  box-shadow: 0 0 0 4px rgba(249, 194, 60, .15);
  outline: none;
}

.view-toggle {
  background: var(--bg-secondary, #f8fafc);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}

.view-btn {
  padding: .65rem .9rem;
  transition: all .2s ease;
}

.view-btn.active {
  background: var(--primary, #f9c23c);
  color: var(--primary-dark, #1a1a2e);
}

.view-btn:not(.active):hover {
  background: rgba(249, 194, 60, .15);
  color: var(--primary-dark, #1a1a2e);
}

.search-clear {
  color: var(--text-secondary, #64748b);
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  background: rgba(239, 68, 68, .1);
  color: var(--danger, #ef4444);
}

.results-count {
  font-weight: 500;
  color: var(--text-secondary, #64748b);
}

/* Service card title link */
.card-title a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.card-title a:hover {
  color: var(--primary, #f9c23c);
}

/* My ads add-property button styling */
.qodef-m-actions {
  margin-top: 2rem;
  text-align: center;
}

.qodef-m-actions .qodef-real-estate-property-add.qodef-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--primary, #f9c23c);
  color: var(--primary-dark, #1a1a2e);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-md, 12px);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(249, 194, 60, .35);
  transition: all .2s ease;
}

.qodef-m-actions .qodef-real-estate-property-add.qodef-button:hover {
  background: var(--primary-hover, #e5b030);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(249, 194, 60, .45);
}

.qodef-m-actions .qodef-real-estate-property-add.qodef-button svg {
  flex-shrink: 0;
}

/* Dashboard property card title row tweaks */
.qodef-m-property-item .qodef-e-title a {
  color: var(--primary-yellow, #f9c23c);
  font-weight: 700;
}

.qodef-m-property-item .property-price-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  color: var(--secondary, #fb8053);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.qodef-m-property-item .property-actions {
  max-width: 30px;
}

.qodef-m-property-item .property-actions .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary, #374151);
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.qodef-m-property-item .property-actions .dropdown-toggle:hover {
  color: var(--primary-yellow, #f9c23c);
}

.qodef-m-property-item .property-actions .dropdown-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor !important;
  fill: none !important;
}

/* Completion ring color thresholds on dashboard property cards */
.qodef-m-property-item .im-completion-ring.low {
  background: conic-gradient(var(--danger, #ef4444) calc(var(--completion) * 1%), var(--border, #e5e7eb) 0);
}

.qodef-m-property-item .im-completion-ring.medium {
  background: conic-gradient(var(--primary-yellow, #f9c23c) calc(var(--completion) * 1%), var(--border, #e5e7eb) 0);
}

.qodef-m-property-item .im-completion-ring.high {
  background: conic-gradient(var(--success, #10b981) calc(var(--completion) * 1%), var(--border, #e5e7eb) 0);
}

/* Active state for dashboard property cards (toast-style vertical green bar) */
.qodef-m-property-item.qodef-e {
  border-left: 4px solid transparent;
}

.qodef-m-property-item.qodef-e.is-active {
  border-left-color: var(--success, #10b981);
  /* background: var(--success-light, #ecfdf5); */
}

/* Logout / generic confirmation dialog */
.imobiliaDialog,
#deleteProfile,
#logoutDialog,
#priceEvaluation,
#qaDialog,
#gaugeModal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgb(107 114 128 / .75);
    z-index: 999;
    padding: 30px;
}

.imobiliaDialog.show-dialog,
#deleteProfile.show-dialog,
#logoutDialog.show-dialog,
#priceEvaluation.show-dialog,
#qaDialog.show-dialog,
#gaugeModal.show-dialog {
    display: flex;
}

.imobiliaDialog .dialog-content,
#qaDialog .dialog-content,
#deleteProfile .dialog-content,
#logoutDialog .dialog-content,
#priceEvaluation .dialog-content,
#qaDialog.dialog-content,
#gaugeModal.dialog-content {
    background-color: #fff;
    border-radius: .5rem;
    box-shadow: 0 10px 25px rgb(0 0 0 / .1);
    max-width: 32rem;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transform: scale(.95);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.imobiliaDialog.show-dialog .dialog-content,
#deleteProfile.show-dialog .dialog-content,
#logoutDialog.show-dialog .dialog-content,
#priceEvaluation.show-dialog .dialog-content,
#gaugeModal.show-dialog .dialog-content,
#qaDialog.show-dialog .dialog-content {
    transform: scale(1);
    opacity: 1;
}

.imobiliaDialog .dialog-header,
#deleteProfile .dialog-header,
#logoutDialog .dialog-header,
#priceEvaluation .dialog-header,
#gaugeModal .dialog-header,
#qaDialog .dialog-header {
    display: flex;
    padding: 1.25rem;
}

.imobiliaDialog .dialog-icon,
#deleteProfile .dialog-icon,
#logoutDialog .dialog-icon,
#qaDialog .dialog-icon {
    background-color: #fee2e2;
    color: #dc2626;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.imobiliaDialog .dialog-title,
#deleteProfile .dialog-title,
#logoutDialog .dialog-title,
#priceEvaluation .dialog-title,
#gaugeModal .dialog-title,
#qaDialog .dialog-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-top: 10px;
}

.imobiliaDialog .dialog-body,
#deleteProfile .dialog-body,
#logoutDialog .dialog-body,
#priceEvaluation .dialog-body,
#gaugeModal .dialog-body,
#qaDialog .dialog-body {
    padding: 0 1.25rem 1rem;
    color: #6b7280;
    font-size: .875rem;
}

.imobiliaDialog .dialog-footer,
#deleteProfile .dialog-footer,
#logoutDialog .dialog-footer,
#priceEvaluation .dialog-footer,
#gaugeModal .dialog-footer,
#qaDialog .dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
}

.imobiliaDialog .btn,
#deleteProfile .btn,
#priceEvaluation .btn {
    font-size: .875rem;
    font-weight: 600;
    padding: .5rem .75rem;
    border: none;
    border-radius: .375rem;
    cursor: pointer;
}

.imobiliaDialog .btn-danger,
#deleteProfile .btn-danger,
#logoutDialog .btn-danger,
#gaugeModal .btn-danger,
#qaDialog .btn-danger {
    background-color: #dc2626;
    color: #fff;
}

.imobiliaDialog .btn-danger:hover,
#deleteProfile .btn-danger:hover,
#logoutDialog .btn-danger:hover,
#gaugeModal .btn-danger:hover,
#qaDialog .btn-danger:hover {
    background-color: #b91c1c;
}

.imobiliaDialog .btn-cancel,
#deleteProfile .btn-cancel,
#logoutDialog .btn-cancel,
#priceEvaluation .btn-cancel {
    background-color: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.imobiliaDialog .btn-cancel:hover,
#deleteProfile .btn-cancel:hover,
#logoutDialog .btn-cancel:hover,
#priceEvaluation .btn-cancel:hover {
    background-color: #f3f4f6;
}
