:root {
    --primary-color: #D9534F;     /* Appetizing red (like cooked crab) */
    --secondary-color: #4A90E2;   /* Ocean blue */
    --text-color: #333333;        /* Dark gray for text */
    --background-light: #F8F9FA;  /* Light gray for backgrounds */
    --background-dark: #212529;   /* Very dark gray/black for footer/nav */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    background-color: var(--background-dark) !important; /* Darker nav */
}
.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.3rem;
}
.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://restaurantsnearmenow.us/crab/images/hero-section-background.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    min-height: 350px;
    display: flex;
    align-items: center;
}
.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.hero-section p.lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    background-color: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin: 0.5rem;
}
.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
}


/* About Section */
.about-section {
    padding: 60px 0;
}
.about-section h2 {
    color: var(--primary-color);
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: var(--background-light);
}
.map-section h2 {
    color: var(--text-color);
}
#map {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Company Cards (Restaurants) */
.restaurants-section {
    padding: 60px 0;
}
.restaurants-section h2 {
    color: var(--primary-color);
}
.company-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}
.card-image {
    transition: transform 0.3s ease;
}
.company-card:hover .card-image {
    transform: scale(1.05);
}
.card-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
.card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}
.rating {
    color: #FFC107; /* Star color (yellow) */
    font-size: 0.9rem;
}
.rating-count {
    color: #666;
    margin-left: 5px;
}
.card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-body p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.card-body p i {
    color: var(--secondary-color);
    margin-right: 8px;
}
.recent-reviews {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 1rem;
}
.recent-reviews h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}
.review {
    margin-bottom: 10px;
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
}
.review small {
    display: block;
    margin-top: 5px;
    text-align: right;
    color: #888;
}
.card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
}
.card-actions .btn-primary, .card-actions .btn-secondary {
    flex: 1;
    border-radius: 25px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
}
.card-actions .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.card-actions .btn-primary:hover {
    background-color: #c9302c; /* Darker red */
    border-color: #c9302c;
}
.card-actions .btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}
.card-actions .btn-secondary:hover {
    background-color: #3a7bd5; /* Darker blue */
    border-color: #3a7bd5;
}


/* Map Markers & Popups */
.restaurant-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px !important;
    height: 35px !important;
    background: none;
    border: none;
}
.restaurant-marker i {
    font-size: 28px;
    color: var(--primary-color);
    text-shadow: 0px 2px 4px rgba(0,0,0,0.4);
}
.leaflet-div-icon {
    background: none !important;
    border: none !important;
}
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 0;
}
.leaflet-popup-content {
    margin: 0;
}
.map-popup {
    max-width: 300px;
    padding: 1rem;
}
.map-popup .popup-image {
    margin-bottom: 10px;
}
.map-popup h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.map-popup p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.map-popup .rating {
    margin-bottom: 1rem;
}
.map-popup-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.map-phone-btn, .map-directions-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.map-phone-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.map-directions-btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}


/* Footer */
.footer-section {
    background-color: var(--background-dark);
    color: white;
}
.footer-section h5 {
    color: var(--primary-color);
    font-weight: 700;
}
.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-section a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.footer-section .social-links a {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-section .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-section .list-unstyled li {
    margin-bottom: 0.5rem;
}
.footer-section .small {
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .feature {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    .feature i {
        font-size: 1.2rem;
    }
    .card-header h3 {
        font-size: 1.1rem;
    }
    .card-actions {
        flex-direction: column;
    }
    .card-actions .btn-primary, .card-actions .btn-secondary {
        width: 100%;
    }
    .map-section #map {
        height: 350px !important;
    }
    .footer-section .text-md-start {
        text-align: center !important;
    }
}/* Global Styles */
:root {
    --primary-color: #D9534F;     /* Appetizing red (like cooked crab) */
    --secondary-color: #4A90E2;   /* Ocean blue */
    --text-color: #333333;        /* Dark gray for text */
    --background-light: #F8F9FA;  /* Light gray for backgrounds */
    --background-dark: #212529;   /* Very dark gray/black for footer/nav */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: #FFFFFF; /* White background for better contrast with light sections */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    background-color: var(--background-dark) !important;
}
.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.3rem;
}
.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://restaurantsnearmenow.us/crab/images/hero-section-background.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    min-height: 350px;
    display: flex;
    align-items: center;
}
.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-section p.lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    background-color: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin: 0.5rem;
}
.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
}


