
/* Main wrapper should span full width */
.mat-wrapper {
    width: 98%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

/* Search bar full width */
.mat-search-bar {
    display: grid;
    grid-template-columns: 2.1fr 1.4fr 1.8fr 1.7fr;
    gap: 14px;
    width: 100%;
    align-items: center;
}
/* ─────────────────────────────────
   FORCE HERO SEARCH UNIFIED FRAME
───────────────────────────────── */

.mat-search-bar input,
.mat-search-bar select,
.mat-search-bar button {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.04)
    ) !important;
    color: #ffffffca;
    border: 1px solid rgba(120,180,255,0.35);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 6px 18px rgba(0,0,0,0.65);
}
/* ─────────────────────────────────
   HERO SEARCH – HEIGHT UNIFICATION
───────────────────────────────── */

.mat-search-bar input,
.mat-search-bar select,
.mat-search-bar button {
    height: 44px;          /* ✅ same height for all */
    line-height: 44px;     /* ✅ vertical text centering */
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}


#mat-looking option {
    background: #0d1b3e;
    color: #ddeeff;
}
/* Fix input text baseline */
.mat-search-bar input {
    line-height: normal;  /* prevent extra vertical space */
    padding-left: 16px;
    padding-right: 16px;
}

/* Fix select arrow spacing */
.mat-search-bar select {
    padding-left: 16px;
    padding-right: 36px;
}

/* Button alignment */
.mat-search-bar button {
    /* display: flex; */
    align-items: center;
    justify-content: center;
}
/* Remove browser default white input */
.mat-search-bar input {
    -webkit-appearance: none;
    appearance: none;
}

/* Placeholder color */
.mat-search-bar input::placeholder {
    color: rgba(202, 201, 201, 0.228);
}

/* Ensure inputs expand properly */
.mat-search-bar input,
.mat-search-bar select,
.mat-search-bar button {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 14px;
}

/* Button styling consistency */
#mat-search-btn {
    font-weight: 600;
    cursor: pointer;
    
    /* Center content vertically and horizontally */
    display: flex;                
    justify-content: center;      /* Horizontal center */
    align-items: center;          /* Vertical center */
    
    /* Ensure there is no padding forcing it off-center */
    padding: 0 16px;              /* Adjust as needed */
    gap: 8px;                     /* Spacing between icon and text if both exist */
}


/* Responsive: stack on small screens
@media (max-width: 900px) {
    .mat-search-bar {
        grid-template-columns: 1fr;
    }
} */

.mat-location-wrapper input {
    height: 44px;
    border-radius: 14px;
}
/* ✅ Allow location dropdown to escape hero area */
.mat-hero,
.mat-search-bar {
    overflow: visible !important;
}
/* ✅ Force location dropdown on top */
.mat-location-wrapper *,
.usa-location *,
.usa-location-dropdown,
.usa-location-list {
    position: relative;
    z-index: 9999 !important;
}
/* ✅ Ensure inputs can receive clicks */
.mat-search-bar {
    pointer-events: auto;
}



/* ─────────────────────────────────
   FIX LOCATION DROPDOWN CLIPPING
───────────────────────────────── */

/* Allow dropdown to escape hero grid */
.mat-search-bar {
    overflow: visible !important;
}

/* Allow grid cells to expand */
.mat-search-bar > * {
    overflow: visible !important;
}

/* Ensure dropdown is visible after teleport */
.usa-location-dropdown {
    background: #0b1220;
    border: 1px solid rgba(120,180,255,.35);
}
/* Anchor dropdown correctly */
.usa-location-wrapper {
    position: relative;
    overflow: visible !important;
}

/* Force dropdown above hero */
.usa-location-dropdown {
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 99999 !important;
}

.mat-search-bar {

  gap: 10px;
  background: #111;
  padding: 12px;
  border-radius: 10px;
  
}

.mat-search-bar input,
.mat-search-bar select,
.mat-search-bar button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  
}


