.mriy-profile-page {
    max-width: 1200px;
    padding-bottom: 56px;
    color: var(--darkColor);
    --mriy-soft-bg: #f7f9fc;
    --mriy-soft-blue: #f3f7fc;
    --mriy-border: #DCDEE5;
}

.mriy-card {
    border: 1px solid var(--mriy-border);
    border-radius: 8px;
    background: var(--whiteColor);
    box-shadow: none;
}

.mriy-profile-header {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 26px;
    margin-bottom: 28px;
}

.mriy-profile-header__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--mriy-soft-bg);
    border: 1px solid var(--mriy-border);
}

.mriy-profile-header__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mriy-profile-header__media.is-placeholder img {
    padding: 34px;
    object-fit: contain;
}

.mriy-profile-header__content {
    min-width: 0;
}

.mriy-profile-header__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--nightColor);
    font-size: 15px;
    line-height: 1.45;
}

.mriy-profile-header__eyebrow span + span::before {
    content: "•";
    margin-right: 8px;
    color: #9ca3af;
}

.mriy-profile-header h1 {
    margin: 0 0 16px;
    color: var(--darkColor);
    font-size: 34px;
    line-height: 1.18;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.mriy-profile-status {
    max-width: 680px;
    padding: 13px 15px;
    border-radius: 8px;
    background: var(--mriy-soft-blue);
    border: 1px solid var(--mriy-border);
}

.mriy-profile-status__title {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--darkColor);
    font-weight: 600;
}

.mriy-profile-status p {
    margin: 5px 0 0;
    color: var(--nightColor);
    font-size: 14px;
    line-height: 1.45;
}

.mriy-profile-status a {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}

.mriy-profile-status__icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: #1f9d55;
    font-size: 12px;
}

.mriy-profile-header__signals,
.mriy-profile-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mriy-profile-header__signals {
    margin: 18px 0;
}

.mriy-btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mriy-btn-with-icon svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: currentColor;
}

.mriy-profile-page .theme-btn1:hover,
.mriy-profile-page .see-details-btn1:hover {
    background: var(--themeColor);
    color: var(--whiteColor);
}

.mriy-profile-page .white-btn1:hover {
    border-color: var(--themeColor);
    color: var(--themeColor);
}

.mriy-rating-pill,
.mriy-price-pill,
.mriy-chip-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--whiteColor);
    border: 1px solid var(--mriy-border);
    color: var(--darkColor);
    font-size: 14px;
    line-height: 1.3;
}

.mriy-price-pill {
    color: var(--darkColor);
    font-weight: 700;
}

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

.mriy-profile-main,
.mriy-profile-sidebar {
    min-width: 0;
}

.mriy-profile-sidebar {
    position: sticky;
    top: 18px;
}

.mriy-profile-section {
    margin: 0 0 22px;
    padding: 22px;
}

.mriy-profile-section h2 {
    margin: 0 0 14px;
    color: var(--darkColor);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
}

.mriy-profile-section p {
    color: var(--nightColor);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.mriy-meta-strip {
    padding: 16px 20px;
    background: #fff;
}

.mriy-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    align-items: center;
}

.mriy-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 18px;
    border-right: 1px solid var(--mriy-border);
}

.mriy-meta-item:first-child {
    padding-left: 0;
}

.mriy-meta-item:last-child {
    border-right: 0;
    padding-right: 0;
}

.mriy-meta-item > span:not(.mriy-meta-value),
.mriy-contact-list > div > span,
.mriy-about-details span {
    display: block;
    margin-bottom: 3px;
    color: var(--grayColor);
    font-size: 13px;
}

.mriy-meta-item > span:not(.mriy-meta-value) {
    display: inline;
    margin-bottom: 0;
}

.mriy-meta-value,
.mriy-contact-list p,
.mriy-about-details p {
    margin: 0;
    color: var(--darkColor);
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mriy-rich-text {
    color: var(--nightColor);
    line-height: 1.65;
}

.mriy-rich-text p:last-child {
    margin-bottom: 0;
}

.mriy-about-details {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.mriy-info-block {
    padding: 0 22px;
}

.mriy-info-subsection {
    padding: 22px 0;
}

.mriy-info-subsection + .mriy-info-subsection {
    border-top: 1px solid var(--mriy-border);
}

.mriy-info-subsection h3 {
    margin: 0 0 12px;
    color: var(--darkColor);
    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
}

.mriy-service-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    border-radius: 8px;
    background: var(--mriy-soft-bg);
    border: 1px solid var(--mriy-border);
}

.mriy-service-price {
    color: var(--darkColor);
    font-weight: 600;
    white-space: nowrap;
}

.mriy-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mriy-location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.mriy-contact-list {
    display: grid;
    gap: 13px;
}

.mriy-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mriy-social-row a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--mriy-border);
    border-radius: 6px;
    color: var(--darkColor);
    font-weight: 500;
    background: #fff;
}

