/* ============================================================
   Landing page styles for tools/mouza-map-downloader.php
   ------------------------------------------------------------
   Additive only - reuses the site's base classes (.container,
   .content-section, .btn, .breadcrumb, .warning-box, ...) and
   adds the visual sections described in mouza-map-downloader.md.
   All page-specific classes are prefixed "mm-" to avoid clashing
   with the site-wide stylesheet.
   ============================================================ */

:root {
  --mm-green: #1f9d55;
  --mm-green-dark: #157a43;
  --mm-green-deep: #0f5c30;
  --mm-green-light: #e8f7ee;
  --mm-green-bg: #f0fbf4;
  --mm-amber: #d97706;
  --mm-amber-bg: #fff7e6;
  --mm-blue-bg: #e8f1fd;
  --mm-border: #d9e2dd;
  --mm-surface: #ffffff;
  --mm-bg: #f7faf8;
  --mm-text: #1d2b24;
  --mm-text-light: #5f756a;
  --mm-shadow: 0 2px 12px rgba(17, 69, 44, 0.08);
  --mm-radius: 12px;
}

.mm-container {
  max-width: 1120px;
}

/* ---------- Section wrappers ---------- */
.mm-section {
  margin-bottom: 34px;
  scroll-margin-top: 96px;
}

.mm-section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.mm-section-heading h2 {
  font-size: 1.5rem;
  font-family: 'Nirmala UI', 'Segoe UI', sans-serif;
  color: var(--mm-green-dark);
  margin-bottom: 8px;
}

.mm-section-heading p {
  color: var(--mm-text-light);
  max-width: 700px;
  margin: 0 auto;
}

.mm-section-heading blockquote {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mm-green-dark);
  font-style: normal;
  border-left: 4px solid var(--mm-amber);
  padding-left: 12px;
  text-align: center;
  max-width: 700px;
  margin: 12px auto;
}

.vs-note {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mm-green-dark);
  text-align: center;
  max-width: 100%;
  width: 100%;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* ---------- Journey mini flow (mimics the .md "download journey") ---------- */
.mm-journey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 16px 18px;
  box-shadow: var(--mm-shadow);
}

.mm-journey .mm-j-node {
  background: var(--mm-green-light);
  border: 1px solid var(--mm-green);
  color: var(--mm-green-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.mm-journey .mm-j-arrow {
  color: var(--mm-text-light);
  font-weight: 700;
}

/* ---------- Hero ---------- */
.mm-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--mm-green-light) 0%, #f2fbf6 100%);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 32px 28px;
  box-shadow: var(--mm-shadow);
  margin-bottom: 28px;
}

.mm-hero-copy h2 {
  font-size: 1.7rem;
  font-family: 'Nirmala UI', 'Segoe UI', sans-serif;
  color: var(--mm-green-deep);
  margin-bottom: 8px;
}

.mm-hero-copy > p {
  color: var(--mm-text-light);
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 16px;
}

.mm-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.mm-badge {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--mm-green-dark);
  font-weight: 700;
  box-shadow: var(--mm-shadow);
}

.mm-cta {
  display: inline-block;
  margin-top: 4px;
}

.mm-hero-visual {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 16px;
  box-shadow: var(--mm-shadow);
}

.mm-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--mm-radius) - 6px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- How-to (5 step) ---------- */
.mm-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.mm-step {
  position: relative;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 22px 14px 16px;
  text-align: center;
  box-shadow: var(--mm-shadow);
}

.mm-step-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mm-green-dark);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.mm-step-icon {
  font-size: 1.9rem;
  display: block;
  margin-bottom: 8px;
}

.mm-step h3 {
  font-size: 0.98rem;
  color: var(--mm-green-dark);
  margin-bottom: 6px;
}

.mm-step p {
  font-size: 0.82rem;
  color: var(--mm-text-light);
}

.mm-steps-arrow {
  text-align: center;
  color: var(--mm-text-light);
  font-weight: 700;
  margin: 10px 0 0;
}

/* ---------- Mouza map explainer (new info section) ---------- */
.mm-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mm-info-block {
  position: relative;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-left: 4px solid var(--mm-green);
  border-radius: var(--mm-radius);
  padding: 24px 20px 18px 22px;
  box-shadow: var(--mm-shadow);
}

.mm-info-num {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--mm-green-dark);
  color: #fff;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.mm-info-block h3 {
  font-size: 1.05rem;
  color: var(--mm-green-dark);
  margin: 6px 0 10px;
}

.mm-info-block p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--mm-text-light);
}

.mm-info-block p + p {
  margin-top: 8px;
}

