/* Custom Property System - Frontend Styles */

.cps-notice {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 14px;
}
.cps-notice-success {
  background: #e6f4ea;
  color: #1e7e34;
  border: 1px solid #b7e1c0;
}
.cps-notice-error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c2bd;
}

/* ---- Submission Form ---- */
.cps-form-wrap {
  max-width: 100%;
  margin: 0 auto;
}
.cps-property-form {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 28px;
}
.cps-field {
  margin-bottom: 18px;
}
.cps-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #222;
}
.cps-field input[type="text"],
.cps-field input[type="number"],
.cps-field input[type="url"],
.cps-field input[type="file"],
.cps-field select,
.cps-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fafafa;
}
.cps-field textarea {
  resize: vertical;
}
.cps-field input:focus,
.cps-field select:focus,
.cps-field textarea:focus {
  outline: none;
  border-color: #2271b1;
  background: #fff;
}

.cps-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.cps-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.cps-checkbox-label {
  font-weight: 400 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cps-submit-btn {
  background: #2271b1;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.cps-submit-btn:hover {
  background: #1a5a8a;
}

/* ---- Listing / Grid ---- */
.cps-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  background: #f7f7f7;
  padding: 14px;
  border-radius: 8px;
}
.cps-filter-bar input,
.cps-filter-bar select {
  padding: 9px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-size: 14px;
  flex: 1 1 150px;
}
.cps-filter-bar button {
  background: #2271b1;
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.cps-clear-filter {
  align-self: center;
  font-size: 13px;
  color: #777;
  text-decoration: underline;
}

.cps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cps-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.cps-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.cps-card-image {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}
.cps-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cps-card-noimg {
  width: 100%;
  height: 100%;
  background: #eee;
}
.cps-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2271b1;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.cps-card-body {
  padding: 16px;
}
.cps-card-title {
  font-size: 17px;
  margin: 0 0 6px;
}
.cps-card-title a {
  color: #222;
  text-decoration: none;
}
.cps-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #2271b1;
  margin-bottom: 4px;
}
.cps-card-location {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}
.cps-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.cps-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.cps-pagination .page-numbers {
  padding: 8px 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.cps-pagination .page-numbers.current {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}
.cps-no-results {
  text-align: center;
  color: #777;
  padding: 40px 0;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
  .cps-grid-2 {
    grid-template-columns: 1fr;
  }
  .cps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .cps-grid {
    grid-template-columns: 1fr;
  }
  .cps-filter-bar {
    flex-direction: column;
  }
  .cps-filter-bar input,
  .cps-filter-bar select,
  .cps-filter-bar button {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* ---- Single Property Detail Page ---- */
.cps-single-wrap {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}
.cps-single-header {
  margin-bottom: 18px;
}
.cps-single-title {
  font-size: 28px;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.cps-single-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cps-single-location {
  color: #666;
  font-size: 14px;
}
.cps-badge-purpose,
.cps-badge-status {
  display: inline-block;
  background: #2271b1;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.cps-badge-status {
  background: #2e7d32;
}
.cps-single-price {
  font-size: 24px;
  font-weight: 700;
  color: #2271b1;
}

.cps-single-gallery {
  margin-bottom: 26px;
}
.cps-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f0f0;
}
.cps-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cps-thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cps-thumb {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.75;
  transition: all 0.15s ease;
}
.cps-thumb:hover {
  opacity: 1;
}
.cps-thumb.active {
  border-color: #2271b1;
  opacity: 1;
}

.cps-single-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}
.cps-facts-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  background: #f7f7f7;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}
.cps-fact span {
  margin-right: 4px;
}

.cps-section-title {
  font-size: 19px;
  margin: 28px 0 12px;
  color: #1a1a1a;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.cps-description {
  line-height: 1.7;
  color: #333;
}

.cps-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cps-detail-table th,
.cps-detail-table td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cps-detail-table th {
  width: 180px;
  color: #666;
  font-weight: 600;
}

.cps-amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cps-amenity-pill {
  background: #eef5ff;
  color: #1a5a8a;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.cps-map-embed {
  border-radius: 8px;
  overflow: hidden;
}

.cps-single-sidebar {
  position: sticky;
  top: 20px;
}
.cps-contact-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 22px;
}
.cps-contact-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.cps-agent-name {
  font-weight: 600;
  margin-bottom: 14px;
  color: #333;
}
.cps-contact-btn {
  display: block;
  text-align: center;
  background: #2271b1;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.cps-contact-btn:hover {
  background: #1a5a8a;
}

@media (max-width: 768px) {
  .cps-single-content {
    grid-template-columns: 1fr;
  }
  .cps-single-sidebar {
    position: static;
  }
}
