/* Course teachers chips */
.course-teachers {
  margin: 14px 0 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.course-teachers-title {
  font-size: 12px;
  font-weight: 900;
  color: #93c5fd;
  margin-bottom: 8px;
}

.course-teachers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(124, 58, 237, 0.24));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.7;
}

.teacher-chip::before {
  content: "👤";
  font-size: 12px;
  line-height: 1;
}

.course-teacher-textarea {
  min-height: 86px;
  resize: vertical;
}
.course-teachers-dropdown {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.course-teachers-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #0f172a;
  font-weight: 900;
  font-size: 13px;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.course-teachers-dropdown summary::-webkit-details-marker {
  display: none;
}

.course-teachers-dropdown summary::after {
  content: "⌄";
  margin-right: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.course-teachers-dropdown[open] summary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(34, 197, 94, 0.10));
  color: #075985;
}

.course-teachers-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.teacher-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  font-size: 16px;
}

.course-teachers-panel {
  padding: 10px 12px 14px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.teacher-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.teacher-avatar {
  min-width: 44px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teacher-name {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}
.course-info-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}

.course-info-item {
  min-height: 74px;
  padding: 12px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
}

.course-info-icon {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: rgba(14, 165, 233, .16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.course-info-label {
  color: rgba(226, 232, 240, .68);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.course-info-item strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.7;
}

/* dropdown اساتید داخل کارت */
.course-teachers-dropdown {
  margin: 8px 0 14px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, .48);
  border: 1px solid rgba(255,255,255,.10);
}

.course-teachers-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e5e7eb;
  font-weight: 900;
  font-size: 13px;
  user-select: none;
}

.course-teachers-dropdown summary::-webkit-details-marker {
  display: none;
}

.course-teachers-dropdown summary::after {
  content: "⌄";
  margin-right: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, .18);
  color: #7dd3fc;
  font-size: 18px;
  transition: transform .2s ease;
}

.course-teachers-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.teacher-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, .16);
  font-size: 16px;
}

.course-teachers-panel {
  padding: 10px 12px 14px;
  display: grid;
  gap: 8px;
}

.teacher-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}

.teacher-avatar {
  min-width: 44px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teacher-name {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 850;
}

/* دکمه‌های پایین کارت */
.course-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.course-action-btn {
  flex: 1;
  min-height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.course-action-btn:hover {
  transform: translateY(-2px);
}

.course-action-btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 14px 28px rgba(34,197,94,.20);
}

.course-action-btn.secondary {
  background: rgba(255,255,255,.09);
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.12);
}

@media (max-width: 640px) {
  .course-info-box {
    grid-template-columns: 1fr;
  }

  .course-actions {
    flex-direction: column;
  }

  .course-action-btn {
    width: 100%;
  }
}
/* v62 - Teacher highlight inside course registration cards */
.teacher-row-featured {
  align-items: flex-start;
}

