/* Hebrew editorial content must not inherit Bootstrap's left alignment or
   pasted word-processor direction. Explicit LTR islands (URLs/numbers) remain
   available with <bdi dir="ltr"> or <span dir="ltr"> inside the text. */
.prayer-source-text,
.cms-page-body,
.verses-content,
.prayer-card,
.prayer-card-title,
.prayer-card-summary,
.prayer-card-action,
.prayer-detail,
.prayer-detail-header,
.prayer-detail h2,
.prayer-detail-body {
  direction: rtl;
  text-align: right;
}
:is(.prayer-source-text, .cms-page-body, .verses-content, .prayer-detail, .prayer-detail-body)
  :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, dl, dt, dd, table, th, td) {
  direction: rtl !important;
  text-align: right !important;
}
:is(.prayer-source-text, .cms-page-body, .verses-content) :is(ul, ol) {
  padding-inline-start: 1.5em;
  padding-inline-end: 0;
}
:is(.prayer-source-text, .cms-page-body, .verses-content) {
  overflow-wrap: anywhere;
}

/* Allow standard document scrolling */
html, body {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
}

/* Cemetery long content expander & internal scroll box */
.cemetriestextwrap {
  position: relative;
  max-height: 260px;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-bottom: 20px;
}
.cemetriestextwrap.is-expanded {
  max-height: 480px;
  overflow-y: auto;
  padding-left: 10px;
}
.cemetriestextwrap:not(.is-expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 90%);
  pointer-events: none;
}
/* Breadcrumbs (פירורי לחם) – משתלבים באופן טבעי, אלגנטי ומכובד */
.breadcrumbs {
  position: relative !important;
  top: auto !important;
  margin-top: 124px !important;
  margin-bottom: 0 !important;
  padding: 10px 0 2px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  z-index: 100 !important;
  width: 100% !important;
}
@media only screen and (max-width: 992px) {
  .breadcrumbs {
    margin-top: 128px !important;
  }
}
@media only screen and (max-width: 769px) {
  .breadcrumbs {
    margin-top: 132px !important;
  }
}
.breadcrumbs .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  direction: rtl;
  box-shadow: none !important;
}
.breadcrumbs .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
  color: #6b778c;
}
.breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "/" !important;
  padding: 0 8px !important;
  color: #a0aec0 !important;
  font-size: 13px;
  font-weight: 400;
  display: inline-block;
}
.breadcrumbs .breadcrumb-link {
  color: #090925 !important;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease;
}
.breadcrumbs .breadcrumb-link:hover {
  color: #087bb4 !important;
  border-bottom-color: #087bb4;
  text-decoration: none;
}
.breadcrumbs .breadcrumb-item.active .breadcrumb-current {
  color: #4a5568;
  font-weight: 600;
}

/* ========================================================
   בתי עלמין – עימוד סמכותי, מרובע ומדויק לפי סקיצת המשתמש
   ======================================================== */
.cemetriescontainer {
  padding-top: 24px !important;
  padding-bottom: 60px !important;
}
.cemetries-page-header {
  margin-bottom: 28px !important;
  text-align: right !important;
  border-bottom: 4px solid #0b0a2b !important;
  padding-bottom: 18px !important;
}
.cemetries-main-title {
  font-size: 48px !important;
  font-weight: 900 !important;
  color: #0b0a2b !important;
  margin: 0 0 8px !important;
  letter-spacing: -0.5px !important;
  line-height: 1.1 !important;
}
.cemetries-main-subtitle {
  font-size: 18px !important;
  color: #6b6b7a !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  max-width: 850px !important;
}
@media (max-width: 768px) {
  .cemetries-main-title {
    font-size: 34px !important;
  }
  .cemetries-main-subtitle {
    font-size: 15px !important;
  }
}

.cemetriescontainer .cemetriestextcol {
  max-width: 100% !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* טאבים: כפתורים מלבניים סמכותיים ובולטים במרכז */
.cemetriescontainer #nav-tab.nav-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin: 16px 0 32px !important;
  justify-content: center !important;
}
.cemetriescontainer #nav-tab .nav-item.nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 28px !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  color: #0b0a2b !important;
  background: #ffffff !important;
  border: 1px solid #d9d9e0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  min-width: 160px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}
.cemetriescontainer #nav-tab .nav-item.nav-link:hover {
  border-color: #0b0a2b !important;
  background: #f7f7f9 !important;
  color: #0b0a2b !important;
}
.cemetriescontainer #nav-tab .nav-item.nav-link.active {
  background: #0b0a2b !important;
  color: #ffffff !important;
  border-color: #0b0a2b !important;
  box-shadow: none !important;
}

