/* ============================================================
   magnify.css — Magnify Global Stylesheet
   Minimal. Functional. Clean.
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --bg:           #f8f7f4;
  --bg-1:         #ffffff;
  --bg-2:         #f1f5f9;
  --bg-dark:      #0f172a;
  --bg-dark-card: #1e293b;
  --bg-blue:      #1d4ed8;
  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(37,99,235,0.35);
  --text:         #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --green:        #16a34a;
  --red:          #dc2626;
  --nav-h:        60px;
  --max-w:        1160px;
  --radius:       10px;
  --radius-lg:    14px;
  --transition:   0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
}

html, body {
  overflow-x: hidden;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main { flex: 1; display: flex; flex-direction: column; }

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Scrollbar — hidden globally ── */

/* ── Progress bar ── */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.mn-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
}

.mn-nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.mn-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}

.mn-logo img { height: 28px; width: auto; }

/* Desktop links */
.mn-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.mn-link {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.mn-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.mn-link.active { color: #fff; }

/* Right side */
.mn-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.mn-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.mn-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.18);
}
.mn-btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.08); }

.mn-btn-primary {
  background: var(--accent);
  color: #fff;
}
.mn-btn-primary:hover { background: var(--accent-hover); }

.mn-acct-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.mn-acct-dot.on  { background: #3ecf6e; }
.mn-acct-dot.off { background: #555; }

/* Hamburger — mobile only */
.mn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
}
.mn-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile drawer */
.mn-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(300px, 85vw);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border);
  z-index: 1100;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: right 0.25s ease;
  overflow-y: auto;
}

.mn-drawer.open { right: 0; }

.mn-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  margin-bottom: 16px;
  line-height: 1;
}

.mn-drawer-link {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: all var(--transition);
}
.mn-drawer-link:hover, .mn-drawer-link.active { color: var(--text); background: rgba(255,255,255,0.05); }

.mn-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.mn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1050;
}
.mn-overlay.open { display: block; }

@media (max-width: 768px) {
  .mn-links, .mn-right { display: none; }
  .mn-hamburger { display: flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.mn-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.mn-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.mn-footer-logo img { height: 26px; width: auto; margin-bottom: 10px; }

.mn-footer-copy {
  font-size: 13px;
  color: #64748b;
}

.mn-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.mn-footer-links a {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition);
}
.mn-footer-links a:hover { color: #94a3b8; }

@media (max-width: 600px) {
  .mn-footer-inner { grid-template-columns: 1fr; }
  .mn-footer-links { justify-content: flex-start; }
}

/* ============================================================
   LOGIN MODAL
   ============================================================ */

.mn-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mn-modal.open { display: flex; }

.mn-modal-box {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  position: relative;
  animation: fadeUp 0.2s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mn-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.mn-modal-close:hover { color: var(--text); }

.mn-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

/* ============================================================
   SHARED FORM ELEMENTS
   ============================================================ */

.mn-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  font-family: inherit;
  box-sizing: border-box;
}
.mn-input:focus { border-color: var(--accent); background: rgba(92,156,255,0.04); }
.mn-input::placeholder { color: var(--text-3); }

.mn-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mn-field { margin-bottom: 16px; }

.mn-btn-full {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.mn-btn-full:hover { background: var(--accent-hover); }

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */

.mn-alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.mn-alert a { color: var(--accent); }

.mn-alert-success {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  color: var(--green);
}
.mn-alert-error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: var(--red);
}
.mn-alert-info {
  background: rgba(92,156,255,0.08);
  border: 1px solid rgba(92,156,255,0.2);
  color: #93c5fd;
}

/* ============================================================
   LISTING CARDS (shared across pages)
   ============================================================ */

.mn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.mn-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: var(--radius-lg);
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.mn-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.mn-card-img {
  height: 170px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mn-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mn-card-img svg { opacity: 0.3; color: #94a3b8; }

.mn-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.mn-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}

.mn-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.mn-card-location {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mn-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
}

.mn-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.mn-card-provider {
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================================
   PAGE WRAPPER (standard content pages)
   ============================================================ */

.mn-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.mn-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.mn-section {
  padding: 72px 0;
}

.mn-section-sm {
  padding: 48px 0;
}

/* Section header row */
.mn-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mn-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
}

.mn-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.mn-see-all:hover { text-decoration: underline; }

/* ============================================================
   BREADCRUMB
   ============================================================ */

.mn-breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mn-breadcrumb a { color: var(--accent); text-decoration: none; }
.mn-breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   EMPTY STATE
   ============================================================ */

.mn-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-3);
}
.mn-empty a { color: var(--accent); text-decoration: none; }

/* ============================================================
   UTILITY
   ============================================================ */

.mn-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   CREATE LISTING PAGE
   ============================================================ */

.mp-create-sub {
  font-size: 14px;
  color: #64748b;
  margin: 6px 0 20px;
  line-height: 1.6;
}

.mp-form-notice {
  background: rgba(92,156,255,0.07);
  border: 1px solid rgba(92,156,255,0.18);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #93c5fd;
  margin-bottom: 28px;
  line-height: 1.6;
}

.mp-form-section {
  margin-bottom: 32px;
}

.mp-form-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c9cff;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mp-field {
  margin-bottom: 16px;
}

.mp-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #7a9abc;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mp-field input,
.mp-field select,
.mp-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.mp-field input:focus,
.mp-field select:focus,
.mp-field textarea:focus {
  border-color: rgba(92,156,255,0.5);
  background: rgba(92,156,255,0.04);
}

.mp-field input::placeholder,
.mp-field textarea::placeholder { color: #334155; }

.mp-field select option { background: #0f172a; }

.mp-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.mp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mp-price-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.mp-price-prefix span {
  position: absolute;
  left: 14px;
  color: #475569;
  font-size: 14px;
  pointer-events: none;
}

.mp-price-prefix input {
  padding-left: 26px;
}

.mp-submit-btn {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
  font-family: 'Montserrat', sans-serif;
  margin-top: 8px;
}
.mp-submit-btn:hover { background: #1d4ed8; }

.mp-alert {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.mp-alert-error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: #f87171;
}

/* ============================================================
   CREATE LISTING PAGE — FOOTER
   ============================================================ */

.site-footer {
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 24px 28px;
}

.site-footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-copy {
  font-size: 13px;
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-links a:hover { color: #94a3b8; }

@media (max-width: 600px) {
  .mp-field-row { grid-template-columns: 1fr; }
}
