/* =========================================================
   Funerals & Samar — Page Styles
   ========================================================= */

.funerals-page {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #1F2430;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.funerals-page a {
  color: #A8844A;
}

.funerals-page a:hover,
.funerals-page a:focus {
  color: #8a6c3c;
  text-decoration: none;
}

/* ================= HERO BANNER ================= */
.funerals-page .hero-banner {
  background-color: #F4F1ED;
  padding: 40px 0 32px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.funerals-page .hero-title {
  font-size: 34px;
  font-weight: 700;
  color: #1F2430;
  margin: 0 0 6px;
}

.funerals-page .hero-subtitle {
  font-size: 15px;
  color: #6B7280;
  margin: 0;
}

/* ================= PAGE CONTENT ================= */
.funerals-page .page-content {
  padding-top: 24px;
  padding-bottom: 40px;
}

/* ================= TABS ================= */
.funerals-page .custom-tabs {
  border-bottom: 1px solid #E5E5E5;
  margin-bottom: 20px;
}

.funerals-page .custom-tabs > li {
  margin-bottom: -1px;
}

.funerals-page .custom-tabs > li > a {
  border: none;
  background: transparent;
  color: #9AA0AB;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 4px;
  margin-right: 30px;
  border-radius: 0;
}

.funerals-page .custom-tabs > li > a:hover,
.funerals-page .custom-tabs > li > a:focus {
  background: transparent;
  border: none;
  color: #1F2430;
}

.funerals-page .custom-tabs > li.active > a,
.funerals-page .custom-tabs > li.active > a:hover,
.funerals-page .custom-tabs > li.active > a:focus {
  color: #1F2430;
  background: transparent;
  border: none;
  border-bottom: 3px solid #A8844A;
}

/* ================= FILTER BAR ================= */
.funerals-page .filter-bar {
  margin-bottom: 16px;
}

.funerals-page .filter-bar .row > div {
  margin-bottom: 10px;
}

.funerals-page .filter-search .input-group-addon {
  background-color: #FFFFFF;
  border: 1px solid #D5D5D5;
  border-right: none;
  color: #9AA0AB;
}

.funerals-page .filter-search .form-control {
  border: 1px solid #D5D5D5;
  border-left: none;
  box-shadow: none;
  height: 42px;
}

.funerals-page .filter-search .form-control:focus {
  border-color: #A8844A;
  box-shadow: none;
}

.funerals-page .filter-location {
  width: 100%;
}

.funerals-page .location-btn {
  width: 100%;
  text-align: left;
  border: 1px solid #D5D5D5;
  background-color: #FFFFFF;
  color: #1F2430;
  height: 42px;
  padding: 8px 12px;
}

.funerals-page .location-btn i.fa-map-marker {
  color: #A8844A;
  margin-right: 6px;
}

.funerals-page .filter-location .dropdown-menu {
  width: 100%;
}

.funerals-page .show-entries {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 42px;
  font-size: 14px;
  color: #1F2430;
}

.funerals-page .show-entries select {
  width: 70px;
  margin: 0 8px;
  height: 38px;
  display: inline-block;
  border: 1px solid #D5D5D5;
}

@media (min-width: 768px) {
  .funerals-page .show-entries {
    justify-content: flex-end;
  }
}

.funerals-page .results-count {
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 16px;
  margin-left: 13px;
}

.funerals-page .results-count strong {
  color: #1F2430;
}

/* ================= CARDS ================= */
.funerals-page .card-grid {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.funerals-page .card-grid > .funeral-card-item {
  float: none;
  display: flex;
  margin-bottom: 24px;
}

.funerals-page .announcement-card {
  background-color: #FFFFFF;
  border: 1px solid #D5D5D5;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.funerals-page .announcement-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.funerals-page .card-photo-wrap {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #EEEDEA;
}

.funerals-page .card-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.funerals-page .card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9AA0AB;
  font-size: 48px;
}

.funerals-page .card-body-custom {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.funerals-page .card-name {
  font-size: 17px;
  font-weight: 700;
  color: #1F2430;
  margin: 0 0 4px;
  line-height: 1.35;
  min-height: 2.7em;
  max-height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.funerals-page .card-age {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 10px;
  flex-shrink: 0;
}

.funerals-page .card-meta {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.funerals-page .card-meta i {
  color: #A8844A;
  width: 16px;
  text-align: center;
  margin-right: 4px;
}

.funerals-page .card-cta {
  margin-top: auto;
  padding-top: 14px;
  flex-shrink: 0;
}

.funerals-page .card-cta form {
  margin: 0;
}

.funerals-page .btn-view-details {
  display: block;
  width: 100%;
  background-color: transparent;
  border: 1px solid #A8844A;
  color: #A8844A;
  font-weight: 600;
  border-radius: 30px;
  padding: 9px 12px;
  transition: all 0.2s ease;
}

.funerals-page .btn-view-details:hover,
.funerals-page .btn-view-details:focus {
  background-color: #A8844A;
  color: #FFFFFF;
  border-color: #A8844A;
}

/* ================= PAGINATION ================= */
.funerals-page .pagination-row {
  align-items: center;
  margin-top: 8px;
}

.funerals-page .page-info {
  color: #6B7280;
  font-size: 14px;
  padding-top: 10px;
}

.funerals-page .page-info strong {
  color: #1F2430;
}

.funerals-page .custom-pagination > li > a {
  color: #1F2430;
  border: 1px solid #D5D5D5;
  margin-left: 4px;
  border-radius: 6px !important;
  cursor: pointer;
}

.funerals-page .custom-pagination > li.active > a,
.funerals-page .custom-pagination > li.active > a:hover,
.funerals-page .custom-pagination > li.active > a:focus {
  background-color: #A8844A;
  border-color: #A8844A;
  color: #FFFFFF;
}

.funerals-page .custom-pagination > li.disabled > a {
  color: #C0C4CC;
  cursor: default;
}

.funerals-page .custom-pagination > li.ellipsis > span {
  display: inline-block;
  padding: 6px 10px;
  color: #9AA0AB;
  border: none;
  background: transparent;
}

.funerals-page .custom-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
}

/* ================= SAMAR TAB (empty state) ================= */
.funerals-page .samar-empty {
  padding: 60px 0;
  text-align: center;
  font-size: 15px;
}

/* ================= DETAIL VIEW ================= */
.funerals-page .funeral-detail-panel {
  background-color: #FFFFFF;
  border: 1px solid #D5D5D5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.funerals-page .funeral-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #1F2430;
  margin: 0 0 20px;
  text-align: center;
}

.funerals-page .detail-photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .funerals-page .detail-photo {
    margin-bottom: 0;
    min-height: 320px;
    height: 100%;
  }
}

.funerals-page .prayer-box {
  background-color: #FBF6EC;
  border: 1px solid #E6D5B5;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: center;
}

.funerals-page .prayer-arabic-line {
  font-style: italic;
  color: #A8844A;
  font-size: 15px;
  margin: 0 0 4px;
}

.funerals-page .prayer-translation {
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #A8844A;
  font-weight: 700;
  margin: 0;
}

.funerals-page .detail-name {
  font-size: 22px;
  font-weight: 700;
  color: #1F2430;
  margin: 0 0 16px;
  text-align: center;
}

.funerals-page .detail-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #1F2430;
  margin-bottom: 10px;
}

.funerals-page .detail-content-portugal {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #E5E5E5;
}

.funerals-page .samar-detail-panel {
  background-color: #FFFFFF;
  border: 1px solid #D5D5D5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.funerals-page .samar-detail-panel p {
  font-size: 14px;
  line-height: 1.6;
  color: #1F2430;
  margin-bottom: 10px;
}

.funerals-page .btn-return {
  background-color: #A8844A;
  border: 1px solid #A8844A;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 30px;
  padding: 9px 24px;
  transition: all 0.2s ease;
}

.funerals-page .btn-return:hover,
.funerals-page .btn-return:focus {
  background-color: #8a6c3c;
  border-color: #8a6c3c;
  color: #FFFFFF;
}

.funerals-page .card-grid > .funeral-card-item.card-item-hidden {
  display: none !important;
}

/* ================= MODAL ================= */
.funerals-page .modal-details {
  width: 90%;
  max-width: 900px;
}

.funerals-page .modal-details .modal-content {
  border-radius: 10px;
  border: none;
  overflow: hidden;
}

.funerals-page .modal-details .modal-header {
  border-bottom: 1px solid #EFEFEF;
  padding: 18px 20px;
}

.funerals-page .modal-details .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1F2430;
}

