/* ===== Cosmo-Soil account + shortlist styling ===== */

/* Navbar login button / avatar */
.cs-account-nav { display: flex; align-items: center; }
.cs-login-btn {
  background: #B4905A; color: #fff; border: none;
  padding: 7px 18px; border-radius: 22px; font-weight: 600;
  cursor: pointer; font-size: 14px; transition: background .2s;
  white-space: nowrap;
}
.cs-login-btn:hover { background: #9c7c48; }

.cs-account-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.cs-avatar-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }
.cs-avatar-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 38px; border-radius: 50%;
  background: #B4905A; color: #fff; font-weight: 700; font-size: 14px;
  border: 2px solid #ffcc00; box-shadow: 0 2px 6px rgba(180,144,90,.35);
}
.cs-avatar-name { display: none; font-size: 14px; color: #444; font-weight: 600; }
.cs-account-menu {
  position: absolute; right: 0; top: 46px; min-width: 210px;
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,.14); padding: 8px 0;
  display: none; z-index: 4000;
}
.cs-account-menu.open { display: block; }

/* ---- Mobile: account item sits neatly inside the collapsed menu ---- */
@media (max-width: 991px) {
  #cs-account-nav {
    margin: 8px 0 4px !important;
    padding-top: 12px;
    border-top: 1px solid #eee;
    width: 100%;
  }
  .cs-account-wrap { width: 100%; }
  .cs-avatar-btn { width: 100%; }
  .cs-avatar-name { display: inline; }        /* show the name next to avatar on mobile */
  .cs-account-menu {
    position: static; right: auto; top: auto; margin-top: 8px;
    box-shadow: none; border: 1px solid #f0e9db; width: 100%;
  }
  .cs-login-btn { width: 100%; padding: 12px; font-size: 15px; }
}
.cs-account-head {
  padding: 8px 16px; font-weight: 700; color: #B4905A;
  border-bottom: 1px solid #f0f0f0; margin-bottom: 6px; font-size: 14px;
  word-break: break-word;
}
.cs-account-menu a, .cs-account-menu button {
  display: block; width: 100%; text-align: left; background: none;
  border: none; padding: 10px 16px; color: #333; font-size: 14px;
  text-decoration: none; cursor: pointer;
}
.cs-account-menu a:hover, .cs-account-menu button:hover { background: #faf5ec; }

/* Heart / shortlist icon on cards */
.cs-heart-btn {
  position: absolute; top: 10px; right: 10px; z-index: 30;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .15s, background .2s;
}
.cs-heart-btn:hover { transform: scale(1.12); }
.cs-heart-btn svg { width: 20px; height: 20px; }
.cs-heart-btn .heart-path { fill: none; stroke: #d1495b; stroke-width: 2; transition: fill .2s; }
.cs-heart-btn.active .heart-path { fill: #d1495b; stroke: #d1495b; }
.cs-heart-btn.active { background: #fff; }
.cs-heart-tip {
  position: absolute; top: 52px; right: 8px; background: #333; color: #fff;
  font-size: 11px; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 31;
}
.cs-heart-btn:hover + .cs-heart-tip { opacity: 1; }

/* Toast */
.cs-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #333; color: #fff; padding: 12px 20px; border-radius: 26px;
  font-size: 14px; z-index: 99999; opacity: 0; transition: all .3s; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.cs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Login page ===== */
.cs-auth-page {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 16px; background: #faf8f5;
}
.cs-auth-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.10); padding: 34px 30px;
}
.cs-auth-card h2 { color: #B4905A; margin-bottom: 6px; font-size: 24px; }
.cs-auth-card p.sub { color: #888; font-size: 14px; margin-bottom: 24px; }
.cs-field { margin-bottom: 18px; }
.cs-field label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 600; }
.cs-field input {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px;
  font-size: 15px; outline: none; transition: border .2s;
}
.cs-field input:focus { border-color: #B4905A; }
.cs-btn-primary {
  width: 100%; background: #B4905A; color: #fff; border: none; padding: 13px;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.cs-btn-primary:hover { background: #9c7c48; }
.cs-btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.cs-auth-note { font-size: 12px; color: #aaa; margin-top: 16px; text-align: center; }
.cs-error { color: #c0392b; font-size: 13px; margin-top: 10px; min-height: 18px; }
.cs-otp-row { display: flex; gap: 8px; }
.cs-resend { background: none; border: none; color: #B4905A; cursor: pointer; font-size: 13px; margin-top: 10px; }
.cs-resend:disabled { color: #bbb; cursor: default; }

/* ===== Shortlist / viewed grid ===== */
.cs-list-wrap { max-width: 1200px; margin: 30px auto; padding: 0 16px; }
.cs-list-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #eee; }
.cs-tab {
  background: none; border: none; padding: 12px 18px; font-size: 15px; font-weight: 600;
  color: #888; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.cs-tab.active { color: #B4905A; border-bottom-color: #B4905A; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cs-prop-card {
  position: relative; background: #fff; border: 1px solid #eee; border-radius: 14px;
  overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,.06); display: flex; flex-direction: column;
}
.cs-img-wrap { position: relative; }
.cs-prop-card img { width: 100%; height: 170px; object-fit: cover; background: #f2f2f2; display: block; }
.cs-prop-noimg { width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; color: #bbb; background: #f6f6f6; }
.cs-visit-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.72); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 20px;
}
.cs-match-badge {
  position: absolute; top: 10px; left: 10px; background: #B4905A; color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.cs-prop-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.cs-prop-loc { font-weight: 700; color: #222; }
.cs-prop-city { color: #777; font-size: 13px; margin: 2px 0 6px; }
.cs-prop-price { color: #B4905A; font-weight: 700; margin-bottom: 8px; }
.cs-prop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cs-prop-tag { background: #faf5ec; color: #9c7c48; font-size: 11px; padding: 3px 8px; border-radius: 10px; }
.cs-prop-actions { margin-top: auto; display: flex; gap: 8px; }
.cs-prop-actions button, .cs-prop-actions a {
  flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size: 13px;
  cursor: pointer; border: 1px solid #ddd; background: #fff; color: #333; text-decoration: none;
}
.cs-prop-actions .cs-remove { border-color: #e0b4bc; color: #d1495b; }
.cs-prop-actions .cs-view { background: #B4905A; color: #fff; border-color: #B4905A; }
.cs-empty { text-align: center; padding: 70px 20px; color: #aaa; }

/* ===== Settings page ===== */
.cs-settings-wrap { max-width: 620px; margin: 30px auto; padding: 0 16px 60px; }
.cs-settings-wrap h2 { color: #B4905A; margin-bottom: 20px; }
.cs-card-box { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 24px; margin-bottom: 22px; box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.cs-card-box h3 { font-size: 17px; margin-bottom: 16px; color: #333; }
.cs-check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cs-check-row input { width: 18px; height: 18px; accent-color: #B4905A; }
.cs-check-row label { font-size: 14px; color: #444; }
.cs-check-row small { display: block; color: #999; font-weight: 400; }
.cs-guard { text-align: center; padding: 60px 20px; color: #888; }

/* =====================================================================
   FANCY / ON-BRAND ENHANCEMENTS (overrides above where needed)
   Palette: gold #B4905A, deep gold #9c7c48, accent #ffcc00, cream #faf8f5
   ===================================================================== */

/* ---- Page hero banner used on shortlist + settings ---- */
.cs-page-hero {
  background: linear-gradient(135deg, #B4905A 0%, #9c7c48 55%, #6f5631 100%);
  color: #fff; padding: 42px 16px 54px; position: relative; overflow: hidden;
  text-align: center;
}
.cs-page-hero::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.08); top: -110px; right: -60px;
}
.cs-page-hero::after {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,204,0,.10); bottom: -100px; left: -50px;
}
.cs-page-hero h1 { font-size: 28px; font-weight: 800; margin: 0; position: relative; z-index: 2; letter-spacing: .3px; }
.cs-page-hero p { margin: 8px 0 0; opacity: .9; font-size: 15px; position: relative; z-index: 2; }
.cs-page-hero .cs-hero-icon { font-size: 30px; display: block; margin-bottom: 6px; }

/* Pull the content card up to overlap the hero for a modern layered look */
.cs-list-wrap, .cs-settings-wrap { position: relative; }
.cs-hero-lift { margin-top: -34px; position: relative; z-index: 3; }

/* ---- Tabs as pills ---- */
.cs-list-tabs {
  border-bottom: none; background: #fff; padding: 8px; border-radius: 16px;
  box-shadow: 0 6px 24px rgba(120,90,40,.10); gap: 6px; flex-wrap: wrap;
}
.cs-tab {
  border-radius: 12px; padding: 11px 20px; transition: all .2s; border-bottom: none;
  margin-bottom: 0; white-space: nowrap;
}
.cs-tab:hover { background: #faf5ec; color: #9c7c48; }
.cs-tab.active {
  background: linear-gradient(135deg, #B4905A, #9c7c48); color: #fff;
  border-bottom: none; box-shadow: 0 4px 12px rgba(180,144,90,.35);
}

/* ---- Property cards: richer hover + imagery ---- */
.cs-grid { gap: 22px; }
.cs-prop-card {
  border: 1px solid #f0e4cc; border-radius: 18px; box-shadow: 0 6px 20px rgba(120,90,40,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cs-prop-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(120,90,40,.18); }
.cs-prop-card img { height: 185px; transition: transform .4s ease; }
.cs-prop-card:hover img { transform: scale(1.06); }
.cs-img-wrap { overflow: hidden; }
.cs-prop-body { padding: 16px; }
.cs-prop-loc { font-size: 16px; }
.cs-prop-price {
  font-size: 17px; background: linear-gradient(135deg, #B4905A, #9c7c48);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cs-prop-tag { background: #faf5ec; border: 1px solid #f0e4cc; }
.cs-prop-actions .cs-view {
  background: linear-gradient(135deg, #B4905A, #9c7c48); border: none; font-weight: 600;
  transition: filter .2s;
}
.cs-prop-actions .cs-view:hover { filter: brightness(1.08); }
.cs-prop-actions .cs-remove { background: #fff; transition: all .2s; }
.cs-prop-actions .cs-remove:hover { background: #fdeef1; }
.cs-visit-badge, .cs-match-badge { backdrop-filter: blur(2px); }
.cs-match-badge { background: linear-gradient(135deg, #B4905A, #9c7c48); }

/* Card entrance animation */
.cs-prop-card { animation: cardRise .4s ease both; }
@keyframes cardRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- Empty states with a friendlier look ---- */
.cs-empty {
  background: #fff; border: 1px dashed #e5d8bf; border-radius: 18px;
  color: #9c8a68; font-size: 15px; margin-top: 8px;
}

/* ---- Settings page polish ---- */
.cs-settings-wrap h2 { display: none; } /* replaced by hero title */
.cs-card-box {
  border: 1px solid #f0e4cc; border-radius: 18px; box-shadow: 0 6px 20px rgba(120,90,40,.07);
  padding: 26px;
}
.cs-card-box h3 {
  color: #B4905A; display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; border-bottom: 1px solid #f4eddf; margin-bottom: 18px;
}
.cs-field label, .cs-check-row label { color: #4a4a4a; }
.cs-field input:focus {
  border-color: #B4905A; box-shadow: 0 0 0 3px rgba(180,144,90,.15);
}
.cs-check-row {
  padding: 12px 14px; border: 1px solid #f2ecdf; border-radius: 12px; margin-bottom: 12px;
  transition: background .2s, border-color .2s; align-items: flex-start;
}
.cs-check-row:hover { background: #faf7f0; border-color: #e9dcc2; }
.cs-btn-primary {
  background: linear-gradient(135deg, #B4905A, #9c7c48); box-shadow: 0 6px 16px rgba(180,144,90,.30);
  transition: filter .2s, transform .1s;
}
.cs-btn-primary:hover { filter: brightness(1.07); }
.cs-btn-primary:active { transform: translateY(1px); }
.cs-btn-primary:disabled { background: #ccc; box-shadow: none; filter: none; }

/* ---- Mobile tweaks for the pages ---- */
@media (max-width: 600px) {
  .cs-page-hero { padding: 32px 16px 46px; }
  .cs-page-hero h1 { font-size: 23px; }
  .cs-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .cs-prop-card img { height: 130px; }
  .cs-prop-body { padding: 12px; }
  .cs-prop-loc { font-size: 14px; }
  .cs-list-tabs { padding: 6px; }
  .cs-tab { padding: 9px 12px; font-size: 13px; }
}
