/* Main styles for the CityVoice application */

/* General styles */
body {
    font-family: var(--font-main);
    color: #333;
    line-height: 1.6;
}

/* Map styles */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container.small {
    height: 300px;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    filter: brightness(90%);
}

/* Navbar additions */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

/* Photo gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 30px;
}

/* Photo grid container */
#photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
    width: 100%;
}

.photo-item {
    width: 100%;
    min-width: 0; /* Prevent grid item from overflowing */
}

.photo-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--photo-card-background-color, #ffffff);
    background-image: var(--photo-card-background-image, none);
    background-size: var(--photo-card-background-size, cover);
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--photo-card-background-color, rgba(255, 255, 255, 0.9));
    background-image: var(--photo-card-background-image);
    background-size: var(--photo-card-background-size, cover);
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 0.95;
}

.photo-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

/* Customize scrollbar */
.photo-gallery::-webkit-scrollbar {
    width: 8px;
}

.photo-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.photo-gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
    
    #photos-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Photo Info Window Styles */
.photo-info-window {
    padding: 10px;
    max-width: 300px;
}

.photo-info-window img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.photo-info-window h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.photo-info-window p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.photo-info-window strong {
    color: #333;
}

/* Marker Styles */
.photo-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.photo-marker:hover {
    transform: scale(1.2);
}

.city-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.city-marker:hover {
    transform: scale(1.2);
}

.poi-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.poi-marker:hover {
    transform: scale(1.2);
}

.custom-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
}

/* Navbar and dropdown styles */
.navbar {
    background-color: #333;
    padding: 0.5rem 0;
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
} 