/*
 * Ard Adam — server-rendered form safety overrides.
 *
 * The compiled stylesheet (app.css) is the original Next.js build output and is
 * kept byte-identical. These few rules only fix cases that the compiled build
 * handled through React components: a bare <input> has an intrinsic min-width
 * of ~20 characters, which is wider than a 390 px phone and pushed admin forms
 * into horizontal scrolling.
 */
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}

img,
svg,
video {
  max-width: 100%;
}

/* Tables stay scrollable inside their own container, never the page. */
.aa-table-wrap {
  overflow-x: auto;
}

/*
 * Auto-sized grid tracks take their width from the *largest* item's
 * max-content contribution; a single wide form therefore stretched its
 * container past the viewport. Letting grid items shrink keeps every track
 * inside its parent while `sm:grid-cols-*` still applies above the breakpoint.
 */
.grid > * {
  min-width: 0;
}

/* A long single token (slug, URL) must never widen a table cell. */
td,
th {
  overflow-wrap: anywhere;
}

/* ==========================================================================
 * Utilities the compiled build does not contain.
 * --------------------------------------------------------------------------
 * app.css is the original Next.js/Tailwind output and is kept byte-identical.
 * Because it was compiled from the React source, a handful of arbitrary-value
 * utilities that only appear in the PHP templates were never generated — the
 * class was silently a no-op (e.g. success/danger badge colours, the navy
 * heading colour used by the admin screens). Each rule below reproduces
 * exactly what Tailwind would emit for that class, using the same design
 * tokens (--color-*) the compiled build defines.
 * ========================================================================== */