.mat-title {
  background: #0d4f6b;
  color: rgb(0, 0, 0);
  padding: 8px;
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.mat-card {
  background: linear-gradient(#ffcaa5, #ffb48a);
  padding: 10px;
  border-radius: 18px;
}

.mat-card img {
  width: 100%;
  border-radius: 14px;
}

.mat-actions {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.mat-create-btn {
  background: linear-gradient(135deg, #ff7a7a, #ffb199);
  color: #000;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mat-create-btn:hover {
  background: linear-gradient(135deg, #ff9191, #ffd1b5);
}



/* ============================== */
/* USA MAP SECTION - NEON-MORPHE */
/* ============================== */




/* Tooltip (optional) */
.mat-map-tooltip {
    position: absolute;
    background: rgba(0, 179, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid #00b3ff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    display: none;
    box-shadow: 0 0 10px #00b3ff;
}



/* ========================= */
/* CREATE MATRIMONIAL BUTTON */
/* ========================= */

.mat-create-btn {
    background: linear-gradient(135deg, #ffce99, #ff9f1c);
    color: #111;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mat-create-btn:hover {
    background: linear-gradient(135deg, #ffd6a8, #ffb347);
    transform: translateY(-2px);
}



/* =========================== */
/* MATRIMONIAL POST AD BUTTON */
/* =========================== */

.mat-post-ad-bar {
    text-align: right;
    margin-bottom: 15px;
}

.mat-post-ad-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #002;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    display: inline-block;
}

.mat-post-ad-btn:hover {
    opacity: 0.9;
}


/* ============================== */
/* MATRIMONIAL SUB MENU */
/* ============================== */






/* ===== FIX TEXTAREA AUTO SIZE ===== */

.mat-post-form textarea {
    resize: none;          /* ❌ disable resize */
    height: 120px;         /* fixed height */
    overflow-y: auto;      /* ✅ scrollbar */
    max-height: 120px;
}

.mat-form-title {
    text-align: center;
    margin-bottom: 20px;
}

.mat-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.mat-row input,
.mat-row select,
.mat-row textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #111;
    color: #fff;
}

.mat-2col {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 30px;
}

.mat-3col {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr 0.7fr;
    gap: 30px;
}
.mat-4col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}


.mat-submit {
    margin-top: 20px;
    width: 130px;
    padding: 14px;
    background: linear-gradient(135deg,#ffcc70,#ff9f1c);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.mat-toast {
    background: #16a34a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% {opacity:1;}
    80% {opacity:1;}
    100% {opacity:0;}
}

.mat-gallery-preview img {
    border: 1px solid #333;
}

/* ===== MATRIMONIAL FORM – 3D BLUE BLACK ===== */

.mat-post-form {
    background: linear-gradient(180deg,#050c14,#0a1624);
    box-shadow: 0 15px 40px rgba(0,0,0,.6);
    border-radius: 16px;
}

.mat-post-form input,
.mat-post-form select,
.mat-post-form textarea {
    background: linear-gradient(180deg,#0d1b2d,#050c14);
    border: 1px solid #1b3555;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,.05),
                0 4px 12px rgba(0,0,0,.6);
}

.mat-post-form input:focus,
.mat-post-form select:focus,
.mat-post-form textarea:focus {
    outline: none;
    border-color: #4facfe;
}

.mat-location-list {
    background: #050c14;
    border: 1px solid #1b3555;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 5px;
    border-radius: 8px;
}

.mat-location-list div {
    padding: 8px 10px;
    cursor: pointer;
}

.mat-location-list div:hover {
    background: #1f3b5d;
}

/* ===== MAIN FORM 3D STYLE ===== */

.mat-post-form {
    background: linear-gradient(180deg,#050c14,#0a1624);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
}

.mat-post-form input,
.mat-post-form select,
.mat-post-form textarea {
    background: linear-gradient(180deg,#0d1b2d,#050c14);
    border: 1px solid #1b3555;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.06),
        0 6px 14px rgba(0,0,0,.7);
}

.mat-post-form input:focus,
.mat-post-form select:focus,
.mat-post-form textarea:focus {
    border-color: #4facfe;
    outline: none;
}


/* ===== 3D INPUT STYLE ===== */

.mat-post-form input,
.mat-post-form select,
.mat-post-form textarea {
    background: linear-gradient(180deg,#0d1b2d,#050c14);
    border: 1px solid #1b3555;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.06),
        0 6px 14px rgba(0,0,0,.7);
}

.mat-post-form input:focus,
.mat-post-form select:focus,
.mat-post-form textarea:focus {
    border-color: #4facfe;
    outline: none;
}

/* ===== IMAGE PREVIEW ===== */

.mat-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, 240px);
    gap: 10px;
    margin-top: 10px;
}



.mat-image-preview img {
    width: 240px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.7);
}


/* =============================================
   MATRIMONIAL CARDS — Dark Blue/Black Glassmorphism 3D
   Add to: matrimonial/assets/css/mat-style.css
   OR enqueue as a separate file in matrimonial.php
============================================= */

/* ── GRID SECTION TITLES ── */
.mat-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(130, 180, 255, 0.9);
    margin: 28px 0 16px;
    padding-left: 12px;
    border-left: 3px solid rgba(60, 130, 255, 0.65);
    letter-spacing: 0.3px;
}

/* ── GRID CONTAINER ── */
.mat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 4px 2px;
}

/* ── CARD BASE ── */
.mat-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    border: 1px solid rgba(100, 160, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 3D lift on hover */
.mat-card:hover {
    transform: perspective(900px) translateY(-7px) rotateX(2deg);
    box-shadow:
        0 22px 50px rgba(0, 80, 200, 0.28),
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(100, 160, 255, 0.35);
    border-color: rgba(100, 160, 255, 0.35);
}

/* Top shimmer line */
.mat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(100, 180, 255, 0.65) 50%,
        transparent 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* ── CARD LINK (wraps photo + body) ── */
.mat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ── PHOTO AREA ── */
.mat-card-photo {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.mat-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mat-card:hover .mat-card-photo img {
    transform: scale(1.04);
}

/* Gradient fade at bottom of photo */
.mat-card-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.92), transparent);
    pointer-events: none;
    z-index: 1;
}

/* ── LOOKING FOR BADGE ── */
.mat-looking-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.mat-looking-badge.bride {
    background: rgba(220, 60, 130, 0.22);
    border: 1px solid rgba(220, 60, 130, 0.5);
    color: #ff88c4;
}

.mat-looking-badge.groom {
    background: rgba(40, 120, 255, 0.18);
    border: 1px solid rgba(40, 120, 255, 0.45);
    color: #80b8ff;
}

/* ── CARD BODY ── */
.mat-card-body {
    padding: 12px 14px 8px;
}

.mat-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #ddeeff;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta rows */
.mat-card-body p {
    font-size: 12px;
    color: rgba(150, 185, 255, 0.72);
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── ACTIONS BAR ── */
.mat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px 12px;
    border-top: 1px solid rgba(100, 160, 255, 0.10);
    margin-top: 6px;
}

.mat-fav-btn,
.mat-actions a,
.mat-actions span {
    font-size: 12px;
    color: rgba(130, 170, 255, 0.78);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(100, 160, 255, 0.15);
    background: rgba(30, 60, 160, 0.12);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.mat-fav-btn:hover {
    background: rgba(220, 60, 130, 0.18);
    color: #ff88c4;
    border-color: rgba(220, 60, 130, 0.35);
}

.mat-actions a:hover,
.mat-actions span:hover {
    background: rgba(40, 120, 255, 0.18);
    color: #80b8ff;
    border-color: rgba(40, 120, 255, 0.35);
}

/* ── EMPTY STATE ── */
.mat-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(120, 160, 220, 0.5);
    font-size: 14px;
    border: 1px dashed rgba(100, 150, 255, 0.2);
    border-radius: 16px;
}

/* ── SINGLE DETAIL PAGE EXTRAS ── */
.mat-single__info div {
    color: rgba(160, 195, 255, 0.85);
    font-size: 14px;
    margin-bottom: 6px;
}

.mat-single__info strong {
    color: rgba(200, 225, 255, 0.95);
}

.mat-single__bio,
.mat-single__pref {
    margin-top: 14px;
    color: rgba(160, 195, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.mat-single__bio strong,
.mat-single__pref strong {
    color: rgba(200, 225, 255, 0.95);
    display: block;
    margin-bottom: 4px;
}




/* ──────────────────────────────
   MAP LAYOUT CORRECTION
────────────────────────────── */

/* Allow map area to escape content padding */
.mat-map-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    justify-content: center;
    padding: 16px 0 12px;
}



/* Reduce gap below map */
.mat-map-section {
    margin-bottom: 14px !important;
}


/* Tighten title spacing after map */
.mat-title {
    margin-top: 14px !important;
}





/* ───────── FEATURED MARQUEE ───────── */

.mat-featured-section {
    margin: 24px 0;
    overflow: hidden;
}

.mat-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mat-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: matMarqueeScroll 40s linear infinite;
}

/* Pause on hover */
.mat-marquee:hover .mat-marquee-track {
    animation-play-state: paused;
}

/* Featured cards slightly larger */
.mat-marquee .mat-card {
    min-width: 260px;
}

/* Smooth infinite scroll */
@keyframes matMarqueeScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.mat-type-badge.featured {
    background: rgba(255, 195, 0, 0.25);
    border: 1px solid rgba(255, 195, 0, 0.6);
    color: #ffdd55;
}


/* =================================================
   FEATURED MARQUEE – PREVENT PAGE SCROLL
================================================= */

.mat-featured-section {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

.mat-marquee {
    overflow: hidden !important;
    width: 100%;
}

.mat-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.mat-featured-section {
    contain: layout paint;
}


.mat-type-badge.featured {
    animation: featuredPulse 1.8s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%   { box-shadow: 0 0 0 rgba(255,215,100,0.3); }
    50%  { box-shadow: 0 0 12px rgba(255,215,100,0.8); }
    100% { box-shadow: 0 0 0 rgba(255,215,100,0.3); }
}


/* ===============================
: 1;   FIX SUBMENU VISIBILITY ABOVE HERO
}

/* Prevent wrapper from hiding above content */
.mat-wrapper {
    overflow: visible;
}


/* Ensure hero doesn't overlap upwards */
.mat-hero {
    position: relative;
}

/* Center the submenu container below any previous elements */
.mat-submenu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: fit-content;
  background: rgba(10, 20, 50, 0.185);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  
  /* --- Neon Animation Added Below --- */
  border: 1px solid rgba(0, 212, 255, 0.3); /* Subtle neon base */
  animation: neon-pulse 3s infinite ease-in-out;
}

/* Neon Pulse Animation */
@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.2), 
                inset 1px 1px 3px rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 
                inset 1px 1px 5px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.8);
  }
}

.mat-submenu .mat-sub-link {
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Hover & Active Effect with Neon Glow */
.mat-submenu .mat-sub-link:hover, 
.mat-submenu .mat-sub-link.active {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff; /* Text turns neon blue */
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.4), 
              0 0 10px rgba(0, 212, 255, 0.5);
}



.mat-hero {
    margin-top: 0 !important;
}


.mat-hero {
    z-index: 1;
}



/* =============================================
   MATRIMONIAL CARDS — Square + Overlay Details
============================================= */

.mat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 4px 2px;
}