/* ---------- The interactive tool ---------- */
.mm-tool-wrap {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 18px;
  box-shadow: var(--mm-shadow);
}

.mm-columns {
  display: grid;
  grid-template-columns: 170px 1fr 1fr 1fr 1.4fr;
  gap: 10px;
}

.mm-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mm-col-head {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mm-green-dark);
  padding: 8px 10px;
  background: var(--mm-green-bg);
  border: 1px solid var(--mm-border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-col-body {
  border: 1px solid var(--mm-border);
  border-radius: 0 0 8px 8px;
  flex: 1;
  min-height: 320px;
  max-height: 460px;
  overflow-y: auto;
  background: #fbfffd;
}

.mm-col-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-col-body li {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13.5px;
  border-bottom: 1px solid #eef3ef;
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-word;
}

.mm-col-body li:hover {
  background: var(--mm-green-light);
}

.mm-col-body li.mm-active {
  background: #cfedd8;
  font-weight: 700;
}

.mm-col-body .mm-folder {
  font-weight: 600;
}

.mm-col-body .mm-file {
  color: var(--mm-text);
}

.mm-col-body .mm-loading {
  color: var(--mm-text-light);
}

.mm-col-body .mm-note {
  color: #b45309;
  font-size: 12px;
  padding: 8px 10px;
}

.mm-col-body .mm-hint {
  color: var(--mm-text-light);
  font-size: 12.5px;
  padding: 8px 10px;
}

.mm-col-body .mm-search {
  padding: 8px;
  border-bottom: 1px solid var(--mm-border);
  background: #fff;
  position: sticky;
  top: 0;
}

.mm-col-body .mm-search input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--mm-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}

.mm-dl-area {
  margin-top: 14px;
  min-height: 60px;
}

.mm-dl-card {
  border: 1px solid #bfe3cc;
  background: var(--mm-green-bg);
  border-radius: 10px;
  padding: 12px 14px;
}

.mm-dl-card .mm-dl-name {
  font-weight: 700;
  margin-bottom: 6px;
}

.mm-dl-card .mm-dl-path {
  font-size: 11.5px;
  color: var(--mm-text-light);
  word-break: break-all;
  margin-bottom: 10px;
}

.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
  color: #fff;
  background: var(--mm-green);
  text-decoration: none;
}

.mm-btn:hover:not(:disabled) {
  background: var(--mm-green-dark);
}

.mm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mm-link {
  color: var(--mm-green-dark);
  font-weight: 600;
}

.mm-status {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--mm-text-light);
}

.mm-error {
  color: #dc2626;
  font-weight: 600;
}

.mm-tip {
  font-size: 11.5px;
  color: var(--mm-text-light);
  margin-top: 6px;
  word-break: break-all;
}

.mm-reset {
  margin-top: 14px;
  text-align: right;
}

/* ---------- "What is a mouza map" ---------- */
.mm-what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.mm-what-visual {
  background: var(--mm-green-bg);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 14px;
}

.mm-what-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 18 / 11;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.mm-what-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-what-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mm-bg);
  border: 1px solid var(--mm-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.93rem;
}

.mm-check {
  color: var(--mm-green);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- "What's on a map" feature cards ---------- */
.mm-map-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mm-feat-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--mm-shadow);
}

.mm-feat-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.mm-feat-card h3 {
  font-size: 1rem;
  color: var(--mm-green-dark);
  margin-bottom: 6px;
}

.mm-feat-card p {
  font-size: 0.84rem;
  color: var(--mm-text-light);
}

/* ---------- "Why needed" ---------- */
.mm-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mm-why-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--mm-shadow);
}

.mm-why-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.mm-why-card h3 {
  font-size: 1rem;
  color: var(--mm-green-dark);
  margin-bottom: 6px;
}

.mm-why-card p {
  font-size: 0.84rem;
  color: var(--mm-text-light);
}

/* ---------- Disclaimer / official cards ---------- */
.mm-disclaimer-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  border-radius: var(--mm-radius);
  padding: 18px 20px;
  font-size: 0.9rem;
  box-shadow: var(--mm-shadow);
}

.mm-disclaimer-card strong {
  display: block;
  margin-bottom: 6px;
}

.mm-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.mm-trust-visual {
  background: var(--mm-green-bg);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 18px;
  text-align: center;
}

.mm-trust-caption {
  font-size: 0.88rem;
  color: var(--mm-text-light);
  margin-top: 14px;
}

.mm-trust-flow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--mm-green-dark);
}

.mm-trust-node {
  background: var(--mm-surface);
  border: 1px solid var(--mm-green);
  border-radius: 20px;
  padding: 8px 18px;
}

