.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.dark-mode {
  background-color: #1a202c;
  color: #f7fafc;
}

.filter-panel {
  transition: all 0.3s ease;
}

.filter-panel.closed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.filter-panel.open {
  max-height: 1000px;
  opacity: 1;
}

.swiper-slide {
  height: 400px;
}

.swiper-thumbs .swiper-slide {
  height: 80px;
  opacity: 0.6;
  cursor: pointer;
}

.swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.property-feature:hover {
  transform: translateY(-3px);
}

/* Ingatlan típus ikonos választó (DH stílus) */
.type-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid #e5e7eb;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.type-btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}
.type-btn.active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: white;
}

/* Tailwind utility gap-fills.
 * css/tailwind.min.css is a pre-compiled static build that was scanned
 * before these classes were introduced, so they render white-on-white
 * on admin pages (Teljes átvétel / Teljes szinkron / Batch jóváhagyás).
 * Re-listed here until the Tailwind build is regenerated. */
.bg-orange-600 { background-color: #ea580c; }
.bg-orange-700 { background-color: #c2410c; }
.hover\:bg-orange-700:hover { background-color: #c2410c; }
.bg-red-700 { background-color: #b91c1c; }
.bg-red-800 { background-color: #991b1b; }
.hover\:bg-red-800:hover { background-color: #991b1b; }
.bg-violet-700 { background-color: #6d28d9; }
.bg-violet-800 { background-color: #5b21b6; }
.hover\:bg-violet-800:hover { background-color: #5b21b6; }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-700 { background-color: #047857; }
.hover\:bg-emerald-700:hover { background-color: #047857; }

/* line-clamp — nem volt a statikus Tailwind buildben */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Teal — office-browse tab színei */
.bg-teal-50  { background-color: #f0fdfa; }
.bg-teal-600 { background-color: #0d9488; }
.bg-teal-700 { background-color: #0f766e; }
.border-teal-100 { border-color: #ccfbf1; }
.text-teal-600   { color: #0d9488; }
.text-teal-900   { color: #134e4a; }
.hover\:bg-teal-700:hover { background-color: #0f766e; }

/* Admin role-alapú rejtés: editor (Anikó) nem lát nukleáris eszközöket.
 * body[data-role="owner"] és data-role nélkül minden látszik. */
body[data-role="editor"] [data-owner-only] { display: none !important; }

/* Romfa Public UX v2026.05.01-1
 * Public-facing polish shared by homepage, listings, detail, contact,
 * services, about, and career pages. */
:root {
  --romfa-primary: #0c67d3;
  --romfa-primary-dark: #074fa7;
  --romfa-secondary: #e63946;
  --romfa-accent: #2a9d8f;
  --romfa-ink: #1f2937;
  --romfa-muted: #4b5563;
  --romfa-soft: #f5f8fc;
  --romfa-border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--romfa-ink);
  text-rendering: optimizeLegibility;
}

.font-heading,
h1,
h2,
h3 {
  letter-spacing: 0;
}

a,
button,
input,
select,
textarea {
  min-height: 44px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(12, 103, 211, 0.28);
  outline-offset: 2px;
}

header {
  backdrop-filter: saturate(140%) blur(8px);
}

header .container {
  max-width: 1180px;
}

header nav a,
header a[href="/pages/kapcsolat.html"] {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

section {
  overflow-wrap: anywhere;
}

.bg-gradient-to-br.from-primary,
.bg-gradient-to-r.from-primary {
  background: linear-gradient(135deg, #0c67d3 0%, #074fa7 100%);
}

.shadow-lg,
.shadow-xl,
.shadow-2xl,
.shadow-md {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rounded-xl,
.rounded-2xl {
  border-radius: 8px;
}

.bg-primary,
.hover\:bg-blue-700:hover {
  background-color: var(--romfa-primary);
}

.text-primary {
  color: var(--romfa-primary);
}

.border-primary {
  border-color: var(--romfa-primary);
}

.bg-secondary {
  background-color: var(--romfa-secondary);
}

.hover\:bg-red-500:hover,
.hover\:bg-red-600:hover {
  background-color: #c82431;
}

.property-card,
#properties-container > a,
#all-properties-container > a,
.category-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  will-change: transform;
}

.property-card,
#properties-container > a,
#all-properties-container > a {
  min-height: 100%;
}

.property-card img,
#properties-container img,
#all-properties-container img {
  background: #eef2f7;
}

.property-card h3,
#properties-container h3,
#all-properties-container h3 {
  line-height: 1.3;
}

.property-card:hover,
#properties-container > a:hover,
#all-properties-container > a:hover,
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.type-btn {
  min-height: 38px;
}

.public-ux-detail-card {
  border: 1px solid var(--romfa-border);
}

.public-ux-gallery-main {
  position: relative;
  cursor: zoom-in;
}

.public-ux-gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
  background: #eef2f7;
}

.public-ux-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 999px;
}

.public-ux-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: var(--romfa-soft);
  scrollbar-width: thin;
}

.public-ux-thumb {
  height: 80px;
  width: 112px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

.public-ux-thumb:hover,
.public-ux-thumb.is-active {
  opacity: 1;
}

.public-ux-thumb.is-active {
  border-color: var(--romfa-primary);
}

.public-ux-stat {
  background: var(--romfa-soft);
  border: 1px solid var(--romfa-border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  min-width: 0;
}

.public-ux-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--romfa-border);
}

.public-ux-detail-row span:last-child {
  text-align: right;
}

.public-ux-form-card {
  border: 1px solid var(--romfa-border);
}

.public-ux-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}

footer .grid {
  align-items: start;
}

footer a {
  min-height: auto;
}

@media (max-width: 767px) {
  header .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  header img[alt*="Romfa"] {
    height: 44px;
  }

  header nav {
    gap: 10px;
  }

  header nav a {
    font-size: 14px;
  }

  header a[href="/pages/kapcsolat.html"] {
    padding: 8px 12px;
    font-size: 14px;
  }

  .py-16 {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  h1,
  .text-4xl,
  .md\:text-5xl {
    font-size: 2rem;
    line-height: 1.15;
  }

  .text-3xl {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .text-2xl {
    font-size: 1.3rem;
    line-height: 1.25;
  }

  .text-xl {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .container {
    max-width: 100%;
  }

  .grid-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-card {
    height: 170px;
  }

  .property-card .p-6,
  #properties-container .p-6,
  #all-properties-container .p-6,
  .p-8 {
    padding: 20px;
  }

  #all-properties-container {
    gap: 18px;
  }

  .filter-panel.hidden {
    display: none;
  }

  .public-ux-thumbs {
    padding: 10px;
  }

  .public-ux-gallery-main img {
    max-height: 420px;
  }

  .public-ux-thumb {
    height: 66px;
    width: 92px;
  }

  .public-ux-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .public-ux-detail-row span:last-child {
    text-align: left;
  }

  iframe {
    min-height: 260px;
  }

  footer .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (min-width: 768px) {
  .md\:rounded-xl {
    border-radius: 8px;
  }
}

/* Romfa Public UX v2026.05.03-2 — share gomb + hasonló grid */

/* Share gomb */
.public-ux-share-btn {
  cursor: pointer;
  min-height: 40px;
  line-height: 1;
}

.public-ux-share-btn:active {
  transform: scale(0.97);
}

/* lg:grid-cols-4 — a statikus Tailwind buildből hiányozhat */
@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

/* Admin napi használhatóság */
.admin-field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.admin-property-table {
  min-width: 980px;
}

#propertiesTable {
  overflow-x: auto;
}

#savePropertyBtn:disabled,
.admin-list-toolbar button:disabled {
  cursor: wait;
  opacity: .7;
}
