/* ===========================
   INGATLAN KER - GLOBAL STYLES
   =========================== */

:root {
  --primary-color: #1a3a52;
  --secondary-color: #d4af37;
  --white: #ffffff;
  --dark-text: #333333;
  --light-bg: #f8f9fa;
  --border-color: #ddd;
  --sold-color: #e74c3c;
  --hover-color: #0f1f2e;
}

/* ===========================
   PASTEL COLOR SCHEMES (OPTIONAL)
   Az aktiváláshoz: fentebb kommenteld ki az eredeti :root
   blokkot, majd az alábbi három közül válassz egyet,
   és szedd ki a kommentjelek közül.
   =========================== */

/* --- 1. Soft Lavender & Cream (Levendula & Krém) --- 
:root {
  --primary-color: #9b88b8;
  --secondary-color: #d8bfd8;
  --white: #f5f5f0;
  --dark-text: #6b5b7a;
  --light-bg: #f9f7fb;
  --border-color: #e6ddf0;
  --sold-color: #e8b4c8;
  --hover-color: #7b6b98;
}
*/

/* --- 2. Mint & Rose (Menta & Rózsa) --- 
:root {
  --primary-color: #a8d5ba;
  --secondary-color: #f4c2c2;
  --white: #fef9f7;
  --dark-text: #6b7d73;
  --light-bg: #f6faf8;
  --border-color: #d9ebe3;
  --sold-color: #f0b4d4;
  --hover-color: #7a9883;
}
*/

/* --- 3. Peach & Powder Blue (Őszibarack & Púderkék) --- 
:root {
  --primary-color: #9ba4c4;
  --secondary-color: #f5d9b5;
  --white: #faf8f5;
  --dark-text: #6b7081;
  --light-bg: #f8f7fb;
  --border-color: #e3dfe8;
  --sold-color: #f4a89f;
  --hover-color: #747d9f;
}
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--light-bg);
}

html {
  scroll-behavior: smooth;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav ul,
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--secondary-color);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--secondary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===========================
   MAIN CONTENT
   =========================== */

main {
  min-height: calc(100vh - 200px);
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===========================
   GRID LAYOUTS
   =========================== */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.property-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

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

.property-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  position: relative;
}

.property-card.sold .property-image {
  opacity: 0.7;
}

.sold-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--sold-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.property-info {
  padding: 1.5rem;
}

.property-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.property-address {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.property-details {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.property-detail {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #666;
}

.property-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* ===========================
   TABS
   =========================== */

.tabs-container {
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.tab {
  padding: 1rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
}

.tab:hover {
  color: var(--primary-color);
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--secondary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===========================
   PROPERTY DETAIL PAGE
   =========================== */

.property-detail-header {
  margin-bottom: 2rem;
}

.property-detail-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.property-detail-address {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.property-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.spec {
  text-align: center;
}

.spec-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.spec-label {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.property-description {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1rem;
}

.property-description p {
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
}

/* ===========================
   GALLERY
   =========================== */

.gallery-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--light-bg);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.gallery-main img.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.gallery-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.gallery-button:hover {
  background-color: var(--hover-color);
}

.gallery-counter {
  text-align: center;
  color: #666;
  font-weight: 600;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbnail:hover {
  border-color: var(--secondary-color);
}

.gallery-thumbnail.active {
  border-color: var(--secondary-color);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 6px;
  border-left: 4px solid var(--secondary-color);
}

.contact-info-icon {
  font-size: 1.5rem;
}

.contact-info-content h3 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.contact-info-content p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.contact-info-content a {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-info-content a:hover {
  color: var(--secondary-color);
}

.contact-description {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  line-height: 1.8;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===========================
   BACK LINK
   =========================== */

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  nav ul,
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  nav ul.active,
  .nav-menu.active {
    display: flex !important;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .property-specs {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-main {
    height: 350px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .header-container {
    padding: 0 1rem;
  }

  nav ul,
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  nav ul.active,
  .nav-menu.active {
    display: flex !important;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .property-specs {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .gallery-main {
    height: 250px;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 60px;
  }

  .tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab {
    padding: 0.8rem 1rem;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.cursor-pointer {
  cursor: pointer;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card {
  animation: slideIn 0.4s ease;
}