/* ── CARD = square anchor tag ── */
.mat-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    /* Square via aspect-ratio */
    aspect-ratio: 1 / 1;

    /* 3D glass border */
    border: 1px solid rgba(100, 160, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    cursor: pointer;
}

/* Top shimmer line */
.mat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120,180,255,0.6), transparent);
    z-index: 4;
    pointer-events: none;
}

/* 3D lift on hover */
.mat-card:hover {
    transform: perspective(900px) translateY(-6px) rotateX(2deg);
    box-shadow:
        0 22px 48px rgba(0, 70, 200, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 0 1px rgba(100,160,255,0.35);
    border-color: rgba(100,160,255,0.4);
}

/* ── FULL-SIZE IMAGE ── */
.mat-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    z-index: 1;
}

.mat-card:hover .mat-card-img {
    transform: scale(1.05);
}

/* ── BADGE (top right) ── */
.mat-looking-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.mat-looking-badge.bride {
    background: rgba(220, 60, 130, 0.3);
    border: 1px solid rgba(220,60,130,0.55);
    color: #ffaadd;
}

.mat-looking-badge.groom {
    background: rgba(40,120,255,0.25);
    border: 1px solid rgba(40,120,255,0.5);
    color: #90c4ff;
}

/* ── OVERLAY — covers bottom half, slides up on hover ── */
.mat-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;

    /* Gradient from dark bottom to transparent top */
    background: linear-gradient(
        to top,
        rgba(5, 10, 28, 0.97) 0%,
        rgba(5, 10, 28, 0.92) 55%,
        rgba(5, 10, 28, 0.5)  80%,
        transparent           100%
    );

    padding: 18px 14px 14px;
    transform: translateY(30%);
    transition: transform 0.32s ease;
}

