/* 
 * Custom CSS
 * To change the primary/secondary colors, modify the variables below.
 */

:root {
    /* Change these hex codes to your desired colors */
    --bs-primary: #16324F;
    --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-primary:hover {
    background-color: #BFA06A !important;
    border-color: #BFA06A !important;
    color: #FFF !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-brand {
    white-space: normal !important;
    word-wrap: break-word;
    line-height: 1.2;
    max-width: 35%;
    /* Evita que el nombre ocupe todo el espacio y empuje el menú */
}

/* Navbar Mobile Optimization */
@media (max-width: 991.98px) {
    .navbar-brand {
        max-width: 75%;
        font-size: 1.1rem;
    }
}

/* 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;
}

/* Text Truncation Utilities */
.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navigation menu active item underline & hover color match */
.navbar-nav .nav-link:not(.btn):hover,
.navbar-nav .nav-link:not(.btn):focus,
.navbar-nav .nav-link:not(.btn).active {
    color: var(--bs-primary) !important;
}

.navbar-nav .nav-link:not(.btn).active {
    text-decoration: underline !important;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* Custom styling for the "Buscar Disponibilidad" button */
.btn-availability {
    background-color: hsl(38, 40%, 58%) !important;
    border-color: #BFA06A !important;
    color: #FFF !important;
    font-weight: 600 !important;
    transition: all 0.25s ease-in-out !important;
}

.btn-availability:hover,
.btn-availability:focus,
.btn-availability:active {
    background-color: #16324F !important;
    /* Slightly darker shade for interactive states */
    border-color: #c8b293 !important;
    color: #FFF !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Breadcrumb links color customization */
.breadcrumb-item a {
    color: var(--bs-primary) !important;
    transition: color 0.2s ease-in-out;
}

.breadcrumb-item a:hover {
    color: #BFA06A !important;
    /* Matches your theme's hover primary color */
    text-decoration: underline !important;
}

/* Semi-transparent white circle background for carousel control arrows on mobile */
@media (max-width: 767.98px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 44px !important;
        height: 44px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background-color: rgba(255, 255, 255, 0.75) !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
        opacity: 0.9 !important;
        transition: all 0.2s ease-in-out !important;
    }
    
    .carousel-control-prev {
        left: 10px !important;
    }
    
    .carousel-control-next {
        right: 10px !important;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        filter: invert(1) !important; /* Forces the arrow icon to black for contrast */
        width: 18px !important;
        height: 18px !important;
    }
}