* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #000000;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 33.333%;
    background-color: #ffffff;
    border-right: 2px solid #f5c518;
    overflow-y: auto;
    padding: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #f5c518;
    padding-bottom: 10px;
}

.sidebar h1 {
    color: #000000;
    font-size: 2rem;
    margin: 0;
    flex: 1;
}

.locate-btn {
    background: #f5c518;
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.locate-btn:hover {
    background: #e6b015;
    transform: translateY(-1px);
}

.locate-btn:active {
    transform: translateY(0);
}

.locate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.search-container {
    margin-bottom: 20px;
}

.search-box {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.search-box::placeholder {
    color: #999;
}

.search-results {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.highlight {
    background-color: rgba(245, 197, 24, 0.3);
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    max-height: 300px;
    width: 90%;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.modal-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #000;
}

.modal-button:hover {
    border-color: #f5c518;
    background: #fffbf0;
    transform: translateY(-2px);
}

.modal-button-icon {
    font-size: 1.5rem;
}

.modal-button-text {
    flex: 1;
}

.modal-button-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.modal-button-desc {
    font-size: 0.8rem;
    color: #666;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #000;
}

.map-container {
    width: 66.667%;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

.film-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.2s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.film-card:hover {
    border-color: #f5c518;
    box-shadow: 0 4px 8px rgba(245, 197, 24, 0.2);
    transform: translateY(-2px);
}

.film-card.active {
    border-color: #f5c518;
    background-color: #fffbf0;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.3);
}

.film-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.film-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.film-image.active {
    opacity: 1;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.film-image-container:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 8px;
}

.slider-nav.next {
    right: 8px;
}

.image-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: #f5c518;
}

.film-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.film-location {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 5px;
}

.distance-info {
    font-size: 0.85rem;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 2px 6px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.film-year {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.access-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
}

.access-badge.public {
    background-color: #4CAF50;
    color: white;
}

.access-badge.private_property {
    background-color: #FF9800;
    color: white;
}

.access-badge.forbidden {
    background-color: #F44336;
    color: white;
}

.film-description {
    font-size: 0.85rem;
    color: #777777;
    margin-top: 8px;
    line-height: 1.4;
}

.film-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.film-button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.show-map-btn {
    background-color: #f5c518;
    color: #000;
}

.show-map-btn:hover {
    background-color: #e6b015;
}

.show-imdb-btn {
    background-color: #000;
    color: #f5c518;
}

.show-imdb-btn:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: 100vh;
    }

    .sidebar {
        width: 100%;
        flex: 1; /* Take remaining space */
        order: 2; /* Move sidebar below map */
        overflow-y: auto;
    }

    .map-container {
        width: 100%;
        height: 20vh; /* 20% of viewport height */
        max-height: 20vh;
        order: 1; /* Move map above sidebar */
        flex-shrink: 0; /* Prevent shrinking */
    }
}