/* Map Share Redesign Styles - Premium Edition */

/* ==========================================================================
   MSH Tag Cloud Section - Premium "Magnetic Levitating Cloud"
   ========================================================================== */
.msh-tag-cloud-section {
    position: relative;
    padding: 20px 0 40px;
    overflow: hidden;
    width: 100%;
}

/* Share background styles with showcase */
.msh-tag-cloud-section .msh-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.msh-tag-cloud-section .msh-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

.msh-tag-cloud-section .msh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float-sc 20s infinite ease-in-out alternate;
}

.msh-tag-cloud-section .msh-blob-4 {
    width: 400px;
    height: 400px;
    background: var(--msh-accent-primary, #3b82f6);
    top: -50px;
    left: 10%;
    animation-delay: -2s;
}

.msh-tag-cloud-section .msh-blob-5 {
    width: 500px;
    height: 500px;
    background: var(--msh-accent-secondary, #ec4899);
    bottom: -100px;
    right: 15%;
    animation-delay: -7s;
}

.msh-tag-cloud-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Sit above background */
    width: 100%;
    box-sizing: border-box;
    /* Spotlight Variables */
    --msh-spotlight-x: 50%;
    --msh-spotlight-y: 50%;
    --msh-spotlight-color: rgba(59, 130, 246, 0.15);
    --msh-spotlight-border: rgba(59, 130, 246, 0.4);
}

.msh-tag-cloud-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px; /* Slightly larger gap for floating space */
    perspective: 1000px;
}

/* Wrapper to handle the magnetic pull area without affecting layout flow */
.msh-magnetic-wrap {
    display: inline-block;
    position: relative;
    padding: 10px; /* Hit area padding */
    margin: -10px; /* Compensate padding */
}

/* Premium Tag Item */
.msh-tag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    text-decoration: none !important;
    transition: transform 0.1s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease,
                background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    will-change: transform;
    /* Breathing Animation - Restored to inner item per user preference */
    animation: mshFloatIdle 6s ease-in-out infinite;
}

/* Stagger animation delays based on index */
.msh-magnetic-wrap:nth-child(2n) .msh-tag-item { animation-delay: -1s; animation-duration: 7s; }
.msh-magnetic-wrap:nth-child(3n) .msh-tag-item { animation-delay: -2s; animation-duration: 5.5s; }
.msh-magnetic-wrap:nth-child(5n) .msh-tag-item { animation-delay: -3s; animation-duration: 8s; }

/* Spotlight Effect Layer */
.msh-tag-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 100px;
    padding: 1px; /* Border width */
    background: radial-gradient(
        150px circle at var(--x, 50%) var(--y, 50%), 
        var(--msh-spotlight-border),
        transparent 60%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.msh-tag-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 100px;
    background: radial-gradient(
        200px circle at var(--x, 50%) var(--y, 50%), 
        var(--msh-spotlight-color),
        transparent 60%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Hover State - Magnetic Active (Desktop only) */
@media (hover: hover) {
    .msh-magnetic-wrap:hover .msh-tag-item {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
        animation-play-state: paused; /* Pause breathing on hover */
    }

    .msh-magnetic-wrap:hover .msh-tag-item::before,
    .msh-magnetic-wrap:hover .msh-tag-item::after {
        opacity: 1;
    }
}

/* Content Layer (Inner) */
.msh-tag-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none; /* Let clicks pass through */
    transition: transform 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}

.msh-tag-icon {
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
    .msh-magnetic-wrap:hover .msh-tag-icon {
        transform: scale(1.2) rotate(5deg);
    }
}

.msh-tag-label {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    transition: color 0.3s ease;
    line-height: 1.2;
    letter-spacing: normal;
}

@media (hover: hover) {
    .msh-magnetic-wrap:hover .msh-tag-label {
        color: #3b82f6;
    }
}

.msh-tag-arrow {
    width: 0;
    height: 18px;
    opacity: 0;
    color: #3b82f6;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

@media (hover: hover) {
    .msh-magnetic-wrap:hover .msh-tag-arrow {
        width: 18px;
        opacity: 1;
        margin-left: 4px;
        transform: translateX(3px);
    }
}

.msh-tag-arrow svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    display: block;
}

/* Idle Breathing Animation */
@keyframes mshFloatIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
    .msh-tag-cloud-container {
        padding: 20px 15px;
    }
    .msh-tag-item {
        padding: 8px 16px;
        gap: 8px;
        -webkit-tap-highlight-color: transparent;
    }
    .msh-tag-label {
        font-size: 14px;
    }
    .msh-tag-icon {
        font-size: 1.2rem;
    }
    .msh-magnetic-wrap {
        padding: 0;
        margin: 0;
    }
}

