/* ===============================
   GLOBAL BASICS
   =============================== */

body{
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color:#000;
  background:#fff;
  max-width:1200px;
  margin:0 auto;
  padding:20px;
}

a{ color:#000; text-decoration:underline; }
hr{ margin:30px 0; }

h1,h2,h3{
  font-weight:600;
  margin-top:30px;
}

/* ===============================
   LANGUAGE BAR
   =============================== */

.lang-bar{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  margin-bottom:8px;
}

@media (min-width:768px){
  .lang-bar{ justify-content:flex-end; }
}
@media (max-width:767px){
  .lang-bar{ justify-content:center; font-size:13px; }
}

/* ===============================
   HERO
   =============================== */

.hero{
  display:flex;
  align-items:flex-start;
  gap:24px;
  margin:10px 0 20px;
  flex-wrap:wrap;
}

.hero-text{ flex:1 1 300px; }

.hero-qr img{ width:200px; height:200px; }

.hero-qr p{
  font-size:.9rem;
  color:#444;
  margin-top:6px;
  text-align:center;
}

@media (max-width:1024px){
  .hero-qr{ display:none; }
}

/* ===============================
   TOP LINKS
   =============================== */

.top-links{
  margin-top:10px;
  margin-bottom:15px;
  font-size:0.95rem;
}

.top-links a{
  margin-right:15px;
  text-decoration:underline;
}

/* ===============================
   TOOLBAR
   =============================== */

.agri-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 14px;
}

.agri-toolbar input,
.agri-toolbar select{
  flex:1;
  min-width:180px;
  padding:8px 10px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:.9rem;
}

/* ===============================
   LEAD LIST + CARD
   =============================== */

.agri-lead-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.agri-lead-card{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  padding:14px;
  box-shadow:0 1px 0 rgba(0,0,0,0.03);
  transition:box-shadow .12s ease, border-color .12s ease;
}

.agri-lead-card:hover{
  border-color:#d0d0d0;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

/* ===============================
   LEAD HEADER (Ref + CTA)
   =============================== */

.agri-lead-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
  flex-wrap:nowrap;           /* keep on one line */
}

.agri-header-left{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;                /* allow truncation */
}

.agri-ref-no{
  font-weight:600;
  font-size:1.02rem;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;         /* never wrap */
}

.agri-sep{ color:#bbb; }

/* ===============================
   STATUS PILL (optional)
   =============================== */

.agri-status-pill{
  font-size:.75rem;
  padding:3px 8px;
  border-radius:999px;
  text-transform:uppercase;
  letter-spacing:.03em;
  white-space:nowrap;
}

.agri-status-open{ background:#e6f4ea; color:#137333; }
.agri-status-expired{ background:#fce8e6; color:#c5221f; }
.agri-status-closed{ background:#e8eaed; color:#3c4043; }

/* ===============================
   ACTION PILLS (UNIFIED)
   =============================== */

.agri-copy-pill,
.agri-open-pill,
.agri-wa-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  font-size:.78rem;
  font-weight:400;
  border-radius:999px;
  border:1px solid #c9e6d1;
  background:#e6f4ea;
  color:#000;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}

.agri-copy-pill:hover,
.agri-open-pill:hover,
.agri-wa-pill:hover{
  background:#dff0e6;
  border-color:#b7dfc2;
}

/* IMPORTANT: CTA should not shrink or wrap */
.agri-wa-pill{
  flex:0 0 auto;
  flex-shrink:0;
}

/* ===============================
   CTA LABEL SWAP (Desktop vs Mobile)
   Requires HTML spans:
   <span class="label-desktop">Get Contact Details</span>
   <span class="label-mobile">WhatsApp</span>
   =============================== */

.agri-wa-pill .label-desktop{ display:inline; }
.agri-wa-pill .label-mobile{ display:none; }

@media (max-width:520px){
  .agri-wa-pill .label-desktop{ display:none; }
  .agri-wa-pill .label-mobile{ display:inline; }
}

/* Very small screens: reduce CTA size slightly */
@media (max-width:380px){
  .agri-wa-pill{
    font-size:0.74rem;
    padding:4px 8px;
  }
}

/* ===============================
   META & DESCRIPTION
   =============================== */

.agri-lead-meta{
  font-size:.86rem;
  color:#444;
  margin-bottom:10px;
}

.agri-lead-description{
  font-size:.98rem;
}

/* ===============================
   SEGMENT BOX
   =============================== */

.segment-box{
  background:#f7f7f7;
  border:1px solid #e0e0e0;
  border-radius:10px;
  padding:12px 14px;
  margin:12px 0 14px;
}

.segment-box .label{
  font-weight:600;
  margin-bottom:6px;
}

.segment-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}

.segment-links a{
  padding:8px 12px;
  border:1px solid #000;
  border-radius:999px;
  text-decoration:none;
  font-size:.95rem;
}

/* Segment links full-width on small screens */
@media (max-width:640px){
  .segment-links a{
    width:100%;
    text-align:center;
  }
}

/* Optional: hide separators on mobile if any exist */
@media (max-width:640px){
  .agri-sep{ display:none; }
}
