/* World Tour – Warm editorial travel theme */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg: #faf8f5;
    --bg-elevated: #ffffff;
    --text: #1a1a1a;
    --text-muted: #57534e;
    --primary: #b45309;
    --primary-hover: #92400e;
    --secondary: #4d7c5a;
    --accent: #0d9488;
    --border: #e7e5e4;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    background-image: linear-gradient(rgba(250, 248, 245, 0.92), rgba(250, 248, 245, 0.92)), url('/images/torremolinos/IMG_8333.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    -webkit-font-smoothing: antialiased;
}

.main-content {
    background: transparent;
    margin-top: 72px;
    min-height: calc(100vh - 72px);
}

/* Navigation – light, minimal */
.navbar {
    background: var(--bg-elevated) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text) !important;
    letter-spacing: -0.02em;
}

.navbar-brand:hover {
    color: var(--primary) !important;
}

.navbar-brand i {
    color: var(--primary);
}

.navbar-toggler {
    border-color: var(--border);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--primary);
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    margin: 0 0.15rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(180, 83, 9, 0.08);
}

/* Hero – calm strip, no gradient */
.hero-section {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
}

.hero-section h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-section h1 i {
    color: var(--primary);
    margin-right: 0.35rem;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.hero-section .text-light,
.hero-section small {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

/* Sections */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

section.bg-light {
    background: rgba(247, 245, 243, 0.8) !important;
}

/* Headings – solid color, no gradient */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Cards – clean, no gradient borders */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border);
}

.card-img-top {
    border-radius: 0;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* Map – central, clean container (journey map unchanged in behaviour) */
#map,
#homeMap {
    height: 560px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Map popup */
.map-popup {
    text-align: center;
    font-family: var(--font-sans);
}

.map-popup h6 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-popup img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.map-popup .btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
    border: none;
    font-weight: 600;
}

.map-popup .btn-primary:hover {
    background: var(--primary-hover) !important;
    color: #fff !important;
}

/* Stat boxes – solid, readable colors */
.stat-box {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
    color: var(--text);
}

.stat-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-box.bg-primary {
    background: var(--primary) !important;
    border-color: var(--primary);
    color: #fff !important;
}

.stat-box.bg-success {
    background: var(--secondary) !important;
    border-color: var(--secondary);
    color: #fff !important;
}

.stat-box.bg-warning {
    background: #ca8a04 !important;
    border-color: #ca8a04;
    color: #fff !important;
}

.stat-box.bg-info {
    background: var(--accent) !important;
    border-color: var(--accent);
    color: #fff !important;
}

.stat-box h4 {
    color: inherit;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.stat-box small {
    opacity: 0.95;
    font-size: 0.8rem;
}

/* Tesla section on homepage */
.tesla-home-image {
    max-height: 300px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius);
}

/* Intro section */
.intro-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.intro-photo {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.intro-section .lead {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Blog post */
.blog-post {
    max-width: 720px;
    margin: 0 auto;
}

.blog-post .featured-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.blog-post .post-meta {
    background: var(--bg);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.blog-post .post-content {
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

.blog-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* Photo gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.2s;
    cursor: pointer;
}

.photo-gallery img:hover {
    transform: scale(1.02);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

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

.badge.bg-secondary {
    background: var(--text-muted) !important;
}

/* Footer */
footer {
    background: var(--text) !important;
    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 !important;
}

footer h5,
footer h6 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Contact */
.contact-info {
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.contact-info i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Leaflet popup */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.leaflet-popup-content {
    margin: 14px;
    line-height: 1.5;
}

/* Map marker icon (car) – match theme */
.custom-div-icon {
    background: transparent;
    border: none;
}

.custom-div-icon i {
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Bootstrap utility overrides */
.text-primary {
    color: var(--primary) !important;
}

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

.bg-light {
    background-color: rgba(247, 245, 243, 0.8) !important;
}

/* Utility */
.stat-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.tesla-stats {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    #map,
    #homeMap {
        height: 400px;
    }

    .hero-section {
        padding: 2rem 0;
    }

    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}