.teacher-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.teacher-highlight {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  color: #bbf7d0;
  background: linear-gradient(135deg, rgba(34, 197, 94, .14), rgba(14, 165, 233, .12));
  border: 1px solid rgba(125, 211, 252, .16);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.teacher-highlight::before {
  content: "★";
  margin-left: 5px;
  color: #facc15;
  font-size: 10px;
}

.site-admin-v2 .course-teacher-textarea {
  min-height: 86px;
  resize: vertical;
}

@media (max-width: 640px) {
  .teacher-highlight {
    width: auto;
    font-size: 10.5px;
  }
}


/* منتقل‌شده از index.asp در v63 برای حذف CSS داخلی */
/* Course cards polish - added safely inside index.asp */
    .course-card {
      overflow: hidden;
    }

    .course-card-body {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .course-card-body h3 {
      margin-bottom: 2px;
    }

    .course-card-body p {
      min-height: 52px;
      line-height: 1.9;
      color: rgba(226, 232, 240, .88);
    }

    .course-info-box {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin: 4px 0 0;
    }

    .course-info-item {
      min-height: 74px;
      padding: 12px;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
      border: 1px solid rgba(255,255,255,.11);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
      display: grid;
      grid-template-columns: 34px 1fr;
      grid-template-rows: auto auto;
      column-gap: 9px;
      align-items: center;
    }

    .course-info-icon {
      grid-row: 1 / 3;
      width: 34px;
      height: 34px;
      border-radius: 14px;
      background: rgba(14, 165, 233, .16);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 17px;
    }

    .course-info-label {
      color: rgba(226, 232, 240, .68);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.4;
      white-space: nowrap;
    }

    .course-info-item strong {
      color: #ffffff;
      font-size: 13px;
      font-weight: 950;
      line-height: 1.7;
    }

    .course-teachers-dropdown {
      margin: 0;
      border-radius: 18px;
      overflow: hidden;
      background: rgba(15, 23, 42, .50);
      border: 1px solid rgba(255,255,255,.10);
    }

    .course-teachers-dropdown summary {
      list-style: none;
      cursor: pointer;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      gap: 9px;
      color: #e5e7eb;
      font-weight: 900;
      font-size: 13px;
      user-select: none;
    }

    .course-teachers-dropdown summary::-webkit-details-marker {
      display: none;
    }

    .course-teachers-dropdown summary::after {
      content: "⌄";
      margin-right: auto;
      width: 26px;
      height: 26px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(14, 165, 233, .18);
      color: #7dd3fc;
      font-size: 18px;
      transition: transform .2s ease;
    }

    .course-teachers-dropdown[open] summary {
      background: linear-gradient(135deg, rgba(14, 165, 233, .13), rgba(34, 197, 94, .10));
    }

    .course-teachers-dropdown[open] summary::after {
      transform: rotate(180deg);
    }

    .teacher-icon {
      width: 30px;
      height: 30px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(34, 197, 94, .16);
      font-size: 16px;
      flex: 0 0 auto;
    }

    .course-teachers-panel {
      padding: 10px 12px 14px;
      display: grid;
      gap: 8px;
    }

    .teacher-row {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 9px 10px;
      border-radius: 14px;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.08);
    }

    .teacher-avatar {
      min-width: 44px;
      height: 26px;
      padding: 0 8px;
      border-radius: 999px;
      background: linear-gradient(135deg, #0ea5e9, #22c55e);
      color: #fff;
      font-size: 11px;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }

    .teacher-name {
      color: #f8fafc;
      font-size: 13px;
      font-weight: 850;
      line-height: 1.7;
    }

    .course-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: auto;
      padding-top: 4px;
    }

    .course-action-btn {
      flex: 1;
      min-height: 46px;
      border-radius: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-size: 14px;
      font-weight: 950;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
      white-space: nowrap;
    }

    .course-action-btn:hover {
      transform: translateY(-2px);
    }

    .course-action-btn.primary {
      background: linear-gradient(135deg, #22c55e, #16a34a);
      color: #fff;
      box-shadow: 0 14px 28px rgba(34,197,94,.20);
    }

    .course-action-btn.secondary {
      background: rgba(255,255,255,.09);
      color: #e5e7eb;
      border: 1px solid rgba(255,255,255,.12);
    }

    @media (max-width: 640px) {
      .course-info-box {
        grid-template-columns: 1fr;
      }

      .course-actions {
        flex-direction: column;
      }

      .course-action-btn {
        width: 100%;
      }
    }

    /* Bottom contact area - moved below register/support forms */
    .bottom-contact-section {
      margin-top: 34px;
    }

    .bottom-contact-card {
      position: relative;
      overflow: hidden;
      border-radius: 30px;
      padding: 26px;
      background:
        radial-gradient(circle at 15% 10%, rgba(34,197,94,.14), transparent 34%),
        radial-gradient(circle at 85% 0%, rgba(14,165,233,.16), transparent 35%),
        linear-gradient(135deg, rgba(15,23,42,.92), rgba(17,24,39,.82));
      border: 1px solid rgba(255,255,255,.12);
      box-shadow: 0 24px 70px rgba(0,0,0,.24);
    }

    .bottom-contact-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 20px;
    }

    .bottom-contact-head h2 {
      margin: 0 0 8px;
      color: #fff;
      font-size: 26px;
      font-weight: 950;
    }

    .bottom-contact-head p {
      margin: 0;
      color: rgba(226,232,240,.76);
      line-height: 1.9;
    }

    .bottom-contact-badge {
      min-width: max-content;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(34,197,94,.14);
      color: #bbf7d0;
      border: 1px solid rgba(34,197,94,.22);
      font-size: 13px;
      font-weight: 900;
    }

    .bottom-contact-grid {
      display: grid;
      grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
      gap: 18px;
      align-items: stretch;
    }

    .contact-detail-list {
      display: grid;
      gap: 10px;
      align-content: start;
    }

    .contact-detail-item {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 12px;
      align-items: center;
      padding: 13px 14px;
      border-radius: 18px;
      background: rgba(255,255,255,.065);
      border: 1px solid rgba(255,255,255,.09);
    }

    .contact-detail-icon {
      width: 42px;
      height: 42px;
      border-radius: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(14,165,233,.16);
      font-size: 18px;
    }

    .contact-detail-text span {
      display: block;
      margin-bottom: 3px;
      color: rgba(226,232,240,.62);
      font-size: 12px;
      font-weight: 850;
    }

    .contact-detail-text strong {
      display: block;
      color: #fff;
      font-size: 14px;
      font-weight: 950;
      line-height: 1.8;
      word-break: break-word;
    }

    .bottom-contact-social {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255,255,255,.08);
    }

    .bottom-contact-social .social-icons {
      justify-content: flex-start;
      margin: 0;
    }

    .bottom-map-wrap {
      min-height: 100%;
      border-radius: 24px;
      overflow: hidden;
      background: rgba(2,6,23,.42);
      border: 1px solid rgba(255,255,255,.10);
    }

    .bottom-map-wrap .map-embed {
      margin: 0;
      min-height: 100%;
      border: 0;
      border-radius: 24px;
      overflow: hidden;
      background: rgba(15,23,42,.7);
    }

    .bottom-map-wrap iframe {
      width: 100% !important;
      min-height: 420px;
      height: 100%;
      border: 0;
      display: block;
      border-radius: 24px;
    }

    .bottom-map-empty {
      min-height: 260px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      color: rgba(226,232,240,.72);
      text-align: center;
    }

    @media (max-width: 900px) {
      .bottom-contact-head {
        flex-direction: column;
      }

      .bottom-contact-grid {
        grid-template-columns: 1fr;
      }

      .bottom-map-wrap iframe {
        min-height: 340px;
      }
    }

    @media (max-width: 640px) {
      .bottom-contact-card {
        padding: 18px;
        border-radius: 24px;
      }

      .bottom-contact-head h2 {
        font-size: 22px;
      }

      .bottom-contact-social .social-icons {
        justify-content: center;
      }
    }


