#page-content.masjid-page {
    background: #f4f6f1;
    color: #151b2d;
    font-family: 'Poppins', sans-serif;
}

.masjid-page * {
    box-sizing: border-box;
}

.masjid-shell {
    margin: 0 auto;
    max-width: 1230px;
    padding: 0 22px;
    width: 100%;
}

.masjid-hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(212, 160, 23, 0.52), transparent 32%),
        linear-gradient(135deg, #163126 0%, #1f6843 52%, #58bd86 100%);
    color: #fff;
    padding: 52px 0 78px;
}

.masjid-back {
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    gap: 10px;
    margin-bottom: 18px;
    text-decoration: none;
}

.masjid-back:hover {
    color: #fff;
}

.masjid-hero h1 {
    color: #fff;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 12px;
}

.masjid-hero h1 span {
    color: #f2a51d;
}

.masjid-hero p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    margin: 0 0 26px;
    max-width: 610px;
}

.masjid-search {
    align-items: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(7, 30, 18, 0.22);
    display: flex;
    gap: 10px;
    max-width: 520px;
    padding: 8px;
}

.masjid-search ion-icon {
    color: #8993a5;
    font-size: 20px;
    margin-left: 12px;
}

.masjid-search input {
    border: 0;
    color: #151b2d;
    flex: 1;
    font-size: 14px;
    min-height: 44px;
    min-width: 0;
    outline: 0;
}

.masjid-search input::-webkit-search-cancel-button,
.masjid-search input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.masjid-search button,
.masjid-empty button,
.masjid-reset {
    background: #efa21c;
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    min-height: 44px;
    padding: 0 22px;
}

.masjid-search-clear {
    background: transparent !important;
    color: #687385 !important;
    min-width: 44px;
    padding: 0 !important;
}

.masjid-content {
    padding: 34px 0 54px;
}

.masjid-layout {
    align-items: flex-start;
    display: grid;
    gap: 28px;
    grid-template-columns: 240px minmax(0, 1fr);
}

.masjid-filter,
.masjid-card,
.masjid-sort,
.masjid-empty {
    background: #fff;
    border: 1px solid #e4e8e2;
    border-radius: 14px;
    box-shadow: 0 2px 7px rgba(20, 28, 42, 0.08);
}

.masjid-filter {
    padding: 20px 18px 22px;
    position: sticky;
    top: 98px;
}

.masjid-filter-title,
.masjid-sort {
    align-items: center;
    display: flex;
    gap: 10px;
}

.masjid-filter-title {
    color: #151b2d;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 22px;
}

.masjid-filter-title ion-icon,
.masjid-sort ion-icon {
    color: #1e6742;
    font-size: 18px;
}

.masjid-filter-label {
    color: #758093;
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.masjid-filter-label-spaced {
    margin-top: 20px;
}

.masjid-filter-list {
    display: grid;
    gap: 8px;
}

.masjid-filter-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #687385;
    display: grid;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    grid-template-columns: 18px 1fr auto;
    min-height: 42px;
    padding: 0 12px;
    text-align: left;
    width: 100%;
}

.masjid-filter-item.active {
    background: #1d633a;
    color: #fff;
}

.masjid-filter-item small {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.78;
}

.masjid-reset {
    background: #1d633a;
    margin-top: 14px;
    width: 100%;
}

.masjid-main-head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.masjid-main-head h2 {
    color: #151b2d;
    font-size: 22px;
    font-weight: 900;
    margin: 0;
}

.masjid-sort {
    color: #243047;
    font-size: 14px;
    font-weight: 600;
    min-height: 42px;
    padding: 0 14px;
}

.masjid-sort select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #243047;
    cursor: pointer;
    font: inherit;
    outline: 0;
}

.masjid-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.masjid-card {
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.masjid-card:hover {
    box-shadow: 0 16px 34px rgba(20, 28, 42, 0.14);
    transform: translateY(-4px);
}

.masjid-image {
    aspect-ratio: 1.42 / 1;
    display: block;
    overflow: hidden;
    position: relative;
}

.masjid-image::after {
    background: linear-gradient(180deg, rgba(9, 22, 18, 0.02) 34%, rgba(8, 14, 17, 0.74) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.masjid-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.masjid-verified,
.masjid-rating-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    gap: 5px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1;
}

.masjid-verified {
    background: #196038;
    color: #fff;
    left: 12px;
    top: 12px;
}

.masjid-rating-pill {
    background: rgba(255, 255, 255, 0.95);
    color: #9a6500;
    right: 12px;
    top: 12px;
}

.masjid-body {
    padding: 16px 14px 14px;
}

.masjid-title {
    color: #151b2d;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 10px;
}

.masjid-title a {
    color: inherit;
    text-decoration: none;
}

.masjid-title a:hover {
    color: #1d633a;
}

.masjid-meta {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
}

.masjid-meta div {
    align-items: flex-start;
    color: #7b8596;
    display: flex;
    font-size: 12px;
    gap: 7px;
    line-height: 1.45;
}

.masjid-meta ion-icon {
    color: #8da0b3;
    flex: 0 0 auto;
    margin-top: 2px;
}

.masjid-badges {
    border-bottom: 1px solid #edf0ec;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.masjid-badges span {
    align-items: center;
    background: #eaf7ed;
    border-radius: 999px;
    color: #24643d;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    min-height: 22px;
    padding: 0 9px;
}

.masjid-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.masjid-card-action {
    align-items: center;
    border: 1px solid #e4e8e2;
    border-radius: 10px;
    color: #1d633a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    justify-content: center;
    min-height: 38px;
    text-decoration: none;
}

.masjid-card-action.primary {
    background: #1d633a;
    border-color: #1d633a;
    color: #fff;
}

.masjid-empty {
    align-items: center;
    color: #687385;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 260px;
    padding: 34px;
    text-align: center;
}

.masjid-empty h3 {
    color: #151b2d;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.masjid-empty p {
    margin: 0;
}

@media (max-width: 1100px) {
    .masjid-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .masjid-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .masjid-filter {
        position: static;
    }

    .masjid-filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .masjid-hero {
        padding: 34px 0 54px;
    }

    .masjid-search {
        max-width: none;
    }

    .masjid-search button {
        padding: 0 18px;
    }

    .masjid-main-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .masjid-grid,
    .masjid-filter-list,
    .masjid-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}