/* On hover — slide overlay up to show full details */
.mat-card:hover .mat-card-overlay {
    transform: translateY(0);
}

/* ── NAME ── */
.mat-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #e8f2ff;
    margin: 0 0 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ── META ROWS ── */
.mat-card-overlay p {
    font-size: 11px;
    color: rgba(170, 205, 255, 0.85);
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* ── ACTIONS ── */
.mat-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mat-fav-btn,
.mat-msg-btn {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mat-fav-btn {
    background: rgba(220,60,130,0.15);
    border: 1px solid rgba(220,60,130,0.35);
    color: #ffaadd;
}

.mat-fav-btn:hover {
    background: rgba(220,60,130,0.3);
    color: #fff;
}

.mat-msg-btn {
    background: rgba(40,120,255,0.15);
    border: 1px solid rgba(40,120,255,0.35);
    color: #90c4ff;
}

.mat-msg-btn:hover {
    background: rgba(40,120,255,0.3);
    color: #fff;
}

/* ── EMPTY STATE ── */
.mat-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(120,160,220,0.5);
    font-size: 14px;
    border: 1px dashed rgba(100,150,255,0.2);
    border-radius: 16px;
}

/* ── SECTION TITLE ── */
.mat-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(130,180,255,0.9);
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 3px solid rgba(60,130,255,0.65);
}

