/* Imotimo common legacy CSS, blue glass edition (based on supplied style.css) */
body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #dfeafb url('../images/plovdiv-bg.png') center center / cover fixed;
  min-height: 100vh;
  color: #222;
  position: relative;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(41,65,114,0.13);
}
.header {
  background: linear-gradient(90deg, #1978e6 0%, #005a99 100%);
  padding: 0 0 0 20px;
  min-height: 65px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 18px #1978e626;
  flex-wrap: wrap;
}
.header img { height: 50px; margin-right: 18px; }
.header nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.header nav a { color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; transition: color .18s; }
.header nav a:hover { color: #ffe067; }
.header .user-links { margin-left: auto; display: flex; gap: 11px; flex-wrap: wrap; }
.header .lang-select {
  background: #fff; border-radius: 5px; padding: 5px 10px; border: none;
  font-size: 15px; color: #1978e6; font-weight: bold; margin-left: 8px; cursor: pointer;
}
.main-container {
  max-width: 1200px;
  margin: 45px auto 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 32px;
}
.left-block, .right-block {
  background: rgba(255,247,221,0.96);
  border-radius: 18px;
  box-shadow: 0 8px 36px 0 #001e4220;
  padding: 38px 28px;
}
.left-block { flex: 2; margin-bottom: 22px; }
.right-block { flex: 1.2; min-width: 340px; }
.search-form {
  background: rgba(255,247,221,0.96);
  border: 1.5px solid #b1cdfa;
  border-radius: 14px;
  box-shadow: 0 1px 8px #c5e2ff13;
  padding: 22px 16px 14px 18px;
  margin-bottom: 22px;
}
.search-form label { font-weight: 600; color: #115aad; margin-bottom: 4px; display: block; }
.search-form input, .search-form select {
  box-sizing: border-box;
  padding: 10px 13px; margin-bottom: 12px; border: 1.2px solid #d4e6fa;
  border-radius: 6px; font-size: 1.08rem; width: 100%; background: #fafdff;
  transition: border .15s, box-shadow .15s;
}
.search-form input:focus, .search-form select:focus {
  border: 1.2px solid #1978e6;
  outline: none;
  box-shadow: 0 2px 10px #1978e620;
}
.search-form input[type="submit"], .search-form button {
  background: #1978e6; color: #fff; font-weight: bold; border: none;
  border-radius: 8px; padding: 13px 0; margin-top: 7px; font-size: 1.14em;
  box-shadow: 0 1px 9px #1978e622; cursor: pointer; transition: background .15s;
}
.search-form input[type="submit"]:hover, .search-form button:hover { background: #0c4ea5; }
.mapbox-container, #map {
  margin-top: 14px; border-radius: 13px; overflow: hidden;
  box-shadow: 0 3px 24px #1978e632; background: #fbeab6;
}
.map-list-wrap { background: #fff9e4; border-radius: 20px; box-shadow: 0 6px 30px #ffe5a029; padding-bottom: 24px; }
.property-list { background: #fffbe8; border-radius: 17px; box-shadow: 0 1px 7px #e4c97a2b; padding: 18px; }
.latest-ads { margin-top: 11px; }
.latest-card, .property-card {
  display: flex; gap: 18px; background: #fffdfa; border-radius: 13px;
  box-shadow: 0 3px 13px #ffe17c16; padding: 16px 17px;
  align-items: center; margin-bottom: 19px;
}
.latest-card img, .property-card img {
  width: 120px; height: 86px; object-fit: cover; border-radius: 7px;
  border: 1.4px solid #f3d57a; background: #f9edca;
}
.latest-card .latest-info, .property-card .property-info { flex: 1; }
.latest-card .latest-title, .property-card .property-title {
  color: #1978e6; font-weight: 800; font-size: 1.18rem; margin-bottom: 2px;
}
.latest-card .latest-price, .property-card .property-price { color: #18a527; font-size: 1.22rem; font-weight: bold; }
.latest-card .latest-details, .property-card .property-type, .property-card .property-location {
  color: #83642c; font-size: 1.01em; margin-bottom: 4px;
}
.latest-card .btn-details, .property-card .view-btn {
  background: #1978e6; color: #fff; font-weight: 700; padding: 10px 30px;
  border: none; border-radius: 8px; font-size: 1.10em; box-shadow: 0 1px 10px #1978e616;
  margin-top: 7px; cursor: pointer; transition: background .13s;
  text-decoration: none; display: inline-block;
}
.latest-card .btn-details:hover, .property-card .view-btn:hover { background: #0c4ea5; }
.section-title { font-size: 2.0rem; color: #1978e6; font-weight: 800; margin-bottom: 14px; }
nav.main-nav {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: flex-start; margin-top: 10px;
}
nav.main-nav a, nav.main-nav button {
  display: inline-block; padding: 8px 18px; font-weight: bold; font-size: 15px;
  border-radius: 5px; text-decoration: none; cursor: pointer; transition: 0.2s;
  min-width: 140px; text-align: center; line-height: 18px; border: none;
}
.btn-blue { background-color: #1978e6; color: #fff; }
.btn-blue:hover { background-color: #0056b3; }
.btn-yellow { background-color: #ffd600; color: #222 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.btn-yellow:hover { background-color: #f4c400; }
@media (max-width: 1000px) {
  .main-container { flex-direction: column; gap: 7vw; }
  .right-block { min-width: 0; width: 100%; }
  .property-card img, .latest-card img { width: 97vw; height: auto; }
}
@media (max-width: 700px) {
  .main-container, .left-block, .right-block, .property-list { padding: 5vw 2vw; }
  .property-card img, .latest-card img { height: auto; width: 100%; }
  .header { min-height: 48px; font-size: 14px; padding: 0 2vw; flex-wrap: wrap; justify-content: center; }
  .header nav, .header .user-links {
    flex-basis: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 5px;
  }
  .header nav a, .header .user-links a, .header .lang-select { font-size: 14px; padding: 6px 10px; }
}

/* ===================================================================
   IMOTIMO GLOBAL GLASS v10
   Единна синьо-бяла стъклена тема за стари и нови PHP страници.
   Без промени по формите, SQL, навигацията или работата на Mapbox.
   Основни стойности: .48 големи / .34 малки панели.
   =================================================================== */
:root {
  --imotimo-glass-big: rgba(255,255,255,.48);
  --imotimo-glass-small: rgba(238,246,255,.34);
  --imotimo-glass-edge: rgba(255,255,255,.65);
  --imotimo-glass-blue-edge: rgba(139,185,231,.52);
  --imotimo-glass-shadow: 0 15px 36px rgba(10,42,86,.20), inset 0 1px 0 rgba(255,255,255,.55);
  --imotimo-glass-small-shadow: 0 7px 18px rgba(10,42,86,.13), inset 0 1px 0 rgba(255,255,255,.36);
}

/* Големи панели и външни обвивки */
body .left-block,
body .right-block,
body .search-form,
body .map-list-wrap,
body .property-list,
body .main-panel,
body .details-wrap,
body .edit-container,
body .form-container,
body .user-properties-list,
body .filter-form,
body .search-compact,
body .card:not(.ticker-card),
body .container {
  background: var(--imotimo-glass-big) !important;
  border: 1px solid var(--imotimo-glass-edge) !important;
  border-radius: 20px !important;
  box-shadow: var(--imotimo-glass-shadow) !important;
  -webkit-backdrop-filter: blur(10px) saturate(118%);
  backdrop-filter: blur(10px) saturate(118%);
}

/* Вътрешни карти, имоти, описания и характеристики */
body .latest-card,
body .property-card,
body .property:not(.mapboxgl-map),
body .iml-property,
body .user-property-item,
body .imx-attr,
body .iml-extra,
body .imx-preview,
body .imx-extras,
body .property-desc,
body .user-property-desc,
body .contact-info {
  background: var(--imotimo-glass-small) !important;
  border: 1px solid var(--imotimo-glass-blue-edge) !important;
  border-radius: 14px !important;
  box-shadow: var(--imotimo-glass-small-shadow) !important;
  -webkit-backdrop-filter: blur(7px) saturate(115%);
  backdrop-filter: blur(7px) saturate(115%);
}

/* Ценовият тикер да остане тъмен и контрастен */
body .ticker-card {
  background: rgba(15,23,42,.84) !important;
  border: 1px solid rgba(155,190,233,.45) !important;
  border-radius: 16px !important;
  color: #f3f7ff !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Полетата остават достатъчно светли за четене */
body input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body select,
body textarea {
  background-color: rgba(255,255,255,.88) !important;
  border-color: rgba(132,183,234,.78) !important;
  color: #20344d;
  max-width: 100%;
}
body input:focus,
body select:focus,
body textarea:focus {
  border-color: #1978e6 !important;
  outline-color: #1978e6;
}

/* Сините и жълтите бутони нарочно не се правят прозрачни. */
body .latest-card .latest-title,
body .property-card .property-title,
body .property-title,
body .section-title { color:#165eae; }
body .property-location,
body .property-type,
body .latest-card .latest-details { color:#304a68; }
body .imx-attr dt { color:#3e5b7e; }
body .imx-attr dd { color:#1e324d; }

/* Важна мобилна поправка: панелите да не излизат вдясно. */
html, body { max-width:100%; }
body .main-container,
body .left-block,
body .right-block,
body .form-container,
body .user-properties-list,
body .container,
body .card,
body .property-list,
body .iml-property {
  box-sizing:border-box;
  min-width:0;
}
body .mapboxgl-map, body #map { max-width:100%; }
@media (max-width: 700px) {
  body .left-block,
  body .right-block,
  body .form-container,
  body .user-properties-list,
  body .details-wrap,
  body .edit-container,
  body .container { border-radius:15px !important; }
  body .main-container { max-width:100%; }
  body .property-card img,
  body .latest-card img {
    max-width:100%;
    object-fit:cover;
  }
}

/* Браузъри без backdrop-filter: по-плътен фон за четимост. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root {
    --imotimo-glass-big: rgba(255,255,255,.90);
    --imotimo-glass-small: rgba(238,246,255,.87);
  }
}
