/* Reset βασικά */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f9f9f9;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 0 20px 40px;
  text-align: center;
}

/* Header και Top Bar */
header {
  width: 100%;
  background: white;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 40px;
  font-size: 14px;
  background: #eee;
  align-items: center;
}

.social-media a {
  color: #0077cc;
  margin-right: 15px;
  font-size: 18px;
  text-decoration: none;
}

.social-media a:hover {
  color: #555;
}

.contact-info span {
  margin-left: 20px;
  color: #555;
}

.contact-info i {
  margin-right: 6px;
  color: #0077cc;
}

/* Navigation */
.main-nav {
  text-align: center;
  margin: 20px 0 10px 0;
}

.main-nav ul {
  list-style: none;
  display: inline-flex;
  gap: 40px;
  font-weight: bold;
  font-size: 18px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #222;
  padding: 5px 10px;
  transition: color 0.3s;
}

.main-nav ul li a:hover {
  color: #0077cc;
}

/* Logo */
.logo-container {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 40px;
}

.logo-container img {
  max-width: 100%;
  max-height: 200px; /* περιορίζει το ύψος */
  height: auto;
  object-fit: contain;
  padding: 10px;
  display: inline-block;
}

/* Welcome */
.welcome h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  margin-top: 20px;
}

.welcome p {
  font-size: 1.2rem;
  color: #555;
}

.info-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.info-box {
  width: 350px;
  height: 350px;
}

.text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
}

.text-box h2 {
  margin-top: 0;
  color: #222;
}

.text-box p {
  color: #444;
  line-height: 1.6;
  font-size: 0.95rem;
}

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




/* Listings */
.property-listings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* --- CARD LAYOUT ΠΡΟΣΑΡΜΟΣΜΕΝΟ --- */
.property-card {
  max-width: 700px;
  width: 100%;
  height: 280px;
  display: flex;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: white;
}
.property-title {
  margin-bottom: 10px;
}


/* Εικόνες */
.images-container {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px;
}

.main-image {
  width: 100%;
  max-width: 280px;
  height: 200px;
  border-radius: 4px;
  cursor: pointer;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  width: 100%;
  max-width: 280px;
}

.thumbnail {
  width: 60px;
  height: 45px;
  flex-shrink: 0;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  object-fit: cover;
}

.thumbnail.active,
.thumbnail:hover {
  border-color: #f7b500;
}

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

/* Πληροφορίες */
.property-info {
  padding: 20px;
  overflow: auto;
  text-align: left;
  /* display: flex;  ❌ αφαίρεσέ το */
  /* flex-direction: column; ❌ επίσης */
  display: block; /* ✅ Προαιρετικά */
}

.property-info h3,
.property-info .type {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 10px;
}

.property-info .area {
  font-size: 16px;
  color: #555;
  margin-bottom: 8px;
}

.property-info .desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.property-info .price {
  font-size: 18px;
  color: green;
  font-weight: bold;
  padding-top: 10px;
}

.property-info .id {
  padding-bottom:10px;
}
p.id {
  font-style: italic;
}

.property-info p.year,
.property-info p.floor {
  margin-top: 10px;
}

.property-info p.year,
.property-info p.floor,
.property-info p.rooms,
.property-info p.bathrooms,
.property-info p.energia,
.property-info p.furnished {
  display: inline-block;
  width: 49%;
  box-sizing: border-box;
  vertical-align: top;
  white-space: nowrap;
}



.info-row p {
  flex: 1;          /* παίρνει ίσο χώρο το κάθε p */
  margin: 0;        /* αφαιρούμε περιττά margins */
}


/* Διαβάστε περισσότερα */
.dots {
  display: inline;
}

.more-text {
  display: none;
}

.read-more {
  color: #0077cc;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  user-select: none;
  margin-left: 5px;
  display: inline;
}

/* Responsive */
@media (max-width: 1200px) {
  .property-card {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .property-listings {
    flex-direction: column;
    align-items: center;
  }

  .property-card {
    flex-direction: column;
    height: auto;
  }

  .images-container {
    flex: none;
    width: 100%;
    padding: 10px 0;
  }

  .main-image {
    height: auto;
  }

  .thumbnails {
    max-width: 100%;
  }

  .property-info {
    padding: 10px;
  }

  .top-bar {
    flex-direction: column;
    text-align: center;
  }

  .social-media a {
    margin-bottom: 10px;
  }

  .contact-info span {
    display: block;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .main-nav ul li a {
    font-size: 16px;
  }

  .property-info h3,
  .property-info .type {
    font-size: 18px;
	margin-top: 4px;
  }

  .property-info .price {
    font-size: 16px;
  }

  .thumbnail {
    width: 50px;
    height: 40px;
  }
}

/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px #000;
  border-radius: 5px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1100;
  user-select: none;
  font-weight: bold;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0 40px 0;
  gap: 8px;
  flex-wrap: wrap;
  user-select: none;
}

.pagination button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 6px 12px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.pagination button:hover:not(.active) {
  background-color: #ddd;
}

.pagination button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  cursor: default;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ➕ ΝΕΟΙ ΚΑΝΟΝΕΣ */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 0 1rem;
  z-index: 10;
}

.lightbox-arrow.prev { left: 10px; }
.lightbox-arrow.next { right: 10px; }

.lightbox-arrow:hover,
.lightbox-arrow:focus { opacity: 0.8; }


/* Footer */
footer {
  width: 100%;
  background: #222;
  color: #fff;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  text-align: center;
}

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

.footer-content p {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 10px;
}

.footer-content a {
  color: #0077cc;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

footer .social-media {
  margin-top: 15px;
}

footer .social-media a {
  color: #fff;
  margin: 0 10px;
  font-size: 20px;
}

footer .social-media a:hover {
  color: #0077cc;
}