.mm-trust-node.official {
  background: var(--mm-green-dark);
  color: #fff;
}

/* ---------- Search micro visual ---------- */
.mm-search-visual {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--mm-shadow);
}

.mm-search-visual .mm-sv-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--mm-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff;
}

.mm-search-visual .mm-sv-results li {
  list-style: none;
  background: var(--mm-bg);
  border: 1px solid var(--mm-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* ---------- Mobile vs desktop ---------- */
.mm-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.mm-device {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 20px;
  box-shadow: var(--mm-shadow);
  text-align: center;
}

.mm-device h3 {
  color: var(--mm-green-dark);
  margin-bottom: 12px;
}

.mm-device .mm-dv-panel {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.mm-device .mm-dv-row {
  background: var(--mm-bg);
  border: 1px solid var(--mm-border);
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  min-width: 150px;
}

/* ---------- Related tools ---------- */
.mm-tool-list {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
}

.mm-tool-list li {
  margin-bottom: 10px;
}

.mm-tool-list a {
  display: block;
  background: var(--mm-bg);
  border: 1px solid var(--mm-border);
  border-radius: 10px;
  padding: 13px 18px;
  text-decoration: none;
  color: var(--mm-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mm-tool-list a:hover {
  border-color: var(--mm-green);
  background: var(--mm-green-light);
  color: var(--mm-green-dark);
}

/* ---------- FAQ ---------- */
.mm-faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.mm-faq-item {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--mm-shadow);
}

.mm-faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--mm-green-dark);
  list-style-position: inside;
  transition: background 0.2s ease;
}

.mm-faq-item summary:hover {
  background: var(--mm-green-light);
}

.mm-faq-item[open] summary {
  border-bottom: 1px solid var(--mm-border);
  background: var(--mm-green-light);
}

.mm-faq-item p {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--mm-text-light);
}

/* ---------- PDF goal / mockup ---------- */
.mm-pdf-goal {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
}

.mm-pdf-mockup {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  overflow: hidden;
}

.mm-pdf-mockup .mm-pdf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--mm-green-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.mm-pdf-mockup .mm-pdf-file {
  background: var(--mm-amber);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.82rem;
}

.mm-pdf-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  object-position: center;
}

.mm-pdf-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mm-pdf-cta h3 {
  color: var(--mm-green-dark);
  font-size: 1.2rem;
}

.mm-pdf-cta p {
  font-size: 0.9rem;
  color: var(--mm-text-light);
  line-height: 1.6;
}

.mm-pdf-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mm-pdf-cta-btns .btn {
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Problem → Solution ---------- */
.mm-ps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 20px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.mm-ps-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  padding: 22px 24px;
  box-shadow: var(--mm-shadow);
}

.mm-ps-card h3 {
  color: var(--mm-green-dark);
  font-size: 1rem;
  margin-bottom: 12px;
}

.mm-ps-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mm-ps-card li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--mm-text-light);
}

.mm-ps-before {
  border-top-color: var(--mm-amber);
}

.mm-ps-before h3 {
  color: var(--mm-amber);
}

.mm-ps-arrow {
  font-size: 1.8rem;
  color: var(--mm-green);
  font-weight: 700;
}

.mm-ps-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}

.mm-ps-flow span {
  background: var(--mm-green-light);
  color: var(--mm-green-dark);
  border: 1px solid var(--mm-green);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.mm-ps-headline {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--mm-green-dark);
}

/* ---------- Page-wide corrections (this stylesheet loads only on this tool page) ---------- */
.warning-box {
  font-size: 0.8rem;
}

.content-section h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.mm-page-header {
  background: none;
  padding: 2px 0 10px;
  color: inherit;
}

.mm-page-header h1 {
  color: var(--mm-green-deep);
  font-size: 1.7rem;
}

.mm-page-header p {
  color: var(--mm-text-light);
  opacity: 1;
  margin-top: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .mm-columns { grid-template-columns: 1fr 1fr; }
  .mm-steps { grid-template-columns: repeat(3, 1fr); }
  .mm-map-feat-grid,
  .mm-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .mm-steps { grid-template-columns: repeat(2, 1fr); }
  .mm-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mm-columns { grid-template-columns: 1fr; }
  .mm-hero,
  .mm-what-grid,
  .mm-trust-grid,
  .mm-responsive,
  .mm-pdf-goal,
  .mm-ps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .mm-steps,
  .mm-map-feat-grid,
  .mm-why-grid { grid-template-columns: 1fr; }
  .mm-hero { padding: 24px 16px; }
}
