/* 
 * Custom CSS
 * To change the primary/secondary colors, modify the variables below.
 */

:root {
    /* Change these hex codes to your desired colors */
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary-rgb: 108, 117, 125;
}

/* Override Bootstrap Buttons to use the variables strongly if needed */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.text-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* Brand specific customization */
.navbar-brand {
    color: #333;
}

.stars {
    vertical-align: top;
    font-size: 0.5em !important;
}

/* Carousel Image Height Control */
.carousel-image-home {
    height: 60vh;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-image-home {
        height: 42vh;
        /* 30% less than 60vh */
    }
}

/* Navbar Mobile Optimization */
@media (max-width: 991.98px) {
    .navbar-brand {
        white-space: normal !important;
        /* Allow text wrapping */
        max-width: 75%;
        /* Limit width to ensure Toggler stays on same line */
        font-size: 1.1rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
}

/* Utility classes */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* Gallery Hover Effect */
.gallery-item .gallery-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.gallery-item img {
    transition: transform 0.3s ease;
}