/* Transitions & Variables */
:root {
  --msh-primary: var(--theme-color, --theme-hover);
  --msh-bg: var(--theme-el-bg-color, #ffffff);
  --msh-border: var(--theme-border-color, #e5e7eb);
  --msh-text: var(--theme-text-color, #374151);
  --msh-title: var(--theme-title-color, #111827);
  --msh-gray: var(--theme-gray-color, #6b7280);
  --msh-radius-s: var(--theme-border-radius-s, 4px);
  --msh-radius-m: var(--theme-border-radius-m, 8px);
  --msh-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Nav Button - JustNews Tougao Style */
.msh-nav-button {
  background-color: var(--msh-primary);
  border: none;
  border-radius: var(--msh-radius-s);
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 10px;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.msh-nav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.msh-nav-text {
  white-space: nowrap;
}

.msh-nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
  opacity: 0.95;
}

/* Modal Overlay */
.msh-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.msh-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.msh-modal-content {
  background: var(--msh-bg);
  width: 95%;
  max-width: 520px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  max-height: 90vh;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msh-modal-overlay.active .msh-modal-content {
  transform: scale(1);
}

/* Modal Header */
.msh-modal-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--msh-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.msh-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--msh-title);
}

.msh-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--msh-gray);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.msh-modal-close:hover {
  color: #ef4444;
}

/* List Card - Comment Style */
.msh-list-wrapper {
  margin: 20px 0;
}

/* List Header & Button */
.msh-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 15px;
  padding-bottom: 0;
  border-bottom: none;
}

.msh-list-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--msh-title);
}

.msh-list-share-btn {
  background-color: var(--msh-primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.msh-list-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
  background-color: #2563eb;
}

/* List Card - Modern Style */
.msh-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin: 0;
}

.msh-card.msh-modern-style {
  background: var(--msh-bg);
  border: 1px solid var(--msh-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.msh-card.msh-modern-style:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05),
    0 8px 10px -6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: var(--msh-primary);
}

/* Pinned Card Styling */
.msh-is-pinned {
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: linear-gradient(to bottom right, #fff, #fffef7);
}

.msh-card-header {
  margin-bottom: 20px;
}

.msh-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.msh-card-author-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.msh-card-avatar {
  flex-shrink: 0;
}

.msh-card-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--msh-border);
}

.msh-author-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.msh-author-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.msh-author-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--msh-title);
}

/* Pinned Badge - Inline with author name */
.msh-badge-pinned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.msh-badge-pinned svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* Map Type Badge - Soft, Modern Style */
.msh-provider-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.msh-provider-inline {
  font-size: 11px;
  padding: 4px 10px;
}

.msh-card-header .msh-provider-badge {
  display: none;
}

.msh-provider-badge:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

/* Soft color variations for different map types */
.msh-provider-google-mymaps {
  background: #eff6ff;
  color: #1e40af;
  border-color: #dbeafe;
}

.msh-provider-google-mymaps:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.msh-provider-google-maps-list {
  background: #f0fdf4;
  color: #166534;
  border-color: #dcfce7;
}

.msh-provider-google-maps-list:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.msh-provider-apple-maps-guide {
  background: #f5f5f5;
  color: #404040;
  border-color: #e5e5e5;
}

.msh-provider-apple-maps-guide:hover {
  background: #e5e5e5;
  border-color: #d4d4d4;
}

