/* Rated Pics — Clean Neutral Theme (keeps image stage behavior) */

* { box-sizing: border-box; }

:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:rgba(15,23,42,.12);

  /* single accent (non-dating) */
  --accent:#1f3a8a;      /* deep blue */
  --accentHover:#0f172a; /* near-black */

  --danger:#991b1b;
  --ok:#16a34a;

  --radius:14px;
  --shadow:0 10px 26px rgba(0,0,0,.06);
}

body{
  margin:0;
  font-family: Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: var(--bg);
}

/* Links */
a{
  color: var(--accent);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
  color: var(--accentHover);
}

/* Layout */
.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px;
}

/* Top navigation */
.topbar{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

/* Card (clean) */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* Buttons */
.btn,
button.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--accent);
  color:#fff;
  font-weight: 800;
  border: 1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition: background .12s ease, transform .06s ease;
}

.btn:hover,
button.btn:hover{
  background: var(--accentHover);
  text-decoration:none;
}

.btn:active,
button.btn:active{
  transform: translateY(1px);
}

/* Secondary button */
.btn-outline,
.btn.secondary{
  background:#fff;
  color: var(--text);
  border:1px solid var(--border);
}

.btn-outline:hover,
.btn.secondary:hover{
  background:#f1f5f9;
}

/* Danger button */
.btn-danger{
  background: var(--danger);
  border:1px solid transparent;
}
.btn-danger:hover{
  background:#7f1d1d;
}

/* Image stage — KEEP THIS (your key part) */
.profile-img{
  display:block;
  width:100%;
  height:70vh;
  max-height:75vh;
  object-fit:cover;
  object-position:center;
  border-radius: 14px;
  cursor:pointer;
  background:none;
}

/* Mobile tuning */
@media (max-width: 768px){
  .profile-img{
    height:60vh;
    max-height:60vh;
  }
}

/* Layout helpers */
.row{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:10px;
  flex-wrap:wrap;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 780px){
  .grid{ grid-template-columns: 1fr; }
}

/* Messages */
.notice{
  background:#f8fafc;
  border:1px solid var(--border);
  padding:12px;
  border-radius: 12px;
  color: var(--text);
}

.error{
  background: rgba(153,27,27,.08);
  border: 1px solid rgba(153,27,27,.35);
  padding:12px;
  border-radius: 12px;
  color: var(--danger);
}

.ok{
  background: rgba(22,163,74,.10);
  border: 1px solid rgba(22,163,74,.35);
  padding:12px;
  border-radius: 12px;
  color: var(--ok);
}

/* Divider */
.hr{
  height:1px;
  background: rgba(15,23,42,.12);
  margin:16px 0;
}

/* Text helpers */
.help,
.muted,
.tiny{
  font-size:12px;
  color: var(--muted);
  opacity: 1;
}

.btn-lg{
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
}

/* Mobile: make buttons stack nicely when used in nav/rows */
@media (max-width: 520px){
  .btn, button.btn{ width:100%; }
  .topbar{ gap:12px; }
}


/* ===== Desktop polish (keeps mobile behavior) ===== */
@media (min-width: 900px){
  .wrap{ max-width: 1100px; }

  /* Make the main card look like a clean “app panel” */
  .card{
    padding: 18px;
    border-radius: 18px;
  }

  /* Cap image height so desktop doesn’t look like a billboard */
  .photo{
    height: 520px;         /* fixed, clean */
    max-height: 520px;
    object-fit: cover;
  }

  /* Improve spacing around the image stage */
  .photo-stage{ margin-top: 14px; }

  /* Make the filter bar feel intentional */
  .filter-bar{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:12px;
  }
  .filter-bar form{
    display:flex;
    gap:12px;
    align-items:flex-end;
    flex-wrap:wrap;
    margin:0;
  }
  .filter-bar .tiny{
    max-width: 420px;
    margin-top: 0;
    text-align:right;
  }

  /* Reduce clutter: hide bottom Prev/Next buttons (desktop already has side arrows) */
  .nav-row{ display:none !important; }

  /* “Featured listing” line */
  .meta-line{
    margin-top: 10px;
    text-align:left;
    color: var(--muted);
  }
}
