/* Underground Landlord Classifieds - Premium Styling */

:root {
  --ul-blue: #AADDFF;
  --ul-blue-light: #E5F3FF;
  --ul-blue-dark: #77BBEE;
  --ul-text-dark: #0a3d5f;
}

/* Hide default headings */
.ulfl-featured h3,
.ulfl-featured-card h3,
.ulfl-box strong {
  display: none !important;
}

/* ========== SEARCH HEADER ========== */
.ulfl-search-header {
  background: var(--ul-blue-light);
  border: 3px solid var(--ul-blue);
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(170,221,255,0.3);
}

.ulfl-search-header img {
  width: 70px;
  height: auto;
  flex-shrink: 0;
}

.ulfl-search-header-text h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--ul-text-dark);
}

.ulfl-search-header-text p {
  margin: 4px 0 0;
  color: #555;
  font-size: 15px;
}

/* ========== SEARCH BOX ========== */
.ulfl-box {
  background: var(--ul-blue-light);
  border: 3px solid var(--ul-blue);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(170,221,255,0.3);
}

.ulfl-box .ulfl-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.ulfl-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #111;
  flex: 1;
  min-width: 150px;
}

.ulfl-box input[type="text"],
.ulfl-box select {
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  background: white;
  transition: all 0.2s ease;
}

.ulfl-box input[type="text"]:focus,
.ulfl-box select:focus {
  border-color: var(--ul-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(170,221,255,0.2);
}

.ulfl-btn {
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--ul-blue-dark);
  background: linear-gradient(135deg, var(--ul-blue) 0%, #88ccff 100%);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(170,221,255,0.3);
}

.ulfl-btn:hover {
  background: linear-gradient(135deg, #99ccee 0%, #77bbee 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(170,221,255,0.4);
}

/* ========== LISTING CARDS ========== */
.ulfl-listing-card {
  position: relative;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.ulfl-listing-card:hover {
  border-color: var(--ul-blue);
  box-shadow: 0 8px 24px rgba(170,221,255,0.25);
  transform: translateY(-2px);
}

/* Corner logos on listing cards */
.ulfl-card-logo {
  position: absolute;
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

.ulfl-card-logo-tl {
  top: 10px;
  left: 10px;
}

.ulfl-card-logo-br {
  bottom: 10px;
  right: 10px;
}

/* ========== FEATURED LISTING ========== */
.ulfl-featured {
  position: relative !important;
  overflow: visible !important;
  padding-top: 50px !important;
}

/* Featured Listing Card */
.ulfl-featured-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 2px solid #E5F3FF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: visible !important;
}

/* Featured Image (left side) */
.ulfl-featured-image {
  flex: 0 0 auto;
}

/* Featured Body (right side) */
.ulfl-featured-body {
  flex: 1 1 auto;
}

/* Price */
.ulfl-price {
  font-size: 28px;
  font-weight: 800;
  color: #000;
  margin-bottom: 8px;
}

/* Location */
.ulfl-location {
  font-size: 16px;
  color: #555;
  margin-bottom: 6px;
}

/* Meta (beds/baths) */
.ulfl-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

/* Description */
.ulfl-featured-body p {
  line-height: 1.6;
  color: #333;
  margin-top: 12px;
}

/* Diagonal Ribbons */
.ulfl-featured::before,
.ulfl-featured::after {
  content: 'FEATURED';
  position: absolute !important;
  width: 120px;
  height: 35px;
  background: #AADDFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #000;
  letter-spacing: 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  z-index: 9999 !important;
  top: 10px !important;
}

.ulfl-featured::before {
  left: 0px !important;
  transform: rotate(-35deg);
}

.ulfl-featured::after {
  right: 0px !important;
  transform: rotate(35deg);
}

/* ========== RESULTS INFO ========== */
.ulfl-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 10px;
}

.ulfl-results-count {
  font-weight: 600;
  color: #333;
}

.ulfl-results-count span {
  background: var(--ul-blue);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-left: 8px;
}

/* ========== PAGINATION ========== */
.ulfl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 20px;
}

.ulfl-pagination a {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--ul-blue) 0%, #88ccff 100%);
  color: #000;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--ul-blue-dark);
  transition: all 0.2s ease;
}

.ulfl-pagination a:hover {
  background: linear-gradient(135deg, #99ccee 0%, #77bbee 100%);
  transform: translateY(-2px);
}

/* ========== FORM STYLING ========== */
.ulfl-form {
  display: grid;
  gap: 20px;
}

.ulfl-form label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
}

.ulfl-form input[type="text"],
.ulfl-form input[type="email"],
.ulfl-form input[type="number"],
.ulfl-form textarea,
.ulfl-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5F3FF;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
}

.ulfl-form input:focus,
.ulfl-form textarea:focus,
.ulfl-form select:focus {
  outline: none;
  border-color: #AADDFF;
  box-shadow: 0 0 0 3px rgba(170, 221, 255, 0.2);
}

.ulfl-form textarea {
  min-height: 120px;
  resize: vertical;
}

.ulfl-form button[type="submit"] {
  background: linear-gradient(135deg, var(--ul-blue) 0%, #88ccff 100%);
  color: #000;
  border: 2px solid var(--ul-blue-dark);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(170,221,255,0.3);
}

.ulfl-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #99ccee 0%, #77bbee 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(170,221,255,0.4);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .ulfl-search-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .ulfl-search-header img {
    width: 60px;
  }
  
  .ulfl-box {
    padding: 20px;
  }
  
  .ulfl-box .ulfl-form {
    flex-direction: column;
  }
  
  .ulfl-box label {
    min-width: 100%;
  }
  
  .ulfl-featured-card {
    flex-direction: column;
  }
  
  .ulfl-featured::before,
  .ulfl-featured::after {
    width: 100px;
    height: 30px;
    font-size: 10px;
  }
}