:root {
    --histogram-bar: rgba(106,79,182,0.3);
    --histogram-bar-active: rgba(106,79,182,1);
}

.organization-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.detail-container {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 20px;
}

.detail-left {
    min-width: 0;
}

.detail-right {
    min-width: 0;
}

.org-header {
    display: flex;
    gap: 20px;
}

.org-categories {
    display: flex;
    gap: 5px;
    align-items: center;
}

.org-categories a {
    margin: 0;
}

.org-title-section {
    flex: 1;
    min-width: 0;
    gap: 5px;
    display: flex;
    flex-flow: column;
}

.org-title-section .org-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
    display: flex;
    flex-flow: column;
    gap: 5px;
}

.org-title-section .rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.org-title-section .stars {
    display: flex;
    gap: 2px;
}

.org-title-section .star {
    font-size: 14px;
    color: #cccccc;
}

.org-title-section .star.filled {
    color: #ffd700;
}

.info-block {
    border: 1px solid #d5d5d5;
    padding: 20px;
    margin-bottom: 20px;
    background: #ffffff;
}

.info-block h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333333;
}

.description-content,
.services-content,
.features-content {
    color: #666666;
}

.services-list,
.features-list {
    margin: 0;
    padding-left: 20px;
    color: #666666;
    line-height: 1.6;
}

.services-list li,
.features-list li {
    margin-bottom: 8px;
}

.services-text,
.features-text {
    color: #666666;
    line-height: 1.6;
}

.map-panorama-section {
    border: 1px solid #d5d5d5;
    background: #ffffff;
    margin-bottom: 20px;
}

.view-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.view-controls {
    display: flex;
    flex-flow: row;
}

.view-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.view-content.active {
    opacity: 1;
    visibility: visible;
}

.links-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.links-list li {
    margin-bottom: 8px;
}

.links-list a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
}

.links-list a:hover {
    text-decoration: underline;
}

.hours-text {
    font-weight: 500;
}

.similar-list {
    display: flex;
    flex-flow: column;
    gap: 20px;
    margin-bottom: 40px;
}

.pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0;
    margin: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 14px;
    font-size: 12px;
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-decoration: none;
    border-radius: 0;
    margin: 0;
    line-height: 1.6;

    border: 1px solid hsl(from var(--secondary-color) h s 80%);
    background: hsl(from var(--secondary-color) h s 97%);
    color: hsl(from var(--secondary-color) h s 40%);
}

.pill.link {
    border: 1px solid hsl(from var(--link-color) h s 70%);
    background: hsl(from var(--link-color) h s 97%);
    color: var(--link-color);
}

.org-button {
    width: 100%;
}

.org-button {
    border-top: none;
    border-left: none;
    border-right: none;
}

.org-header .org-logo {
    width: 100px;
    height: 100px;
}

.org-header h1 {
    margin: 0;
}

.info-block-spoiler {
    position: relative;
}

.info-block-spoiler h3 {
    margin: 0;
}

.spoiler-toggle {
    background: none;
    border: none;
    cursor: pointer;
    float: right;
    width: 28px;
    margin-left: 10px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.spoiler-toggle i {
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.spoiler-toggle[aria-expanded="true"] i {
    transform: rotate(-180deg);
}

.spoiler-toggle[aria-expanded="false"] i {
    transform: rotate(0deg);
}

.spoiler-content {
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.1s ease;
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
    margin-top: 15px;
}

.spoiler-content.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    padding: 0 !important;
    margin: 0;
}

.visitors-histogram-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

#visitors-histogram-weekday-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visitors-histogram-weekday-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 18px;
    color: black;
    cursor: pointer;
    transition: color 0.2s;
}

#visitors-histogram-weekday-label,
.visitors-histogram-weekday-btn {
    cursor: pointer;
}
#visitors-histogram-weekday-label:hover,
.visitors-histogram-weekday-btn:hover {
    color: #6a4fb6;
}

ymaps[class*='panorama-control__copyright'] {
    display: block !important;
}

ymaps[class*='panorama-control__'] {
    display: none;
}

.panorama-view.missing {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    font-size: 20px;
    gap: 15px;
    color: white;
    text-align: center;

    background-image: url("missing_panorama.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.panorama-view.missing span, .panorama-view.missing i {
    filter: drop-shadow(0px 0px 5px #000);
}

.panorama-view.missing i {
    font-size: 45px;
}

.contact-item {
    display: flex;
    flex-flow: row;
    gap: 10px;
}

.contact-item a {
    margin: 0;
}

.contact-content {
    flex-flow: column;
    gap: 12px;
    display: flex;
}
