/* Page header */
.pharmacy-page-title {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 2rem;
    line-height: 130%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #000000;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.pharmacy-page-title.list-title {
    font-size: 1.375rem;
}

/* Pharmacy detail layout */
.pharmacy-detail-layout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pharmacy-detail-main {
    flex: 1;
    min-width: 0;
    margin-left: 2.5rem;
}

.pharmacy-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pharmacy-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.pharmacy-info-value {
    flex: 1;
    text-align: right;
    font-size: 1.25rem;
    color: #979797;
    font-weight: 500;
}

.pharmacy-info-value a {
    color: #979797;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.pharmacy-info-value a:hover {
    color: #979797;
}

.pharmacy-info-label {
    flex: 0 0 auto;
    font-size: 1.25rem;    
    color: #979797;
    text-align: left;
    min-width: 9.375rem;
}

.pharmacy-description-section {
    margin-top: 2rem;
    position: relative;
}

.pharmacy-description-content {
    color: #344863;
    font-size: 1rem;
    line-height: 1.6;
    max-height: 10.13rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pharmacy-description-content.expanded {
    max-height: none;
}

.pharmacy-description-toggle {
    background: none;
    border: none;
    color: #30734C;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    text-align: left;
    transition: color 0.2s ease;
    display: none;
}

.pharmacy-description-toggle:hover {
    color: #245a3a;
    text-decoration: underline;
}

.pharmacy-description-hide {
    background: none;
    border: none;
    color: #30734C;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    text-align: left;
    transition: color 0.2s ease;
}

.pharmacy-description-hide:hover {
    color: #245a3a;
    text-decoration: underline;
}

.pharmacy-detail-cities {
    flex: 0 0 14.875rem;
    width: 14.875rem;
}

.pharmacy-detail-gallery {
    flex: 0 0 auto;
    width: 45.25rem;
}


.pharmacy-cities-list {
    width: 100%;
    height: 32.8rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.5rem;
}

/* Скрываем скроллбар по умолчанию */
.pharmacy-cities-list::-webkit-scrollbar {
    width: 0.375rem;
    display: none;
}

.pharmacy-cities-list {
    scrollbar-width: thin;
    scrollbar-color: #30734C #F3F5FA;
}

/* Показываем скроллбар только если контент не влазит */
.pharmacy-cities-list.has-scroll::-webkit-scrollbar {
    display: block;
}

.pharmacy-cities-list::-webkit-scrollbar-track {
    background: #F3F5FA;
    border-radius: 0.1875rem;
}

.pharmacy-cities-list::-webkit-scrollbar-thumb {
    background: #30734C;
    border-radius: 0.1875rem;
}

.pharmacy-cities-list::-webkit-scrollbar-thumb:hover {
    background: #245a3a;
}

.pharmacy-city-item {
    display: block;
    padding: 0.625rem 1rem;
    background: #fff;
    border: 0.0625rem solid #979797;
    border-radius: 0.625rem;
    color: #979797;
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
}
.pharmacy-city-item:hover {
    color: #30734C;; 
}
.pharmacy-city-item--active {
    background: #30734C;
    border-color: #30734C;
    color: #fff;
}

.pharmacy-city-item--active:hover {
    background: #245a3a;
    border-color: #245a3a;
    color: #fff;
}

/* Filter styles */
.pharmacy-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pharmacy-filters-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pharmacy-filters-logo {
    height: 3.75rem;
    width: 10rem;
    object-fit: contain;
    object-position: left center;
    display: block;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.pharmacy-filters-logo:hover {
    opacity: 0.8;
}

.pharmacy-filters-logo--active {
    opacity: 1;
}

/* Custom pharmacy select */
.pharmacy-select-wrapper {
    position: relative;
    min-width: 13.75rem;
}

.pharmacy-select {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    color: #344863;
    border: 0.0625rem solid #d4e5db;
    border-radius: 0.75rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.pharmacy-select:hover {
    border-color: #30734C;
}

.pharmacy-select.active {
    border-color: #30734C;
    box-shadow: 0 0 0 0.2rem rgba(48, 115, 76, 0.15);
}

.pharmacy-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pharmacy-select-value {
    flex: 1;
    color: #344863;
    font-weight: 500;
}

.pharmacy-select-arrow {
    display: flex;
    align-items: center;
    margin-left: 0.75rem;
    transition: transform 0.2s ease;
    color: #30734C;
}

.pharmacy-select-arrow svg {
    width: 1.125rem;
    height: 1.125rem;
}

.pharmacy-select.active .pharmacy-select-arrow {
    transform: rotate(180deg);
}

.pharmacy-select-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 0.0625rem solid #d4e5db;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
    max-height: 16rem;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.2s ease;
}

.pharmacy-select.active .pharmacy-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pharmacy-select-option {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: #344863;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pharmacy-select-option:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
}

.pharmacy-select-option:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
}

.pharmacy-select-option:hover {
    background-color: #f0f7f1;
    color: #30734C;
}

.pharmacy-select-option.selected {
    background-color: #30734C;
    color: #fff;
    font-weight: 500;
}

.pharmacy-select-option.selected:hover {
    background-color: #245a3a;
    color: #fff;
}

.pharmacy-select-dropdown::-webkit-scrollbar {
    width: 0.375rem;
}

.pharmacy-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.75rem;
}

