:root{
  /* Colors */
  --bg: #f8f9fa;
  --text: #202124;
  --navy: #202124;
  --secondary-text: #5f6368;
  --green: #1FAF6A;
  --green-hover: #1a9a5a;
  --yellow: #F9C74F;
  --blue: #2EC4F1;
  --blue-accent: #3B82F6;
  --danger: #DC2626;
  --danger-hover: #b91c1c;
  --warning: #F59E0B;
  --warning-dark: #B8860B;
  /* Surfaces */
  --border: rgba(0,0,0,.08);
  --border-strong: rgba(0,0,0,.12);
  --surface: #fff;
  --surface-hover: #f1f3f4;
  --surface-muted: #e8eaed;
  /* Shadows */
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow2: 0 2px 6px rgba(0,0,0,.06);
  --shadow-green: 0 1px 3px rgba(31,175,106,.2);
  /* Radii */
  --r: 12px;
  --r-sm: 8px;
  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.wrap{max-width:1100px; margin:0 auto; padding:20px 16px 80px}
.topbar{
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 2000;
}
.topbar .wrap{padding:12px 16px}
.row{display:flex; align-items:center; justify-content:space-between; gap:14px}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:-.02em; color: var(--text)}
.brand img{width:40px; height:40px; object-fit:contain}
.nav{display:flex; gap:8px; align-items:center}
.chip{
  font-size:13px; font-weight:600;
  padding:7px 14px; border-radius: var(--r-sm);
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--secondary-text);
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.chip:hover{
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
}
.chip b{
  font-weight:700;
  color: var(--green);
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border:1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight:600;
  cursor:pointer;
  background:#fff;
  transition: all 0.15s ease;
}
.topbar .btn.secondary{
  padding: 8px 12px;
  font-size: 12px;
  border-radius: var(--r-sm);
  box-shadow: none;
  background: var(--surface);
  color: var(--secondary-text);
  border-color: var(--border);
}
.topbar .btn.secondary:hover{
  background: var(--surface-hover);
  border-color: var(--border-strong);
}
.topbar .btn.secondary.hasNotifications{
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.topbar .btn.secondary.hasNotifications:hover{
  background: var(--green-hover);
  border-color: var(--green-hover);
}
.topbar .btn.logout{
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--r-sm);
  box-shadow: none;
  background: var(--surface);
  color: var(--secondary-text);
  border-color: var(--border);
}
.topbar .btn.logout:hover{
  background: var(--surface-hover);
  border-color: var(--border-strong);
}
.btn:active{transform: translateY(1px)}
.btn:focus-visible,.chip:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.btn.primary{background: var(--green); color:#fff; box-shadow: var(--shadow-green)}
.btn.primary:hover{background: var(--green-hover)}
.btn.secondary{background: var(--surface); border-color: var(--border); color: var(--text);}
.btn.secondary:hover{background: var(--surface-hover)}
.btn.yellow{background: var(--yellow); color: #1f2937;}
.btn.danger{background: var(--surface); border-color: rgba(220,38,38,.25); color: var(--danger-hover);}
.btn.danger:hover{background: rgba(220,38,38,.06); border-color: rgba(220,38,38,.35);}
.btn.small{padding:8px 12px; font-size:13px}

.card{
  background: var(--surface);
  border: none;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.muted{color: var(--secondary-text); font-size: 13px; line-height:1.5}
.h1{margin:0; font-size: clamp(28px, 4.5vw, 44px); letter-spacing: -.03em; line-height: 1.1; font-weight:700}
.sub{margin: 10px 0 16px; font-size: 16px; line-height: 1.5; color: var(--secondary-text);}
.sectionTitle{margin: 24px 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary-text); font-weight: 700;}
.city{color: var(--green); font-weight:700; white-space:nowrap}

.grid{display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;}
.twoCol{display:grid; grid-template-columns: 1fr 1fr; gap: 12px;}

.input,.select,.textarea{
  width:100%;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  outline:none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.15s;
}
.input:focus,.select:focus,.textarea:focus{
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,175,106,.1);
}
.input:focus-visible,.select:focus-visible,.textarea:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23202124' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.textarea{min-height: 110px; resize: vertical}
.leaflet-container{z-index:1;}

/* Map logo watermark (all maps) */
.tm-map-logo {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
  transition: opacity 0.2s;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.tm-map-logo:hover { opacity: 1; }
/* All maps: green for light/street, white for dark/satellite */
.tm-map-layer-street .tm-map-logo {
  color: var(--green);
  text-shadow: 0 1px 1px rgba(255,255,255,.9);
}
.tm-map-layer-street .tm-map-logo:hover { color: var(--green-hover, #1a9a5a); }
.tm-map-layer-satellite .tm-map-logo,
.tm-map-layer-dark .tm-map-logo {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.tm-map-logo img { height: 36px; width: auto; display: block; }
.field{display:grid; gap:6px}
.label{font-size:12px; font-weight:600; color: var(--secondary-text); letter-spacing:.04em; text-transform: uppercase}
.err{font-size:12px; color:#b91c1c; font-weight:600}

.badge{
  display:inline-flex; align-items:center; gap:6px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-hover);
}
.badge.pending{border-color: rgba(249,199,79,.4); background: rgba(249,199,79,.1); color:#92700c}
.badge.approved{border-color: rgba(31,175,106,.3); background: rgba(31,175,106,.08); color:#157a4a}
.badge.rejected{border-color: rgba(220,38,38,.25); background: rgba(220,38,38,.06); color:#991b1b}
.badge.pending_review{border-color: rgba(46,196,241,.3); background: rgba(46,196,241,.08); color:#0e7490}

.banner{
  border:1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}

.hero{display:grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-top: 22px; align-items:stretch;}
.heroLeft{padding:22px 18px}
.cta{display:flex; gap:10px; flex-wrap:wrap}

.pillRow{display:flex; gap:8px; flex-wrap:wrap; margin-top:14px}
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid var(--border);
  background: #fff;
  font-weight:600;
  font-size: 12px;
}
.pillIco{
  width:14px;
  height:14px;
  flex: 0 0 auto;
  display:inline-block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list{display:grid; gap:10px}
.placeCard{padding:14px}
.placeRow{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.code{margin-top:6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; letter-spacing: .06em; font-weight: 700; font-size: 13px; color: var(--green)}

.mapBox{
  position: relative;
  height: 320px;
  border-radius: 12px;
  overflow:hidden;
  border:1px solid var(--border);
  background: #f1f3f4;
}

.gallery{display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:10px}
.thumb{border-radius: 12px; overflow:hidden; border:1px solid var(--border); background:#fff; min-width:0}
.thumb img{width:100%; height:130px; object-fit:cover; max-width:100%; display:block}

/* Page Header */
.page-header{
  margin-bottom: 24px;
}
.page-header h1{
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.page-header p{
  margin: 0;
  color: var(--secondary-text);
  font-size: 14px;
}

/* Mobile Bottom Navigation Bar - Slim 52px (only on account dashboard) */
.mobileBottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-4);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.mobileBottomNav button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  width: 48px;
  height: 40px;
  transition: background 0.15s ease;
  color: var(--secondary-text);
}

.mobileBottomNav button:hover {
  background: #f1f3f4;
}

.mobileBottomNav button:active {
  background: #e8eaed;
}

.mobileBottomNav button .material-icons {
  font-size: 22px;
}

/* Remove oversized home button - all buttons are now equal */
.mobileBottomNav button.homeBtn {
  background: transparent;
  color: var(--green);
  width: 48px;
  height: 40px;
  box-shadow: none;
  position: static;
  z-index: auto;
  margin: 0;
  flex: 0 0 auto;
}

.mobileBottomNav button.homeBtn:hover {
  background: rgba(31,175,106,.08);
}

.mobileBottomNav button.homeBtn:active {
  background: rgba(31,175,106,.12);
}

.mobileBottomNav button.homeBtn .material-icons {
  font-size: 22px;
}

body.account-dashboard .mobileBottomNav {
  display: flex;
}
@media (min-width: 961px) {
  body.account-dashboard .mobileBottomNav {
    display: none;
  }
}

@media (max-width: 860px){
  .hero{grid-template-columns: 1fr;}
  .grid{grid-template-columns: 1fr;}
  .twoCol{grid-template-columns: 1fr;}
  .gallery{grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px; min-width:0}
  .thumb img{height:160px; min-height:140px}
  .nav{display:none}
  .wrap{padding-bottom: 68px}
}
@media (min-width: 1024px){
  .brand img{width:44px; height:44px}
}

/* Google Material Icons */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}
.material-icons.small { font-size: 18px; }
.material-icons.medium { font-size: 24px; }
.material-icons.large { font-size: 36px; }

/* Auth card centered layout */
.auth-card{
  max-width: 440px;
  margin: 40px auto 0;
  padding: 32px 28px;
}
.auth-card .auth-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(31,175,106,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.auth-card .auth-icon .material-icons{
  font-size: 28px;
  color: var(--green);
}
.auth-card h2{
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -.01em;
}
.auth-card .auth-sub{
  text-align: center;
  color: var(--secondary-text);
  font-size: 14px;
  margin: 0 0 24px 0;
}

/* ===== Site Footer (always light, high contrast) ===== */
.tm-site-footer {
  margin-top: auto;
  padding: 48px 24px 32px;
  background: #f8fafc !important;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  color: #1e293b !important;
}
.tm-site-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  text-decoration: none;
  color: #1e293b !important;
}
.tm-site-footer-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}
.tm-site-footer-logo span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tm-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.tm-site-footer-links a {
  color: #475569 !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.tm-site-footer-links a:hover {
  color: var(--green) !important;
}
.tm-site-footer-copy {
  font-size: 13px;
  color: #64748b !important;
}

/* Hide footer on admin dashboard */
.admin-dark .tm-site-footer,
.admin-donezo .tm-site-footer,
body.admin-dark .tm-site-footer,
body.admin-donezo .tm-site-footer {
  display: none !important;
}

/* ===== Notifications Dropdown ===== */
.notifications-dropdown-wrap {
  position: relative;
  display: inline-flex;
}
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid var(--border);
  z-index: 3000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notifications-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}
.notifications-dropdown-header a {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.notifications-dropdown-header a:hover {
  text-decoration: underline;
}
.notifications-dropdown-list {
  overflow-y: auto;
  max-height: 320px;
}
.notifications-dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notifications-dropdown-item:hover {
  background: var(--surface-hover);
}
.notifications-dropdown-item.unread {
  background: rgba(31,175,106,.04);
  border-left: 4px solid var(--green);
}
.notifications-dropdown-item .notif-icon {
  flex-shrink: 0;
  font-size: 20px;
}
.notifications-dropdown-item .notif-content {
  flex: 1;
  min-width: 0;
}
.notifications-dropdown-item .notif-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}
.notifications-dropdown-item .notif-message {
  font-size: 12px;
  color: var(--secondary-text);
  line-height: 1.4;
}
.notifications-dropdown-item .notif-time {
  font-size: 11px;
  color: var(--secondary-text);
  margin-top: 4px;
}
.notifications-dropdown-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--secondary-text);
  font-size: 13px;
}
.notifications-dropdown-empty .material-icons {
  font-size: 40px;
  color: rgba(10,42,67,.2);
  display: block;
  margin-bottom: 8px;
}
