/* ==========================================================================
   barcelonamallorca.com - Shared Stylesheet
   Global styles used across all pages
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --primary: #0066cc;
    --secondary: #ff6b35;
    --success: #00a650;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --text-light: #7f8c8d;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Navbar --- */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* --- Language Switcher --- */
.lang-flag {
    display: inline-block;
    font-weight: 700;
    font-size: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.dropdown-item.active .lang-flag,
.dropdown-item:active .lang-flag {
    background: white;
    color: var(--primary);
}

/* --- Buttons --- */
.btn-search {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-search:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-book {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-book:hover {
    background: #0052a3;
    color: white;
}

.btn-secondary-outline {
    width: 100%;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.btn-secondary-outline:hover {
    background: var(--primary);
    color: white;
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--light);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* --- Tables & Comparison --- */
.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.comparison-table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.comparison-table a:hover {
    text-decoration: underline;
}

/* --- Badges --- */
.badge-fastest {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.badge-cheapest {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* --- Content Sections --- */
.content-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.content-section h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.content-section h3 {
    color: var(--dark);
    margin: 1.5rem 0 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

/* --- Info Box --- */
.info-box {
    background: #e8f4f8;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.info-box h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* --- Service Grid & Cards --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.service-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* --- Icons --- */
.icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* --- Links --- */
.internal-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.internal-link:hover {
    text-decoration: underline;
}

/* --- Quick Links --- */
.quick-links-section {
    background: #f0f7ff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quick-link-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.quick-link-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-link-card h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}

.quick-link-card p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- FAQ --- */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.faq-item h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
}

.countdown {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffd700;
    margin: 1rem 0;
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

footer h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* --- Forms --- */
.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .trust-items {
        flex-direction: column;
        gap: 1rem;
    }

    .comparison-table {
        overflow-x: auto;
    }
}