/* ---- backgrounds ---- */
.bg-\[\#0d1a22\] { background-color: #0d1a22; }
.bg-\[\#e7f5ec\] { background-color: #e7f5ec; }
.bg-\[\#f0e8db\] { background-color: #f0e8db; }
.bg-\[\#fdecea\] { background-color: #fdecea; }
.bg-\[\#fdf5e3\] { background-color: #fdf5e3; }
.bg-\[var\(--color-gold-100\)\] { background-color: var(--color-gold-100); }
.bg-\[var\(--color-line\)\] { background-color: var(--color-line); }
.bg-\[var\(--color-navy-900\)\] { background-color: var(--color-navy-900); }
.bg-\[var\(--color-olive-700\)\] { background-color: var(--color-olive-700); }
.bg-\[var\(--color-sand-50\)\] { background-color: var(--color-sand-50); }
.bg-\[var\(--color-sand-100\)\] { background-color: var(--color-sand-100); }
.bg-\[var\(--color-navy-950\)\]\/75 { background-color: color-mix(in srgb, var(--color-navy-950) 75%, transparent); }
.hover\:bg-\[var\(--color-navy-900\)\]:hover { background-color: var(--color-navy-900); }

/* ---- text ---- */
.text-\[\#0f5132\] { color: #0f5132; }
.text-\[\#7a1c14\] { color: #7a1c14; }
.text-\[\#7a5f22\] { color: #7a5f22; }
.text-\[1\.9rem\] { font-size: 1.9rem; }
.text-\[var\(--color-clay-600\)\] { color: var(--color-clay-600); }
.text-\[var\(--color-danger\)\] { color: var(--color-danger); }
.hover\:text-\[var\(--color-gold-600\)\]:hover { color: var(--color-gold-600); }

/* ---- borders ---- */
.border-\[\#1b7f4b\]\/40 { border-color: color-mix(in srgb, #1b7f4b 40%, transparent); }
.border-\[\#b3261e\]\/40 { border-color: color-mix(in srgb, #b3261e 40%, transparent); }
.border-\[\#e7b4ae\] { border-color: #e7b4ae; }
.border-\[var\(--color-danger\)\] { border-color: var(--color-danger); }
.border-\[var\(--color-navy-900\)\] { border-color: var(--color-navy-900); }
.border-\[var\(--color-sand-300\)\] { border-color: var(--color-sand-300); }
.border-\[var\(--color-success\)\] { border-color: var(--color-success); }

/* ---- sizing / radius / shadow ---- */
.max-w-\[18rem\] { max-width: 18rem; }
.rounded-\[1\.2rem\] { border-radius: 1.2rem; }
.shadow-\[var\(--shadow-card\)\] { box-shadow: 0 10px 30px -12px rgba(11, 26, 36, .28); }

/* ---- responsive two-column splits ---- */
@media (min-width: 1024px) {
  .lg\:grid-cols-\[0\.92fr_1\.08fr\] { grid-template-columns: 0.92fr 1.08fr; }
  .lg\:grid-cols-\[1\.15fr_0\.85fr\] { grid-template-columns: 1.15fr 0.85fr; }
}

/* ==========================================================================
 * Upload Zone & Media Preview Styles (Property Submission & Media Uploads)
 * ========================================================================== */
.aa-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  margin-top: 0.35rem;
  border: 2px dashed var(--color-line, #dcd4c7);
  border-radius: 1rem;
  background-color: var(--color-sand-50, #fcfbf9);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
  min-height: 130px;
  width: 100%;
  box-sizing: border-box;
}

.aa-upload-zone:hover,
.aa-upload-zone:focus-within,
.aa-upload-zone.is-dragover {
  border-color: var(--color-gold-600, #b89535);
  background-color: var(--color-sand-100, #f5f2eb);
  box-shadow: 0 4px 16px -6px rgba(11, 26, 36, 0.12);
}

.aa-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--color-navy-950, #0b1a24);
  box-shadow: 0 2px 8px -2px rgba(11, 26, 36, 0.12);
  margin-bottom: 0.25rem;
}

.aa-upload-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy-950, #0b1a24);
}

.aa-upload-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-ink-600, #5c6c75);
  line-height: 1.4;
}

.aa-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.aa-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.aa-upload-preview:empty {
  display: none;
}

.aa-preview-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--color-line, #dcd4c7);
  background-color: #0b1a24;
}

.aa-preview-thumb img,
.aa-preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-preview-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 26, 36, 0.75);
  color: #ffffff;
  font-size: 9px;
  padding: 2px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
}

.aa-preview-count {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f5132;
  background-color: #e7f5ec;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(27, 127, 75, 0.3);
}

.aa-upload-error {
  display: none;
  font-size: 0.75rem;
  color: #7a1c14;
  background-color: #fdecea;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(179, 38, 30, 0.3);
  margin-top: 0.5rem;
}

.aa-upload-error:not(:empty) {
  display: block;
}

/* ==========================================================================
 * Property Submission Wizard (Multi-step)
 * ========================================================================== */
.aa-wizard-nav {
  position: relative;
}

.aa-wizard-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .aa-wizard-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.aa-wizard-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid var(--color-line);
  background: var(--color-sand-50);
  text-align: right;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 100%;
}

.aa-wizard-step:hover {
  background: #ffffff;
  border-color: var(--color-sand-300);
}

.aa-wizard-step.is-active {
  background: var(--color-navy-950);
  border-color: var(--color-navy-950);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 28, 46, 0.15);
}

.aa-wizard-step.is-completed {
  background: #ffffff;
  border-color: var(--color-gold-500);
}

.aa-wizard-step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--color-navy-950);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--color-line);
  transition: all 0.2s ease;
}

.aa-wizard-step.is-active .aa-wizard-step-circle {
  background: var(--color-gold-500);
  color: var(--color-navy-950);
  border-color: var(--color-gold-500);
}

.aa-wizard-step.is-completed .aa-wizard-step-circle {
  background: #1b7f4b;
  color: #ffffff;
  border-color: #1b7f4b;
}

.aa-wizard-step-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: right;
}

.aa-wizard-step-num-label {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
}

.aa-wizard-step-title {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.aa-wizard-step.is-active .aa-wizard-step-title {
  color: #ffffff;
}

.aa-wizard-step.is-active .aa-wizard-step-num-label {
  color: rgba(255, 255, 255, 0.85);
}

.aa-wizard-panel {
  transition: opacity 0.2s ease;
}

.aa-wizard-panel.hidden {
  display: none !important;
}

/* ==========================================================================
 * Social Media Clickable Icons
 * ========================================================================== */
.aa-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s ease;
}

.aa-social-icon:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.aa-social-icon.tiktok:hover {
  background-color: #010101;
  box-shadow: 0 4px 12px rgba(1, 1, 1, 0.4);
}

.aa-social-icon.youtube:hover {
  background-color: #ff0000;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

.aa-social-icon.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.35);
}

.aa-social-icon.facebook:hover {
  background-color: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.aa-social-icon.whatsapp:hover {
  background-color: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
 * Admin Media Upload Clickable Cards & Icons
 * ========================================================================== */
.aa-media-upload-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  border: 2px dashed var(--color-sand-300);
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.aa-media-upload-card:hover {
  border-color: var(--color-gold-500);
  background-color: var(--color-sand-50);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 28, 46, 0.08);
}

.aa-media-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  margin-bottom: 0.6rem;
  transition: all 0.2s ease;
}

.aa-media-icon.video {
  background-color: #fdecea;
  color: #b3261e;
}

.aa-media-icon.photos {
  background-color: var(--color-sand-100);
  color: var(--color-navy-950);
}

.aa-media-upload-card:hover .aa-media-icon {
  transform: scale(1.08);
}

.aa-media-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy-950);
}

.aa-media-hint {
  font-size: 0.72rem;
  color: var(--color-ink-400);
  margin-top: 0.25rem;
}

.aa-media-filename {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f5132;
  background-color: #e7f5ec;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(27, 127, 75, 0.3);
}

.aa-contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-line);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-navy-950);
  background-color: #ffffff;
  transition: all 0.2s ease;
  text-decoration: none;
}

.aa-contact-social-btn:hover {
  background-color: var(--color-sand-50);
  border-color: var(--color-gold-500);
  transform: translateY(-1px);
}

/* ==========================================================================
 * Mobile Login Button & Mobile Menu Login Button
 * ========================================================================== */
