/* Bangladesh Travel Map - Studio Styling */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --map-bg: #f8fafc;
  --map-surface: #ffffff;
  --map-ink: #0f172a;
  --map-muted: #64748b;
  --map-line: #e2e8f0;
  --map-brand: #0f6b4f;
  --map-brand-ink: #ffffff;
  --map-chip: #f1f5f9;
  --map-radius: 16px;
  --sel: #0f6b4f;
  --sel-ink: #ffffff;
}

.amar-map-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 16px 40px;
  font-family: 'Anek Bangla', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--map-ink);
}

/* Hero Banner */
.map-hero {
  text-align: center;
  padding: 36px 20px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b2a1f 0%, #124332 50%, #061c14 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 10px 25px -5px rgba(11, 42, 31, 0.4);
}
.map-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(61, 220, 132, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.map-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.map-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 auto 12px;
  max-width: 800px;
  letter-spacing: -0.02em;
}
.map-hero h1 span {
  background: linear-gradient(90deg, #6ee7b7, #ffffff 45%, #fca5a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.map-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16.5px;
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.55;
}
.map-steps-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}
.map-steps-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-steps-row b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
}

/* Two Column Layout */
.map-studio-app {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.map-card {
  background: var(--map-surface);
  border: 1px solid var(--map-line);
  border-radius: var(--map-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Left Sidebar - Picker */
.map-picker {
  padding: 20px;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}
.map-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.map-picker-head h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--map-ink);
}
.map-badge-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--map-brand);
  background: #e3f0ea;
  padding: 4px 12px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
  border: 1px solid #cce5da;
}

.map-search {
  position: relative;
  margin-bottom: 12px;
}
.map-search input {
  width: 100%;
  border: 1px solid var(--map-line);
  background: var(--map-bg);
  border-radius: 12px;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  color: var(--map-ink);
}
.map-search input:focus {
  border-color: var(--map-brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.12);
}
.map-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--map-muted);
}

.map-tools-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--map-line);
}
.map-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--map-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.map-link-btn:hover {
  color: var(--map-brand);
}

.map-groups-scroll {
  overflow-y: auto;
  margin: 0 -16px;
  padding: 0 16px;
  flex: 1;
  scrollbar-width: thin;
}
.map-groups-scroll::-webkit-scrollbar {
  width: 5px;
}
.map-groups-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.map-group {
  padding: 12px 0;
  border-top: 1px solid var(--map-line);
}
.map-group:first-child {
  border-top: 0;
}
.map-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.map-group-head b {
  font-size: 13.5px;
  font-weight: 700;
}
.map-group-head small {
  color: var(--map-muted);
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
}
.map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.map-chip {
  border: 1px solid var(--map-line);
  background: var(--map-chip);
  color: var(--map-ink);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}
.map-chip:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.map-chip[aria-pressed="true"] {
  background: var(--sel, var(--map-brand));
  color: var(--sel-ink, #ffffff);
  border-color: transparent;
  font-weight: 600;
}
.map-chip[aria-pressed="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Right Stage - Canvas Area */
.map-stage {
  padding: 20px;
}
.map-stage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--map-line);
}

.map-themes-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.map-themes-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--map-muted);
  margin-right: 2px;
  white-space: nowrap;
}
.map-theme-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  outline: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.18s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.map-theme-swatch:hover {
  transform: scale(1.1);
}
.map-theme-swatch[aria-checked="true"] {
  outline-color: var(--map-ink);
  transform: scale(1.08);
}
.map-theme-swatch i {
  position: absolute;
  inset: 0;
}
.map-theme-swatch i:last-child {
  inset: auto 0 0 auto;
  width: 55%;
  height: 55%;
  border-radius: 50% 0 0 0;
}

.map-opts-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.map-upload-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  padding: 4px 12px 4px 4px;
  transition: all 0.15s;
  background: var(--map-bg);
}
.map-upload-box:hover {
  border-color: var(--map-brand);
  background: #f0fdf4;
}
.map-avatar-preview {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--map-chip);
  display: grid;
  place-items: center;
  color: var(--map-muted);
  background-size: cover;
  background-position: center;
}

.map-name-input {
  border: 1px solid var(--map-line);
  background: var(--map-bg);
  border-radius: 10px;
  padding: 8px 12px;
  width: 155px;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s;
  color: var(--map-ink);
}
.map-name-input:focus {
  border-color: var(--map-brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.1);
}

.map-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.map-toggle-label input {
  accent-color: var(--map-brand);
  width: 16px;
  height: 16px;
}

/* Canvas Wrapper */
.map-canvas-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--map-line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
canvas#preview {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}
.map-hover-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: opacity 0.12s;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.map-canvas-hint {
  font-size: 13px;
  color: var(--map-muted);
  text-align: center;
  margin: 12px 0 0;
}

