/*
 * Custom Stylesheet for Cab Service Near Me (taxi.closetome.place)
 * Version: 1.0
 * Author: Your AI Assistant
 */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lato:wght@400;700&display=swap');

/* --- Root Variables for Easy Customization --- */
:root {
    --primary-color: #0d6efd; /* Bootstrap Primary Blue */
    --secondary-color: #6c757d; /* Bootstrap Secondary Gray */
    --dark-color: #212529; /* Bootstrap Dark */
    --light-color: #f8f9fa; /* Bootstrap Light */
    --warning-color: #ffc107; /* Bootstrap Warning Yellow for Stars */
    --success-color: #198754;
    --info-color: #0dcaf0;
    
    --body-font: 'Lato', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
}

/* --- General Body & Typography --- */
body {
    font-family: var(--body-font);
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* --- Navbar --- */
.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand .fa-cab {
    color: var(--warning-color);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-background.webp') no-repeat center center;
    background-size: cover;
    color: white;
}

.hero-section .display-4 {
    font-weight: 700;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.hero-features .feature:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Company Card Styling --- */
.company-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease-in-out;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.company-card .card-img-top {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.company-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.company-card .rating .fa-star,
.company-card .rating .fa-star-half-alt {
    color: var(--warning-color);
}
.company-card .rating .far.fa-star {
    color: #ccc;
}


.company-card .rating-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.company-card .recent-reviews {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.company-card .review p {
    font-style: italic;
    color: #555;
}

.company-card .review small {
    font-style: normal;
}

.company-card .btn {
    font-weight: 600;
    padding: 0.75rem;
}

/* --- Map Marker & Popup Styling --- */
.cab-marker {
    background-color: var(--warning-color);
    color: var(--dark-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: 250px !important; /* Fixed width for consistency */
}

.map-popup .popup-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.map-popup h3, .map-popup p, .map-popup .rating, .map-popup .map-popup-actions {
    padding: 0 15px;
}

.map-popup h3 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.map-popup p {
    margin-bottom: 5px;
    color: #555;
}

.map-popup .rating {
    margin-bottom: 10px;
}

.map-popup .map-popup-actions {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
}
.map-popup .btn {
    flex: 1;
}

/* --- Dynamic Content Sections Styling --- */
#tipos-de-servicio-html h4, 
#ventajas-locales-html h4, 
#como-pedir-html h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
}

#como-pedir-html ul, #metodos-pago-html ul {
    list-style: none;
    padding-left: 0;
}

#como-pedir-html li, #metodos-pago-html li {
    padding: 1rem;
    background-color: #fff;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#seguridad i, #tarifas i, #disponibilidad i {
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

#seguridad:hover i, #tarifas:hover i, #disponibilidad:hover i {
    transform: scale(1.1);
}

/* --- Internal Links Section --- */
#internal-links .list-group-item {
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 600;
}

#internal-links .list-group-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}
#internal-links .list-group-item i {
    color: var(--primary-color);
    transition: color 0.3s;
}
#internal-links .list-group-item:hover i {
    color: white;
}


/* --- Footer Styling --- */
.footer-section {
    background-color: var(--dark-color);
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section .list-unstyled a:hover {
    color: #fff !important;
    padding-left: 5px;
}

.footer-section .social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.footer-section .social-links a:hover {
    transform: scale(1.2);
    color: var(--warning-color);
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .hero-features {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}