.msh-provider-amap {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.msh-provider-amap:hover {
  background: #fed7aa;
  border-color: #fdba74;
}

.msh-provider-maps-me {
  background: #faf5ff;
  color: #7e22ce;
  border-color: #f3e8ff;
}

.msh-provider-maps-me:hover {
  background: #f3e8ff;
  border-color: #e9d5ff;
}

.msh-provider-other {
  background: #f9fafb;
  color: #4b5563;
  border-color: #e5e7eb;
}

.msh-provider-other:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Legacy classes for backwards compatibility */
.msh-provider-google {
  background: #eff6ff;
  color: #1e40af;
  border-color: #dbeafe;
}

.msh-provider-apple {
  background: #f5f5f5;
  color: #404040;
  border-color: #e5e5e5;
}


.msh-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--msh-gray);
}

.msh-action-text {
  opacity: 0.8;
}

.msh-date {
  font-size: 11px;
  opacity: 0.6;
}

.msh-card-content {
  display: flex;
  flex-direction: column;
}

.msh-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

.msh-card-layout-full {
  grid-template-columns: minmax(0, 1fr);
}

.msh-card-main,
.msh-card-side {
  min-width: 0;
}

@media (min-width: 961px) {
  .msh-card-side {
    margin-top: -56px;
  }
}

.msh-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: #f97316; /* Vibrant orange/primary accent for title */
  word-wrap: break-word;
}

.msh-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .msh-card.msh-modern-style {
    padding: 16px;
  }

  .msh-card-title {
    font-size: 16px;
  }
}

.msh-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--msh-text);
  margin-bottom: 12px;
}

