/* =============================================================
   GLOBAL WRAPPERS
   ============================================================= */
.matrimony-directory-wrapper,
.mmd-profile-wrapper {
  width: 100%;
  max-width: 1140px;
  margin: 1rem auto;
  color: #222;
}

@media (max-width: 768px) {
  .matrimony-directory-wrapper,
  .mmd-profile-wrapper {
    margin:2rem 0;
  }
}

/* Breadcrumb */
.mmd-breadcrumb {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.8;
}
.mmd-breadcrumb a {
  color: #0a8754;
  text-decoration: none;
}
.mmd-breadcrumb span {
  margin: 0 4px;
}

/* =============================================================
   DIRECTORY LAYOUT
   ============================================================= */
.mmd-directory-container {
  display: flex;
  gap: 30px;
}

/* Sidebar (desktop) */
.mmd-filters-sidebar {
  flex: 0 0 260px;
  position: sticky;
  top: 2rem;
  height: max-content;
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 22px rgba(0,0,0,0.08);
}

/* Filter form */
.matrimony-filters .filter-group {
  margin-bottom: 16px;
}
.matrimony-filters label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.matrimony-filters select,
.matrimony-filters input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #ccd;
  background: #fff;
  font-size: 14px;
}

/* Filter button */
.matrimony-filter-btn {
  width: 100% !important;
  background: #0a8754;
  color: #fff !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer;
  font-weight: 600 !important;
  font-size: 14px !important;
	display:block !important;
}
.matrimony-filter-btn:hover {
  background: #066e44;
}

/* Profiles area */
.mmd-profiles-area {
  flex: 1;
}

/* =============================================================
   GRID (MAX 3 CARDS PER ROW)
   ============================================================= */
.matrimony-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0px;
  animation: mmdFadeInCards 0.35s ease both;
}

@keyframes mmdFadeInCards {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tablet */
@media (max-width: 992px) {
  .mmd-directory-container {
    flex-direction: column;
  }
  .mmd-filters-sidebar {
    position: relative;
    top: 0;
  }
  .matrimony-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .matrimony-cards-grid {
    grid-template-columns: 1fr;
  }
}



/* Loader messages */
.no-results {
  margin-top: 20px;
  font-size: 15px;
}

/* =============================================================
   LOAD MORE BUTTON
   ============================================================= */
.mmd-load-more {
  display: none;
  margin: 24px auto 10px;
  padding: 12px 22px;
  font-size: 15px;
  background: #024230;
  color: #fff;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.mmd-load-more:hover {
  background: #012e21;
}

/* =============================================================
   SKELETON LOADERS
   ============================================================= */
.mmd-skeletons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-top: 10px;
  animation: mmdFadeSkeletons 0.25s ease-out;
}
.mmd-skeleton-card {
  height: 500px;
  border-radius: 1rem;
  background: linear-gradient(90deg, #ececec 25%, #f7f7f7 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: mmdShimmer 1.3s infinite linear;
}
@keyframes mmdShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@keyframes mmdFadeSkeletons {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 992px) {
  .mmd-skeletons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .mmd-skeletons {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   MOBILE FILTER DRAWER
   ============================================================= */
.mmd-mobile-filter-btn {
  display: none;
  background: #024230;
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mmd-mobile-filter-btn {
    display: inline-block;
  }

  .mmd-filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100dvh;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 4px 0 20px rgba(0,0,0,0.14);
    transition: left 0.35s ease;
	  border-radius:0;
  }

  .mmd-filters-sidebar.open {
    left: 0;
  }

  .mmd-filters-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
  }
  .mmd-filters-overlay.show {
    display: block;
  }
}

/* =============================================================
   PROFILE PAGE STYLES
   ============================================================= */
.mmd-profile-layout {
  display: flex;
  gap: 32px;
}
.mmd-profile-left {
  flex: 0 0 320px;
}
.mmd-profile-right {
  flex: 1;
}

/* Hero image */
.mmd-profile-photo-hero {
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.mmd-main-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* Thumbs */
.mmd-photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mmd-thumb {
  border: none;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.mmd-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}
.mmd-thumb.is-active {
  outline: 2px solid #0a8754;
}

/* Summary card */
.mmd-profile-summary-card {
  margin-top: 18px;
  border-radius: 18px;
  background: #fff;
  padding: 18px 16px;
  box-shadow: 0 4px 22px rgba(0,0,0,0.08);
}
.mmd-profile-summary-card h2 {
  margin-bottom: 8px;
}

/* Sections */
.mmd-profile-section {
  margin-bottom: 24px;
}
.mmd-profile-section h2,
.mmd-profile-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #024230;
}

/* Detail grid */
.mmd-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  font-size: 14px;
}
.mmd-details-grid span {
  display: block;
  font-size: 13px;
  opacity: 0.75;
}