/* פאנל בית עלמין */
.cemetery-panel {
  margin-bottom: 40px;
}

/* מפה עליונה רחבה (סיור וירטואלי 360° ומפת הגעה) */
.cemetery-map-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  background: #e0e0e0;
  margin-bottom: 24px;
  border: 1px solid #d9d9e0;
}
.cemetery-map-switch-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  gap: 6px;
  background: rgba(11, 10, 43, 0.92);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.cemetery-map-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #d0d4dc;
  border: none;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
}
.cemetery-map-switch-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.cemetery-map-switch-btn.active {
  background: #09a2e7;
  color: #ffffff;
}
.cemetery-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* סטריפ מדדים – 4 תאים בדסקטופ, 2x2 במובייל */
.cemetery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #d9d9e0;
  background: #ffffff;
  margin-bottom: 24px;
}
.cemetery-strip > div {
  padding: 28px 18px;
  border-left: 1px solid #d9d9e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cemetery-strip > div:last-child {
  border-left: 0;
}
.cemetery-strip .k {
  font-size: 15px;
  color: #6b6b7a;
  margin-bottom: 6px;
  font-weight: 500;
}
.cemetery-strip .v {
  font-size: 23px;
  font-weight: 700;
  color: #0b0a2b;
  line-height: 1.25;
}
.cemetery-strip .v a {
  color: inherit;
  text-decoration: none;
}
.cemetery-strip .v a:hover {
  text-decoration: underline;
}
.cemetery-strip .open {
  background: #0b0a2b;
}
.cemetery-strip .open .k {
  color: #8a8aa8;
}
.cemetery-strip .open .v {
  color: #3b9be0;
  font-size: 32px;
}

/* כפתור חיפוש נפטרים ענק – סמכותי ומרובע */
.cemetery-cta {
  display: block;
  background: #0b0a2b;
  color: #ffffff !important;
  text-align: center;
  padding: 22px 20px;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 32px 0;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid #0b0a2b;
  transition: background 0.2s ease;
}
.cemetery-cta:hover {
  background: #14134a;
  color: #ffffff !important;
}

/* שתי עמודות: אודות מימין, שעות פתיחה משמאל (RTL) */
.cemetery-cols {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 36px;
  align-items: start;
}

/* עמודת אודות – גובה תואם במדויק לקוביית שעות הפתיחה */
.cemetery-about-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}
.cemetery-about-title {
  font-size: 28px;
  color: #0b0a2b;
  font-weight: 800;
  margin: 0 0 16px 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cemetery-title-arrows {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.cemetery-about-content {
  position: relative;
  overflow: hidden;
  max-height: 380px; /* ברירת מחדל דסקטופ, מחושבת דינמית ע"י הסקריפט להתאמה מדויקת */
  transition: max-height 0.3s ease;
}
.cemetery-about-content p {
  line-height: 1.85;
  font-size: 16.5px;
  color: #33333f;
  margin-bottom: 16px;
  text-align: justify;
}
.cemetery-about-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 85px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 90%);
  pointer-events: none;
}
.cemetery-about-content.is-expanded {
  max-height: none !important;
}
.cemetery-about-content.is-expanded .cemetery-about-fade {
  display: none !important;
}
.cemetery-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center !important;
  margin: 14px auto 0 !important;
  background: #ececf0;
  color: #0b0a2b;
  border: 1px solid #d9d9e0;
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 2;
  border-radius: 0;
  transition: all 0.15s ease;
}
.cemetery-more-btn:hover {
  background: #e0e0e5;
  color: #0b0a2b;
  border-color: #0b0a2b;
}

/* קוביית שעות פתיחה ומידע */
.cemetery-side {
  border: 1px solid #d9d9e0;
  background: #ffffff;
}
.cemetery-side h3 {
  background: #0b0a2b;
  color: #ffffff;
  font-weight: 600;
  padding: 16px 20px;
  font-size: 19px;
  margin: 0;
}
.cemetery-side-row {
  padding: 14px 20px;
  border-bottom: 1px solid #d9d9e0;
  font-size: 15px;
  line-height: 1.6;
  color: #33333f;
}
.cemetery-side-row:last-child {
  border-bottom: 0;
}
.cemetery-side-row small {
  display: block;
  color: #6b6b7a;
  font-size: 13.5px;
  margin-top: 8px;
  line-height: 1.5;
}
.cemetery-hours-table {
  width: 100%;
  border-collapse: collapse;
}
.cemetery-hours-table td {
  padding: 7px 0;
  font-size: 15px;
  border-bottom: 1px dashed #d9d9e0;
}
.cemetery-hours-table tr:last-child td {
  border-bottom: none;
}
.cemetery-hours-table td:last-child {
  text-align: left;
  color: #0b0a2b;
  font-weight: 600;
  direction: ltr;
}
.cemetery-btn-outline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: auto !important;
  max-width: 380px !important;
  background: #ffffff !important;
  border: 1.5px solid #090925 !important;
  text-align: center !important;
  padding: 12px 24px !important;
  margin: 18px 0 !important;
  color: #090925 !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}