/* ============================
   MATRIMONIAL FEATURED BADGE
============================ */

.mat-featured-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;

    padding: 4px 10px;
    border-radius: 14px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;

    color: #2b1d00;
    background: linear-gradient(135deg, #ffd700, #ffb700);

    box-shadow:
        0 4px 10px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ================================
   MATRIMONIAL GRID – 5 × 2 LAYOUT
================================ */

.mat-grid-5 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

/* Pagination */
.mat-grid + .page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
    list-style: none;
}

.page-numbers a,
.page-numbers span {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.page-numbers .current {
    background: linear-gradient(135deg,#1da1ff,#6be4ff);
    color: #001b2a;
    font-weight: 700;
}


/* ===============================
   FIX GRID CARD TYPOGRAPHY
=============================== */

.mat-card-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.mat-card-overlay p {
    font-size: 13px;
    line-height: 1.3;
}

.mat-card-actions span {
    font-size: 13px;
}

.amk-mat-featured-item {
    flex: 0 0 280px;
}
/* ===============================
   MARQUEE: FORCE 5 CARDS PER ROW
=============================== */

.amk-mat-featured-wrap {
    --marquee-gap: 18px;
}

.amk-mat-featured-item {
    width: calc((100% - (4 * var(--marquee-gap))) / 5);
    max-width: calc((100% - (4 * var(--marquee-gap))) / 5);
    flex: 0 0 auto;
}
/* ===============================
   MARQUEE CARD FONT BOOST
=============================== */

.amk-mat-featured-wrap .mat-card-name {
    font-size: 15px;
}

.amk-mat-featured-wrap .mat-card-overlay p {
    font-size: 12.5px;
}

/* ==========================================
   FORCE LARGE, READABLE GRID CARD TYPOGRAPHY
========================================== */

/* Card container */
.mat-card {
    position: relative;
}

/* Name */
.mat-card-name {
    font-size: 18px !important;     /* 🔥 bigger */
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Details text */
.mat-card-overlay p {
    font-size: 15px !important;     /* 🔥 readable */
    line-height: 1.4 !important;
    margin: 4px 0 !important;
}

/* Favorite / Message */
.mat-card-actions span {
    font-size: 14px !important;
    font-weight: 600;
}
/* ==========================================
   DARKER OVERLAY FOR TEXT READABILITY
========================================== */

.mat-card-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.25)
    ) !important;
    padding: 14px !important;
}