.aa-mobile-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.aa-mobile-login-btn:hover,
.aa-mobile-login-btn:active {
  background: rgba(255, 255, 255, 0.38);
  border-color: #ffffff;
}

.aa-mobile-menu-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--color-gold-500);
  background-color: #ffffff;
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-navy-950);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.aa-mobile-menu-login-btn:hover {
  background-color: var(--color-sand-50);
  border-color: var(--color-gold-600);
}

/* ==========================================================================
 * Construction Price-Per-Meter Calculator & Cards
 * ========================================================================== */
.aa-calc-container {
  border-radius: 1.25rem;
  border: 1px solid var(--color-line);
  background: #ffffff;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(11, 26, 36, 0.04);
}

.aa-calc-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .aa-calc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.aa-calc-box {
  background: var(--color-sand-50);
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  padding: 1.25rem;
}

.aa-adjust-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.aa-adjust-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-line);
  background: #ffffff;
  color: var(--color-navy-950);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.aa-adjust-btn:hover {
  background: var(--color-gold-500);
  color: #ffffff;
  border-color: var(--color-gold-600);
}

.aa-adjust-btn:active {
  transform: scale(0.95);
}

.aa-adjust-input {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: 1px solid var(--color-line);
  padding: 0.5rem;
  background: #ffffff;
  color: var(--color-navy-950);
  direction: ltr;
}

.aa-calc-summary {
  background: linear-gradient(135deg, var(--color-navy-950), #162f40);
  color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.aa-calc-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.aa-calc-total-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.aa-calc-total-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-gold-400);
  font-family: var(--font-kufi), sans-serif;
}

.aa-calc-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  border-radius: 0.75rem;
  background: var(--color-gold-500);
  color: var(--color-navy-950);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.aa-calc-apply-btn:hover {
  background: var(--color-gold-400);
  transform: translateY(-1px);
}

.aa-project-card-header {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background: var(--color-sand-100);
}

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

.aa-project-card:hover .aa-project-card-img {
  transform: scale(1.04);
}

.aa-project-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(11, 26, 36, 0.82);
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ==========================================================================
 * Construction & Renovation — Price Per Meter Section & House Cards
 * ========================================================================== */
.aa-meter-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(to bottom, #ffffff, var(--color-sand-50));
  border-top: 1px solid var(--color-line);
}

.aa-house-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .aa-house-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .aa-house-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.aa-house-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid var(--color-line);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(11, 26, 36, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.aa-house-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(11, 26, 36, 0.15);
  border-color: var(--color-gold-400);
}

.aa-house-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-sand-100);
}

.aa-house-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.aa-house-card:hover .aa-house-thumb {
  transform: scale(1.05);
}

.aa-house-price-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  border-radius: 0.75rem;
  background: var(--color-navy-950);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 160, 23, 0.4);
}

.aa-house-price-val {
  color: var(--color-gold-400);
  font-family: var(--font-kufi), sans-serif;
}

.aa-house-status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 9999px;
  background: rgba(11, 26, 36, 0.8);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.aa-house-media-count {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-navy-950);
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.aa-house-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.aa-house-title {
  font-family: var(--font-kufi), 'Tajawal', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy-950);
  line-height: 1.4;
}

.aa-house-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-ink-400);
}

.aa-house-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.aa-house-desc {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-ink-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aa-house-view-btn {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-line);
  color: var(--color-gold-600);
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.aa-house-card:hover .aa-house-view-btn {
  color: var(--color-gold-500);
}

/* Modal / Lightbox */
.aa-house-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 26, 36, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.aa-house-modal.is-open {
  display: flex;
  opacity: 1;
}

.aa-house-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 58rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.aa-house-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-line);
}

.aa-house-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--color-sand-100);
  color: var(--color-navy-950);
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aa-house-modal-close:hover {
  background: var(--color-sand-200);
  transform: rotate(90deg);
}

.aa-house-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.aa-house-stage-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.aa-house-stage-img.is-zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}

.aa-house-stage-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aa-house-stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(11, 26, 36, 0.65);
  color: #ffffff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aa-house-stage-nav:hover {
  background: rgba(11, 26, 36, 0.95);
  color: var(--color-gold-400);
}

.aa-house-stage-prev {
  right: 1rem;
}

.aa-house-stage-next {
  left: 1rem;
}

.aa-house-thumbs-strip {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-sand-50);
  overflow-x: auto;
  border-bottom: 1px solid var(--color-line);
}

.aa-house-thumb-btn {
  position: relative;
  flex-shrink: 0;
  width: 4.5rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #000000;
  padding: 0;
  transition: all 0.15s ease;
}

.aa-house-thumb-btn.is-active {
  border-color: var(--color-gold-500);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.3);
}

.aa-house-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-house-thumb-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-950);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  gap: 2px;
}

.aa-house-details-box {
  padding: 1.5rem;
}

.aa-house-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-sand-50);
  border: 1px solid var(--color-line);
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-navy-950);
}