/* Phone */
.mmd-view-phone-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background-color: #024230;
  color: #fff;
  text-decoration: none;
}
.mmd-phone-muted {
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive profile */
@media (max-width: 900px) {
  .mmd-profile-layout {
    flex-direction: column;
  }
  .mmd-profile-left {
    flex: 1;
  }
  .mmd-details-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   LIGHTBOX (Swiper)
   ============================================================= */
/* ===============================
   LIGHTBOX CONTAINER
================================ */

.mmd-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    display: none;
}

.mmd-lightbox-overlay.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   LIGHTBOX DIALOG
================================ */

.mmd-lightbox-dialog {
    width: min(92vw, 900px);
    height: min(92vh, 80vh);
    position: relative;
}

/* ===============================
   SWIPER CORE FIX
================================ */

.mmd-lightbox-swiper,
.mmd-lightbox-swiper .swiper-wrapper,
.mmd-lightbox-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

/* ===============================
   IMAGE CONTAINMENT (IMPORTANT)
================================ */

.mmd-lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prevent portrait/landscape breaking layout */
.mmd-lightbox-swiper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* Disable zoom overflow */
.swiper-zoom-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================
   PREMIUM SEARCH BAR (Material + Glassmorphism + iOS)
   ================================================ */

/* Wrapper */
.mmd-search-wrapper {
    width: 100%;
    margin-bottom: 22px;
}

/* Outer gradient frame */
.mmd-search-premium {
    position: relative;
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff4db3, #ff80d6, #ffa9d0);
}

/* Input (glass style + perfect right padding) */
.mmd-search-premium input {
    width: 100% !important;
    padding: 13px 43px 13px 8px !important;
    border: none !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 13px;
    color: #333;
    outline: none;
}

/* Icon button (always at right) */
.mmd-search-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
	padding:0 !important;
    transform: translateY(-50%);
	height: 35px;
    width: 35px;
    border-radius: 8px !important;
    border: none;
    background: linear-gradient(135deg, rgba(255, 47, 128, 0.6), rgba(255, 102, 179, 0.4)) !important;
    box-shadow: 0 3px 8px rgba(214, 51, 132, 0.35);
	display: flex;
    align-items: center;
    justify-content: center;
	cursor: pointer;
    color: #fff;
    font-size: 14px;
	transition: all 0.2s ease;
}

.mmd-search-icon-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .mmd-search-premium input {
        padding-right: 58px;
        font-size: 14px;
    }
}

/* ================================================
   Filters
   ================================================ */
.mmd-filter-status {
    background: #f6eefc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6a239f;
    margin-bottom: 10px;
    display: inline-block;
    animation: mmdFadeIn 0.3s ease;
}

@keyframes mmdFadeIn {
    from {opacity: 0; transform: translateY(-3px);}
    to   {opacity: 1; transform: translateY(0);}
}

.mmd-clear-btn {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #eee;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: none; /* initially hidden */
}

.mmd-clear-btn.show {
    display: block;
    animation: mmdFadeIn 0.25s ease;
}
.mmd-filters-sidebar.shake {
    animation: mmdShake 0.3s ease;
}

/* Hidden by default */
#mmd-clear-filters {
    display: none;
/*     margin-top: 12px; */
	margin-bottom: 12px;
	color:#fff;
    padding: 5px 10px;
    background: red;
    border-radius: 48px;
    font-weight: 500;
	font-size:0.7rem;
    cursor: pointer;
    transition: 0.25s ease;
	border:none !important;
}

/* Visible only when JS adds .show */
#mmd-clear-filters.show {
    display: block;
}

/* Optional hover effect */
#mmd-clear-filters:hover {
    background: #222;
	border:none !important;
}

@keyframes mmdShake {
    0% {transform: translateX(0);}
    25% {transform: translateX(-2px);}
    50% {transform: translateX(2px);}
    75% {transform: translateX(-2px);}
    100% {transform: translateX(0);}
}