/* Inline Read More Link - Theme Color */
.msh-read-more-link {
  color: var(--msh-primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 2px;
  transition: opacity 0.15s ease;
}

.msh-read-more-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Hidden full content container */
.msh-note-full-content {
  display: none !important;
}

/* Read More Modal specific styles */
.msh-modal-content.msh-has-fixed-footer {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.msh-read-more-modal {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  overflow: hidden !important; /* Ensure children can scroll */
  height: 100%;
}

.msh-read-more-modal .msh-note-full-text {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 30px !important;
  padding-bottom: 20px !important; /* Extra padding for scrolling aesthetics */
  padding-top: 40px !important;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.msh-read-more-modal .msh-modal-close-footer {
  flex-shrink: 0 !important;
  text-align: center;
  padding: 16px 30px;
  border-top: 1px solid #eee;
  background: #fff;
  z-index: 5;
}

/* Topic Chips - Premium & Vibrant */
.msh-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.msh-topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  background: #f3f4f6; /* Fallback */
  color: #4b5563; /* Fallback */
}

/* Vibrant Color Variations */
.msh-topic-tag:nth-child(5n + 1) {
  background-color: #eff6ff;
  color: #2563eb;
  border-color: #dbeafe;
}
.msh-topic-tag:nth-child(5n + 2) {
  background-color: #f0fdf4;
  color: #16a34a;
  border-color: #dcfce7;
}
.msh-topic-tag:nth-child(5n + 3) {
  background-color: #fff7ed;
  color: #ea580c;
  border-color: #ffedd5;
}
.msh-topic-tag:nth-child(5n + 4) {
  background-color: #faf5ff;
  color: #9333ea;
  border-color: #f3e8ff;
}
.msh-topic-tag:nth-child(5n + 5) {
  background-color: #f0fdfa;
  color: #0d9488;
  border-color: #ccfbf1;
}

.msh-topic-tag:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  filter: brightness(0.98);
}

.msh-topic-icon {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Link Preview Card */
.msh-preview-card {
  border-radius: 12px;
  border: 1px solid var(--msh-border);
  background: #fff;
  color: inherit !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  overflow: hidden;
  display: flex;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Ensure inner card border doesn't turn orange when outer card is hovered */
.msh-card.msh-modern-style:hover .msh-preview-card {
  border-color: var(--msh-border);
}

.msh-preview-card:hover {
  box-shadow: 0 10px 18px -12px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.msh-preview-media {
  position: relative;
  background: #e2e8f0;
  overflow: hidden;
}

.msh-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msh-preview-media-fallback {
  background: #f1f5f9;
}

.msh-preview-fallback .msh-preview-media img {
  filter: saturate(0.9);
}

.msh-preview-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.msh-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--msh-title);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msh-preview-desc {
  font-size: 12px;
  color: var(--msh-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msh-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 11px;
  color: var(--msh-gray);
  min-width: 0;
}

.msh-preview-site {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msh-preview-action {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.msh-preview-card:hover .msh-preview-action {
  color: var(--msh-primary);
}

.msh-preview-large {
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.msh-preview-large .msh-preview-media {
  aspect-ratio: 16 / 9;
}

.msh-preview-large .msh-preview-body {
  padding: 10px 12px 12px;
  gap: 8px;
}

.msh-preview-small {
  flex-direction: row;
  align-items: center;
  padding: 10px;
  gap: 12px;
  background: #fff;
}

.msh-preview-small .msh-preview-media {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
}

.msh-preview-small .msh-preview-body {
  padding: 0;
  gap: 4px;
}

.msh-preview-small .msh-preview-desc {
  display: none;
}

@media (max-width: 960px) {
  .msh-card-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .msh-provider-inline {
    display: none;
  }

  .msh-card-header .msh-provider-badge {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .msh-preview-large .msh-preview-body {
    padding: 8px 10px 10px;
    gap: 6px;
  }

  .msh-preview-title {
    font-size: 13px;
  }

  .msh-preview-desc {
    font-size: 11px;
  }

  .msh-preview-action {
    display: none;
  }
}

/* Link Card - Compact & Modern */
.msh-compact-link-card {
  display: flex;
  align-items: center;
  padding: 12px;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.2s;
}

.msh-compact-link-card:hover {
  background: #f3f4f6;
}

.msh-compact-link-icon {
  width: 40px;
  height: 40px;
  background: color-mix(in srgb, var(--msh-primary), white 92%);
  color: var(--msh-primary);
  border: 1px solid color-mix(in srgb, var(--msh-primary), white 85%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.msh-compact-link-icon svg {
  width: 20px;
  height: 20px;
}

.msh-compact-link-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.msh-link-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--msh-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msh-link-url {
  font-size: 11px;
  color: var(--msh-gray);
}

.msh-compact-link-action {
  color: var(--msh-gray);
  margin-left: 12px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.msh-compact-link-card:hover .msh-compact-link-action {
  opacity: 1;
}

/* Form Styles */
.msh-form-wrapper {
  padding: 24px;
}

.msh-form-group {
  margin-bottom: 24px;
}

.msh-notice {
  display: none;
  padding: 12px 16px;
  border-radius: var(--msh-radius-m);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.msh-notice.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.msh-notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.msh-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--msh-title);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.msh-tooltip-icon {
  display: inline-flex;
  align-items: center;
  color: var(--msh-gray);
  cursor: help;
  position: relative;
  transition: color 0.2s;
}

.msh-tooltip-icon:hover {
  color: var(--msh-primary);
}

.msh-tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: -12px;
  transform: translateY(-8px);
  background: #1f2937;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  line-height: 1.4;
  text-align: left;
}

.msh-tooltip-icon::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  border: 4px solid transparent;
  border-top-color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.msh-tooltip-icon:hover::after,
.msh-tooltip-icon:hover::before {
  opacity: 1;
  visibility: visible;
}

.msh-tooltip-icon:hover::after {
  transform: translateY(0);
}

.msh-tooltip-icon:hover::before {
  transform: translateX(-50%) translateY(0);
}

.msh-input-field,
.msh-select-field {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--msh-border);
  border-radius: var(--msh-radius-m);
  color: var(--msh-text);
  font-size: 14px;
  transition: all 0.2s;
  box-sizing: border-box;
}

.msh-input-field:focus,
.msh-select-field:focus {
  outline: none;
  border-color: var(--msh-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.msh-char-count {
  text-align: right;
  font-size: 11px;
  color: var(--msh-gray);
  margin-top: 4px;
}

.msh-char-count.warning {
  color: #f59e0b;
}

.msh-char-count.error {
  color: #ef4444;
}

/* Type Chips - Subtle Inline Selection */
.msh-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.msh-type-chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--msh-border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  color: var(--msh-text);
  white-space: nowrap;
}

.msh-type-chip:hover {
  border-color: var(--msh-primary);
  background: #f0f7ff;
}

.msh-type-chip input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 2px solid var(--msh-border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.msh-type-chip input[type="radio"]:checked {
  border-color: var(--msh-primary);
  background: var(--msh-primary);
}

.msh-type-chip input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.msh-type-chip span {
  font-weight: 500;
  line-height: 1;
}

.msh-type-chip:has(input[type="radio"]:checked) {
  border-color: var(--msh-primary);
  background: #f0f7ff;
}

.msh-input-desc {
  display: block;
  font-size: 11px;
  color: var(--msh-gray);
  margin-top: 6px;
  opacity: 0.8;
}

/* Destination Badge */
.msh-dest-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--msh-primary), #60a5fa);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.msh-sub-dest-wrapper {
  background: rgba(241, 245, 249, 0.5);
  padding: 16px;
  border-radius: var(--msh-radius-m);
  border: 1px dashed var(--msh-border);
}

/* Topic Chips in Form */
.msh-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.msh-chip-label {
  cursor: pointer;
}

.msh-chip-label input {
  display: none;
}

.msh-chip-content {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  padding: 6px 14px;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.msh-chip-label:hover .msh-chip-content {
  background: #e5e7eb;
}

.msh-chip-label input:checked + .msh-chip-content {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.msh-chip-emoji {
  font-size: 16px;
}

.msh-chip-name {
  font-size: 13px;
  font-weight: 500;
}

/* Expand Topics Button */
.msh-expand-topics-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #f3f4f6;
  color: #6b7280;
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: normal;
  appearance: none;
  -webkit-appearance: none;
}

.msh-expand-topics-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
  transform: translateY(-1px);
}

.msh-expand-topics-btn:active {
  transform: translateY(0);
}

/* Status Badges */
.msh-pending-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #d97706;
  background: #fffbeb;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 12px;
}

.msh-dot {
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.msh-form-footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.msh-cancel-btn {
  background: transparent;
  color: var(--msh-gray);
  border: 1px solid var(--msh-border);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.msh-cancel-btn:hover {
  background: #f8fafc;
  border-color: var(--msh-gray);
  color: var(--msh-title);
}

.msh-submit-btn {
  background: var(--msh-primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.msh-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4);
  background: #2563eb;
}

.msh-submit-btn:active {
  transform: translateY(0);
}

.msh-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner */
.msh-btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.msh-submit-btn.loading .msh-btn-loader {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty State Styles */
.msh-empty-state {
  background: #f8fafc;
  border: 2px dashed var(--msh-border);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.msh-empty-state:hover {
  background: #f1f5f9;
  border-color: var(--msh-primary);
  transform: translateY(-2px);
}

.msh-empty-icon {
  width: 160px;
  height: 120px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: msh-float 4s ease-in-out infinite;
}

.msh-empty-svg {
  width: 100%;
  height: 100%;
}

.msh-svg-pin {
  transform-origin: 100px 115px;
  animation: msh-bounce 2s ease-in-out infinite;
}

@keyframes msh-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes msh-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1) translateY(-8px);
  }
}

.msh-empty-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--msh-title);
  margin: 0 0 12px 0;
}

.msh-empty-text {
  font-size: 16px;
  color: var(--msh-gray);
  max-width: 320px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.msh-empty-cta-btn {
  background: linear-gradient(135deg, var(--msh-primary), #60a5fa);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.msh-empty-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 30px -10px rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);
}

.msh-empty-cta-btn:active {
  transform: scale(0.95);
}

/* Destination Chip Selector */
.msh-dest-selector {
  position: relative;
}

.msh-dest-chip-wrapper {
  display: flex;
  align-items: center;
}

.msh-dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 100px;
  padding: 10px 20px 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.msh-dest-chip:hover,
.msh-dest-chip.active {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.msh-dest-chip-icon {
  font-size: 16px;
}

.msh-dest-chip-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msh-dest-chip-arrow {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.msh-dest-chip:hover .msh-dest-chip-arrow,
.msh-dest-chip.active .msh-dest-chip-arrow {
  transform: rotate(180deg);
}

/* Premium Destination Panel */
.msh-dest-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: var(--msh-radius-m);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 100;
  overflow: hidden;
  border: 1px solid var(--msh-border);
}

.msh-dest-search-wrapper {
  position: relative;
  padding: 12px;
  background: #f9fafb;
  border-bottom: 1px solid var(--msh-border);
}

.msh-dest-search {
  width: 100% !important;
  padding: 8px 32px 8px 12px !important;
  border: 1px solid var(--msh-border) !important;
  border-radius: var(--msh-radius-s) !important;
  font-size: 14px !important;
  transition: border-color 0.2s !important;
  margin: 0 !important;
  height: auto !important;
  background: #fff !important;
}

.msh-dest-search:focus {
  outline: none !important;
  border-color: var(--msh-primary) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}

.msh-search-icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
}

.msh-dest-list-container {
  max-height: 250px;
  overflow-y: auto;
}

.msh-dest-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 0 !important;
}

.msh-dest-item {
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: var(--msh-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msh-dest-item:hover {
  background: #f3f4f6;
  color: var(--msh-primary);
}

/* Mobile Optimization - Premium Bottom Sheet */
@media (max-width: 768px) {
  .msh-modal-overlay {
    align-items: flex-end;
  }

  .msh-modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  .msh-modal-overlay.active .msh-modal-content {
    transform: translateY(0);
  }

  /* Add Drag Handle for Mobile */
  .msh-modal-content::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
  }

  .msh-modal-header {
    padding: 24px 20px 16px;
  }

  .msh-modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }

  .msh-dest-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
  }

  .msh-input-field,
  .msh-select-field,
  .msh-dest-chip {
    min-height: 48px; /* Larger touch targets */
    font-size: 16px !important; /* Prevent iOS zoom on focus */
  }

  .msh-form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  /* Submission Notice Fix */
  .msh-notice {
    margin-top: 15px;
  }
}

/* Prevent Background Scroll when Modal Open */
body.msh-lock-scroll {
  overflow: hidden !important;
  height: 100% !important;
}
/* ==========================================================================
/* ==========================================================================
   Map Share Showcase - Premium Redesign ("Premium Light" Theme)
   ========================================================================== */

.msh-showcase-section {
  --msh-glass-bg: rgba(255, 255, 255, 0.7);
  --msh-glass-border: rgba(255, 255, 255, 0.8);
  --msh-glass-highlight: rgba(255, 140, 66, 0.4);
  --msh-accent-primary: #FF8C42; /* Brand: Clear Orange */
  --msh-accent-secondary: #FFB385; /* Light Orange */
  --msh-accent-tertiary: #FFECC7; /* Cream Glow */
  --msh-text-main: #1A1A1A;
  --msh-text-muted: #666666;
  --msh-card-width: 280px;
  --msh-card-height: 195px;
  --msh-gap: 28px;
  
  position: relative;
  background: #f8fafc;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%); 
  padding: 100px 0;
  overflow: hidden;
  color: var(--msh-text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Animations */
@keyframes msh-scroll-new {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - (var(--msh-gap) / 2))); }
}

@keyframes float-sc {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

@keyframes pulse-sc {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.msh-showcase-section .msh-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.msh-showcase-section .msh-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.msh-showcase-section .msh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float-sc 20s infinite ease-in-out alternate;
}

.msh-showcase-section .msh-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--msh-accent-primary);
  top: -10%;
  left: -5%;
}

.msh-showcase-section .msh-blob-2 {
  width: 600px;
  height: 600px;
  background: var(--msh-accent-tertiary);
  bottom: -10%;
  right: -5%;
  animation-delay: -5s;
}

.msh-showcase-section .msh-blob-3 {
  width: 400px;
  height: 400px;
  background: var(--msh-accent-secondary);
  top: 40%;
  left: 40%;
  opacity: 0.1;
  animation-delay: -10s;
}

.msh-showcase-section .msh-content-layer {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.msh-showcase-section .msh-header-group {
  margin-bottom: 60px;
}

.msh-showcase-section .msh-section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 850;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.msh-showcase-section .msh-section-subtitle {
  font-size: 18px;
  color: var(--msh-text-muted);
  margin: 0 auto;
  line-height: 1.6;
}

.msh-showcase-section .msh-live-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 2px 40px rgba(16, 185, 129, 0.1);
}

.msh-showcase-section .msh-live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-sc 2s infinite;
}

.msh-showcase-section .msh-marquee-container {
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}

.msh-showcase-section .msh-marquee-container::before,
.msh-showcase-section .msh-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.msh-showcase-section .msh-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #FFF, transparent);
}

.msh-showcase-section .msh-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #FFF, transparent);
}

.msh-showcase-section .msh-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: var(--msh-gap);
  animation: msh-scroll-new 60s linear infinite;
  will-change: transform;
}

.msh-showcase-section .msh-marquee-container:hover .msh-marquee-track {
  animation-play-state: paused;
}

.msh-showcase-section .msh-card-item {
  width: var(--msh-card-width);
  height: var(--msh-card-height);
  flex-shrink: 0;
  perspective: 1000px;
}

.msh-showcase-section .msh-card-glass {
  width: 100%;
  height: 100%;
  background: var(--msh-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--msh-glass-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.02);
}

.msh-showcase-section .msh-card-item:hover .msh-card-glass {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--msh-glass-highlight);
  background: #FFF;
  box-shadow: 0 20px 40px rgba(255, 140, 66, 0.12), 0 5px 15px rgba(0,0,0,0.05);
}

