:root {
  --primary: #00C5A5;
  --primary-light: #00F5CC;
  --primary-dark: #008F7A;
  --dark-text: #151515;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inter';
  src: url('https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3ILTeHuS.woff2') format('woff2');
  font-display: swap; /* Εμφανίζει αμέσως fallback font */
}

body, html {
  font-family: 'Segoe UI', 'Inter', sans-serif;
  background-color: #fafafa;
}

/* Μόνο για κινητές συσκευές (πλάτος έως 767px) */
@media (max-width: 767.98px) {
  body, html {
    padding-bottom: 80px;
  }
}
header {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 64px;
  background-color: white;
  border-bottom: 1px solid #e5e5e5;
  gap: 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.menu-item {
  font-size: 14px;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.search {
  flex: 1;
  position: relative;
}

.search input {
  width: 100%;
  padding: 10px 16px 10px 36px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.actions button {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.outline {
  background: #fff;
  color: var(--dark-text);
  border: 1px solid var(--primary);
  text-shadow: 0 1px 1px rgba(187, 189, 191, 0.3);
  font-weight: 600;
}

.primary, .btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: #1a1a1a !important;
  border-color: var(--primary);
  border-width: 0 0 02px 0;
  border-radius: 0;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.text-primary {
  color: #1a1a1a !important;
  
}

.card {
  border-radius: 16px;
  border: none;
}

.gallery-container {
  height: 60vh;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #eaeaea;
}

.gallery-img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-left,
.gallery-right {
  height: 100%;
}

.gallery-right {
  display: flex;
  flex-wrap: wrap;
}

.gallery-right > div {
  width: 50%;
  height: 50%;
  padding: 2px;
}

.modal-fullscreen .carousel-item img {
  max-height: 100vh;
  object-fit: contain;
  width: auto;
  margin: auto;
}

.sticky-sidebar {
  position: sticky;
  top: 20px;
}


.overlapping-card {
  margin-top: -80px;
  z-index: 1;
}

.info-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.info-tag.purple { background-color: #eee1ff; color: #7e00c1; }
.info-tag.orange { background-color: #ffeccc; color: #d27a00; }
.info-tag.red { background-color: #ffdada; color: #d40000; }
.info-tag.blue { background-color: #e0f2ff; color: #007ec1; }

.property-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 20px auto;
  max-width: 960px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-toggle {
  cursor: pointer;
  color: #6C3EF4;
  font-weight: bold;
  margin-bottom: 10px;
}

.property-category {
  margin-bottom: 30px;
}

.property-category h5 {
  color: #1a1a1a !important;
  font-weight: 600;
  border-bottom: 2px solid rgba(245,245,204,0.5);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.property-field {
  background: #fafafa;
}

.field-label {
  font-weight: 600;
  color: #333;
}

.field-value {
  color: #555;
}

#fullDetails {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

#fullDetails.show {
  max-height: 2000px;
  opacity: 1;
}

h2, h3, h5 {
  color: #1a1a1a !important;
}

.nav-tabs .nav-link.active {
  border: none;
  color: #6C3EF4;
  border-bottom: 2px solid #6C3EF4;
  font-weight: bold;
}

.mobile-price-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
  border-top: 1px solid #e4e4e4;
  z-index: 1030;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 12px 20px;
}

.mobile-price-bar .btn {
  font-size: 1rem;
  font-weight: bold;
}

.mobile-price-bar .text-primary {
  font-size: 1.8rem !important;
}

@media (max-width: 576px) {
  h2 {
    font-size: 1.5rem;
  }

  .gallery-img {
    border-radius: 8px;
  }

  .info-tag {
    font-size: 0.7rem;
  }
}

.floating-label-group {
  position: relative;
}

.floating-label-group .floating-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1rem 0.75rem 0.25rem; /* extra top padding for label */
  width: 100%;
}

.floating-label-group .floating-label {
  position: absolute;
  top: 0.9rem;
  left: 0.75rem;
  color: #999;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s ease all;
  background: white;
  padding: 0 5px;
}

/* Floating effect when input is focused or has value */
.floating-label-group .floating-input:focus + .floating-label,
.floating-label-group .floating-input:not(:placeholder-shown) + .floating-label {
  top: -0.5rem;
  left: 0.6rem;
  font-size: 0.75rem;
  color: #00bcd4;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  transform: translate(0.15rem, -1.7rem) scale(0.85);
  top: 1;

}
.form-control:hover{
  box-shadow: #c2c2c2;
}
.form-control:focus {
  box-shadow: none !important;
   border-color: #c2c2c2; /* ή ό,τι άλλο θέλεις */
}

.form-floating .form-control {
  padding-top: 1.3rem !important;
  padding-bottom: 1.3rem !important;
}

@media (max-width: 991.98px) {
  .sticky-sidebar {
    position: static;
    top: auto;
    display: none;
  }
  .actions {
    display: none !important;
  }
}
