/* ===== VÁLTOZÓK ===== */
:root {
  --turquoise: #2ABFBF;
  --salmon: #E8836A;
  --olive: #4A7C59;
  --navy: #1A2E44;
  --yellow: #C8A800;
  --light-bg: #F7F9FB;
  --white: #ffffff;
  --text: #2C3E50;
  --text-light: #6B7A8D;
  --border: #E2E8F0;
  --shadow: 0 2px 16px rgba(26,46,68,0.10);
  --radius: 12px;
}

/* ===== ALAP ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(26,46,68,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--navy);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
}
.logo-wrapper {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  box-shadow: none;
}
.logo-img {
  height: 110px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--turquoise);
  border-bottom-color: var(--turquoise);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--white);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  background: url('hero.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,46,68,0.55) 0%, rgba(26,46,68,0.35) 60%, rgba(26,46,68,0.65) 100%);
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--turquoise), var(--yellow), var(--salmon), var(--olive));
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 14px;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-content p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.90;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ===== SZŰRŐ ===== */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.filter-inner {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-inner select,
.filter-inner input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
  min-width: 150px;
}
.filter-inner select:focus,
.filter-inner input:focus {
  border-color: var(--turquoise);
}
.btn-primary {
  background: var(--turquoise);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { background: #22a8a8; transform: translateY(-1px); }

/* ===== INGATLAN GRID ===== */
main.container {
  padding-top: 36px;
  padding-bottom: 60px;
}
.ingatlan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.loading-msg, .empty-msg {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  padding: 60px 0;
}

/* ===== KÁRTYA ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,46,68,0.15);
}
.card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #dde4ed;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--turquoise);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.card-badge.haz { background: var(--olive); }
.card-badge.telek { background: var(--yellow); color: var(--navy); }
.card-badge.egyeb { background: var(--salmon); }
.card-status-sold {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,46,68,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-status-sold span {
  background: var(--salmon);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 24px;
  border-radius: 4px;
  transform: rotate(-15deg);
}
.card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-meta .icon { font-size: 0.9rem; }
.card-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #FAFBFC;
}
.card-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}
.card-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}
.btn-detail {
  background: transparent;
  border: 1.5px solid var(--turquoise);
  color: var(--turquoise);
  padding: 7px 16px;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-detail:hover {
  background: var(--turquoise);
  color: var(--white);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,46,68,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 48px rgba(26,46,68,0.25);
}
.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 16px 0 0;
  background: var(--light-bg);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--navy);
  z-index: 10;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--border); }
.modal-gallery {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #dde4ed;
  position: relative;
}
.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-gallery-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.modal-gallery-nav button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s;
}
.modal-gallery-nav button.active { background: var(--white); }
.modal-gallery-prev, .modal-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--navy);
  transition: background 0.2s;
}
.modal-gallery-prev { left: 12px; }
.modal-gallery-next { right: 12px; }
.modal-gallery-prev:hover, .modal-gallery-next:hover { background: var(--white); }
.modal-body {
  padding: 24px 28px 32px;
}
.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.modal-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.modal-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--turquoise);
  margin-bottom: 20px;
}
.modal-specs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--light-bg);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.modal-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.modal-spec .spec-val {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.modal-spec .spec-label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.modal-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-line;
  margin-bottom: 24px;
}
.modal-contact {
  background: linear-gradient(135deg, var(--navy), #2A4A6B);
  color: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.modal-contact p { font-size: 0.95rem; opacity: 0.9; }
.modal-contact strong { font-size: 1.1rem; display: block; margin-bottom: 4px; }
.btn-call {
  background: var(--turquoise);
  color: var(--white);
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-call:hover { background: #22a8a8; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-info p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.footer-info a { color: var(--turquoise); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}

/* ===== RÓLAM OLDAL ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #2A4A6B);
  color: var(--white);
  padding: 56px 20px 48px;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-hero p { opacity: 0.8; }
.page-content {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 20px;
}
.page-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--turquoise);
  display: inline-block;
}
.page-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}
.placeholder-box {
  background: var(--light-bg);
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ===== KAPCSOLAT OLDAL ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.contact-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.contact-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--turquoise); }
.contact-form textarea { height: 120px; resize: vertical; }

/* ===== RESZPONZÍV ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-content h1 { font-size: 1.7rem; }
  .ingatlan-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 16px 18px 24px; }
  .modal-gallery { height: 220px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .filter-inner { flex-direction: column; }
  .filter-inner select, .filter-inner input, .btn-primary { width: 100%; }
}