.cemetery-btn-outline:hover {
  background: #fbfbfd !important;
  border-color: #f26522 !important;
  color: #090925 !important;
  box-shadow: 0 2px 8px rgba(9, 9, 37, 0.08) !important;
}
.cemetery-btn-outline img {
  height: 26px !important;
  width: auto !important;
  vertical-align: middle !important;
  filter: none !important;
  margin-top: 1px !important;
}
.cemetery-btn-outline span {
  color: #090925 !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

/* התאמה למובייל (Mobile responsiveness < 900px) */
@media (max-width: 900px) {
  .cemetery-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cemetery-strip {
    grid-template-columns: 1fr 1fr;
  }
  .cemetery-strip > div {
    border-bottom: 1px solid #d9d9e0;
    padding: 18px 12px;
  }
  .cemetery-strip > div:nth-child(even) {
    border-left: none;
  }
  .cemetery-strip > div:nth-child(3),
  .cemetery-strip > div:nth-child(4) {
    border-bottom: none;
  }
  .cemetery-strip .v {
    font-size: 18px;
  }
  .cemetery-strip .open .v {
    font-size: 26px;
  }
  .cemetery-map-wrap {
    height: 260px;
  }
  .cemetriescontainer #nav-tab.nav-tabs {
    gap: 8px !important;
  }
  .cemetriescontainer #nav-tab .nav-item.nav-link {
    flex: 1 1 42% !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    min-width: auto !important;
  }
  .cemetery-cta {
    font-size: 17px;
    padding: 16px 14px;
    margin-bottom: 24px;
  }
  .cemetery-about-content {
    max-height: 220px;
  }
}

