    .page-content {
        padding-top: 120px !important;
    }
    .back-link {
        font-weight: 600;
        color: #0d6efd;
        text-decoration: none;
    }
    .back-link:hover {
        text-decoration: underline;
    }
    .school-breadcrumb-stack {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    .school-breadcrumb-card {
        width: 100%;
        flex: 1 1 auto;
        min-width: 0;
    }
    .school-breadcrumb-list {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.55rem 0.35rem;
        list-style: none;
        padding: 0;
        margin: 0;
        max-width: 100%;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    .school-breadcrumb-entry,
    .school-breadcrumb-separator {
        display: inline-flex;
        align-items: center;
        min-width: 0;
    }
    .school-breadcrumb-link,
    .school-breadcrumb-current {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 2.25rem;
        padding: 0.4rem 0.8rem;
        border-radius: 999px;
        line-height: 1.2;
        max-width: 100%;
    }
    .school-breadcrumb-link {
        color: #475569;
        font-size: 0.92rem;
        font-weight: 600;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }
    .school-breadcrumb-link i {
        color: var(--primary-blue-dark);
        font-size: 0.88rem;
    }
    .school-breadcrumb-link:hover,
    .school-breadcrumb-link:focus-visible {
        color: var(--primary-blue-dark);
        text-decoration: none;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(79, 163, 247, 0.16);
        transform: translateY(-1px);
    }
    .school-breadcrumb-current {
        background: transparent;
        color: var(--primary-blue-dark);
        font-size: 0.92rem;
        font-weight: 700;
        box-shadow: none;
        overflow-wrap: anywhere;
        padding-left: 0;
        padding-right: 0;
    }
    .school-breadcrumb-separator {
        color: #cbd5e1;
        font-size: 0.7rem;
    }
    .school-back-row {
        display: flex;
        justify-content: flex-start;
        width: auto;
        flex: 0 0 auto;
        order: -1;
    }
    .school-back-link {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        color: var(--primary-blue-dark);
        font-weight: 700;
        text-decoration: none;
    }
    .school-back-link:hover,
    .school-back-link:focus-visible {
        color: var(--primary-blue);
        text-decoration: none;
    }
    .school-back-link-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border-radius: 999px;
        background: rgba(79, 163, 247, 0.12);
        color: inherit;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
    .school-back-link:hover .school-back-link-icon,
    .school-back-link:focus-visible .school-back-link-icon {
        background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
        color: #ffffff;
        transform: translateX(-2px);
        box-shadow: 0 10px 22px rgba(79, 163, 247, 0.24);
    }
    .main-photo-wrapper {
        border-radius: 1rem;
        overflow: hidden;
        background: #f8f9fb;
    }
    .main-photo-btn {
        display: block;
        padding: 0;
        border: none;
        background: transparent;
        width: 100%;
        cursor: pointer;
    }
    .main-photo-btn:focus {
        outline: none;
        box-shadow: none;
    }
    .main-photo {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: contain;
        background: #f8f9fb;
        display: block;
    }
    .photo-gallery-header {
        border-bottom: none;
        background: linear-gradient(135deg, var(--primary-blue), #1e63ff);
        color: #fff;
        border-radius: 1.25rem 1.25rem 0 0;
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .photo-gallery-header i {
        color: #fff;
        font-size: 1.25rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        padding: 0.5rem;
    }
    .photo-gallery-header h5 {
        color: #fff;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0;
    }
    /* Compact gallery styles for desktop side-by-side layout */
    .photo-gallery-compact {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .photo-gallery-compact .photo-gallery-header {
        padding: 0.75rem 1rem;
        border-radius: 1rem 1rem 0 0;
        flex-shrink: 0;
    }
    .photo-gallery-compact .photo-gallery-header h5 {
        font-size: 0.95rem;
    }
    .photo-gallery-compact .photo-gallery-header i {
        font-size: 1rem;
        padding: 0.4rem;
    }
    .photo-gallery-compact .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 0.5rem !important;
    }
    .photo-gallery-compact .photo-carousel {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
    }
    .photo-gallery-compact .carousel-inner {
        height: 100%;
    }
    .photo-gallery-compact .carousel-item {
        height: 100%;
    }
    .photo-gallery-compact .photo-carousel-btn {
        height: 100%;
        display: block;
    }
    .photo-gallery-compact .photo-carousel-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .photo-gallery-compact .carousel-control-prev,
    .photo-gallery-compact .carousel-control-next {
        width: 30px;
        height: 30px;
        top: 50%;
        transform: translateY(-50%);
    }
    .photo-gallery-compact .carousel-control-prev-icon,
    .photo-gallery-compact .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    .photo-carousel .carousel-item {
        border-radius: 1rem;
        overflow: hidden;
    }
    .photo-carousel-btn {
        display: block;
        border: none;
        background: transparent;
        padding: 0;
        width: 100%;
        cursor: pointer;
    }
    .photo-carousel-btn-full-height {
        height: 100%;
    }
    .photo-carousel-btn:focus {
        outline: none;
        box-shadow: none;
    }
    .photo-carousel-embed {
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    .photo-carousel-image {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        display: block;
    }
    .photo-carousel .carousel-control-prev,
    .photo-carousel .carousel-control-next {
        top: 50%;
        transform: translateY(-50%);
        width: 3rem;
        height: 3rem;
        background: transparent;
        border: none;
        opacity: 1;
        transition: transform 0.2s ease;
        padding: 0;
    }
    .photo-carousel .carousel-control-prev:hover,
    .photo-carousel .carousel-control-next:hover {
        transform: translateY(-50%) scale(1.05);
    }
    .photo-carousel .carousel-control-prev:focus,
    .photo-carousel .carousel-control-next:focus {
        box-shadow: none;
    }
    .photo-carousel .carousel-control-prev-icon,
    .photo-carousel .carousel-control-next-icon {
        width: 100%;
        height: 100%;
        background-size: 70% 70%;
        background-position: center;
        background-repeat: no-repeat;
        filter: none;
    }
    .photo-carousel .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230d6efd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M10.5 3.5 6.5 8l4 4.5'/%3e%3c/svg%3e");
    }
    .photo-carousel .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230d6efd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5.5 3.5 9.5 8l-4 4.5'/%3e%3c/svg%3e");
    }
    .photo-carousel .carousel-indicators {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .photo-carousel .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(13, 110, 253, 0.25);
    }
    .photo-carousel .carousel-indicators .active {
        width: 26px;
        border-radius: 999px;
        background-color: #0d6efd;
    }
    #photoModal .modal-body {
        position: relative;
        background: #000;
    }
    #modalPhoto {
        width: 100%;
        max-height: 80vh;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        background: #000;
    }
    .modal-photo-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 50%;
        border: none;
        background: rgba(13, 110, 253, 0.9);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        z-index: 20;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
    }
    .modal-photo-nav-btn:hover:not(:disabled) {
        background: rgba(79, 163, 247, 1);
        transform: translateY(-50%) scale(1.05);
    }
    .modal-photo-nav-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        box-shadow: none;
    }
    #modalPhotoPrev {
        left: 1.5rem;
    }
    #modalPhotoNext {
        right: 1.5rem;
    }
    .modal-photo-counter {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        z-index: 20;
    }
    .sticky-school-card {
        position: sticky;
        top: 80px;
        z-index: 5;
        width: 100%;
        max-width: 340px;
        max-height: 70vh;
        margin-left: auto;
        align-self: flex-start;
    }
    .sticky-school-card .card {
        border-radius: 1rem;
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
    .sticky-school-card .card-body {
        padding: 0.95rem;
    }
    .sticky-card-photo {
        width: 100%;
        height: 190px;
        object-fit: contain;
        background: #f8f9fb;
    }
    @media (max-width: 576px) {
        .sticky-card-photo {
            height: 170px;
        }
    }
    .sticky-school-card h4 {
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.3;
    }
    .sticky-card-summary {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
        align-items: end;
        column-gap: 0.85rem;
        row-gap: 0.35rem;
        margin-bottom: 0.8rem;
    }
    .sticky-card-title {
        min-width: 0;
        margin-bottom: 0 !important;
    }
    .sticky-card-rating {
        font-size: 0.82rem;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        margin-bottom: 0 !important;
    }
    .sticky-card-rating-score {
        display: flex;
        justify-content: flex-end;
        white-space: nowrap;
    }
    .sticky-card-rating-count {
        display: block;
        margin-top: 0.12rem;
        white-space: nowrap;
    }
    .sticky-card-rating .text-warning i {
        font-size: 0.8rem;
    }
    .sticky-card-rating .fw-semibold {
        font-size: 0.84rem;
    }
    .sticky-card-rating small,
    .sticky-card-rating .text-muted {
        font-size: 0.78rem;
        line-height: 1.3;
    }
    @media (max-width: 340px) {
        .sticky-card-summary {
            grid-template-columns: minmax(0, 1fr);
        }
        .sticky-card-rating {
            justify-self: end;
        }
    }
    .collection-grid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem;
        margin-bottom: 0.5rem;
        flex-wrap: nowrap;
        font-size: 0.84rem;
    }
    .collection-grid-single {
        justify-content: flex-start;
    }
    .collection-grid-right {
        justify-content: center;
    }
    .collection-grid:last-child {
        margin-bottom: 0;
    }
    .collection-action {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        flex: 1 1 auto;
        min-width: 0;
    }
    .collection-action .collection-label {
        margin: 0;
        font-weight: 600;
        color: #0d6efd;
        white-space: nowrap;
        font-size: 0.84rem;
    }
    .sticky-school-card .school-card-heart-btn {
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
        width: 32px !important;
        height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #ffd54f, #ff9800) !important;
        box-shadow: 0 3px 10px rgba(255, 152, 0, 0.35) !important;
        border-radius: 999px !important;
        padding: 0 !important;
    }
    .sticky-school-card .school-card-heart-btn i {
        color: #2c2c2c !important;
        font-size: 0.82rem !important;
    }
    .collection-link {
        color: #0d6efd;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        font-size: 0.84rem;
        line-height: 1.25;
    }
    .collection-link-button {
        background: none;
        border: 0;
        padding: 0;
        text-align: left;
        appearance: none;
        font-family: inherit;
        cursor: pointer;
    }
    .collection-link:hover {
        text-decoration: underline;
    }
    .collection-link-button:focus-visible,
    .inline-claim-link:focus-visible {
        text-decoration: underline;
        outline: none;
    }
    .collection-link i {
        margin-right: 0.35rem;
        font-size: 0.85rem;
    }
    .inline-claim-link:hover {
        text-decoration: underline;
    }
    .rating-stars {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .rating-stars i {
        color: #ffc107;
        font-size: 0.9rem;
    }
    .review-metric {
        background: #f8f9fb;
        border-radius: 12px;
        padding: 12px;
        height: 100%;
    }
    .review-metric .label {
        font-size: 0.7rem;
        text-transform: uppercase;
        color: #6c757d;
        display: block;
        margin-bottom: 4px;
    }
    .review-metric .value {
        font-weight: 600;
    }
    .vendor-school-image {
        height: 160px;
        object-fit: cover;
        border-radius: 12px;
        width: 100%;
    }
    .info-pill {
        background: #f8f9fb;
        border-radius: 12px;
        padding: 16px;
        height: 100%;
    }
    .comparison-thumb {
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 12px;
        background: #f0f2f5;
    }
    .review-tab-nav {
        margin: 0;
        padding: 0 1rem;
    }
    .review-tab-nav .nav-link {
        border: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 1rem;
        background: #fff;
        color: #6c757d;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    .review-tab-nav .nav-link.active {
        color: #212529;
        border-bottom-color: #0d6efd;
        background: #fff;
    }
    .review-tab-nav .nav-link:hover:not(.active) {
        color: #212529;
        border-bottom-color: #0d6efd;
    }
    .review-card {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .review-card .review-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }
    .review-card .d-flex.align-items-start {
        gap: 0.75rem;
    }
    .review-card h6 {
        font-size: 0.875rem;
        margin-bottom: 0.125rem;
        font-weight: 600;
    }
    .review-card small {
        font-size: 0.75rem;
    }
    .review-card p {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    /* Reply styles - smaller than reviews */
    .review-replies-container {
        margin-top: 0.75rem;
        padding: 16px 20px;
        border-top: 1px solid #f0f0f0;
        background: #fafafa;
    }
    
    .review-reply-item {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .review-reply-item img {
        width: 30px !important;
        height: 30px !important;
    }
    
    .review-reply-item strong {
        font-size: 0.8rem;
    }
    
    .review-reply-item small {
        font-size: 0.7rem;
    }
    
    .review-reply-item p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.25rem;
    }
    
    .reply-message-input {
        font-size: 0.875rem;
    }
    
    .review-reply-form {
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .review-reply-form .input-group {
        max-width: 500px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border-radius: 20px;
        overflow: hidden;
        background: white;
    }
    
    .review-reply-form .form-control {
        border: 1px solid #e0e0e0;
        border-right: none;
        border-radius: 20px 0 0 20px;
        padding: 6px 12px;
        font-size: 0.875rem;
    }
    
    .review-reply-form .form-control:focus {
        border-color: #4fa3f7;
        box-shadow: none;
    }
    
    .review-reply-form .btn {
        border-radius: 0 20px 20px 0;
        border-left: none;
        padding: 6px 14px;
    }
    
    .review-replies-list {
        margin-top: 12px;
        max-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .reply-form-container {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
    }
    
    .reply-form-container .input-group {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border-radius: 20px;
        overflow: hidden;
        background: white;
    }
    
    .reply-form-container .form-control {
        border: 1px solid #e0e0e0;
        border-right: none;
        border-radius: 20px 0 0 20px;
        padding: 6px 12px;
        font-size: 0.875rem;
    }
    
    .reply-form-container .form-control:focus {
        border-color: #4fa3f7;
        box-shadow: none;
    }
    
    .reply-form-container .btn {
        border-radius: 0 20px 20px 0;
        border-left: none;
        padding: 6px 14px;
    }
    
    .nested-replies-container {
        margin-top: 0;
        margin-left: 0;
        padding-top: 8px;
    }

    /* First level only: indent under the root review-reply-item */
    .review-replies-list > .review-reply-item > .nested-replies-container {
        margin-left: 20px;
    }

    /* All deeper levels: no additional indent */
    .review-replies-list > .review-reply-item > .nested-replies-container .nested-replies-container {
        margin-left: 0 !important;
        padding-top: 0;
    }

    /* Remove bottom border and padding for nested reply items */
    .nested-replies-container .review-reply-item {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 12px;
    }
    
    .nested-replies-container .review-reply-item:last-child {
        margin-bottom: 0;
    }
    
    .show-more-replies-btn {
        transition: color 0.2s ease;
    }
    
    .show-more-replies-btn:hover {
        color: #4fa3f7 !important;
        text-decoration: underline !important;
    }
    
    .review-status-badge {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
        padding: 0.2rem 0.4rem;
    }
    .review-overall-badge {
        cursor: pointer;
        text-decoration: none;
    }
    .review-rating-tag {
        display: inline-flex;
        align-items: baseline;
        gap: 2px;
        flex-shrink: 0;
        font-weight: 400;
    }
    .review-rating-tag .review-rating-value {
        color: #4fa3f7;
        font-size: 17px;
        font-weight: 400;
    }
    .review-rating-tag .review-rating-scale {
        color: #999;
        font-size: 11px;
        font-weight: 400;
    }
    .review-rating-tag .review-rating-label-text {
        color: #4fa3f7;
        font-size: 11px;
        font-weight: 400;
    }
    .review-helpful-btn {
        transition: all 0.2s ease;
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    .review-helpful-btn i {
        font-size: 0.65rem;
    }
    .review-helpful-btn:hover {
        transform: translateY(-1px);
    }
    .review-helpful-btn.active {
        background-color: var(--bs-success);
        border-color: var(--bs-success);
        color: #fff;
    }
    .review-helpful-count {
        font-size: 0.7rem;
    }
    .review-helpful-count i {
        font-size: 0.65rem;
    }
    .content-report-btn {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid #f2c2bd;
        background: #fff8f7;
        color: #c24b41;
        transition: all 0.2s ease;
        padding: 0;
        flex-shrink: 0;
    }
    .content-report-btn:hover {
        background: #fdeceb;
        color: #a5342b;
        transform: translateY(-1px);
    }
    .content-report-btn i {
        font-size: 0.72rem;
    }
    .content-report-btn.reported {
        background: #fdeceb;
        border-color: #ebb1ab;
        color: #a5342b;
    }
    .reply-report-btn {
        width: 24px;
        height: 24px;
    }
    .reply-report-btn i {
        font-size: 0.62rem;
    }
    #reviewReportModal .modal-content {
        border: 0;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    }
    #reviewReportModal .modal-header {
        background: linear-gradient(135deg, #fff4f2 0%, #fff 100%);
        border-bottom: 1px solid rgba(194, 75, 65, 0.12);
    }
    #reviewReportModal textarea {
        min-height: 140px;
        resize: vertical;
    }
    .review-show-original-btn {
        font-size: 0.6rem;
        padding: 0.1rem 0.2rem;
    }
    .review-show-original-btn i {
        font-size: 0.55rem;
    }
    .external-review-show-original-btn {
        font-size: 0.6rem;
        padding: 0.1rem 0.2rem;
    }
    .external-review-show-original-btn i {
        font-size: 0.55rem;
    }
    .reply-show-original-btn {
        font-size: 0.6rem;
        padding: 0;
        margin-top: -0.5rem;
        display: block;
    }
    .reply-show-original-btn i {
        font-size: 0.55rem;
    }
    .review-media-thumbnail {
        width: 60px;
        height: 60px;
        cursor: pointer;
    }
    .review-media-image-trigger {
        object-fit: cover;
    }
    .review-media-video-trigger {
        position: relative;
        overflow: hidden;
        border-radius: 0.25rem;
    }
    .review-media-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }
    .review-media-play-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }
    .review-media-play-icon {
        font-size: 24px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    .review-rating-progress-sm {
        width: 40px;
        height: 4px;
    }
    .school-page-content,
    .school-layout-row,
    .school-main-column {
        overflow: visible !important;
    }
    .school-layout-row,
    .school-main-column,
    .modal-media-container {
        position: relative;
    }
    .school-back-row,
    .school-back-link {
        justify-content: flex-start !important;
    }
    .school-back-col {
        flex: 0 0 auto !important;
        margin-right: auto !important;
        margin-left: 0 !important;
    }
    #reviewLoading,
    #suggestEditFormContainer,
    .modal-photo-element,
    .modal-youtube-container {
        display: none;
    }
    .external-review-platform-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    .suggest-edit-item-icon {
        width: 24px;
    }
    .modal-close-elevated {
        z-index: 30;
    }
    .modal-media-container {
        width: 100%;
        min-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .modal-photo-element {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }
    .modal-youtube-container {
        width: 100%;
        max-width: 100%;
    }
    .modal-youtube-ratio {
        max-width: 100%;
        margin: 0 auto;
    }
    .modal-youtube-iframe {
        width: 100%;
        height: 100%;
    }
    .tooltip.review-rating-tooltip .tooltip-inner {
        max-width: 320px;
        padding: 0;
        border-radius: 12px;
        text-align: left;
        background: #fff;
        color: #212529;
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    }
    .review-rating-tooltip-container {
        padding: 1rem 1.05rem;
    }
    .review-rating-tooltip-header {
        font-weight: 700;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        padding-bottom: 0.5rem;
    }
    .review-rating-tooltip-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 1.1rem;
    }
    .review-rating-tooltip-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    .review-rating-tooltip-item .label {
        color: #6c757d;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-weight: 500;
    }
    .review-rating-tooltip-item .value {
        font-weight: 600;
        color: #0d6efd;
    }
    .review-rating-tooltip-footer {
        margin-top: 0.9rem;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        font-size: 0.8rem;
        color: #6c757d;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }
    @media (max-width: 991.98px) {
        /* Desktop sticky card - keep original behavior */
        .d-lg-block.sticky-school-card {
            position: static;
            top: auto;
            max-width: none;
            max-height: none;
            margin-left: 0;
            margin-bottom: 1.5rem;
        }
        .d-lg-block.sticky-school-card .card {
            overflow: visible;
        }
        .photo-carousel-image {
            aspect-ratio: 3/2;
        }
        .photo-carousel .carousel-control-prev,
        .photo-carousel .carousel-control-next {
            width: 2.75rem;
            height: 2.75rem;
        }
    }
    @media (max-width: 768px) {
        .photo-carousel-image {
            aspect-ratio: 16/9;
        }
        #modalPhotoPrev,
        #modalPhotoNext {
            width: 3rem;
            height: 3rem;
            font-size: 1.2rem;
        }
    }
    @media (max-width: 576px) {
        .photo-carousel-image {
            aspect-ratio: 4/3;
        }
        .modal-photo-counter {
            right: 0.75rem;
            bottom: 0.75rem;
        }
    }
    
    /* Prevent horizontal scroll on mobile */
    @media (max-width: 991.98px) {
        html, body {
            overflow-x: hidden !important;
            max-width: 100vw !important;
        }
        .container, .container-fluid {
            max-width: 100% !important;
            overflow-x: hidden !important;
            overflow-y: visible !important; /* Allow sticky to work */
        }
        .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
            overflow: visible !important; /* Allow sticky to work */
        }
        [class*="col-"] {
            padding-left: 0.5rem !important;
            padding-right: 0.5rem !important;
        }
        img {
            max-width: 100% !important;
            height: auto !important;
        }
        /* Prevent elements from causing overflow */
        .card-body,
        .card-header,
        section {
            max-width: 100% !important;
            overflow-x: hidden !important;
        }
        
        /* Ensure sticky container parent doesn't have overflow hidden */
        .col-xl-8.col-lg-7,
        .row.g-4 {
            overflow: visible !important;
        }
        /* Ensure no negative margins cause overflow */
        .row.g-2,
        .row.g-3,
        .row.g-4 {
            margin-left: -0.25rem !important;
            margin-right: -0.25rem !important;
        }
        /* Fix for Bootstrap gutters */
        .g-2 > *,
        .g-3 > *,
        .g-4 > * {
            padding-left: 0.25rem !important;
            padding-right: 0.25rem !important;
        }
    }
    
    /* Mobile-specific styles for compact design */
    @media (max-width: 991.98px) {
        /* Reduce top padding on mobile */
        .page-content {
            padding-top: 80px !important;
        }
        
        /* Make "About This School" section font smaller on mobile */
        /* Target the div that contains "about this school" text - it comes after key facts and before vendor info */
        #schoolInfoSection .card-body > div:not(.mb-3):not(.mt-4):not(.row) p,
        #schoolInfoSection .card-body > div:not(.mb-3):not(.mt-4):not(.row) ul,
        #schoolInfoSection .card-body > div:not(.mb-3):not(.mt-4):not(.row) li {
            font-size: 0.75rem !important;
            line-height: 1.4 !important;
        }
        
        /* More specific: target paragraphs and list items in about section */
        #schoolInfoSection .card-body p.text-muted.mb-0,
        #schoolInfoSection .card-body ul.mb-0 li,
        #schoolInfoSection .card-body ul.ps-3 li {
            font-size: 0.75rem !important;
            line-height: 1.4 !important;
        }
        
        /* Make all reply input boxes thinner on mobile - even thinner */
        .reply-message-input,
        .reply-message-input-nested,
        .review-reply-form .form-control,
        .reply-form-container .form-control {
            padding: 3px 8px !important;
            font-size: 0.75rem !important;
            min-height: 28px !important;
            height: 28px !important;
            line-height: 1.2 !important;
        }
        
        .review-reply-form .btn,
        .reply-form-container .btn {
            padding: 3px 10px !important;
            font-size: 0.75rem !important;
            min-height: 28px !important;
            height: 28px !important;
            line-height: 1.2 !important;
        }
        
        .review-reply-form .btn i,
        .reply-form-container .btn i {
            font-size: 0.7rem !important;
        }
        
        .review-reply-form .input-group,
        .reply-form-container .input-group {
            max-height: 28px !important;
        }
        
        /* Make show original button smaller on mobile */
        .review-show-original-btn,
        .external-review-show-original-btn,
        .reply-show-original-btn {
            font-size: 0.65rem !important;
            padding: 0.05rem 0.15rem !important;
        }
        
        .review-show-original-btn i,
        .external-review-show-original-btn i,
        .reply-show-original-btn i {
            font-size: 0.6rem !important;
        }
        
        /* Make photo gallery container smaller on mobile */
        .photo-carousel-card.d-lg-none {
            max-height: 300px !important;
        }
        
        .photo-carousel-card.d-lg-none .card-body {
            padding: 0.5rem !important;
            max-height: 280px !important;
            overflow: hidden !important;
        }
        
        .photo-carousel-card.d-lg-none .photo-carousel {
            max-height: 280px !important;
            height: 280px !important;
        }
        
        .photo-carousel-card.d-lg-none .carousel-inner {
            max-height: 280px !important;
            height: 280px !important;
        }
        
        .photo-carousel-card.d-lg-none .carousel-item {
            max-height: 280px !important;
            height: 280px !important;
        }
        
        .photo-carousel-card.d-lg-none .photo-carousel-image {
            max-height: 280px !important;
            height: 280px !important;
            object-fit: cover !important;
        }
        
        .photo-carousel-card.d-lg-none .photo-gallery-header {
            padding: 0.5rem 0.75rem !important;
        }
        
        .photo-carousel-card.d-lg-none .photo-gallery-header h5 {
            font-size: 0.85rem !important;
            margin-bottom: 0 !important;
        }
        
        .photo-carousel-card.d-lg-none .photo-gallery-header i {
            font-size: 0.8rem !important;
        }
        
        /* Mobile top pinning is handled by a lightweight JS threshold toggle to avoid iOS repaint bugs. */
        .sticky-school-card.d-lg-none {
            position: static !important;
            top: auto !important;
            left: auto !important;
            z-index: auto !important;
            background: transparent !important;
            box-shadow: none !important;
            margin-bottom: 0.75rem !important;
            margin-top: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            align-self: stretch !important;
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            transform: none !important;
        }
        .sticky-school-card.d-lg-none.is-mobile-pinned {
            position: fixed !important;
            top: var(--school-mobile-sticky-top, 72px) !important;
            left: var(--school-mobile-pinned-left, 0px) !important;
            width: var(--school-mobile-pinned-width, 100%) !important;
            max-width: var(--school-mobile-pinned-width, 100%) !important;
            z-index: 60 !important;
        }
        .mobile-sticky-card-spacer {
            display: none;
            width: 100%;
            height: 0;
            pointer-events: none;
        }
        .mobile-sticky-card-spacer.is-active {
            display: block;
        }
        .sticky-school-card .card {
            border-radius: 0.75rem;
            box-shadow: none;
            width: 100%;
            max-height: none !important;
            overflow: visible !important;
            padding: 0 !important;
        }
        .sticky-school-card.d-lg-none.is-mobile-pinned .card {
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14) !important;
        }
        .sticky-school-card .card-body {
            padding: 0.65rem !important;
        }
        .sticky-school-card h4 {
            font-size: 0.72rem !important;
            line-height: 1.2;
        }
        .sticky-card-summary {
            grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
            column-gap: 0.5rem !important;
            row-gap: 0.25rem !important;
            margin-bottom: 0.45rem !important;
        }
        .sticky-card-rating {
            font-size: 0.62rem !important;
        }
        .sticky-card-rating .text-warning i {
            font-size: 0.56rem !important;
        }
        .sticky-card-rating .fw-semibold {
            font-size: 0.62rem !important;
        }
        .sticky-card-rating small,
        .sticky-card-rating .text-muted {
            font-size: 0.54rem !important;
        }
        .collection-grid {
            font-size: 0.62rem !important;
            gap: 0.3rem !important;
            margin-bottom: 0.3rem !important;
            flex-wrap: wrap !important; /* Allow wrapping on small screens */
        }
        .collection-action {
            gap: 0.3rem !important;
        }
        .collection-label {
            font-size: 0.62rem !important;
            white-space: normal !important;
        }
        .collection-link {
            font-size: 0.62rem !important;
            white-space: normal !important; /* Allow text to wrap */
            word-break: break-word !important; /* Break long words if needed */
            min-width: 0 !important; /* Allow flex item to shrink below content size */
        }
        .sticky-school-card .school-card-heart-btn {
            width: 22px !important;
            height: 22px !important;
        }
        .sticky-school-card .school-card-heart-btn i {
            font-size: 0.58rem !important;
        }
        
        /* School information section - smaller fonts above key facts */
        #schoolInfoSection .card-body .row > div {
            margin-bottom: 0.5rem;
        }
        
        /* Force two-column layout for school info sections (except address, vision, mission, about, vendor) */
        #schoolInfoSection .card-body .row.g-3 > .col-6 {
            flex: 0 0 50% !important;
            max-width: 50% !important;
            width: 50% !important;
        }
        #schoolInfoSection .text-muted.small {
            font-size: 0.6rem !important;
            margin-bottom: 0.15rem;
        }
        #schoolInfoSection .fw-semibold {
            font-size: 0.7rem !important;
        }
        #schoolInfoSection .mb-3 {
            margin-bottom: 0.75rem !important;
        }
        #schoolInfoSection .mb-2 {
            margin-bottom: 0.4rem !important;
        }
        #schoolInfoSection .list-unstyled li {
            font-size: 0.65rem !important;
        }
        
        /* Key facts - smaller and 2 columns */
        .key-fact-item {
            padding: 0.35rem !important;
        }
        .key-fact-label {
            font-size: 0.5rem !important;
            margin-bottom: 0.15rem;
        }
        .key-fact-value {
            font-size: 0.6rem !important;
            line-height: 1.15;
            word-break: break-word;
        }
        
        /* Highlights and Facilities - smaller, 3 per row */
        #highlightsSection .row > div,
        #facilitiesSection .row > div {
            padding-left: 0.25rem !important;
            padding-right: 0.25rem !important;
        }
        .highlight-item, .facility-item {
            padding: 0.35rem !important;
            gap: 0.35rem !important;
        }
        .highlight-icon, .facility-icon {
            font-size: 0.7rem !important;
            min-width: 0.85rem;
        }
        .highlight-text, .facility-text {
            font-size: 0.6rem !important;
            line-height: 1.2;
        }
        
        /* Compare schools - side by side, smaller, fix overflow */
        .comparison-card {
            padding: 0.4rem !important;
        }
        .comparison-thumb {
            width: 40px !important;
            height: 40px !important;
            flex-shrink: 0;
        }
        .comparison-card .d-flex.align-items-center {
            gap: 0.5rem !important;
            margin-bottom: 0.5rem !important;
        }
        .comparison-school-name {
            font-size: 0.6rem !important;
            line-height: 1.15;
            margin-bottom: 0.2rem !important;
            word-break: break-word;
            overflow-wrap: break-word;
        }
        .comparison-card .text-warning {
            font-size: 0.5rem !important;
        }
        .comparison-card .text-warning i {
            font-size: 0.5rem !important;
        }
        .comparison-card .d-flex.align-items-center.gap-2 {
            gap: 0.25rem !important;
        }
        .comparison-card .ms-1 {
            margin-left: 0.15rem !important;
            font-size: 0.5rem !important;
        }
        .comparison-card .small {
            font-size: 0.5rem !important;
        }
        .comparison-card .text-muted {
            font-size: 0.5rem !important;
        }
        .comparison-metric {
            padding: 0.3rem !important;
        }
        .comparison-metric-label {
            font-size: 0.5rem !important;
            margin-bottom: 0.1rem;
            line-height: 1.1;
            word-break: break-word;
        }
        .comparison-metric-value {
            font-size: 0.6rem !important;
            line-height: 1.2;
        }
        
        /* Review section header - smaller */
        #fullReviewSection .card-header h5 {
            font-size: 0.75rem !important;
        }
        #fullReviewSection .card-header i {
            font-size: 0.7rem !important;
        }
        #fullReviewSection .btn-sm {
            font-size: 0.65rem !important;
            padding: 0.2rem 0.5rem !important;
        }
        
        /* Review tabs - smaller */
        .review-tab-nav .nav-link {
            font-size: 0.7rem !important;
            padding: 0.5rem 0.75rem !important;
        }
        .review-tab-nav .nav-link i {
            font-size: 0.65rem !important;
        }
        
        /* Review section - smaller ratings */
        .review-rating-display {
            font-size: 1.5rem !important;
        }
        .review-rating-display .smarttag-score {
            --smarttag-score-size: 1.5rem;
        }
        .review-star-icon {
            font-size: 0.75rem !important;
        }
        .review-verified-text {
            font-size: 0.55rem !important;
        }
        .review-verified-text i {
            font-size: 0.5rem !important;
        }
        .review-rating-item {
            padding: 0.25rem !important;
        }
        .review-rating-icon {
            font-size: 0.6rem !important;
        }
        .review-rating-label {
            font-size: 0.55rem !important;
        }
        .review-rating-value {
            font-size: 0.6rem !important;
        }
        .review-rating-progress {
            width: 25px !important;
            height: 2.5px !important;
        }
        
        /* Review keywords - 3 per row */
        .review-keywords-title {
            font-size: 0.75rem !important;
            margin-bottom: 0.5rem !important;
        }
        .review-keywords-title i {
            font-size: 0.7rem !important;
        }
        .review-keywords-container {
            display: grid !important;
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 0.35rem !important;
        }
        .review-keyword-badge {
            font-size: 0.6rem !important;
            padding: 0.2rem 0.4rem !important;
            line-height: 1.2;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* Sort reviews - inline */
        .review-sort-container {
            flex-wrap: nowrap;
            gap: 0.5rem;
            align-items: center;
        }
        .review-sort-label {
            font-size: 0.7rem !important;
            white-space: nowrap;
            margin-bottom: 0 !important;
        }
        .review-sort-select {
            font-size: 0.7rem !important;
            padding: 0.25rem 1.75rem 0.25rem 0.5rem !important;
            flex: 1;
            min-width: 0;
        }
        .review-count-text {
            font-size: 0.65rem !important;
        }
        
        /* Photo gallery header - smaller */
        .photo-gallery-header {
            padding: 0.75rem 1rem !important;
        }
        .photo-gallery-header h5 {
            font-size: 0.8rem !important;
        }
        .photo-gallery-header i {
            font-size: 0.9rem !important;
            padding: 0.35rem !important;
        }
        
        /* User review section - smaller */
        .review-card {
            padding-bottom: 0.75rem !important;
            margin-bottom: 0.75rem !important;
        }
        .review-avatar {
            width: 28px !important;
            height: 28px !important;
        }
        .review-card .d-flex.align-items-start {
            gap: 0.5rem !important;
        }
        .review-card h6 {
            font-size: 0.65rem !important;
            margin-bottom: 0.15rem !important;
        }
        .review-card small {
            font-size: 0.55rem !important;
        }
        .review-overall-badge .review-rating-value {
            font-size: 16px;
        }
        .review-helpful-count {
        font-size: 0.65rem !important;
    }
    .review-helpful-count i {
        font-size: 0.6rem !important;
        }
        .review-card p {
            font-size: 0.65rem !important;
            line-height: 1.4;
            margin-top: 0.5rem !important;
            margin-bottom: 0.5rem !important;
        }
        .review-photos img {
            width: 60px !important;
            height: 60px !important;
        }
        .review-helpful-btn {
            font-size: 0.55rem !important;
            padding: 0.15rem 0.4rem !important;
        }
        .review-helpful-btn i {
            font-size: 0.5rem !important;
        }
        .content-report-btn {
            width: 26px;
            height: 26px;
        }
        .content-report-btn i {
            font-size: 0.62rem !important;
        }
        .review-status-badge {
            font-size: 0.55rem !important;
            padding: 0.15rem 0.35rem !important;
        }
        
        /* Back button - smaller and ensure left alignment */
        .page-content .row.align-items-center {
            justify-content: flex-start !important;
            text-align: left !important;
        }
        .page-content .row.align-items-center .col-auto {
            flex: 0 0 auto !important;
            width: auto !important;
            margin-right: auto !important;
            margin-left: 0 !important;
        }
        .back-link {
            font-size: 0.7rem !important;
            justify-content: flex-start !important;
            text-align: left !important;
        }
        .back-link i {
            font-size: 0.65rem !important;
        }
        .school-breadcrumb-stack {
            gap: 0.75rem;
            align-items: flex-start;
        }
        .school-breadcrumb-list {
            display: flex;
            width: 100%;
            padding: 0;
            gap: 0.45rem 0.25rem;
        }
        .school-breadcrumb-entry.is-current {
            flex-basis: 100%;
        }
        .school-breadcrumb-link,
        .school-breadcrumb-current {
            min-height: 2rem;
            font-size: 0.78rem;
            padding: 0.35rem 0.5rem;
        }
        .school-breadcrumb-current {
            padding-left: 0;
            padding-right: 0;
        }
        .school-breadcrumb-separator {
            font-size: 0.6rem;
        }
        .school-back-link {
            font-size: 0.78rem !important;
        }
        .school-back-link-icon {
            width: 1.75rem;
            height: 1.75rem;
        }
        
        /* You might like section - smaller */
        #recommendationsSection .vendor-school-image {
            height: 120px !important;
        }
        #recommendationsSection h6 {
            font-size: 0.65rem !important;
        }
        #recommendationsSection .text-warning i {
            font-size: 0.6rem !important;
        }
        #recommendationsSection .small {
            font-size: 0.55rem !important;
        }
        #recommendationsSection .text-muted {
            font-size: 0.55rem !important;
        }
        #recommendationsSection .p-3 {
            padding: 0.5rem !important;
        }
        
        /* General mobile shrinking - coordinated sizing */
        .card-header h5 {
            font-size: 0.75rem !important;
        }
        .card-header i {
            font-size: 0.7rem !important;
        }
        .page-title {
            font-size: 1rem !important;
        }
        .badge {
            font-size: 0.6rem !important;
            padding: 0.2rem 0.4rem !important;
        }
        .card-body {
            padding: 0.75rem !important;
        }
        .card-header {
            padding: 0.75rem !important;
        }
        .mb-4 {
            margin-bottom: 0.75rem !important;
        }
        .mb-3 {
            margin-bottom: 0.5rem !important;
        }
        
        /* Fix for Samsung Galaxy S8 and similar small screens (360px width) */
        @media (max-width: 375px) {
            .collection-grid {
                flex-wrap: wrap !important;
            }
            .collection-link {
                white-space: normal !important;
                word-break: break-word !important;
                font-size: 0.6rem !important;
                min-width: 0 !important;
            }
        }
    }