.msh-showcase-section .msh-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.msh-showcase-section .msh-card-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #FFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  background: #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msh-showcase-section .msh-card-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msh-showcase-section .msh-avatar-svg {
  background: #fff;
  color: var(--msh-accent-primary);
  padding: 8px;
}

.msh-showcase-section .msh-card-user {
  text-align: left;
}

.msh-showcase-section .msh-name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.msh-showcase-section .msh-time {
  font-size: 12px;
  color: #999;
}

.msh-showcase-section .msh-typ-badge {
  display: inline-block;
  background: rgba(255, 140, 66, 0.08);
  color: var(--msh-accent-primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.msh-showcase-section .msh-card-body {
  text-align: left;
  flex-grow: 1;
}

.msh-showcase-section .msh-map-title {
  font-size: 17px;
  font-weight: 750;
  margin: 0 0 6px;
  color: #111;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msh-showcase-section .msh-map-desc {
  font-size: 13.5px;
  color: var(--msh-text-muted);
  margin: 0;
  line-height: 1.4;
}

.msh-showcase-section .msh-cta-wrapper {
  margin-top: 60px;
}

.msh-showcase-section .msh-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--msh-accent-primary);
  color: #ffffff !important;
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 750;
  font-size: 17px;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(255, 140, 66, 0.4);
  position: relative;
  border: none;
  line-height: 1;
}