/* ==========================================
   MARQUEE: EVEN BIGGER TEXT
========================================== */

.amk-mat-featured-wrap .mat-card-name {
    font-size: 19px !important;
}

.amk-mat-featured-wrap .mat-card-overlay p {
    font-size: 15.5px !important;
}
/* =================================================
   CENTER MATRIMONIAL GRID CONTAINER (FIX LEFT SHIFT)
================================================= */

/* Wrapper for bride & groom grids */
.mat-grid {
    max-width: 100%;       /* ✅ control total width */
    margin-left: auto;       /* ✅ center horizontally */
    margin-right: auto;
    padding-left: 24px;      /* ✅ safe inner spacing */
    padding-right: 24px;
    box-sizing: border-box;
}

/* 5-column layout stays intact */
.mat-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(6, 1fr));
    gap: 18px;
    justify-content: center; /* ✅ extra safety */
}

/* =========================================
   MATRIMONIAL — USA MAP BACKGROUND FIX
========================================= */

.matrimonial-page .usa-map,
.matrimonial-page .jobs-map,
.matrimonial-page .classified-map,
.matrimonial-page svg#svg2 {
  position: relative;
  z-index: 1;
}

/* =========================================
   MATRIMONIAL — LOCATION DROPDOWN ON TOP
========================================= */

.matrimonial-page .location-dropdown,
.matrimonial-page .location-dropdown-panel,
.matrimonial-page .us-city-dropdown,
.matrimonial-page .state-city-dropdown {
  position: absolute;
  z-index: 9999 !important;
}

.matrimonial-page .location-dropdown-panel {
  background: linear-gradient(145deg, rgba(12,18,35,.98), rgba(6,10,20,.98));
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.8),
    0 0 30px rgba(0,180,255,.2);
}
/* =====================================================
   MATRIMONIAL – FORCE DROPDOWN ABOVE USA MAP (REAL FIX)
===================================================== */

/* --- USA MAP must stay behind --- */
body.page-matrimonial svg#svg2,
body.page-matrimonial .usa-map,
body.page-matrimonial .map-usa,
body.page-matrimonial .browse-by-state {
  position: relative !important;
  z-index: 1 !important;
}

/* --- DROPDOWN PANEL (state / city box) --- */
body.page-matrimonial .location-dropdown,
body.page-matrimonial .location-panel,
body.page-matrimonial .state-city-panel,
body.page-matrimonial .city-select-panel {
  position: absolute !important;
  z-index: 99999 !important;
}

