/*
 * Styles for Single Unit Page
 */

.container {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    margin-block-end: 0px;
    padding: 20px 0px;
    padding-top: 50px;
    column-gap: 2rem;
}

.info-panel {
    flex-basis: 30%;
    flex-shrink: 0;
    /* padding: 16px 24px 10px 24px; */
    overflow-y: auto;
    height: 100%;
    /* border: 2px solid red; */
}

.breadcrumb {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: #f3072c;
    cursor: pointer;
    transition: 0.2s;
}
.breadcrumb:hover {
    color: #bd0722;
}

.title {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: bold;
    font-size: 30px;
    line-height: 1.2;
    color: #000000;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.image-container {
    flex-basis: 70%;
    flex-grow: 1;
    width: 100%;
    position: relative;
}

/* Info panel: partner & content styling */
.info-partner {
    padding: 12px 16px;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    background: rgba(229, 62, 62, 0.04);
}

.info-partner span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.12s ease;
    margin-bottom: 8px;
}

/* Empty partner state */
.partner-empty {
    color: #6b7280;
    font-size: 14px;
}
.partner-empty strong {
    display: block;
    color: #111827;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Each partner row */
.partner-item {
    display: flex;
    gap: 12px;
    align-items: center;
    /* padding: 8px; */
    border-radius: 8px;
}

/* Logo/link area */
.partner-logo img {
    display: block;
    width: 30px;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Placeholder when logo missing */
.partner-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb7185 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

/* Partner meta (name / link) */
.partner-meta {
    display: flex;
    flex: 1;
    min-width: 0;
}
.partner-name,
.partner-name:link,
.partner-name:visited {
    color: #e53e3e;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 8px);
}
.partner-name:hover {
    color: #be3333;
    cursor: pointer;
}

/* Info content area */
.info-content {
    background: transparent;
}

/* Project description */
.project-desc h2 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #111827;
}
.project-desc p {
    margin: 0 0 10px 0;
    color: #374151;
    line-height: 1.6;
}
.project-desc .field-empty {
    color: #9ca3af;
    font-style: italic;
}

/* Meta list (label / value rows) */
.project-meta-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    /* padding: 12px; */
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.03);
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}
.meta-label {
    color: #6b7280;
    font-size: 14px;
    width: 48%;
    font-weight: 600;
}
.meta-value {
    color: #111827;
    font-size: 14px;
    width: 52%;
    text-align: right;
    word-break: break-word;
    font-weight: 500;
}

/* Fallback value style */
.field-empty {
    color: #9ca3af;
    font-style: italic;
}
.no-review-text {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Spotlight review section */
.review-section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    color: #111827;
}

.spotlight-review {
    position: relative;
}
.star-rating::before,
.star-rating::after {
    content: none !important;
    display: none !important;
}
/* Main Card */
.spotlight-card {
    position: relative;
    background: linear-gradient(50deg, #ffffff 0%, #fef2f2 100%);
    border: 1px solid rgba(254, 202, 202, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin: 0.5rem;
    text-align: center;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1;
    transition: all 0.3s ease;
}

.spotlight-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.star-rating {
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    align-items: center;
    width: 100% !important;
}

.star-icon {
    width: 16px;
    height: 16px;
    fill: #e5e7eb;
}
.star-icon.filled {
    fill: #fbbf24;
    color: #fbbf24;
}

.review-message {
    font-family: 'Poppins', serif;
    font-style: italic;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.separator {
    width: 2rem;
    height: 1px;
    background-color: #fecaca; /* red-200 */
    margin: 0 auto 0.5rem auto;
}

.reviewer-name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111827;
}

.reviewer-role {
    display: block;
    font-size: 0.625rem;
    color: #9ca3af;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Responsive: stack info above gallery on small screens */
@media (max-width: 991px) {
    .info-panel {
        flex-basis: 100%;
        order: 1;
        padding-bottom: 8px;
    }
    .image-container {
        flex-basis: 100%;
        order: 2;
    }
    .meta-label,
    .meta-value {
        width: auto;
        text-align: left;
    }
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.dis-slider-wrapper {
    width: 100%;
    margin: 0;
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.dis-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
}

.dis-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f2f4f6;
}

.dis-image-wrapper img {
    object-fit: contain;
}

.dis-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.6s ease-in-out,
        visibility 0.6s ease-in-out;
}

.dis-slide-image.active {
    opacity: 1;
    visibility: visible;
}

.dis-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1a202c;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dis-nav-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.dis-prev-btn {
    left: 16px;
}
.dis-next-btn {
    right: 16px;
}

.dis-bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    padding: 16px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    pointer-events: none;
}

.dis-label-wrapper {
    position: relative;
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.dis-slide-label {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0.4s;
    pointer-events: all;
}

.dis-slide-label.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dis-dots-wrapper {
    text-align: center;
    pointer-events: all;
}

.dis-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
    cursor: pointer;
    padding: 0;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
}

.dis-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dis-dot.active {
    background-color: #e53e3e;
}

@media (max-width: 767px) {
    .dis-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .dis-prev-btn {
        left: 10px;
    }
    .dis-next-btn {
        right: 10px;
    }
    .dis-image-wrapper {
        aspect-ratio: 4 / 3;
    }
}
