/* agency.css */

/* Just Holidays shared mobile-first dark UI */

:root{
  --bg:#050606;
  --panel:#101313;
  --panel2:#151a1a;
  --text:#fff;
  --muted:#a8b3b3;
  --line:rgba(255,255,255,.1);
  --teal:#1fd6d2;
  --orange:#ff8a3d;
  --danger:#ff5c5c;
  --shadow:0 24px 80px rgba(0,0,0,.45);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at top right,rgba(31,214,210,.16),transparent 32%),
    linear-gradient(180deg,#070909 0%,#020303 100%);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select,
textarea{
  font:inherit;
}

/* PAGE WRAPPERS */

.auth_page,
.app_page{
  min-height:100vh;
  padding:18px 14px 94px;
}

.auth_page{
  display:flex;
  align-items:center;
  justify-content:center;
}

.auth_shell,
.app_shell{
  width:100%;
  max-width:520px;
  margin:0 auto;
}

.auth_shell{
  max-width:440px;
}

/* LOGO */

.logo_bar,
.top_bar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}

.logo_mark{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.logo_just{
  background:var(--teal);
  color:#041010;
  font-weight:950;
  letter-spacing:-.08em;
  padding:8px 14px;
  border-radius:16px;
  font-size:24px;
}

.logo_holidays{
  color:#fff;
  font-weight:900;
  letter-spacing:.12em;
  font-size:14px;
}

/* CARDS */

.auth_card,
.page_card,
.status_card,
.action_card,
.stat_card,
.listing_card,
.lead_card,
.empty_state{
  background:#101313;
  border:1px solid var(--line);
  border-radius:24px;
}

.auth_card,
.page_card{
  padding:24px;
  box-shadow:var(--shadow);
}

.auth_card h1,
.top_bar h1{
  margin:0;
  font-size:34px;
  line-height:1;
  letter-spacing:-.06em;
}

.auth_card p,
.top_bar p,
.status_card p,
.empty_state p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.42;
}

.kicker{
  color:var(--teal);
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:8px;
}

/* FORMS */

.form_group{
  margin-bottom:14px;
}

.form_group label{
  display:block;
  color:#dce4e4;
  font-size:13px;
  font-weight:800;
  margin-bottom:8px;
}

.form_group input,
.form_group select,
.form_group textarea{
  width:100%;
  border:1px solid var(--line);
  background:#090b0b;
  color:#fff;
  border-radius:16px;
  padding:14px;
  outline:none;
}

.form_group textarea{
  min-height:120px;
  resize:vertical;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus{
  border-color:rgba(31,214,210,.75);
  box-shadow:0 0 0 4px rgba(31,214,210,.1);
}

.form_row{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
}

/* ROLE SELECT */

.role_grid{
  display:grid;
  gap:10px;
  margin:14px 0;
}

.role_card{
  border:1px solid var(--line);
  background:#0b0e0e;
  border-radius:18px;
  padding:14px;
  cursor:pointer;
}

.role_card input{
  display:none;
}

.role_card strong{
  display:block;
}

.role_card span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:13px;
}

.role_card:has(input:checked){
  border-color:var(--teal);
  background:rgba(31,214,210,.1);
}

/* BUTTONS */

.primary_btn,
.secondary_btn,
.danger_btn{
  border:0;
  border-radius:18px;
  padding:14px;
  font-weight:950;
  cursor:pointer;
  text-align:center;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}

.primary_btn{
  background:var(--teal);
  color:#041010;
}

.secondary_btn{
  background:#171d1d;
  border:1px solid var(--line);
  color:#fff;
}

.danger_btn{
  background:rgba(255,92,92,.12);
  border:1px solid rgba(255,92,92,.35);
  color:#ffb5b5;
}

.auth_card .primary_btn,
.page_card .primary_btn,
.page_card .secondary_btn,
.page_card .danger_btn{
  width:100%;
}

/* AUTH SWITCH */

