/* 
* Riviera Nayarit Directory - Main Stylesheet
* Version: 1.1
* Author: Riviera Nayarit Directory Team
*/

/* ======= GLOBAL STYLES ======= */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --body-bg: #ffffff;
    --body-color: #212529;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--body-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0a58ca;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ======= HEADER STYLES ======= */
.top-bar {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    position: relative;
    z-index: 10;
    margin-bottom: 0;
    padding-bottom: 0;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* ======= HERO SECTION ======= */
.hero-section {
    position: relative;
    padding: 0;
    margin: 0;
    overflow: hidden;
    margin-top: -1px; /* Fix for any potential gap */
}

.hero-slider {
    width: 100%;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center center;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* ======= BREADCRUMB (above destination hero) ======= */
.breadcrumb-section {
    position: relative;
    z-index: 2;
}

/* ======= DESTINATION STYLES ======= */
.destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.destination-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.destination-card:hover img {
    transform: scale(1.05);
}

.destination-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
}

.destination-card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.destination-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    margin-top: 9rem;
}

.destination-hero-content {
    border-radius: 8px;
}

.destination-quick-facts {
    font-size: 0.9rem;
}

.destination-meta .badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.destination-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ======= CATEGORY STYLES ======= */
.category-hero {
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.category-quick-stats {
    margin-top: 2rem;
}

.stat-number {
    font-size: 2rem;
    line-height: 1;
}

.search-filter-section {
    margin-bottom: 3rem;
}

.cuisine-card {
    transition: all 0.3s ease;
}

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

.cuisine-icon img {
    transition: all 0.3s ease;
}

.cuisine-card:hover .cuisine-icon img {
    transform: scale(1.1);
}

/* ======= LISTING STYLES ======= */
.listing-card {
    transition: all 0.3s ease;
}

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

.listing-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.listing-card:hover .listing-img {
    transform: scale(1.05);
}

.listing-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.listing-rating {
    color: #ffc107;
    font-weight: 500;
}

.listing-location {
    font-size: 0.875rem;
}

.listing-features .badge {
    font-weight: normal;
}

.listing-detail .carousel-item img {
    height: 500px;
    object-fit: cover;
}

.feature-item {
    margin-bottom: 0.5rem;
}

.menu-price {
    font-weight: 600;
    color: var(--primary-color);
}

.review-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.similar-listing-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

/* ======= BLOG STYLES ======= */
.blog-header {
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.blog-meta {
    font-size: 0.875rem;
}

.blog-posts .card {
    transition: all 0.3s ease;
}

.blog-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.popular-post-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.instagram-item img {
    transition: all 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ======= FOOTER STYLES ======= */
.footer {
    background-color: var(--dark-color);
}

.footer h5 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer a:hover {
    opacity: 1;
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ======= BACK TO TOP BUTTON ======= */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding: 0;
    border-radius: 50%;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 50px;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    .destination-hero {
        height: 400px;
    }
    
    .listing-detail .carousel-item img {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-search-box {
        padding: 1.5rem;
    }
    
    .destination-hero {
        height: 350px;
    }
    
    .listing-detail .carousel-item img {
        height: 300px;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .destination-hero {
        height: 300px;
    }
    
    .listing-detail .carousel-item img {
        height: 250px;
    }
}
