/* Mobile School Detail Page - Matches test.html mobile design */

.school-detail-mobile {
    background: #f7f9fc;
    min-height: 100vh;
}

/* Banner */
.mobile-banner {
    width: 100%;
    overflow: hidden;
}

.mobile-banner img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

/* Info Section */
.mobile-info-section {
    background: #fff;
    padding: 15px;
}

.mobile-info-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.mobile-info-section .location-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-list span {
    background: #eef1f4;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #222;
    font-weight: 500;
}

.tag-list span.admission-open-tag {
    background: #d7f4d7;
    color: #137a13;
}

.apply-btn-mobile {
    margin-top: 12px;
    background: #ffb400;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
}

.apply-btn-mobile:hover {
    background: #e6a200;
}

/* Navigation Tabs */
.mobile-tabs {
    display: flex;
    overflow-x: auto;
    background: #fff;
    padding: 10px;
    gap: 10px;
}

.mobile-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: #eef1f4;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 14px;
    color: #222;
    font-weight: 500;
    cursor: pointer;
}

.tab-btn.active {
    background: #032b5f;
    color: #fff;
}

/* Sections */
.mobile-section {
    background: #fff;
    margin-top: 14px;
    padding: 15px;
}

.mobile-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.mobile-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #333;
}

.mobile-section p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

/* Highlights List */
.highlights-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.highlights-list li {
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #555;
}

.highlights-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    padding: 14px;
    font-weight: bold;
    cursor: pointer;
    color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:after {
    content: "▼";
    font-size: 12px;
    color: #666;
}

.accordion-header.active:after {
    content: "▲";
}

.accordion-content {
    display: none;
    padding: 14px;
    color: #555;
    font-size: 15px;
}

.accordion-content.show {
    display: block;
}

/* Map */
.map-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 10px;
}

/* Gallery */
.gallery-image-mobile {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

/* Rating Text */
.rating-text {
    font-size: 16px;
    color: #222;
    font-weight: 500;
}

.admission-dates {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

/* Similar Schools Card Scroll */
.card-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
}

.card-scroll::-webkit-scrollbar {
    height: 6px;
}

.card-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.card-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.school-card-mobile {
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 0 4px #ddd;
}

.school-card-mobile img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
}

.school-card-mobile p {
    margin-top: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

.school-card-mobile button {
    background: #ffb400;
    border: none;
    width: 100%;
    padding: 7px;
    margin-top: 6px;
    border-radius: 6px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
}

.school-card-mobile button:hover {
    background: #e6a200;
}

/* Modal Styles */
.school-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
}

.school-modal.is-visible {
    display: flex;
}

.school-modal__content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.school-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.school-modal form .form-group {
    margin-bottom: 16px;
}

.school-modal form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.school-modal form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.school-modal form .btn {
    width: 100%;
    padding: 12px;
    background: #ffb400;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
}