.msh-showcase-section .msh-cta-button .msh-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
}

.msh-showcase-section .msh-cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(255, 140, 66, 0.5);
  background: #E67E22;
  color: #ffffff !important;
}

.msh-showcase-section .msh-cta-wrapper .msh-cta-hint {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--msh-text-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media (max-width: 768px) {
  .msh-showcase-section {
    padding: 30px 0;
    --msh-card-width: 250px;
  }

  .msh-showcase-section .msh-header-group {
    margin-bottom: 20px;
  }

  .msh-showcase-section .msh-marquee-container {
    padding: 10px 0;
  }

  .msh-showcase-section .msh-cta-wrapper {
    margin-top: 30px;
  }

  .msh-showcase-section .msh-section-title { font-size: 28px; }
  .msh-showcase-section .msh-cta-button { padding: 14px 30px; font-size: 15px; }
}

/* Target Highlighting & Anchor Offset */
.msh-card.msh-modern-style {
  scroll-margin-top: 100px;
}

.msh-card.msh-modern-style:target {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2), 
              0 10px 25px -5px rgba(0, 0, 0, 0.05);
  animation: msh-target-pulse 2s ease-out;
}

@keyframes msh-target-pulse {
  0% { transform: scale(1); }
  5% { transform: scale(1.02); }
  15% { transform: scale(1); }
}

/* Google Map Embed & Import Button */
.msh-google-map-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden; /* Ensure rounded corners if any */
  border-radius: 8px; /* Match card radius usually */
}

.msh-import-btn-container {
  position: absolute;
  top: 3px;
  right: 20px;
  height: 40px;
  line-height: 40px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.msh-import-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #fff;
  color: #ff8c42;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  line-height: 1.2;
}

.msh-import-button:hover {
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  color: var(--msh-primary);
}

.msh-import-button .btn-icon {
  font-size: 16px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .msh-import-button .button-text {
    display: inline;
  }
  .msh-import-button {
    padding: 8px 10px;
    border-radius: 6px;
  }
  .msh-import-btn-container {
    right: 5px;
  }
}
