/* ThueXeTuLaiHaiPhong v4 — marketplace + auth + admin styles.
   Palette: teal #0B5563, deep teal #07333c, warm paper borders #E4E1D8. */

.kicker { font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; color: #0B5563; font-weight: 700; margin-bottom: 6px; }
.kicker a { color: #0B5563; }
.muted { color: #5d6a66; }
.u-fs85 { font-size: 0.85rem; }

/* ---------- car cards / browse ---------- */
.car-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0; }
@media (min-width: 640px) { .car-grid { grid-template-columns: 1fr 1fr; } }
.car-card { background: #fff; border: 1px solid #E4E1D8; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.car-card .car-thumb { aspect-ratio: 16/10; background: #dcebe7; display: block; overflow: hidden; }
.car-card .car-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-card .car-thumb-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #0B5563; font-weight: 600; font-size: 14px; padding: 12px; text-align: center; }
.car-card .car-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-card h3 { margin: 0; font-size: 1.05rem; }
.car-card h3 a { color: #14201d; text-decoration: none; }
.car-card h3 a:hover { color: #0B5563; text-decoration: underline; }
.car-card .car-meta { font-size: 0.9rem; color: #5d6a66; margin: 0; }
.car-card .car-price { margin-top: auto; font-size: 1.05rem; }
.car-card .car-price strong { color: #0B5563; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.badge-open { background: #e2f2e4; color: #1d6b2a; }
.badge-rented { background: #f7e3e0; color: #96352a; }

.filter-bar { background: #fff; border: 1px solid #E4E1D8; border-radius: 12px; padding: 16px; display: grid; gap: 12px; grid-template-columns: 1fr; margin: 18px 0; }
@media (min-width: 760px) { .filter-bar { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; } }
.filter-bar label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: #33413d; }
.filter-bar input, .filter-bar select { height: 44px; padding: 0 12px; border: 1px solid #c9d4d0; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; width: 100%; box-sizing: border-box; }

.empty-state { border: 1.5px dashed #9db8b2; border-radius: 12px; padding: 28px 22px; text-align: center; background: #f4f8f7; margin: 22px 0; }
.empty-state h2 { margin-top: 0; }

/* ---------- car page ---------- */
.price-line { font-size: 1.15rem; }
.price-line strong { color: #0B5563; font-size: 1.5rem; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery img:first-child { grid-column: 1 / -1; } }
.gallery img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 10px; display: block; }
.gallery-empty { border: 1.5px dashed #9db8b2; border-radius: 12px; padding: 22px; text-align: center; color: #5d6a66; background: #f4f8f7; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
@media (min-width: 760px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-grid > div { background: #fff; border: 1px solid #E4E1D8; border-radius: 10px; padding: 12px 14px; }
.spec-grid span { display: block; font-size: 12.5px; color: #5d6a66; text-transform: uppercase; letter-spacing: 0.3px; }
.spec-grid strong { font-size: 15.5px; }

.panel-lite { background: #eef5f3; border: 1px solid #d5e4e0; border-radius: 14px; padding: 24px; margin: 26px 0; }
.panel-lite h2 { margin-top: 0; }

/* ---------- forms ---------- */
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: #33413d; }
.stack-form input, .stack-form select, .stack-form textarea {
  padding: 11px 12px; border: 1px solid #c9d4d0; border-radius: 8px; font: inherit; font-size: 15.5px; background: #fff; width: 100%; box-sizing: border-box;
}
.stack-form textarea { resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-2col { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 13.5px; color: #5d6a66; line-height: 1.55; min-height: 1.2em; }
.form-error { color: #96352a; font-size: 14px; }
.form-ok { color: #1d6b2a; font-size: 14.5px; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.linklike { background: none; border: 0; color: #0B5563; cursor: pointer; font: inherit; font-size: 14.5px; text-decoration: underline; padding: 0; }
.photo-previews { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-previews img { width: 104px; height: 78px; object-fit: cover; border-radius: 8px; border: 1px solid #E4E1D8; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 70vh; display: flex; align-items: flex-start; justify-content: center; padding: 28px 0 10px; }
.auth-card {
  background: #fff; border: 1px solid #E4E1D8; border-radius: 16px;
  padding: 36px 32px 30px; width: 100%; max-width: 400px; box-sizing: border-box;
  box-shadow: 0 10px 34px rgba(7, 51, 60, 0.10);
}
.auth-card .auth-logo { text-align: center; margin-bottom: 6px; }
.auth-card .auth-logo .auth-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; background: #0B5563; color: #fff;
  font-weight: 800; font-size: 19px; letter-spacing: 0.5px;
}
.auth-card h1 { font-size: 24px; line-height: 1.25; color: #07333c; text-align: center; margin: 8px 0 6px; font-weight: 700; }
.auth-card .auth-sub { text-align: center; color: #5d6a66; font-size: 14.5px; margin: 0 0 24px; line-height: 1.5; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .field label { display: block; font-size: 14px; font-weight: 600; color: #33413d; margin-bottom: 6px; }
.auth-card .field input { height: 48px; padding: 0 14px; font-size: 15.5px; border-radius: 10px; border: 1px solid #c9d4d0; width: 100%; box-sizing: border-box; font: inherit; }
.auth-card .field .pw-wrap { position: relative; }
.auth-card .field .pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #0B5563; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px; font: inherit;
}
.auth-card .btn-auth { width: 100%; height: 48px; font-size: 16px; border: 0; cursor: pointer; border-radius: 10px; }
.auth-card .form-error { background: #fbf0ee; border: 1px solid #eec9c2; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.auth-card .form-error:empty { display: none; }
.auth-alt { text-align: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid #E4E1D8; font-size: 14.5px; color: #5d6a66; }
.auth-alt a { color: #0B5563; font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: #8a9791; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #E4E1D8; }
.google-slot { margin-top: 12px; display: flex; justify-content: center; min-height: 44px; }
.auth-links { text-align: center; margin-top: 12px; font-size: 14px; }
@media (max-width: 480px) { .auth-card { padding: 28px 20px 24px; } }

/* ---------- account / admin tables ---------- */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table.admin-table { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
table.admin-table th, table.admin-table td { border: 1px solid #E4E1D8; padding: 9px 10px; text-align: left; vertical-align: top; }
table.admin-table th { background: #eef5f3; color: #07333c; }
.btn-danger { background: #96352a; color: #fff; border: 0; padding: 8px 14px; border-radius: 7px; font-weight: 600; cursor: pointer; font: inherit; font-size: 14px; }
.btn-small { padding: 7px 12px; font-size: 13.5px; border-radius: 7px; border: 1px solid #0B5563; background: #fff; color: #0B5563; font-weight: 600; cursor: pointer; font: inherit; }
.btn-small:hover { background: #eef5f3; }
.my-car-row { display: flex; gap: 14px; background: #fff; border: 1px solid #E4E1D8; border-radius: 12px; padding: 14px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.my-car-row img { width: 110px; height: 76px; object-fit: cover; border-radius: 8px; }
.my-car-row .grow { flex: 1; min-width: 180px; }
.my-car-row h3 { margin: 0 0 4px; font-size: 1rem; }
.my-car-row p { margin: 0; font-size: 0.9rem; color: #5d6a66; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- guide article elements (moved out of inline <style>: strict CSP
   style-src 'self' blocks inline styles) ---- */
table.spec{width:100%;border-collapse:collapse;margin:14px 0;font-size:.95rem}
table.spec th,table.spec td{border:1px solid #d8ddd8;padding:8px 10px;text-align:left;vertical-align:top}
table.spec th{background:#e4eff0;color:#083f49}
.note{background:#e4eff0;border-left:4px solid #0b5563;border-radius:8px;padding:12px 16px;margin:14px 0}
.warn{background:#fbf1dc;border-left:4px solid #e8a33d;border-radius:8px;padding:12px 16px;margin:14px 0}
.srcs{font-size:.85rem;color:#4f6167}
.srcs li{margin:4px 0;word-break:break-all;overflow-wrap:anywhere}

/* Google sign-in button — site-owned standard + fallback (2026-12-04).
   GIS renders its button inline in #googleSlot and normally styles it
   from Google's own stylesheet. When that stylesheet fails to load
   (seen live on the owner's phone: the G logo rendered at full column
   width, 320px tall), the rules below keep the button at the platform
   standard from this site's own CSS. The ID-scoped icon rule outranks
   the GIS class rules, so the logo can never blow up again, and the
   button always matches the form column like the other fields: white,
   1px neutral border, 10px radius (the input radius), 48px tall (the
   input height), G icon fixed at 20px. */
#googleSlot{width:100%}
#googleSlot .S9gUrf-YoZ4jf,#googleSlot>div{max-width:100%}
#googleSlot svg{width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;flex:none;display:block}
#googleSlot .L6cTce{display:none!important}
#googleSlot .nsm7Bb-HzV7m-LgbsSe{background:#fff;border:1px solid #dadce0;border-radius:10px;height:48px;max-width:100%!important;box-sizing:border-box;cursor:pointer}
#googleSlot .nsm7Bb-HzV7m-LgbsSe-bN97Pc-sM5MNb{display:flex;align-items:center;justify-content:center;gap:10px;height:100%;padding:0 12px;box-sizing:border-box}
#googleSlot .nsm7Bb-HzV7m-LgbsSe-Bz112c{display:flex;align-items:center;justify-content:center;flex:none}
#googleSlot .nsm7Bb-HzV7m-LgbsSe-BPrWId{font-family:inherit;font-size:15px;font-weight:500;color:#3c4043;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
