/* Basic responsive styling */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e5e7eb;
  --success: #10b981;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0;
}
.topbar {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: white;
  padding: 20px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar .actions {
  display: flex;
  gap: 10px;
}
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}
.btn-login:hover {
  background: rgba(255, 255, 255, 0.22);
}
.brand {
  font-size: 1.5rem;
  font-weight: 700;
}
.tagline {
  margin: 0;
  color: #dbeafe;
}
.search-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  padding: 20px;
  margin: -40px 0 24px;
}
.search-form {
  display: grid;
  gap: 16px;
}
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.form-grid .search-field.full-width {
  grid-column: 1 / -1;
}
.message-box {
  border: 1px solid rgba(37, 211, 102, 0.2);
  background: rgba(37, 211, 102, 0.08);
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: #065f46;
}
.muted {
  color: var(--muted);
}
.search-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr auto;
}
.search-field {
  display: flex;
  flex-direction: column;
}
.search-field.small {
  min-width: 0;
}
.search-field label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--muted);
}
.search-field input,
.search-field select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
}
.search-field input:focus,
.search-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.button-field button {
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  font-size: 1rem;
  cursor: pointer;
}
.section-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.4rem;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 18px;
}
.card,
.detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}
.card-image,
.detail-image {
  background-size: cover;
  background-position: center;
  min-height: 180px;
}
.card-body {
  padding: 18px;
}
.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.meta,
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.address,
.facilities {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.card-actions,
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 18px 18px;
}
.btn-outline,
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: white;
}
.btn-wa {
  background: #25d366;
  color: white;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.detail-page {
  padding-bottom: 32px;
}
.detail-card {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.detail-content {
  padding: 20px;
}
.detail-content h1 {
  margin-top: 0;
  font-size: 2rem;
}
.detail-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
}
.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.detail-facilities,
.detail-description {
  margin-bottom: 20px;
}
.detail-facilities h2,
.detail-description h2 {
  margin-bottom: 10px;
}
.share-note {
  color: var(--muted);
  font-size: 0.95rem;
}
.related-listings {
  margin-top: 32px;
}
.cards.small {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer {
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 760px) {
  .search-row {
    grid-template-columns: 1fr;
  }
  .topbar .container,
  .detail-card {
    padding: 0 0;
  }
}
.pagination {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  background: white;
}
.page-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.file-input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}
.topbar .brand {
  margin-bottom: 0;
}
.topbar .tagline {
  margin-top: 4px;
}