/* v63 - نمایش ویژگی بارز زیر نام استاد، نه به عنوان استاد جدا */
.teacher-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.teacher-highlight {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 197, 94, .16), rgba(14, 165, 233, .14));
  border: 1px solid rgba(125, 211, 252, .18);
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.8;
  white-space: normal;
}
.teacher-highlight::before {
  content: "✦";
  margin-left: 5px;
  color: #67e8f9;
}
.teacher-highlight-label {
  margin-top: 8px;
  display: block;
}


/* v64 - نمایش اصولی ویژگی استاد زیر نام همان استاد + جلوگیری از به‌هم‌ریختگی RTL */
.course-card .course-teachers-dropdown {
  background: rgba(15, 23, 42, .58) !important;
  border: 1px solid rgba(56, 189, 248, .14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.course-card .course-teachers-panel {
  padding: 10px !important;
  display: grid !important;
  gap: 8px !important;
  background: transparent !important;
}

.course-card .course-teachers-panel .teacher-row,
.course-card .teacher-row.teacher-row-featured {
  direction: rtl !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(30, 41, 59, .58)) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  box-shadow: none !important;
}

.course-card .teacher-avatar {
  grid-column: 1 !important;
  min-width: 42px !important;
  width: 42px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(14,165,233,.95), rgba(34,197,94,.92)) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.course-card .teacher-text {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  direction: rtl !important;
  text-align: right !important;
}

.course-card .teacher-name {
  width: 100% !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.8 !important;
  text-align: right !important;
  white-space: normal !important;
}

.course-card .teacher-highlight {
  align-self: stretch !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 5px 9px !important;
  border-radius: 12px !important;
  background: rgba(34, 197, 94, .10) !important;
  border: 1px solid rgba(34, 197, 94, .18) !important;
  color: #bbf7d0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.9 !important;
  text-align: right !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.course-card .teacher-highlight::before {
  content: "★" !important;
  margin-left: 3px !important;
  color: #67e8f9 !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
}

@media (max-width: 640px) {
  .course-card .course-teachers-panel .teacher-row,
  .course-card .teacher-row.teacher-row-featured {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    padding: 9px !important;
  }

  .course-card .teacher-avatar {
    width: 38px !important;
    min-width: 38px !important;
    font-size: 9.5px !important;
  }
}

/* v65 - final clean teacher list display
   Fixes the old text badge beside teacher names and keeps the teacher highlight under the name. */
.course-teachers-dropdown {
  direction: rtl;
}

.course-teachers-panel {
  overflow: hidden;
}

.course-teachers-panel .teacher-row,
.course-teachers-panel .teacher-row-featured {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,41,59,.48));
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.course-teachers-panel .teacher-avatar {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.28), rgba(34,197,94,.24));
  border: 1px solid rgba(125,211,252,.22);
  color: #e0f2fe;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(14,165,233,.10);
}

