/* Trivandrum Rentals — site styles
   Brand: dark #0f1115 / panels #1a1d24 / borders #272b36 / amber #f59e0b / Inter */
:root {
  --bg: #0f1115;
  --panel: #1a1d24;
  --panel-2: #272b36;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --ok: #34d399;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: #fbbf24; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px;
}
.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,21,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: 1150px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.04em; }
.logo:hover { color: var(--text); }
.logo-badge {
  background: var(--amber); color: var(--bg);
  border-radius: 9px; width: 38px; height: 38px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.logo small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.cart-btn {
  position: relative; background: var(--panel); border: 1px solid var(--panel-2);
  color: var(--text); border-radius: 10px; padding: 8px 12px; cursor: pointer; font: inherit;
}
.cart-btn:hover { border-color: var(--amber); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  background: var(--amber); color: var(--bg);
  font-size: 11px; font-weight: 700; border-radius: 999px;
  min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; text-align: left; position: relative; overflow: hidden; }
.eyebrow { color: var(--amber); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.12; margin: 12px 0 14px; font-weight: 800; }
.hero p.lede { color: var(--muted); max-width: 620px; font-size: 17px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 11px; padding: 12px 22px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--amber); color: var(--bg); }
.btn-primary:hover { background: #fbbf24; color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--panel-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--text); }
.btn-wa { background: #25d366; color: #06281a; }
.btn-wa:hover { background: #3ce07a; color: #06281a; }

/* Offer strip */
.offer-strip {
  margin-top: 34px;
  background: linear-gradient(90deg, rgba(245,158,11,0.14), rgba(245,158,11,0.04));
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--radius);
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-size: 15px;
}
.offer-strip strong { color: var(--amber); }

/* ---------- Trust ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }
.trust-chip {
  background: var(--panel); border: 1px solid var(--panel-2);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.trust-chip .star { color: var(--amber); }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; font-weight: 800; }
.section-sub { color: var(--muted); margin: 0 0 30px; max-width: 640px; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 26px; }
.filter-pill {
  white-space: nowrap; padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--panel); color: var(--muted); border: 1px solid var(--panel-2);
  cursor: pointer; font-family: inherit;
}
.filter-pill:hover { background: var(--panel-2); color: var(--text); }
.filter-pill.active {
  background: var(--amber); color: var(--bg); border-color: var(--amber);
  box-shadow: 0 0 10px rgba(245,158,11,0.3);
}

/* ---------- Grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-2); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(245,158,11,0.5); }
.card-img { display: block; aspect-ratio: 4 / 3; background: #12141a; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.badge-request {
  position: absolute; top: 10px; left: 10px;
  background: rgba(15,17,21,0.85); border: 1px solid rgba(245,158,11,0.5); color: var(--amber);
  font-size: 11px; font-weight: 600; border-radius: 999px; padding: 4px 10px;
}
.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.card-name { font-weight: 600; font-size: 15.5px; margin: 0; line-height: 1.35; }
.card-name a { color: var(--text); }
.card-name a:hover { color: var(--amber); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; color: var(--amber); font-size: 17px; }
.price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.add-btn {
  background: var(--panel-2); border: 1px solid var(--panel-2); color: var(--text);
  border-radius: 9px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.add-btn:hover { background: var(--amber); border-color: var(--amber); color: var(--bg); }

/* ---------- Item page ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--amber); }
.item-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 30px 0 10px; align-items: start; }
@media (max-width: 800px) { .item-layout { grid-template-columns: 1fr; } }

/* Signature: viewfinder frame around gear image */
.viewfinder { position: relative; background: var(--panel); border-radius: var(--radius); padding: 26px; }
.viewfinder img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.viewfinder::before, .viewfinder::after,
.viewfinder .vf-b::before, .viewfinder .vf-b::after {
  content: ""; position: absolute; width: 26px; height: 26px; border-color: var(--amber); border-style: solid;
}
.viewfinder::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.viewfinder::after { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.viewfinder .vf-b::before { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.viewfinder .vf-b::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.item-info h1 { font-size: clamp(26px, 3.6vw, 38px); margin: 6px 0 10px; }
.item-price { font-size: 26px; font-weight: 800; color: var(--amber); margin: 6px 0 2px; }
.item-price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.item-note { color: var(--muted); font-size: 13.5px; margin: 2px 0 16px; }
.bestfor {
  background: var(--panel); border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0;
  padding: 12px 16px; color: var(--text); font-size: 15px; margin: 16px 0;
}
.specs { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.specs li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14.5px; }
.specs li::before { content: "›"; color: var(--amber); font-weight: 700; }
.request-note {
  border: 1px solid rgba(245,158,11,0.4); background: rgba(245,158,11,0.07);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 14px 0;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--panel-2); border-radius: var(--radius); padding: 22px; }
.step-num {
  width: 34px; height: 34px; border-radius: 999px; background: var(--amber); color: var(--bg);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.step li { margin: 4px 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 780px; }
details {
  background: var(--panel); border: 1px solid var(--panel-2); border-radius: 12px; padding: 0 18px;
}
details[open] { border-color: rgba(245,158,11,0.45); }
summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--amber); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 15px; font-size: 14.5px; }

/* ---------- Reviews / CTA ---------- */
.review-band {
  background: var(--panel); border: 1px solid var(--panel-2); border-radius: var(--radius);
  padding: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.stars { color: var(--amber); font-size: 20px; letter-spacing: 3px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--panel-2); padding: 44px 0 30px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
footer h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
footer p, footer li { color: var(--muted); font-size: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.copyright { margin-top: 34px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--panel-2); padding-top: 18px; }

/* ---------- Cart drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 100vw); z-index: 100;
  background: var(--panel); border-left: 1px solid var(--panel-2);
  transform: translateX(100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column;
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--panel-2); }
.drawer-head h3 { margin: 0; font-size: 17px; }
.drawer-close { background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 14.5px; }
.cart-row { display: flex; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.cart-row .nm { flex: 1; font-size: 14px; font-weight: 600; }
.cart-row .pr { font-size: 12.5px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--panel-2); background: var(--panel-2); color: var(--text); cursor: pointer; }
.rm { background: none; border: none; color: #f87171; cursor: pointer; font-size: 16px; }
.drawer-foot { border-top: 1px solid var(--panel-2); padding: 16px 20px 20px; display: grid; gap: 12px; }
.total-line { display: flex; justify-content: space-between; font-weight: 700; }
.total-line span:last-child { color: var(--amber); }
.sched { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sched label { font-size: 11.5px; color: var(--muted); display: grid; gap: 4px; }
.sched input {
  background: var(--bg); border: 1px solid var(--panel-2); color: var(--text);
  border-radius: 8px; padding: 8px; font: inherit; font-size: 13px; width: 100%;
  color-scheme: dark;
}
.sched-err { color: #f87171; font-size: 12px; display: none; }
.drawer-note { font-size: 11.5px; color: var(--muted); margin: 0; }
#send-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel-2); color: var(--text); border: 1px solid rgba(245,158,11,0.5);
  border-radius: 10px; padding: 10px 18px; font-size: 14px; z-index: 120;
  opacity: 0; pointer-events: none; transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  .nav-links a.hide-m { display: none; }
  .hero { padding-top: 44px; }
}