.interest-modal-compact .modal-dialog {
    max-width: min(680px, calc(100vw - 18px)) !important;
    margin: 0.45rem auto !important;
}

.interest-modal-compact .modal-content {
    display: flex;
    flex-direction: column;
    border-radius: 10px !important;
    min-height: min(380px, calc(100vh - 20px)) !important;
}

.interest-modal-compact .modal-header,
.interest-modal-compact .modal-body,
.interest-modal-compact .modal-footer {
    padding: 0.45rem 0.58rem !important;
}

.interest-modal-compact .modal-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.interest-modal-compact .modal-header {
    align-items: flex-start;
    padding: 0.72rem 0.7rem 0.52rem !important;
}

.interest-modal-compact .modal-title {
    max-width: calc(100% - 1.75rem);
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

.interest-modal-compact .btn-close {
    transform: scale(0.72);
    transform-origin: center;
    margin: 0 0 0 0.25rem !important;
    padding: 0.2rem !important;
}

.interest-modal-compact .interest-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    font-size: 0.72rem;
}

.interest-modal-compact .interest-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto minmax(104px, 1fr);
    gap: 0.4rem 0.58rem;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.interest-modal-compact .interest-field,
.interest-modal-compact .interest-form-footer {
    margin: 0 !important;
    min-width: 0;
}