/* About Section */
.about-section {
    padding: 60px 0;
}
.about-section h2 {
    color: var(--primary-color);
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: var(--background-light);
}
.map-section h2 {
    color: var(--text-color);
}
#map {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Company Cards (Restaurants) */
.restaurants-section {
    padding: 60px 0;
}
.restaurants-section h2 {
    color: var(--primary-color);
}
.company-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}
.card-image {
    transition: transform 0.3s ease;
}
.company-card:hover .card-image {
    transform: scale(1.05);
}
.card-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
.card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}
.rating {
    color: #FFC107; /* Star color (yellow) */
    font-size: 0.9rem;
}
.rating-count {
    color: #666;
    margin-left: 5px;
}
.card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-body p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.card-body p i {
    color: var(--secondary-color);
    margin-right: 8px;
}
.recent-reviews {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 1rem;
}
.recent-reviews h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}
.review {
    margin-bottom: 10px;
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
}
.review small {
    display: block;
    margin-top: 5px;
    text-align: right;
    color: #888;
}
.card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
}
.card-actions .btn-primary, .card-actions .btn-secondary {
    flex: 1;
    border-radius: 25px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
}
.card-actions .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.card-actions .btn-primary:hover {
    background-color: #c9302c; /* Darker red */
    border-color: #c9302c;
}
.card-actions .btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}
.card-actions .btn-secondary:hover {
    background-color: #3a7bd5; /* Darker blue */
    border-color: #3a7bd5;
}

/*
--- START: STYLES FOR NEW DYNAMIC CONTENT SECTIONS ---
*/

/* Generic Section Styling */
.py-5 h2 {
    font-weight: 700;
    margin-bottom: 2.5rem !important; /* Give titles more space */
}

/* Styles for sections with subheadings (Crab Types, Pairings) */
#crab-types h4, #pairings h4 {
    color: var(--text-color);
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Styles for styled lists (Popular Dishes, Deals) */
#popular-dishes ul, #deals ul {
    list-style: none;
    padding-left: 0;
}

#popular-dishes ul li, #deals ul li {
    background-color: #FFFFFF;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    position: relative;
    padding-left: 45px;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#popular-dishes ul li:hover, #deals ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.07);
}

#popular-dishes ul li::before, #deals ul li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Specific icons for each list */
#popular-dishes ul li::before {
    content: '\f0f5'; /* fa-utensils */
}

#deals ul li::before {
    content: '\f02b'; /* fa-tag */
}


/* Styling for sections with large icons (Etiquette, Health) */
#etiquette i, #health i {
    transition: transform 0.3s ease;
}

#etiquette:hover i, #health:hover i {
    transform: scale(1.1) rotate(-5deg);
}

#local-scene .lead {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- END: STYLES FOR NEW DYNAMIC CONTENT SECTIONS --- */


/* Map Markers & Popups */
.restaurant-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px !important;
    height: 35px !important;
    background: none;
    border: none;
}
.restaurant-marker i {
    font-size: 28px;
    color: var(--primary-color);
    text-shadow: 0px 2px 4px rgba(0,0,0,0.4);
}
.leaflet-div-icon {
    background: none !important;
    border: none !important;
}
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 0;
}
.leaflet-popup-content {
    margin: 0;
}
.map-popup {
    max-width: 300px;
    padding: 1rem;
}
.map-popup .popup-image {
    margin-bottom: 10px;
}
.map-popup h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.map-popup p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.map-popup .rating {
    margin-bottom: 1rem;
}
.map-popup-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.map-phone-btn, .map-directions-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.map-phone-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.map-directions-btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}


/* Footer */
.footer-section {
    background-color: var(--background-dark);
    color: white;
}
.footer-section h5 {
    color: var(--primary-color);
    font-weight: 700;
}
.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-section a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.footer-section .social-links a {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-section .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-section .list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .feature {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    .feature i {
        font-size: 1.2rem;
    }
    .card-header h3 {
        font-size: 1.1rem;
    }
    .card-actions {
        flex-direction: column;
    }
    .card-actions .btn-primary, .card-actions .btn-secondary {
        width: 100%;
    }
    .map-section #map {
        height: 350px !important;
    }
    .footer-section .text-md-start {
        text-align: center !important;
    }
    .py-5 h2 {
        font-size: 1.75rem;
    }
    #popular-dishes ul li, #deals ul li {
        padding-left: 15px; /* Adjust list padding for mobile */
        text-align: center;
    }
    #popular-dishes ul li::before, #deals ul li::before {
        display: none; /* Hide pseudo-elements on mobile for cleaner look */
    }
.company-card .card-image {
    height: 200px; /* La misma altura que tenías antes */
    border-radius: 8px 8px 0 0;
    overflow: hidden; /* Oculta cualquier parte de la imagen que se salga */
}

.company-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto hace que la imagen cubra el contenedor sin deformarse, igual que background-size: cover */
    display: block;
}
}