.pharmacy-select-dropdown::-webkit-scrollbar-thumb {
    background: #30734C;
    border-radius: 0.75rem;
}

.pharmacy-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #245a3a;
}

/* Pharmacy cards grid */
.pharmacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(23.75rem, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Pharmacy card */
.pharmacy-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.pharmacy-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.pharmacy-card-link:focus {
    outline: none;
}

.pharmacy-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 0.0625rem solid #e4e9f2;
}

.pharmacy-card-link:hover .pharmacy-card {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.5rem rgba(48, 115, 76, 0.15);
    border-color: #30734C;
}

.pharmacy-card__header {
    background: linear-gradient(135deg, #30734C 0%, #245a3a 100%);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pharmacy-card__img {
    width: 4.375rem;
    height: 4.375rem;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 0.1875rem solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.pharmacy-card__img--placeholder {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 2rem;
}

.pharmacy-card__title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.pharmacy-card__number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.pharmacy-card__body {
    padding: 1.25rem;
}

.pharmacy-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.pharmacy-card__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pharmacy-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(48, 115, 76, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pharmacy-card__icon i {
    color: #30734C;
    font-size: 1rem;
}

.pharmacy-card__text {
    flex: 1;
}

.pharmacy-card__label {
    font-size: 0.75rem;
    color: #7D879C;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
    margin-bottom: 0.125rem;
}

.pharmacy-card__value {
    font-size: 1rem;
    color: #344863;
    font-weight: 500;
    margin: 0;
}

.pharmacy-phone-link {
    color: #30734C;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.pharmacy-phone-link:hover {
    color: #245a3a;
    text-decoration: underline;
}

.pharmacy-card__footer {
    padding: 1rem 1.25rem;
    background: #f8faf9;
    border-top: 0.0625rem solid #e4e9f2;
}

.pharmacy-card__time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #30734C 0%, #3d8a5e 100%);
    border-radius: 2rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
}

.pharmacy-card__time-badge i {
    font-size: 1rem;
}

/* Empty state */
.pharmacy-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8faf9 0%, #eef5f1 100%);
    border: 0.0625rem solid #d4e5db;
    border-radius: 1rem;
    margin-top: 1.5rem;
}

.pharmacy-empty__icon {
    width: 5rem;
    height: 5rem;
    background: rgba(48, 115, 76, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.pharmacy-empty__icon i {
    font-size: 2.5rem;
    color: #30734C;
}

.pharmacy-empty__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #344863;
    margin-bottom: 0.75rem;
}

.pharmacy-empty__text {
    font-size: 1.125rem;
    color: #7D879C;
    margin-bottom: 0.5rem;
}

/* Map section */
.pharmacy-map-section {
    margin-top: 3rem;
}

.pharmacy-map-title {
    color: #344863;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.pharmacy-detail-map {
    width: 100%;
    height: 20.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.pharmacy-map {
    border: 0.125rem solid #d4e5db;
    border-radius: 1rem;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .pharmacy-grid {
        grid-template-columns: 1fr;
    }
    
    .pharmacy-card__header {
        flex-direction: column;
        text-align: center;
    }
    
    .pharmacy-card__img {
        width: 5rem;
        height: 5rem;
    }
}

@media (max-width: 576px) {
    .pharmacy-filters {
        flex-direction: column;
    }
    
    .pharmacy-select-wrapper {
        width: 100%;
    }
    
    .pharmacy-card__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pharmacy-card__icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Pharmacy gallery */
.pharmacy-gallery {
    width: 100%;
    max-width: 45.25rem;
    height: 32.8rem;
    display: flex;
    flex-direction: column;
}

.pharmacy-gallery__main {
    width: 100%;
    height: 25.125rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f8faf9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Если миниатюр нет, главное фото занимает всю высоту галереи */
.pharmacy-gallery--single .pharmacy-gallery__main {
    height: 100%;
}

.pharmacy-gallery__main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.pharmacy-gallery__thumbnails-wrapper {
    margin-top: 1.25rem;
    position: relative;
    width: 100%;
    height: 6.5rem;
    display: flex;
    align-items: center;
}

.pharmacy-gallery__thumbnails {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Скрываем скроллбар для WebKit браузеров */
.pharmacy-gallery__thumbnails::-webkit-scrollbar {
    display: none;
}

.pharmacy-gallery__thumb {
    flex: 0 0 11.5rem;
    width: 11.5rem;
    height: 6.5rem;
    border: 0.125rem solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f8faf9;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pharmacy-gallery__thumb:hover {
    border-color: #30734C;
}

.pharmacy-gallery__thumb--active {
    border-color: #30734C;
    box-shadow: 0 0 0 0.125rem rgba(48, 115, 76, 0.2);
}

.pharmacy-gallery__thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pharmacy-gallery__nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(48, 115, 76, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
}

.pharmacy-gallery__nav-btn:hover {
    background: #30734C;
    transform: translateY(-50%) scale(1.1);
}

.pharmacy-gallery__nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.pharmacy-gallery__nav-btn--prev {
    left: 0.5rem;
}

.pharmacy-gallery__nav-btn--next {
    right: 0.5rem;
}

.pharmacy-gallery__nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pharmacy-gallery__nav-btn:disabled:hover {
    transform: translateY(-50%);
    background: rgba(48, 115, 76, 0.9);
}


.pharmacy-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pharmacy-lightbox.pharmacy-lightbox--open {
    opacity: 1;
    visibility: visible;
}

.pharmacy-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.pharmacy-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pharmacy-lightbox__image {
    max-width: calc(100vw - 8rem);
    max-height: calc(100vh - 4rem);
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.pharmacy-lightbox__close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pharmacy-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.pharmacy-lightbox__close:active {
    transform: scale(0.98);
}

.pharmacy-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pharmacy-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pharmacy-lightbox__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pharmacy-lightbox__nav--prev {
    left: 1rem;
}

.pharmacy-lightbox__nav--next {
    right: 1rem;
}

@media (max-width: 500px) {
    .pharmacy-lightbox__nav--prev {
        left: 0.375rem;
    }
    .pharmacy-lightbox__nav--next {
        right: 0.375rem;
    }
    .pharmacy-lightbox__nav {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Курсор-указатель для кликабельного главного изображения */
.pharmacy-gallery__main img {
    cursor: zoom-in;
}

/* Pharmacy detail responsive */
@media (max-width: 1100px) {
    .pharmacy-detail-layout {
        display: grid;
        grid-template-columns: minmax(0, 14.875rem) minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .pharmacy-detail-cities {
        grid-column: 1;
        grid-row: 1;
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 14.875rem;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .pharmacy-detail-gallery {
        grid-column: 2;
        grid-row: 1;
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .pharmacy-detail-main {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .pharmacy-cities-list {
        height: auto;
        max-height: 32.8rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .pharmacy-gallery {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .pharmacy-gallery__main,
    .pharmacy-gallery__thumbnails-wrapper,
    .pharmacy-gallery__thumbnails {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Pharmacy cities dropdown (mobile) */
.pharmacy-cities-dropdown {
    display: none;
    position: relative;
    width: 100%;
}

.pharmacy-cities-dropdown-wrapper {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pharmacy-cities-dropdown-trigger {
    width: 50%;
    padding: 0.475rem 1rem;
    background: transparent;
    border: 0.0625rem solid #979797;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1rem;
    color: #344863;
    font-weight: 400;
    text-align: left;
}

.pharmacy-cities-dropdown-text {
    flex: 1;
}

.pharmacy-cities-dropdown-arrow {
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    color: #344863;
}

.pharmacy-cities-dropdown.active .pharmacy-cities-dropdown-arrow {
    transform: rotate(180deg);
}

.pharmacy-cities-dropdown-menu {
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
    border-top: 0.0625rem solid #e4e9f2;
}

.pharmacy-cities-dropdown.active .pharmacy-cities-dropdown-menu {
    max-height: 19.25rem;
    overflow-y: auto;
}

.pharmacy-cities-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #344863;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 0.0625rem solid #f0f2f5;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pharmacy-cities-dropdown-item:last-child {
    border-bottom: none;
}

.pharmacy-cities-dropdown-item:hover {
    background-color: #f0f7f1;
    color: #30734C;
    text-decoration: none;
}

.pharmacy-cities-dropdown-item--active {
    background-color: #30734C;
    color: #fff !important;
    font-weight: 600;
}

.pharmacy-cities-dropdown-item--active:hover {
    background-color: #245a3a;
}

.pharmacy-cities-dropdown-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #30734C;
    border: 0.0625rem solid #979797;
    border-radius: 0.125rem;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    position: relative;
}

.pharmacy-cities-dropdown-checkbox:checked {
    background-color: #30734C;
    border-color: #30734C;
}

.pharmacy-cities-dropdown-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}

.pharmacy-cities-dropdown-label {
    flex: 1;
    font-size: 1rem;
    color: #344863;
    cursor: pointer;
    user-select: none;
}

.pharmacy-cities-dropdown-menu::-webkit-scrollbar {
    width: 0.375rem;
}

.pharmacy-cities-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.5rem;
}

.pharmacy-cities-dropdown-menu::-webkit-scrollbar-thumb {
    background: #30734C;
    border-radius: 0.5rem;
}

.pharmacy-cities-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #245a3a;
}

/* Mobile responsive - 31.25rem (500px) and less */
@media (max-width: 500px) {
    .pharmacy-cities-list {
        display: none !important;
    }
    
    .pharmacy-cities-dropdown {
        display: block;
    }
    
    .pharmacy-detail-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.25rem;
    }
    
    .pharmacy-detail-cities {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .pharmacy-detail-gallery {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
    }
    
    .pharmacy-detail-main {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
    }
    
    /* Галерея остается в одну строку */
    .pharmacy-gallery {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 20rem;
    }
    
    .pharmacy-gallery__main {
        height: 19.2rem;
        min-height: 19.2rem;
    }
    
    .pharmacy-gallery__main-image {
        height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .pharmacy-gallery__thumbnails-wrapper {
        margin-top: 1rem;
        height: auto;
    }
    
    .pharmacy-gallery__thumbnails {
        overflow-x: auto;
        overflow-y: hidden;
    }
    .pharmacy-page-title {
        font-size: 1.2rem;
    
    }
    .pharmacy-info-label{
        font-size: 0.8rem;
    }
    .pharmacy-info-value{
        font-size: 0.8rem;
    }
}