.course-teachers-panel .teacher-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-align: right;
}

.course-teachers-panel .teacher-name {
  display: block;
  width: 100%;
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.9;
  white-space: normal;
  overflow-wrap: anywhere;
}

.course-teachers-panel .teacher-highlight {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  color: #bbf7d0;
  background: linear-gradient(135deg, rgba(22,163,74,.22), rgba(14,165,233,.14));
  border: 1px solid rgba(74,222,128,.20);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.8;
  white-space: normal;
  overflow-wrap: anywhere;
}

.course-teachers-panel .teacher-highlight::before {
  content: "★";
  margin-left: 5px;
  color: #facc15;
  font-size: 10px;
}


/* v67 - اصلاح نهایی نمایش نقشه انتهای صفحه اصلی */
.bottom-map-wrap {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(56,189,248,.18), transparent 34%),
    radial-gradient(circle at 82% 85%, rgba(34,197,94,.16), transparent 34%),
    rgba(2,6,23,.58);
  border: 1px solid rgba(125,211,252,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 55px rgba(0,0,0,.22);
}

.bottom-map-wrap .map-embed,
.clean-map-embed {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 430px;
  margin: 0;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(15,23,42,.72);
}

.bottom-map-wrap iframe,
.clean-map-frame {
  width: 100% !important;
  height: 100% !important;
  min-height: 430px !important;
  display: block;
  border: 0 !important;
  border-radius: 26px;
  filter: saturate(.98) contrast(.98);
}

.bottom-map-wrap .map-embed > a:not(.map-open-btn),
.bottom-map-wrap .map-embed > p,
.bottom-map-wrap .map-embed > span:not(.map-open-btn) {
  display: none !important;
}

.map-overlay-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: min(360px, calc(100% - 36px));
  padding: 14px 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,41,59,.84));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 42px rgba(0,0,0,.26);
  backdrop-filter: blur(14px);
}

.map-overlay-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  margin-bottom: 5px;
}

.map-overlay-card span {
  display: block;
  color: rgba(226,232,240,.82);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.8;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.map-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  color: #ecfeff;
  background: linear-gradient(135deg, rgba(6,182,212,.95), rgba(34,197,94,.92));
  box-shadow: 0 12px 26px rgba(6,182,212,.18);
}

.bottom-map-empty {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(226,232,240,.76);
  text-align: center;
  font-weight: 850;
}

@media (max-width: 900px) {
  .bottom-map-wrap,
  .bottom-map-wrap .map-embed,
  .clean-map-embed,
  .bottom-map-wrap iframe,
  .clean-map-frame,
  .bottom-map-empty {
    min-height: 340px !important;
  }
}

@media (max-width: 640px) {
  .bottom-map-wrap,
  .bottom-map-wrap .map-embed,
  .clean-map-embed,
  .bottom-map-wrap iframe,
  .clean-map-frame,
  .bottom-map-empty {
    min-height: 300px !important;
    border-radius: 22px;
  }

  .map-overlay-card {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

/* =========================================================
   RESPONSIVE FINAL PATCH v60 - Course teachers/map cards
   ========================================================= */
.course-teachers-dropdown,.course-teachers-panel,.teacher-row,.bottom-contact-card,.bottom-map-wrap{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
  .course-teachers-dropdown summary{font-size:13px!important;line-height:1.9;align-items:flex-start!important;padding:11px 12px!important}
  .course-teachers-panel{padding:10px!important}
  .teacher-row{grid-template-columns:42px 1fr!important;gap:10px!important;align-items:start!important;padding:10px!important;border-radius:16px!important}
  .teacher-avatar{width:42px!important;height:42px!important;border-radius:15px!important}
  .teacher-name,.teacher-specialty{overflow-wrap:anywhere;line-height:1.8}
  .map-overlay-card{position:relative!important;right:auto!important;bottom:auto!important;width:100%!important;border-radius:18px!important;margin-top:10px!important}
  .clean-map-embed{display:grid!important;gap:0!important;background:transparent!important}
  .bottom-map-wrap iframe,.clean-map-frame{min-height:300px!important;border-radius:20px!important}
}
@media(max-width:420px){.bottom-map-wrap iframe,.clean-map-frame{min-height:260px!important}}
