/*
 * Taxi Marrakech – shared theme styles.
 * 1) Mobile dock (was copied into every page's <style>).
 * 2) Floating WhatsApp button (was an inline style on every page).
 * 3) WordPress-only templates: blog, single post, plain page, 404.
 */

/* 1) Mobile dock ------------------------------------------------------- */
@media (max-width: 768px) {
  .ios-dock {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
  }

  .ios-dock-item {
    position: relative;
    min-width: 44px;
    flex: 1;
    max-width: 60px;
  }

  .ios-dock-item.active {
    background: rgba(0, 53, 128, 0.12);
  }

  .ios-dock-item.active .ios-dock-icon-wrapper svg {
    stroke: #003580;
    transform: scale(1.05);
  }

  .ios-dock-item.active .ios-dock-icon-wrapper img {
    transform: scale(1.05);
    filter: brightness(0.9);
  }

  .ios-dock-item.active span {
    color: #003580;
    font-weight: 600;
  }

  .ios-dock-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 24px;
    height: 24px;
  }

  .ios-dock-item:active {
    transform: scale(0.92);
  }

  .ios-dock-item:active .ios-dock-icon-wrapper {
    transform: scale(0.95);
  }

  .ios-dock-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.04);
  }

  .ios-dock-item svg {
    transition: stroke 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .ios-dock-item img {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
  }
}

/* 2) Floating WhatsApp button (desktop) -------------------------------- */
.tm-whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  z-index: 9999;
}

/* Keep the admin bar from hiding the floating dock nav for logged-in users */
@media (min-width: 768px) {
  body.admin-bar nav.dock-nav { top: 50px !important; }
}

/* 3) Blog / pages / 404 ------------------------------------------------- */
.tm-page-wrap { padding: 120px 0 64px; min-height: 70vh; }
@media (max-width: 767px) { .tm-page-wrap { padding: 32px 0 120px; } }
.tm-prose { color: #374151; font-size: 1rem; line-height: 1.75; }
.tm-prose > * + * { margin-top: 1.1em; }
.tm-prose h2 { font-size: 1.6rem; font-weight: 700; color: #111827; margin-top: 1.8em; line-height: 1.3; }
.tm-prose h3 { font-size: 1.3rem; font-weight: 600; color: #111827; margin-top: 1.5em; }
.tm-prose a { color: #2563eb; text-decoration: underline; }
.tm-prose ul { list-style: disc; padding-left: 1.4em; }
.tm-prose ol { list-style: decimal; padding-left: 1.4em; }
.tm-prose img { border-radius: 12px; height: auto; max-width: 100%; }
.tm-prose blockquote { border-left: 4px solid #2563eb; padding-left: 1em; color: #4b5563; font-style: italic; }
.tm-prose figure { margin: 1.5em 0; }
.tm-prose .alignwide, .tm-prose .alignfull { max-width: 100%; }
.tm-post-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.08); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.tm-post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.tm-post-card img { width: 100%; height: 200px; object-fit: cover; }
.tm-post-card .tm-post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tm-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.tm-pagination .page-numbers { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #e5e7eb; color: #374151; }
.tm-pagination .page-numbers.current { background: #2563eb; color: #fff; border-color: #2563eb; }