/* Download Actions Bar */
.map-dl-card {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--map-line);
}
.map-dl-title {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.map-dl-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.map-btn {
  flex: 1;
  min-width: 130px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid var(--map-line);
  background: var(--map-surface);
  color: var(--map-ink);
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.map-btn:hover {
  border-color: var(--map-brand);
  color: var(--map-brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.map-btn.primary {
  background: var(--map-brand);
  color: #ffffff;
  border-color: var(--map-brand);
  box-shadow: 0 4px 14px rgba(15, 107, 79, 0.25);
}
.map-btn.primary:hover {
  background: #0d5c43;
  color: #ffffff;
}
.map-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Rank Milestone Card */
.map-rank-box {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3f0ea 0%, #f6f1e4 100%);
  border: 1px solid #cfe3d9;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.map-rank-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.map-rank-icon {
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 107, 79, 0.08);
  flex-shrink: 0;
}
.map-rank-top small {
  display: block;
  color: var(--map-muted);
  font-size: 13px;
  font-weight: 500;
}
.map-rank-top b {
  display: block;
  font-size: 19px;
  line-height: 1.3;
  color: var(--map-brand);
  font-weight: 800;
}
.map-rank-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(15, 107, 79, 0.15);
  margin: 12px 0 8px;
  overflow: hidden;
}
.map-rank-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f6b4f, #1f9a70);
  transition: width 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.map-rank-box p {
  margin: 0;
  font-size: 14px;
  color: var(--map-ink);
  line-height: 1.5;
}

/* Save Sheet Modal (Facebook / Instagram In-App Browser) */
.map-savesheet {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  backdrop-filter: blur(6px);
}
.map-ss-card {
  background: #ffffff;
  color: #0f172a;
  width: min(480px, 100%);
  border-radius: 20px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  margin: auto 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.map-ss-card .map-ss-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
}
.map-ss-card p {
  margin: 0;
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.55;
}
.map-ss-btn {
  display: block;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.map-ss-btn.primary {
  background: #0f6b4f;
  color: #ffffff;
  border-color: #0f6b4f;
}
.map-ss-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 6px;
  -webkit-touch-callout: default;
  user-select: auto;
}
.map-ss-close {
  border: 0;
  background: none;
  color: #64748b;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .map-studio-app {
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }
  .map-picker {
    position: static;
    max-height: none;
  }
  .map-groups-scroll {
    max-height: 500px;
  }
}

@media (max-width: 576px) {
  .amar-map-container {
    padding: 6px 10px 30px;
  }
  .map-hero {
    padding: 26px 14px 20px;
    border-radius: 18px;
  }
  .map-hero p {
    font-size: 15px;
  }
  .map-steps-row {
    font-size: 12px;
    gap: 12px;
  }
  .map-stage {
    padding: 14px;
  }
  .map-opts-row {
    width: 100%;
    justify-content: space-between;
  }
  .map-name-input {
    width: 100%;
  }
  .map-dl-btns {
    flex-direction: column;
  }
  .map-btn {
    width: 100%;
  }
}

/* Promotional Services Ads Showcase */
.map-promo-services {
  margin-top: 40px;
}
.promo-services-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.promo-services-title {
  font-size: 23px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.promo-services-sub {
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 22px;
  line-height: 1.5;
}
.promo-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.promo-service-item {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}
.promo-service-item:hover {
  border-color: #7c3aed;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.12);
}
.promo-service-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.promo-service-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.promo-service-thumb-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: #7c3aed;
  font-size: 20px;
  flex-shrink: 0;
}
.promo-service-meta {
  flex: 1;
  min-width: 0;
}
.promo-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 4px;
}
.promo-service-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.promo-service-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.promo-price {
  font-size: 21px;
  font-weight: 900;
  color: #0f6b4f;
}
.promo-old-price {
  font-size: 13.5px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}
.promo-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #0f6b4f 0%, #1aa37a 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.promo-order-btn:hover {
  opacity: 0.92;
  color: #ffffff;
}

/* Unique SEO Travel Guide & FAQ Section */
.map-seo-guide-section {
  margin-top: 40px;
}
.map-guide-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}
.map-guide-card h2, .map-guide-card h3 {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.map-guide-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.map-guide-card p {
  color: #475569;
  font-size: 15.5px;
  line-height: 1.7;
}
.map-guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.map-guide-step-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
}
.map-guide-step-box:hover {
  border-color: #0f6b4f;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 107, 79, 0.08);
}
.map-guide-step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f6b4f 0%, #1aa37a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 14px;
}
.map-guide-step-box h4 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.map-guide-step-box p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* Traveler Titles Showcase */
.map-titles-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.map-title-chip {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-title-chip .map-title-emoji {
  font-size: 24px;
}
.map-title-chip b {
  display: block;
  font-size: 14px;
  color: #0f172a;
}
.map-title-chip small {
  display: block;
  font-size: 12px;
  color: #64748b;
}

/* FAQ Accordion */
.map-faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.map-faq-item {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.map-faq-item[open] {
  background: #ffffff;
  border-color: #0f6b4f;
  box-shadow: 0 4px 16px rgba(15, 107, 79, 0.08);
}
.map-faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.map-faq-question::-webkit-details-marker {
  display: none;
}
.map-faq-question::after {
  content: "+";
  font-size: 20px;
  color: #0f6b4f;
  font-weight: 800;
  transition: transform 0.2s;
}
.map-faq-item[open] .map-faq-question::after {
  content: "−";
}
.map-faq-answer {
  padding: 0 20px 18px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.65;
}


