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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0a0a1a;
}

header {
    background: #0d1b2a;
    color: white;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 2px solid #00bcd4;
}

header h1 {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav button, .fly-btn, .buy-btn, #validateCoupon {
    background: #00bcd4;
    color: #0a0a1a;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

nav button:hover, .fly-btn:hover, .buy-btn:hover, #validateCoupon:hover {
    background: #00e5ff;
}

#userStatus {
    color: #00bcd4;
    font-size: 0.9rem;
}

#map {
    flex: 1;
    width: 100%;
}

.slideshow-container {
    background: #1a3a4a;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}
.slides-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.slides-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.slides-wrapper img.active {
    display: block;
}
.slideshow-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #0d1b2a;
}
.slide-btn {
    background: #00bcd4;
    color: #0a0a1a;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.slide-btn:hover { background: #00e5ff; }
.slide-counter {
    color: #8899aa;
    font-size: 13px;
}
.slide-caption {
    padding: 10px 15px;
    color: #b0b0c0;
    font-size: 0.8rem;
    line-height: 1.4;
    background: #0d1b2a;
    min-height: 50px;
}
.slide-caption strong {
    color: #00bcd4;
    display: block;
    margin-bottom: 4px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #0d1b2a;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    color: white;
    border: 1px solid #00bcd4;
}

.close {
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    font-size: 2rem;
    cursor: pointer;
    color: #00bcd4;
}

.close:hover {
    color: #00e5ff;
}

.features-box {
    background: #1a3a4a;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 12px 0;
    border-left: 3px solid #00bcd4;
}

.features-box strong {
    color: #00bcd4;
    font-size: 0.85rem;
}

.features-box p {
    color: #b0b0c0;
    font-size: 0.85rem;
    margin-top: 5px;
    line-height: 1.5;
}

/* Site Preview */
.site-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.main-image {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #00bcd4;
}

.site-info h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.difficulty {
    color: #00e5ff;
    margin-bottom: 1rem;
}

.description {
    color: #b0b0c0;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.actions {
    margin-top: 1.5rem;
}

.fly-btn {
    color: #0a0a1a;  /* Dark color for text/icon on cyan button */
}

.buy-btn {
    margin-bottom: 1rem;
}

#couponSection {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

#couponCode {
    flex: 1;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #00bcd4;
    background: #0a0a1a;
    color: white;
    font-size: 0.9rem;
}

#couponMessage {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.success { color: #00bcd4; }
.error { color: #ff5252; }

/* Popup */
.popup-content {
    text-align: center;
    padding: 0.5rem;
}

.popup-thumb {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.popup-content h3 {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.popup-content p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.fly-btn-small {
    background: #00bcd4;
    color: #0a0a1a;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Leaflet overrides */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #1a3a4a;
    font-size: 0.8rem;
    color: #8899aa;
    line-height: 1.5;
}

.copyright a {
    color: #00bcd4;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}