.interest-modal-compact .interest-field-full,
.interest-modal-compact .interest-form-footer {
    grid-column: 1 / -1;
}

.interest-modal-compact .interest-field-full {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.interest-modal-compact .interest-form .form-label {
    margin-bottom: 0.14rem !important;
    font-size: 0.71rem !important;
    line-height: 1.1 !important;
}

.interest-modal-compact .interest-form .form-control {
    min-height: 29px !important;
    padding: 0.18rem 0.44rem !important;
    font-size: 0.71rem !important;
    line-height: 1.15 !important;
    border-radius: 0.42rem !important;
}

.interest-modal-compact .interest-form textarea.form-control {
    flex: 1 1 auto;
    min-height: 88px !important;
    resize: none;
}

.interest-modal-compact .interest-form .form-control::placeholder {
    font-size: 0.68rem;
}

.interest-modal-compact .interest-form small,
.interest-modal-compact .interest-form .text-muted,
.interest-modal-compact .interest-form .form-text {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.6rem !important;
    line-height: 1.15 !important;
}

.interest-modal-compact .interest-form-footer,
.interest-modal-compact .modal-footer {
    gap: 0.26rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.interest-modal-compact .interest-form-footer {
    padding-top: 0.14rem !important;
}

.interest-modal-compact .modal-footer .btn {
    margin: 0 !important;
    padding: 0.2rem 0.42rem !important;
    font-size: 0.62rem !important;
    line-height: 1.1 !important;
    border-radius: 0.38rem !important;
    white-space: normal !important;
    text-align: center;
}

@media (max-width: 575.98px) {
    .interest-modal-compact .modal-dialog {
        max-width: calc(100vw - 10px) !important;
        margin: 0.3rem auto !important;
    }

    .interest-modal-compact .interest-form {
        min-height: auto;
    }

    .interest-modal-compact .interest-form-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0.34rem;
    }

    .interest-modal-compact .interest-field-full,
    .interest-modal-compact .interest-form-footer {
        grid-column: auto;
    }
}

/* AI Review Summary Styles */
#aiReviewSummarySection {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.ai-summary-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 150px;
}

