/**
 * Premium Web Design Aesthetics CSS
 * Uses modern typography, harmonious colors layout-container sequence
 */

/* ================= Variables & Base ================= */
:root {
    /* Color Palette */
    --primary: #D4A017;
    /* Premium Gold for buttons and highlights */
    --primary-hover: #b58812;
    --background: #f8fafc;
    /* Soft modern white */
    --surface: #ffffff;
    --text-main: #1e293b;
    /* Slate 800 - softer than pure black */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;

    /* Layout */
    --container-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

/* ================= Header ================= */
.site-header {
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--primary);
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 2rem;
    }

    .main-nav a {
        color: var(--text-main);
        font-weight: 500;
    }

    .main-nav a:hover {
        color: var(--primary);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* ================= Hero Section ================= */
.hero-section {
    position: relative;
    padding: 6rem 20px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/granada-main.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Gradient overlay for text readability */
    box-shadow: inset 0 0 0 2000px rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content h1 .highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= Layout Container Component (Forms + Trust) ================= */
.layout-container {
    max-width: var(--container-width);
    margin: -40px auto 4rem;
    /* Overlaps with hero */
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .layout-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Trust section as requested by KI */
.trust-certification {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px auto var(--primary) !important;
    box-shadow: var(--shadow-lg);
}

.trust-list {
    list-style: none;
    margin-top: 1.5rem;
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.trust-list svg {
    color: var(--primary);
    flex-shrink: 0;
}

.trust-list strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
}

.payment-logos {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

/* ================= Booking Widget (Stepona Style) ================= */
.booking-widget {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.booking-widget__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.booking-widget__form .form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.booking-widget__form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-select,
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    font-family: inherit;
    appearance: none;
    /* Hide default arrow */
    transition: var(--transition);
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    pointer-events: none;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group--half {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Vehicle Custom Selector */
.vehicle-selector {
    position: relative;
}

.vehicle-selector__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.vehicle-selector__trigger:hover {
    border-color: #cbd5e1;
}

.vehicle-selector__selected-with-img {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vehicle-selector__img-wrap {
    width: 60px;
    height: 35px;
    position: relative;
    display: flex;
    align-items: center;
}

.vehicle-selector__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vehicle-selector__selected {
    display: flex;
    flex-direction: column;
}

.vehicle-selector__name {
    font-weight: 600;
    font-size: 1rem;
}

.vehicle-selector__subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vehicle-selector__arrow {
    transition: transform 0.2s;
    color: var(--text-muted);
}

.vehicle-selector__arrow.open {
    transform: rotate(180deg);
}

.vehicle-selector__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    overflow: hidden;
}

.vehicle-selector__option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.vehicle-selector__option:hover,
.vehicle-selector__option.active {
    background: #f8fafc;
}

.vehicle-selector__option-info {
    display: flex;
    flex-direction: column;
}

.vehicle-selector__option-name {
    font-weight: 600;
}

.vehicle-selector__option-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Price Box */
.booking-widget__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.booking-widget__price-label {
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    flex-direction: column;
}

.booking-widget__vat {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.booking-widget__price-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.booking-widget__submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.booking-widget__submit:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.booking-widget__submit--disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    color: #94a3b8;
}

/* ================= Modernized Reviews Section (KI Pattern) ================= */
.reviews-section {
    padding: 4rem 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.reviews-header-new {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rating-score {
    font-size: 2.5rem;
    font-weight: 800;
}

.rating-stars {
    color: #fbbc05;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.review-count {
    color: var(--text-muted);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card-new {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.review-card-new:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.reviewer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-card-new blockquote {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    color: var(--text-main);
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ================= Fleet Section ================= */
.fleet-section {
    padding: 5rem 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.fleet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .fleet-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.fleet-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.fleet-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.fleet-img {
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fleet-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fleet-info {
    padding: 1.5rem;
}

.fleet-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pax-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.fleet-price {
    display: inline-block;
    background: rgba(212, 160, 23, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.fleet-features {
    list-style: none;
}

.fleet-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.fleet-features svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ================= Destinations Grid ================= */
.destinations-section {
    background-color: white;
    padding: 5rem 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.grid-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.dest-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

.dest-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dest-image {
    height: 200px;
    background-color: var(--border);
    background-size: cover;
    background-position: center;
}

.dest-image.sierra-nevada-bg {
    background-image: url('../images/sierra-nevada-placeholder.png');
}

.dest-image.alhambra-bg {
    background-image: url('../images/hotel-alhambra-placeholder.png');
}

.dest-image.albaicin-bg {
    background-image: url('../images/albaicin-placeholder.png');
}

.dest-image.granada-bg {
    background-image: url('../images/granada-main.png');
}

.dest-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dest-info h3 {
    margin-bottom: 0.5rem;
}

.dest-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.dest-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

/* ================= FAQ & Footer ================= */
.faq-section {
    padding: 5rem 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
    /* Add (+) icon logic later in JS if needed */
}

.faq-answer {
    padding-bottom: 1rem;
    color: var(--text-muted);
    display: none;
    /* simple display logic */
}

.faq-answer.active {
    display: block;
}

.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 4rem 20px 2rem;
}

.footer-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.legal-links,
.footer-langs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.legal-links a,
.footer-langs a {
    color: #94a3b8;
}

.legal-links a:hover,
.footer-langs a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ================= Floating WhatsApp Button ================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: translateY(-5px) scale(1.05);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}