.mriy-social-row a:hover {
    border-color: var(--themeColor);
    color: var(--themeColor);
}

.mriy-social-row svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: currentColor;
}

.mriy-social-row a span {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: 14px;
}

.mriy-map {
    width: 100%;
    min-height: 260px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mriy-soft-bg);
}

.mriy-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.mriy-section-head h2 {
    margin: 0;
}

.mriy-review-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid var(--mriy-border);
    border-radius: 8px;
    background: #fff;
}

.mriy-review-summary > div {
    padding: 16px 18px;
}

.mriy-review-summary > div + div {
    border-left: 1px solid var(--mriy-border);
}

.mriy-empty-state {
    padding: 15px;
    border-radius: 8px;
    background: var(--mriy-soft-bg);
    border: 1px solid var(--mriy-border);
}

.mriy-review-source__title {
    display: block;
    margin-bottom: 5px;
    color: var(--darkColor);
    font-weight: 600;
}

.mriy-empty-note {
    margin: 0;
}

.mriy-review-card {
    padding-top: 16px;
    border-top: 1px solid var(--mriy-border);
}

.mriy-stars {
    margin-bottom: 8px;
    color: #f59e0b;
}

.mriy-review-form-panel {
    padding: 0;
    overflow: hidden;
}

.mriy-review-form-panel summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    cursor: pointer;
    color: #fff;
    background: var(--themeColor);
    font-weight: 700;
    list-style: none;
}

.mriy-review-form-panel summary::-webkit-details-marker {
    display: none;
}

.mriy-review-form-panel__body {
    padding: 22px;
}

.mriy-review-form-panel .mriy-review-card {
    padding-top: 0;
    border-top: 0;
    box-shadow: none;
}

.mriy-claim p {
    margin-bottom: 14px;
}

.mriy-claim ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    padding-left: 18px;
    margin-bottom: 18px;
    color: var(--nightColor);
}

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

.mriy-related-grid .single-grid-card {
    height: 100%;
    box-shadow: none;
    border: 1px solid var(--mriy-border);
}

.mriy-related-grid .single-grid-card:hover {
    border-color: var(--themeColor);
    box-shadow: none;
}

.mriy-related-grid .card-item-image {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.mriy-related-grid .card-item-image.is-placeholder {
    object-fit: contain;
    padding: 20px;
    background: #f6f7fb;
}

.mriy-related-grid .category-light-text {
    color: var(--themeColor) !important;
}

.mriy-profile-page .card-light-text.theme-light {
    background: var(--themeColor);
    color: #fff !important;
}

.mriy-profile-page .grid-list-bookmark {
    color: var(--themeColor);
}

.mriy-muted {
    color: var(--grayColor);
}

.gr-modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
}

.gr-modal.is-open {
    display: block;
}

.gr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.gr-modal__dialog {
    position: relative;
    max-width: 640px;
    width: calc(100% - 32px);
    max-height: 82vh;
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--mriy-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gr-modal__header,
.gr-modal__body {
    padding: 16px 20px;
}

.gr-modal__header {
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

.gr-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: var(--grayColor);
    cursor: pointer;
}

.gr-modal__body {
    overflow-y: auto;
}

.gr-review {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gr-review__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.gr-review__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.gr-review__author {
    font-weight: 700;
}

.gr-review__meta,
.gr-modal__state {
    color: var(--grayColor);
    font-size: 13px;
}

.gr-review__stars {
    color: #f59e0b;
}

.gr-review__text {
    line-height: 1.5;
    white-space: pre-line;
}

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

@media (max-width: 991px) {
    .mriy-profile-header {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 22px;
    }

    .mriy-profile-layout {
        grid-template-columns: 1fr;
    }

    .mriy-profile-sidebar {
        position: static;
    }

    .mriy-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mriy-profile-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mriy-profile-header {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .mriy-profile-header__media {
        max-width: 280px;
        margin: 0 auto;
    }

    .mriy-profile-header h1 {
        font-size: 28px;
    }

    .mriy-profile-header__actions .theme-btn1,
    .mriy-profile-header__actions .white-btn1 {
        justify-content: center;
        width: 100%;
    }

    .mriy-profile-section {
        padding: 18px;
    }

    .mriy-review-form-panel {
        padding: 0;
    }
}

@media (max-width: 575px) {
    .mriy-review-summary,
    .mriy-related-grid,
    .mriy-claim ul {
        grid-template-columns: 1fr;
    }

    .mriy-meta-line {
        align-items: flex-start;
    }

    .mriy-meta-item {
        width: 100%;
        padding: 0 0 10px;
        border-right: 0;
        border-bottom: 1px solid var(--mriy-border);
    }

    .mriy-meta-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .mriy-review-summary > div + div {
        border-left: 0;
        border-top: 1px solid var(--mriy-border);
    }

    .mriy-service-simple {
        align-items: flex-start;
        flex-direction: column;
    }

    .mriy-service-price {
        white-space: normal;
    }
}