.ai-summary-positive,
.ai-summary-negative {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid;
}

.ai-summary-positive {
    border-left-color: #28a745;
    background: #f0f9f4;
}

.ai-summary-negative {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.ai-summary-positive p,
.ai-summary-negative p {
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Desktop: Normal size */
.ai-summary-icon {
    font-size: 1.2rem;
}

.ai-summary-text {
    font-size: 1rem;
}

/* Mobile: Smaller size */
@media (max-width: 991.98px) {
    .ai-summary-icon {
        font-size: 0.9rem !important;
    }
    
    .ai-summary-text {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    .ai-summary-positive,
    .ai-summary-negative {
        padding: 0.75rem !important;
    }
    
    .ai-summary-content {
        padding: 1rem !important;
    }
}

#aiReviewSummarySection .btn-group .btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Mobile: Smaller no reviews message */
@media (max-width: 991.98px) {
    .no-reviews-message {
        padding: 2rem 1rem !important;
    }
    
    .no-reviews-icon {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .no-reviews-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .no-reviews-text {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }
    
    .no-reviews-btn {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .no-reviews-btn i {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 767.98px) {
    .school-breadcrumb-card {
        display: none !important;
    }
}

/* ===== Agoda-Style Photo Strip ===== */
.school-photo-strip {
    position: relative;
    display: flex;
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    background: #111;
    cursor: pointer;
}

.photo-strip-main {
    flex: 0 0 58%;
    position: relative;
    overflow: hidden;
}

.photo-strip-main-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

.photo-strip-main-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.photo-strip-main-btn:hover img {
    transform: scale(1.03);
}

.photo-strip-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.62);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.photo-strip-badge:hover {
    background: rgba(0, 0, 0, 0.85);
}

.photo-strip-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    overflow: hidden;
}

.photo-strip-thumb-btn {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: #2a2a4a;
    cursor: pointer;
    overflow: hidden;
}

.photo-strip-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.photo-strip-thumb-btn:hover img {
    transform: scale(1.05);
}

.photo-strip-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    pointer-events: none;
    gap: 5px;
}

.photo-strip-more-overlay i {
    font-size: 1.3rem;
}

@media (max-width: 991.98px) {
    .school-photo-strip {
        height: 220px;
        border-radius: 8px;
    }
    .photo-strip-grid {
        display: none;
    }
    .photo-strip-main {
        flex: 0 0 100%;
    }
}

/* ===== School Gallery Overlay ===== */
.school-gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    flex-direction: column;
}

.school-gallery-overlay.active {
    display: flex;
}

.gallery-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: white;
}

.gallery-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: white;
}

