/* Annunci Usato - stile pubblico */

.ul-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid #f0f0f0;
}
.ul-head h1 {
  margin: 0;
  font-size: 26px;
  color: #1a2b4a;
}
.ul-count {
  color: #8a94a6;
  font-size: 14px;
}

.ul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.ul-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.ul-card:hover {
  box-shadow: 0 8px 22px rgba(26,43,74,.12);
  transform: translateY(-3px);
}

.ul-thumb {
  position: relative;
  display: block;
  padding-top: 68%;
  background: #f4f6f8;
  overflow: hidden;
}
.ul-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ul-thumb .ul-noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9c1cc;
  font-size: 13px;
}
.ul-photos {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(26,43,74,.82);
  color: #fff;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 20px;
}

.ul-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}
.ul-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}
.ul-title a {
  color: #1a2b4a;
  text-decoration: none;
}
.ul-title a:hover { color: #f47c20; }

.ul-short {
  margin: 0 0 12px;
  color: #6b7a90;
  font-size: 13px;
  line-height: 1.5;
}

.ul-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.ul-tag {
  background: #f4f6f8;
  color: #5a6779;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 4px;
}

.ul-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
}
.ul-price {
  font-size: 19px;
  font-weight: 700;
  color: #f47c20;
}
.ul-price.ul-ask {
  font-size: 14px;
  font-weight: 600;
  color: #6b7a90;
}
.ul-btn {
  background: #1a2b4a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.ul-btn:hover { background: #f47c20; }

.ul-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8a94a6;
  background: #f9fafb;
  border-radius: 10px;
}
.ul-empty strong {
  display: block;
  font-size: 17px;
  color: #1a2b4a;
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .ul-grid { grid-template-columns: 1fr; }
}

/* ---------- Scheda annuncio ---------- */

.ul-back { margin-bottom: 16px; }
.ul-back a { color: #6b7a90; text-decoration: none; font-size: 14px; }
.ul-back a:hover { color: #f47c20; }

.ul-main-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}
.ul-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}
.ul-thumbs img {
  width: 100%;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e3e7ec;
  cursor: pointer;
  transition: border-color .15s ease;
}
.ul-thumbs img:hover { border-color: #f47c20; }

.ul-d-price {
  font-size: 30px;
  font-weight: 700;
  color: #f47c20;
  margin: 0 0 10px;
}
.ul-d-price.ul-ask { font-size: 19px; color: #6b7a90; }

.ul-d-short {
  color: #5a6779;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.ul-d-specs { font-size: 14px; margin-bottom: 18px; }
.ul-d-specs td:first-child { color: #8a94a6; width: 42%; }

/* Azioni di contatto */
.ul-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ul-actions:not(:empty) { margin-bottom: 20px; }

.ul-btn-call {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #27ae60;
  color: #fff !important;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s ease;
}
.ul-btn-call:hover { background: #1e8e4e; color: #fff !important; }
.ul-btn-call .ul-ico { font-size: 26px; line-height: 1; }
.ul-btn-call strong { display: block; font-size: 16px; }
.ul-btn-call em {
  display: block;
  font-style: normal;
  font-size: 15px;
  opacity: .92;
  letter-spacing: .4px;
}


.ul-formbox {
  border: 1px solid #e8ebef;
  border-radius: 10px;
  padding: 18px;
}
.ul-form-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #1a2b4a;
}
.ul-formbox .alert ul { margin: 0; padding-left: 18px; }

.ul-btn-send {
  width: 100%;
  background: #f47c20;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.ul-btn-send:hover { background: #d96a10; }

.ul-desc {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 2px solid #f0f2f5;
}
.ul-desc h3 { font-size: 19px; color: #1a2b4a; margin: 0 0 12px; }
.ul-desc div { color: #5a6779; line-height: 1.75; }

@media (max-width: 767px) {
  .ul-d-price { font-size: 25px; }
}