.auth_switch{
  margin-top:18px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

.auth_switch a{
  color:var(--teal);
  font-weight:900;
}

/* NOTICES */

.notice{
  display:none;
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:#0b0e0e;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
}

.notice.show{
  display:block;
}

.notice.error{
  border-color:rgba(255,92,92,.45);
  color:#ffb5b5;
}

.notice.success{
  border-color:rgba(31,214,210,.55);
  color:#b8fffd;
}

/* DASHBOARD */

.icon_btn{
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#101313;
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  flex:0 0 auto;
}

.status_card{
  padding:20px;
  margin-bottom:16px;
  background:
    linear-gradient(135deg,rgba(31,214,210,.18),rgba(255,255,255,.03)),
    #101313;
  border-color:rgba(31,214,210,.25);
}

.status_card h2{
  margin:0 0 8px;
  font-size:28px;
  line-height:1;
  letter-spacing:-.05em;
}

.stats_grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-bottom:16px;
}

.stat_card{
  padding:16px;
}

.stat_card strong{
  display:block;
  font-size:32px;
  line-height:1;
  letter-spacing:-.05em;
}

.stat_card span{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
}

.action_grid,
.lead_list,
.listing_list{
  display:grid;
  gap:12px;
}

.action_card{
  padding:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}

.action_card strong,
.lead_card h2{
  display:block;
  font-size:18px;
  margin:0 0 5px;
}

.action_card span,
.lead_card p{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.chev{
  color:var(--teal);
  font-size:24px;
  font-weight:900;
}

/* PILLS */

.small_pill,
.pill,
.status_pill{
  display:inline-flex;
  padding:7px 10px;
  background:rgba(31,214,210,.1);
  color:#bafffd;
  border:1px solid rgba(31,214,210,.25);
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.status_pill{
  margin-bottom:12px;
}

/* EMPTY */

.empty_state{
  padding:24px;
  text-align:center;
  border-style:dashed;
}

.empty_state h2{
  margin:0 0 8px;
}

/* LISTINGS */

.listing_card{
  overflow:hidden;
}

.listing_image{
  height:180px;
  background:#151a1a;
}

.listing_footer,
.lead_top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}

.price_from{
  font-weight:950;
  font-size:18px;
}

.price_from span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

.inline_actions,
.lead_actions{
  display:flex;
  gap:8px;
}

.mini_btn{
  border:1px solid var(--line);
  background:#171d1d;
  color:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
}

.lead_card{
  padding:18px;
}

.lead_meta{
  display:grid;
  gap:8px;
  margin:14px 0;
  color:#dce4e4;
  font-size:14px;
}

.lead_meta a{
  color:var(--teal);
  font-weight:900;
}

/* AGENCY PROFILE EXTRAS */

.soft_line{
  border:0;
  border-top:1px solid var(--line);
  margin:22px 0;
}

.section_label{
  color:var(--teal);
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.info_box{
  background:#0b0e0e;
  border:1px solid var(--line);
  border-radius:20px;
  padding:14px;
  margin:16px 0;
}

.info_box strong{
  display:block;
  color:#fff;
  margin-bottom:6px;
}

.info_box span{
  display:block;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

/* BOTTOM NAV */

.bottom_nav{
  position:fixed;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  width:calc(100% - 28px);
  max-width:520px;
  background:rgba(10,13,13,.92);
  border:1px solid var(--line);
  border-radius:24px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:8px;
  backdrop-filter:blur(18px);
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  z-index:20;
}

.bottom_nav a{
  text-align:center;
  padding:10px 4px;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  border-radius:16px;
}

.bottom_nav a.active{
  background:rgba(31,214,210,.13);
  color:var(--teal);
}

/* DESKTOP */

@media(min-width:760px){

  .app_shell{
    max-width:900px;
  }

  .stats_grid{
    grid-template-columns:repeat(4,1fr);
  }

  .action_grid,
  .lead_list,
  .listing_list{
    grid-template-columns:repeat(2,1fr);
  }

  .form_row{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .bottom_nav{
    max-width:620px;
  }
}