.gallery-panel-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
}

.gallery-close-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.gallery-close-btn:hover {
    background: #f3f4f6;
}

.gallery-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-photo-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    padding: 0;
    background: #e5e7eb;
    display: block;
}

.gallery-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
    display: block;
}

.gallery-photo-item:hover img {
    transform: scale(1.04);
}

.gallery-photo-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.2s;
    pointer-events: none;
}

.gallery-photo-item:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.gallery-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Viewer panel (shown over gallery) */
.gallery-viewer-panel {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-viewer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 80vh;
}

.gallery-viewer-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-viewer-youtube {
    width: 80vw;
    max-width: 900px;
}

.gallery-viewer-back-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    z-index: 11;
}

.gallery-viewer-back-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.gallery-viewer-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 11;
}

.gallery-viewer-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-viewer-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 11;
}

.gallery-viewer-nav-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.gallery-viewer-prev { left: 20px; }
.gallery-viewer-next { right: 20px; }

.gallery-viewer-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 11;
}

@media (max-width: 767.98px) {
    .gallery-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-viewer-prev { left: 8px; }
    .gallery-viewer-next { right: 8px; }
    .gallery-viewer-nav-btn {
        width: 38px;
        height: 38px;
    }
}

/* Review title & comment distinction */
.review-title {
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.5;
    display: block;
    overflow-wrap: break-word;
    word-break: break-all;
    min-width: 0;
}

.review-comment-wrapper {
    margin-top: 6px !important;
    padding: 6px 10px;
    background: #f6f7f9;
    border-radius: 6px;
    overflow-wrap: break-word;
    word-break: break-all;
    min-width: 0;
}

.review-comment-text {
    margin: 0 !important;
    font-size: 12px;
    line-height: 1.55;
    color: #555;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-all;
    min-width: 0;
}