.funerals-page .modal-details .close {
  opacity: 1;
  color: #9AA0AB;
  font-size: 22px;
}

.funerals-page .modal-details .modal-body {
  padding: 20px;
}

.funerals-page .modal-img-col {
  margin-bottom: 16px;
}

.funerals-page .modal-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.funerals-page .modal-photo-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  background-color: #EEEDEA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9AA0AB;
  font-size: 64px;
}

@media (min-width: 768px) {
  .funerals-page .modal-photo,
  .funerals-page .modal-photo-placeholder {
    height: 100%;
    min-height: 320px;
  }

  .funerals-page .modal-img-col {
    margin-bottom: 0;
  }
}

.funerals-page .modal-name {
  font-size: 22px;
  font-weight: 700;
  color: #1F2430;
  margin: 0 0 16px;
}

.funerals-page .detail-row {
  display: flex;
  margin-bottom: 10px;
  font-size: 14px;
}

.funerals-page .detail-label {
  color: #6B7280;
  min-width: 130px;
  flex-shrink: 0;
}

.funerals-page .detail-value {
  color: #1F2430;
  font-weight: 600;
}

.funerals-page .detail-about {
  flex-direction: column;
}

.funerals-page .detail-about .detail-label {
  margin-bottom: 4px;
}

.funerals-page .about-text {
  font-weight: 400;
  line-height: 1.6;
  color: #1F2430;
  margin: 0;
}

.funerals-page .modal-loading {
  padding: 40px 0;
  color: #6B7280;
  font-size: 16px;
}

.funerals-page .modal-samar-content {
  font-size: 14px;
  line-height: 1.6;
}
