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

body {
    font-family: Arial, sans-serif;
    background-color: #e8e8e8;
    padding: 20px;
}

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

.header h1 {
    color: #333;
    margin-bottom: 10px;
}

.announcement-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    margin: 0 auto 30px auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #ff6b6b;
}

.announcement-box h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.announcement-content p {
    margin: 0 0 10px 0;
    font-size: 16px;
    text-align: center;
}

.car-title {
    margin: 0 0 20px 0;
    font-size: 32px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.announcement-content ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.announcement-content ul li {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding-left: 25px;
}

.announcement-content ul li:before {
    content: "🚗";
    position: absolute;
    left: 0;
    font-size: 16px;
}

.announcement-content ul li:nth-child(7):before {
    content: "⚙️";
}

.announcement-content ul li:nth-child(8):before {
    content: "❄️";
}

.announcement-content ul li:nth-child(9):before {
    content: "📅";
}

.announcement-content ul li:nth-child(10):before {
    content: "🔖";
}

.announcement-content ul li:nth-child(11):before {
    content: "📻";
}

.announcement-content ul li:nth-child(12):before {
    content: "📍";
}

.announcement-content ul li:last-child {
    border-bottom: none;
}

.contact-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.contact-info .price {
    font-size: 28px;
    color: #ffeb3b;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info .phone {
    font-size: 24px;
    color: #4caf50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .announcement-box {
        margin: 0 15px 20px 15px;
        padding: 15px;
    }
    
    .announcement-box h3 {
        font-size: 18px;
    }
    
    .announcement-content p {
        font-size: 14px;
    }
    
    .car-title {
        font-size: 26px;
        letter-spacing: 1px;
    }
    
    .announcement-content ul li {
        font-size: 13px;
    }
    
    .contact-info .price {
        font-size: 22px;
    }
    
    .contact-info .phone {
        font-size: 20px;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.media-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.media-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.media-info {
    padding: 15px;
}

.media-item:has(video) .media-info {
    background-color: #e3f2fd;
    border-radius: 0 0 8px 8px;
}

.media-info h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
    word-break: break-all;
}

.media-info p {
    color: #666;
    font-size: 14px;
    margin: 4px 0;
}

.type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.type-image {
    background-color: #e3f2fd;
    color: #1976d2;
}

.type-video {
    background-color: #fff3e0;
    color: #f57c00;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h2 {
    margin-bottom: 10px;
}

.api-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    font-family: monospace;
    font-size: 14px;
}

/* Fullscreen modal styles */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1003;
    transition: 0.3s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    outline: 2px solid #000000;
    outline-offset: -2px;
}

.close:hover,
.close:focus {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.8);
    border-color: #cccccc;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navigation buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

/* Hide navigation on mobile */
@media (max-width: 768px) {
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .prev-btn {
        left: -60px;
    }
    
    .next-btn {
        right: -60px;
    }
    
    .close {
        width: 45px;
        height: 45px;
        font-size: 32px;
        top: 15px;
        right: 15px;
    }
}