/* ניווט עליון מחודש: תפריט המבורגר ולוגו בצד ימין, חיפוש במרכז, זמני היום ומוקד בצד שמאל */
.header-brand-section {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  order: 1 !important;
  padding: 0 10px 0 16px !important;
}
.header-brand-section .navbar-toggler.toggler-example {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 0 !important;
  padding: 8px 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-left: 12px !important;
}
.header-brand-section .navbar-toggler.toggler-example:hover,
.header-brand-section .navbar-toggler.toggler-example:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
.header-brand-section .header-logo {
  position: static !important;
  transform: none !important;
  width: 96px !important;
  display: inline-block !important;
}
.header-brand-section .header-logo a img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}
.header-first-row-col.search-row {
  order: 2 !important;
  padding: 0 12px !important;
}
.header-top-left-section {
  order: 3 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 16px 0 10px !important;
}
.top-zmanim-trigger {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}
.top-zmanim-trigger:hover,
.top-zmanim-trigger:focus {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
.top-hotline-link {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 7px 12px !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  direction: ltr !important;
  transition: all 0.15s ease !important;
}
.top-hotline-link:hover,
.top-hotline-link:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* מובייל: ניווט עליון בשורה אחת יציבה ללא שבירה לשתי שורות */
@media (max-width: 900px) {
  header.header {
    padding-top: 0 !important;
  }
  .header-row-top {
    padding: 8px 10px !important;
  }
  .header-row-top .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
  }
  .header-brand-section {
    padding: 0 !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    order: 1 !important;
  }
  .header-brand-section .navbar-toggler.toggler-example {
    padding: 4px 6px !important;
    margin-left: 6px !important;
    display: flex !important;
    align-items: center !important;
  }
  .header-brand-section .header-logo {
    width: 68px !important;
    display: flex !important;
    align-items: center !important;
  }
  .header-brand-section .header-logo a {
    display: flex !important;
    align-items: center !important;
  }
  .header-brand-section .header-logo img,
  .header-brand-section .header-logo image {
    vertical-align: middle !important;
    display: block !important;
  }
  .header-first-row-col.search-row {
    display: none !important;
  }
  .header-top-left-section {
    padding: 0 !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    order: 2 !important;
  }
  .header-top-zmanim,
  .header-top-hotline {
    display: flex !important;
    align-items: center !important;
  }
  .top-zmanim-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 8px !important;
    line-height: 1 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }
  .top-zmanim-trigger:hover {
    color: #8edbff !important;
    text-decoration: underline !important;
  }
  .top-hotline-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
  }
  .top-hotline-link:hover {
    background: rgba(9, 162, 231, 0.4) !important;
    border-color: #09a2e7 !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }
  .top-hotline-link .header-action-icon {
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   Centered & Rich Institutional Footer
   ========================================================================== */
.footer-container {
  background: radial-gradient(120% 90% at 50% 0%, #151b3a 0%, #090925 60%, #050517 100%) !important;
  color: #fff !important;
  padding: 50px 20px 28px !important;
  text-align: center !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.footer-container .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.footer-right-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 auto 36px !important;
  padding-bottom: 28px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-right-row .footer-logo {
  height: auto !important;
  max-height: 72px !important;
  width: auto !important;
  margin: 0 auto 16px !important;
  filter: brightness(0) invert(1);
}

.footer-right-row .footer-item {
  color: #c5c8d4 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 6px !important;
  text-align: center !important;
}

.footer-right-row .footer-address {
  max-width: none !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  font-size: 16px !important;
}

.footer-right-row .footer-phone a,
.footer-right-row .footer-email a {
  color: #4db3ff !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.footer-right-row .footer-phone a:hover,
.footer-right-row .footer-email a:hover {
  color: #8edbff !important;
  text-decoration: underline !important;
}

.footer-menu {
  width: 100% !important;
  max-width: 1300px !important;
  margin: 0 auto 30px !important;
  padding: 0 !important;
}

.footer-menu-container {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 24px 20px !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.footer-menu-item {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

.footer-coltitle {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  position: relative !important;
  display: inline-block !important;
  border-bottom: 2px solid #09a2e7 !important;
}

.footer-menu-item p {
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
}

.footer-menu-item p a,
.footer-menu-item .navdrop-link {
  color: #c5c8d4 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

.footer-menu-item p a:hover,
.footer-menu-item .navdrop-link:hover {
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  text-decoration: none !important;
}

.footer-last-row {
  margin-top: 30px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: center !important;
}

.footer-last-row a {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.footer-last-row a:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* טאבלט / iPad: שובר ל-2 או 3 עמודות כדי שלא יימחץ */
@media (max-width: 1024px) {
  .footer-menu-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px 16px !important;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 36px 16px 24px !important;
  }
  .footer-menu-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 14px !important;
  }
  .footer-coltitle {
    font-size: 14.5px !important;
    margin-bottom: 12px !important;
  }
  .footer-menu-item p {
    margin-bottom: 8px !important;
  }
  .footer-menu-item p a,
  .footer-menu-item .navdrop-link {
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .footer-menu-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 10px !important;
  }
}

/* ==========================================================================
   Call Center (Hospital Centers) Cards - iPhone 17 Pro (402px) Optimization
   ========================================================================== */
@media (max-width: 576px) {
  .servicecontainercallcenter .container.callcenter {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 420px !important;
    margin: 0 auto !important;
  }
  .servicecontainercallcenter .callcentertextcol {
    padding: 24px 14px 40px !important;
    border-radius: 6px !important;
  }
  .servicecontainer .callcentercontactcol {
    padding: 0 !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .servicecontainer .callcentercontactcol .callcentercontactcolwrapper {
    width: 100% !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(9, 9, 37, 0.08) !important;
    padding: 18px 16px !important;
    box-sizing: border-box !important;
  }
  .servicecontainer .callcentercontactcol .contactborderedrow {
    padding-bottom: 20px !important;
  }
  .servicecontainer .callcentercontactcol .contactborderedrow ul li {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
}

/* ==========================================================================
   Funerals Mobile Filter Labels & Visibility
   ========================================================================== */
@media (max-width: 960px) {
  .funreal-dates-filter {
    gap: 12px !important;
    padding: 16px 14px !important;
  }
  .funreal-dates-filter--item {
    position: relative !important;
    border-bottom: 1px solid #e2e5eb !important;
    padding: 10px 4px !important;
  }
  .funreal-dates-filter--item select {
    font-size: 15px !important;
    padding: 8px 10px !important;
    background-color: #f8fafc !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    width: 100% !important;
    color: #090925 !important;
  }
}

/* ==========================================================================
   Call Center Service Buttons - Equal, Straight, Balanced Design
   ========================================================================== */
.callcenter-footer-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 20px !important;
  padding: 0 !important;
}

.callcenter-footer-buttons .col-md {
  flex: 1 1 0 !important;
  padding: 0 !important;
  min-width: 180px !important;
}

.callcenter-footer-buttons .aboutlabel {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  height: 64px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  border-radius: 4px !important;
  border: 1.5px solid #09a2e7 !important;
  background-color: #ffffff !important;
  color: #090925 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(9, 162, 231, 0.08) !important;
  transition: all 0.2s ease !important;
}

.callcenter-footer-buttons .col-md:first-child .aboutlabel {
  background-color: #09a2e7 !important;
  color: #ffffff !important;
}

.callcenter-footer-buttons .aboutlabel:hover {
  background-color: #09a2e7 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(9, 162, 231, 0.25) !important;
}

@media (max-width: 576px) {
  .callcenter-footer-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .callcenter-footer-buttons .col-md {
    width: 100% !important;
    min-width: 100% !important;
  }
  .callcenter-footer-buttons .aboutlabel {
    height: 52px !important;
    font-size: 14px !important;
  }
}

/* ==========================================================================
   Tombstone Redactor - Desktop Only Notice on Mobile
   ========================================================================== */
.tombstone-mobile-notice {
  display: none;
  background: #ffffff;
  border: 1px solid rgba(9, 162, 231, 0.2);
  border-radius: 8px;
  padding: 40px 24px;
  margin: 40px auto;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(9, 9, 37, 0.08);
}

.tombstone-mobile-notice__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(9, 162, 231, 0.1);
  color: #09a2e7;
}

.tombstone-mobile-notice__title {
  color: #090925;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tombstone-mobile-notice__text {
  color: #55586d;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.tombstone-mobile-notice__btn {
  display: inline-block;
  padding: 10px 24px;
  background: #09a2e7;
  color: #ffffff !important;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.tombstone-mobile-notice__btn:hover {
  background: #088ecb;
}

@media (max-width: 991px) {
  body.page-tombstone-redactor #root {
    display: none !important;
  }
  body.page-tombstone-redactor .tombstone-mobile-notice {
    display: block !important;
  }
}

/* ==========================================================================
   Verses & Poems Page - Mobile Centering & Balanced Form Layout
   ========================================================================== */
@media (max-width: 991px) {
  .membercontainer .container > .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .membercontainer .aboutlabelcol {
    position: static !important;
    order: -1 !important;
    text-align: center !important;
    margin: 22px auto 14px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    font-size: 28px !important;
    line-height: 1.3 !important;
    color: #090925 !important;
    top: auto !important;
    right: auto !important;
  }
  .poems .abouttextcol-header,
  .verses-content .abouttextcol-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 6px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    text-align: center !important;
  }
  .poems .abouttextcol-header .block-header-icons,
  .verses-content .abouttextcol-header .block-header-icons,
  .block-header-icons {
    position: static !important;
    margin: 0 auto !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    gap: 20px !important;
  }
  .block-header-icons .block-header-icons-item {
    margin: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
@media (max-width: 768px) {
  .membercontainer .versescontainer {
    padding: 0 12px !important;
  }
  .verses-content {
    padding: 20px 14px 40px !important;
    text-align: center !important;
  }
  .versessearchfirstrow {
    padding: 20px 0 !important;
    text-align: center !important;
  }
  .versessearchfirstrow .searchversesinput {
    width: 100% !important;
    text-align: center !important;
    border-radius: 4px !important;
    margin-bottom: 12px !important;
  }
  .verses-select-wrap {
    margin: 0 auto 14px !important;
    width: 100% !important;
    max-width: 240px !important;
  }
  .versessearchsecondrow {
    padding: 20px 0 !important;
    text-align: center !important;
  }
  .versessearchsecondrow .nav-tabs {
    justify-content: center !important;
  }
  .versessearchsecondrowcol {
    justify-content: center !important;
    margin-top: 10px !important;
  }
  .versessearchresultrow {
    padding: 12px 10px !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   Prayers Page - Hero Section Centering
   ========================================================================== */
.prayers-hero {
  text-align: center !important;
}

.prayers-hero .prayers-eyebrow {
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.prayers-hero .prayers-title {
  text-align: center !important;
}

.prayers-hero .prayers-lead {
  text-align: center !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.prayers-summary {
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.prayers-grid {
  justify-content: center !important;
}

/* ==========================================================================
   Deceased Search Table & Result Cards - Mobile Clean Stacking & Legibility
   ========================================================================== */
@media (max-width: 768px) {
  /* סרגל פעולות חיפוש וכפתורי בחירה במובייל */
  .searchviewtyperow {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .SearchViewTypeBlackCol {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }
  .SearchViewTypeBlackCol::-webkit-scrollbar {
    display: none !important;
  }
  .SearchViewHeaderListItem {
    padding-left: 0 !important;
    flex: 0 0 auto !important;
  }
  .SearchViewHeaderListTitle {
    font-size: 13px !important;
    padding-right: 6px !important;
  }
  .searchviewtypewhitecol {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }
  .search-tab-buttons {
    width: 100% !important;
    display: flex !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  }
  .search-tab-button {
    flex: 1 1 0 !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
  }

  /* כותרת תוצאות החיפוש וכפתור חיפוש מתקדם במובייל */
  .SearchHeaderPanel {
    margin: 16px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .SearchHeaderPanelDispose {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .SearchHeaderPanelDispose > div.d-flex {
    justify-content: center !important;
  }
  .SearchHeaderPanelDisposeTitle {
    font-size: 26px !important;
    line-height: 32px !important;
    margin-right: 10px !important;
  }
  .SearchHeaderPanelDisposeTitle2 {
    font-size: 16px !important;
    line-height: 22px !important;
    margin-top: 6px !important;
    text-align: center !important;
  }
  .showadvancedstr {
    display: inline-block !important;
    padding: 10px 22px !important;
    background: #09a2e7 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 auto !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(9, 162, 231, 0.25) !important;
  }

  .searchtabledatarow {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: transparent !important;
  }
  .searchtabledataItem {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 1px solid #e1e4ea !important;
    border-radius: 6px !important;
    background: #ffffff !important;
  }
  .searchtabledataItem .react-dropdown-select {
    padding: 10px 14px !important;
    border-right: none !important;
  }

  /* כרטיס תוצאת נפטר במובייל - מסודר, מוגדר וקריא ללא זליגות */
  .searchtabledata {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(9, 9, 37, 0.05) !important;
    margin: 0 0 16px 0 !important;
    padding: 14px 16px !important;
    position: relative !important;
    min-height: auto !important;
    overflow: hidden !important;
  }
  .searchtabledata .searchTableCheck {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    transform: none !important;
    z-index: 2 !important;
  }
  .searchtabledata .searchphotonamecol {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid #f1f3f7 !important;
    margin-bottom: 8px !important;
  }
  .searchtabledata .searchmarginzero {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    width: 100% !important;
    position: relative !important;
  }
  .searchtabledata .searchphotocontainer {
    position: static !important;
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    margin-left: 12px !important;
  }
  .searchtabledata .searchphotocontainer .searchphoto {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }
  .searchtabledata .searchpaddingfullname {
    position: static !important;
    width: auto !important;
    flex: 1 1 auto !important;
    padding: 0 !important;
    right: auto !important;
  }
  .searchtabledata .searchpaddingfullname p,
  .searchtabledata .familynamelink p {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #090925 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
  }
  .searchtabledata .familynamelink {
    display: inline-block !important;
  }
  .searchtabledata .searchTableBodyDataItem {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 3px 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #4a5568 !important;
  }
  .searchtabledata .searchTableBodyDataItemWrapper {
    width: 100% !important;
  }
  .searchtabledata .searchTableBodyDataItemWrapper p {
    margin: 0 !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
  }
  .searchtabledata .searchTableBodyDataItem--Look {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #e2e8f0 !important;
  }
  .searchtabledata .searchTableBodyDataItem--Look-Wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .searchtabledata .searchTableBodyDataItem--Look-Text {
    flex: 1 1 auto !important;
    max-width: 75% !important;
    padding: 0 !important;
    font-weight: 500 !important;
    color: #2b6cb0 !important;
  }
  .searchtabledata .searchTableBodyDataItem--Look-Icons {
    flex: 0 0 auto !important;
    max-width: 25% !important;
    padding: 0 !important;
  }
  .searchtabledata .searchTableBodyDataItem--Map svg {
    cursor: pointer !important;
  }

  /* תצוגת כרטיסיות / לוחות (PeoplePlates) במובייל */
  .searchdatarowplates {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 10px !important;
    gap: 16px !important;
  }
  .searchplate {
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(9, 9, 37, 0.06) !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }
  .searchplateimage {
    height: 180px !important;
    width: 100% !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .searchplateimage img {
    max-height: 140px !important;
    max-width: 140px !important;
    object-fit: contain !important;
  }
  .searchplatetextwrap {
    padding: 16px !important;
    height: auto !important;
  }
  .searchplatetext {
    margin-bottom: 6px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  .searchplatetext:first-child {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #090925 !important;
    margin-bottom: 8px !important;
  }
  .searchplatefooter {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px dashed #e2e8f0 !important;
  }
  .searchplatefooterCemeteryName {
    font-weight: 600 !important;
    color: #2b6cb0 !important;
    font-size: 14px !important;
  }
  .searchplatefooterCemeteryLocation {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    color: #09a2e7 !important;
  }
  .searchplatefooterCemeteryLocation p {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
}

/* ==========================================================================
   Search Enhancements: Free-text inputs, Cemetery Map Modal & Mobile Polish
   ========================================================================== */

/* Free-text filter inputs in search bar */
.kadisha-text-filter-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: right;
  direction: rtl;
}

.kadisha-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #718096;
  margin-bottom: 4px;
}

.kadisha-input-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.kadisha-filter-input {
  width: 100% !important;
  height: 38px !important;
  padding: 6px 10px !important;
  border: 1px solid #cbd5e0 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  color: #2d3748 !important;
  background-color: #ffffff !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  text-align: right !important;
  direction: rtl !important;
  box-sizing: border-box !important;
}

.kadisha-filter-input:focus {
  border-color: #09a2e7 !important;
  box-shadow: 0 0 0 3px rgba(9, 162, 231, 0.2) !important;
}

.kadisha-filter-clear {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #a0aec0;
  cursor: pointer;
  padding: 0 4px;
}

.kadisha-filter-clear:hover {
  color: #4a5568;
}

/* Map Modal Styles */
.kadisha-map-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 9, 37, 0.75);
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.kadisha-map-modal-container {
  background: #ffffff;
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  direction: rtl;
  text-align: right;
  animation: kadishaModalFadeIn 0.2s ease-out;
}

@keyframes kadishaModalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.kadisha-map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f7fafc;
}

.kadisha-map-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #090925;
}

.kadisha-map-modal-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #718096;
  cursor: pointer;
  padding: 0 6px;
}

.kadisha-map-modal-close:hover {
  color: #1a202c;
}

.kadisha-map-modal-body {
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
}

.kadisha-map-iframe-wrap {
  width: 100%;
  height: 360px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e0;
  background: #edf2f7;
}

.kadisha-map-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.kadisha-map-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f7fafc;
  justify-content: flex-start;
  align-items: center;
}

.kadisha-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.kadisha-map-btn-waze {
  background-color: #33ccff;
  color: #090925 !important;
}

.kadisha-map-btn-waze:hover {
  background-color: #1ab2e6;
  transform: translateY(-1px);
}

.kadisha-map-btn-gmaps {
  background-color: #34a853;
  color: #ffffff !important;
}

.kadisha-map-btn-gmaps:hover {
  background-color: #2b8a44;
  transform: translateY(-1px);
}

.kadisha-map-btn-close {
  background-color: #edf2f7;
  color: #4a5568 !important;
  margin-right: auto;
}

.kadisha-map-btn-close:hover {
  background-color: #e2e8f0;
}

/* Mobile search polish & overflow protection */
@media (max-width: 768px) {
  .searchresultcontainer {
    overflow-x: hidden !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .searchtabledatarow {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 0 16px 0 !important;
    padding: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
  }

  .searchtabledataItem {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
  }

  .searchtabledata {
    margin: 0 0 12px 0 !important;
    padding: 14px 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(9, 9, 37, 0.04) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .searchTableBodyDataItem--Map svg,
  .searchTableBodyDataItem--Map {
    cursor: pointer !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
}

/* Ensure all prayer containers and elements align to right across desktop and mobile */
.prayers-page,
.prayers-shell,
.prayers-details,
.prayer-detail,
.prayer-detail-header,
.prayer-detail-body {
  direction: rtl;
  text-align: right;
}

.prayer-detail-header > div,
.prayer-detail h2,
.prayer-detail p {
  direction: rtl;
  text-align: right;
}

/* Hide unbaked map view button in search results */
.search-tab-button--map,
.buttonmapview {
  display: none !important;
}

/* ==========================================================================
   Modern Calendar Styling (across all search & results pages)
   ========================================================================== */
.react-calendar {
  direction: rtl;
  width: min(430px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 32px) !important;
  padding: 16px !important;
  border: 1px solid rgba(9, 162, 231, 0.28) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 20px 60px rgba(9, 9, 37, 0.16) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  color: #18263a !important;
  font-family: inherit !important;
  line-height: 1.25 !important;
  position: absolute !important;
  z-index: 1050 !important;
}

.react-calendar button {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  outline: none !important;
  color: inherit !important;
  font-family: inherit !important;
  transition: all 180ms ease !important;
}

.react-calendar button:enabled:hover {
  cursor: pointer !important;
}

.react-calendar__navigation {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: auto !important;
  margin-bottom: 14px !important;
}

.react-calendar__navigation button {
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(9, 162, 231, 0.16) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  color: #18263a !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.react-calendar__navigation button:enabled:hover,
.react-calendar__navigation button:enabled:focus {
  border-color: rgba(9, 162, 231, 0.36) !important;
  background: rgba(9, 162, 231, 0.12) !important;
  transform: translateY(-1px) !important;
}

.react-calendar__navigation__label {
  flex: 1 1 auto !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.react-calendar__month-view__weekdays {
  margin-bottom: 8px !important;
  color: #617085 !important;
  text-align: center !important;
  text-transform: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.react-calendar__month-view__weekdays__weekday {
  padding: 0 4px 6px !important;
}

.react-calendar__month-view__weekdays abbr {
  text-decoration: none !important;
}

.react-calendar__tile {
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 3px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #18263a !important;
  text-align: center !important;
}

.react-calendar__tile abbr {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  color: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
}

.react-calendar__tile p {
  margin: 0 !important;
  color: inherit !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  opacity: 0.82 !important;
}

.react-calendar__tile:enabled:hover,
.react-calendar__tile:enabled:focus {
  border-color: rgba(9, 162, 231, 0.24) !important;
  background: rgba(9, 162, 231, 0.11) !important;
  transform: translateY(-1px) !important;
}

.react-calendar__month-view__days__day--weekend {
  color: #b42318 !important;
}

.react-calendar__month-view__days__day--neighboringMonth {
  color: #95a1b2 !important;
  opacity: 0.72 !important;
}

.react-calendar__tile--now {
  border: 1px solid rgba(9, 162, 231, 0.36) !important;
  background: rgba(233, 246, 252, 0.96) !important;
  color: #06364b !important;
}

.react-calendar__tile--active,
.react-calendar__tile--hasActive {
  border: 1px solid rgba(9, 162, 231, 0.55) !important;
  background: linear-gradient(135deg, #09A2E7, #087bb4) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(9, 162, 231, 0.28) !important;
}

/* ==========================================================================
   Clean Cemetery & Filter Dropdown (hide awkward input & sorting arrows)
   ========================================================================= */
.searchtabledataItem--last .filtersearchinput,
.searchtabledataItem--last p:has(.sortingarrowstext),
.searchtabledataItem--last .sortingarrowstext {
  display: none !important;
}

.searchtabledataItem--last .react-dropdown-select-dropdown {
  min-width: 200px !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 36px rgba(9, 9, 37, 0.15) !important;
  border: 1px solid rgba(9, 162, 231, 0.25) !important;
  padding: 8px !important;
}

.searchtabledataItem--last .selectallspan {
  font-weight: 600 !important;
  color: #09a2e7 !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
}

/* ==========================================================================
   Fix weird dark blue background on focus/click in search filter inputs
   ========================================================================== */
.searchtabledataItem:focus-within,
.searchtabledataItem:active {
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.searchtabledataItem:focus-within .datePickerText--Wrapper p,
.searchtabledataItem:focus-within .datePickerText--Wrapper svg,
.searchtabledataItem:active .datePickerText--Wrapper p,
.searchtabledataItem:active .datePickerText--Wrapper svg {
  color: inherit !important;
}

.searchtabledataItem:focus-within .react-dropdown-select-type-multi div,
.searchtabledataItem:active .react-dropdown-select-type-multi div {
  color: inherit !important;
}

/* ==========================================================================
   QA Cards (שו"ת) - ביטול התנפחות והגדלת הקובייה, מעבר עכבר עדין למסגרת בלבד
   ========================================================================== */
.qacard:hover {
  z-index: 1 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.qacard:hover .border,
.qacard .border {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  transition: border-color 0.25s ease !important;
}

.qacard .qacardwrapper {
  box-shadow: none !important;
  border: 1px solid #dce4eb !important;
  border-radius: 4px !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.qacard .qacardwrapper:hover {
  border-color: #09a2e7 !important;
  box-shadow: 0 2px 8px rgba(9, 162, 231, 0.15) !important;
}
