/* Storage Finder Map CSS - Adapted for Muncie Yorktown Self Storage */

/* Main Layout */
.finder-section {
    display: flex;
    min-height: 600px;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid #000;
}

/* Results Section */
.finder-results-container {
    width: 45%;
    background: linear-gradient(to bottom, #F8FAFD, #e2e8f0);
    padding: 32px 24px;
    overflow-y: auto;
    border-radius: 16px 0 0 16px;
    max-height: 600px;
}

.finder-results-header {
    margin-bottom: 24px;
    text-align: center;
}

.finder-results-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.finder-results-header h2 span {
    font-weight: normal;
    font-size: 14px;
    color: #6B7280;
}

/* Results Grid */
.finder-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.finder-result-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.finder-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #142759, #1e3a7a);
    border-radius: 16px 16px 0 0;
}

.finder-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(20, 39, 89, 0.3);
}

/* Result Card Content */
.finder-result-top {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.finder-result-image {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.finder-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.finder-result-card:hover .finder-result-image img {
    transform: scale(1.05);
}

.finder-result-info {
    flex: 1;
}

.finder-result-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.2;
}

.finder-star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.finder-star-rating i {
    color: #fbbf24;
    font-size: 14px;
}

.finder-rating-number {
    font-weight: 600;
    color: #4a5568;
    margin-left: 6px;
    font-size: 13px;
}

.finder-result-address,
.finder-result-phone {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #4a5568;
    font-size: 13px;
    margin-bottom: 4px;
}

.finder-result-address i,
.finder-result-phone i {
    color: #142759;
    width: 14px;
    margin-top: 2px;
}

/* Facility Description */
.finder-facility-description {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #F8FAFD;
    border-radius: 10px;
    border-left: 3px solid #142759;
}

/* Choose Facility Button */
.finder-choose-button {
    text-align: center;
}

.finder-choose-button a {
    background: linear-gradient(135deg, #142759, #1e3a7a);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(20, 39, 89, 0.3);
}

.finder-choose-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 39, 89, 0.4);
    opacity: 0.9;
}

/* Map Section */
.finder-map-section {
    width: 55%;
    position: relative;
    border-radius: 0 16px 16px 0;
    overflow: hidden;
}

#finder-map {
    height: 100%;
    width: 100%;
    min-height: 600px;
    border-radius: 0 16px 16px 0;
}

/* Search Box */
#finder-search-box {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 85%;
    max-width: 500px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

#finder-search-box input {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border: none;
    outline: none;
    background: transparent;
    color: #1a202c;
    font-family: inherit;
}

#finder-search-box input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

#finder-search-box button {
    background: linear-gradient(135deg, #142759, #1e3a7a);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    color: white;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#finder-search-box button:hover {
    opacity: 0.9;
}

/* No Results */
.finder-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #4a5568;
    font-size: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.finder-no-results i {
    margin-bottom: 16px;
    opacity: 0.7;
    color: #142759;
}

.finder-no-results p {
    margin-bottom: 8px;
}

.finder-no-results p:last-child {
    font-size: 14px;
    color: #718096;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 1024px) {
    .finder-section {
        flex-direction: column;
        min-height: auto;
    }

    .finder-results-container {
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: none;
        padding: 24px 20px;
    }

    .finder-map-section {
        width: 100%;
        border-radius: 0 0 16px 16px;
    }

    #finder-map {
        min-height: 400px;
        border-radius: 0 0 16px 16px;
    }

    #finder-search-box {
        width: 90%;
        top: 16px;
    }
}

@media only screen and (max-width: 640px) {
    .finder-section {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .finder-results-container {
        border-radius: 0;
        padding: 20px 16px;
    }

    .finder-map-section {
        border-radius: 0;
    }

    #finder-map {
        min-height: 350px;
        border-radius: 0;
    }

    .finder-result-card {
        padding: 16px;
        border-radius: 12px;
    }

    .finder-result-top {
        flex-direction: column;
    }

    .finder-result-image {
        width: 100%;
        height: 150px;
    }

    .finder-result-title {
        font-size: 16px;
    }

    #finder-search-box {
        width: 94%;
        border-radius: 12px;
    }

    #finder-search-box input {
        padding: 12px 16px;
        font-size: 14px;
    }

    #finder-search-box button {
        padding: 12px 16px;
        border-radius: 0 12px 12px 0;
        min-width: 48px;
    }
}

/* Scroll Styling */
.finder-results-container::-webkit-scrollbar {
    width: 6px;
}

.finder-results-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.finder-results-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #142759, #1e3a7a);
    border-radius: 10px;
}

.finder-results-container::-webkit-scrollbar-thumb:hover {
    background: #1e3a7a;
}

/* Info Window Styling */
.finder-info-window {
    padding: 12px;
    max-width: 220px;
}

.finder-info-window img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.finder-info-window h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.finder-info-window p {
    color: #4a5568;
    font-size: 13px;
    margin-bottom: 6px;
}

.finder-info-window a {
    color: #142759;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.finder-info-window a:hover {
    text-decoration: underline;
}
