:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0f172a;
  --primary: #0ea5a4;
  --glass: rgba(255, 255, 255, 0.6);
  --radius: 16px;
  --shadow: 0 6px 18px rgba(11, 15, 30, 0.08);
  --gap: 20px;
}
* {
  box-sizing: border-box;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
}
html,
body {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #eef2f7);
  color: var(--accent);
}
.container {
  max-width: 1200px;
  margin: 28px auto;
  padding: 24px;
}

/* header */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-drag: none;
}
.brand {
  display: flex;
  flex-direction: column;
}
.brand h1 {
  margin: 0;
  font-size: 20px;
}
.brand p {
  margin: 2px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* title */
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  flex-wrap: wrap;
}
.big-title {
  font-size: 28px;
  margin: 0;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: center;
}
.card {
  flex: 1 1 calc(100% - 20px);
  max-width: 100%;
}
@media (min-width: 640px) {
  .card {
    flex: 1 1 calc(50% - 20px);
  }
}
@media (min-width: 1024px) {
  .card {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    min-height: 350px;
  }
}

/* card */
.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  outline: 2px solid transparent;
  transition: outline 0.2s ease;
}
.card:hover {
  outline-color: var(--primary);
}
.media {
  position: relative;
  padding-top: 66%;
  background: linear-gradient(90deg, #e6eef8, #f5f7fb);
  display: block;
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.badge.secondary {
  right: 12px;
  left: auto;
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent);
  font-weight: 600;
}

.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.type {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.addr {
  font-size: 14px;
  font-weight: 600;
}
.bairro {
  font-size: 13px;
  color: var(--muted);
}
.price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.foot {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid #f2f4f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cta {
  background: linear-gradient(90deg, #00a68b, #002b24);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background-size: 200% 200%;
  transition: background-position 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 4px;
  outline: none;
}

.cta:hover {
  background-position: 100% 0;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.fw-bold {
  color: var(--accent);
  font-weight: 700;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 420px) {
  .container {
    padding: 18px;
  }
  .big-title {
    font-size: 20px;
  }
  .logo {
    width: 56px;
    height: 56px;
  }
}

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.placeholder .sub {
  font-size: 11px;
  opacity: 0.9;
}
.features {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.features div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.features i {
  color: var(--muted);
  font-size: 15px;
}

/* media overlay */
.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.media-overlay i {
  font-size: 2rem;
  color: white;
  pointer-events: auto;
  cursor: pointer;
}

.media:hover .media-overlay {
  opacity: 1;
}

.alert {
  background-color: #fff;
  width: 100%;
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border-top: 5px solid #00a68b;
}
.alert-p {
  margin: 0;
  padding: 15px 10px;
  text-align: center;
  font-size: 14px;
  color: #282828;
}