/* --- INPUT WRAPPER must allow overlay --- */
body.page-matrimonial .location-field,
body.page-matrimonial .search-location {
  position: relative !important;
  z-index: 100000 !important;
}

/* --- SVG MUST NOT BLOCK DROPDOWN --- */
body.page-matrimonial svg#svg2 {
  pointer-events: none;
}

body.page-matrimonial .location-dropdown,
body.page-matrimonial .state-city-panel {
  top: 100%;
  left: 0;
}
body.page-matrimonial .state-city-panel {
  outline: 3px solid red !important;
}

/* =====================================================
   MATRIMONIAL — FORCE LOCATION DROPDOWN TO TOP LAYER
   (PORTAL FIX — GUARANTEED)
===================================================== */

body.page-matrimonial .state-city-panel,
body.page-matrimonial .location-dropdown-panel {
  position: fixed !important;
  z-index: 2147483647 !important;  /* max safe */
}
/* Ensure dropdown stays visible */
.usa-location-dropdown,
.usa-location-results,
.usa-location-panel {
  max-height: 320px;
  overflow-y: auto;
}

/* =====================================================
   FIX DOUBLE SCROLL — USA LOCATION DROPDOWN
===================================================== */

/* LEFT column (States) */
.usa-location-dropdown .state-list,
.usa-location-dropdown .usa-states {
  max-height: 320px;
  overflow-y: auto;
}

/* RIGHT column (Cities) */
.usa-location-dropdown .city-list,
.usa-location-dropdown .usa-cities {
  max-height: 320px;
  overflow-y: auto;
}

/* Optional: smoother scroll */
.usa-location-dropdown * {
  scrollbar-width: thin;
  scrollbar-color: #6bcfff transparent;
}
/* =========================================
   MATRIMONIAL ONLY — FIX DOUBLE SCROLL
========================================= */

body.page-matrimonial
.usa-location-dropdown {
  overflow: hidden !important;
  max-height: none !important;
}

/* State list scroll */
body.page-matrimonial
.usa-location-dropdown .state-list,
body.page-matrimonial
.usa-location-dropdown .usa-states {
  max-height: 320px;
  overflow-y: auto;
}

/* City list scroll */
body.page-matrimonial
.usa-location-dropdown .city-list,
body.page-matrimonial
.usa-location-dropdown .usa-cities {
  max-height: 320px;
  overflow-y: auto;
}

/* =========================================
   MATRIMONIAL — DROPDOWN ABOVE USA MAP
========================================= */

/* Map stays behind */
body.page-matrimonial .mat-map-wrapper,
body.page-matrimonial svg#svg2 {
  z-index: 1;
  position: relative;
}

/* Dropdown always on top */
body.page-matrimonial .usa-location-dropdown {
  z-index: 2147483647 !important;
}

/* ======================================================
   USA LOCATION DROPDOWN — CLEAN FINAL RULES
====================================================== */

/* Base dropdown look */
.usa-location-dropdown {
  background: #0b1220;
  border: 1px solid rgba(120,180,255,.35);
  border-radius: 14px;
}

/* ================= MATRIMONIAL ================= */

/* Map must stay behind */
body.page-matrimonial .mat-map-wrapper,
body.page-matrimonial svg#svg2 {
  position: relative;
  z-index: 1;
}

/* Dropdown always above map */
body.page-matrimonial .usa-location-dropdown {
  z-index: 2147483647;
}

/* ================= JOBS ================= */

/* Prevent double scroll: outer does NOT scroll */
body.page-jobs .usa-location-dropdown {
  overflow: hidden;
}

/* State list scroll */
body.page-jobs .usa-location-dropdown .usa-states {
  max-height: 320px;
  overflow-y: auto;
}

/* City list scroll */
body.page-jobs .usa-location-dropdown .usa-cities {
  max-height: 320px;
  overflow-y: auto;
}


.mat-map,
.mat-map-section,
.mat-map-wrapper {
    background: #050b14;
}
