/* =================================================================
   SICILY FIND & BOOK LANDING PAGE - SICILY WELCOME
   Stili dedicati per la pagina di ricerca e prenotazione tours
   ================================================================= */

/* CSS Variables */
:root {
    --primary-color: #e85d04;
    --secondary-color: #dc2f02;
    --accent-color: #f48c06;
    --dark: #370617;
    --light: #fefae0;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset e Base - Specifico per Sicily Find & Book */
.hero-section *,
.day-tours-section *,
.multi-day-section *,
.packages-section *,
.adventure-section *,
.destinations-section *,
.contact-box * {
    box-sizing: border-box;
}

/* Scoped body styles to avoid conflicts */
.hero-section,
.day-tours-section,
.multi-day-section,
.packages-section,
.adventure-section,
.destinations-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.seo-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =================================================================
   QUICK FILTER BAR
   ================================================================= */
#Quick-Filter-Bar,
.filter-flex-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

.filter-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px var(--shadow);
}

.filter-btn:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* =================================================================
   SECTION STYLING
   ================================================================= */
section {
    padding: 80px 20px;
}

section:nth-child(even) {
    background: var(--white);
}

/* Specific styling for multi-day section */
.multi-day-section {
    background: var(--light);
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

h2 {
    font-size: 2.2em;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

h2::after {
	content: '';
	position: absolute;
	bottom: -9px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: var(--primary-color);
	border-radius: 2px;
}

.section-description {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 30px auto 0;
    line-height: 1.8;
}

/* =================================================================
   GRID SYSTEMS
   ================================================================= */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.flex-2-col {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.flex-2-col > div {
    flex: 1;
    min-width: 450px;
}

/* =================================================================
   TOUR CARDS
   ================================================================= */
.tour-card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.tour-card h3 {
    font-size: 1.5em;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-card h3::before {
    content: '→';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.tour-card p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
}

.tour-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.tour-card li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.tour-card li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: 2px;
}

/* =================================================================
   CALL TO ACTION BUTTONS
   ================================================================= */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    text-align: center;
    margin-top: auto;
}

.cta-button:hover {
    background: transparent;
    color: var(--primary-color);
    transform: scale(1.05);
}

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

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

/* =================================================================
   LOCATION LINKS
   ================================================================= */
.location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.location-link {
    background: var(--light);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.location-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =================================================================
   CONTACT BOX
   ================================================================= */
.contact-box {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 60px auto;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-box h3 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-box p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.7;
}

.contact-box .cta-button {
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.1em;
    padding: 15px 35px;
}

.contact-box .cta-button:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--white);
}

/* =================================================================
   FOOTER
   ================================================================= */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

/* =================================================================
   UTILITY COMPONENTS
   ================================================================= */

/* Package buttons container */
.package-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.package-buttons .cta-button {
    flex: 1;
    min-width: 120px;
    margin: 0;
    font-size: 0.9em;
    padding: 10px 20px;
}

/* Cruise ports specific layout */
.cruise-ports-buttons {
    margin-bottom: 20px;
}

.ports-row-1 {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.ports-row-1 .cta-button {
    flex: 1;
    font-size: 0.9em;
    padding: 12px 20px;
}

.ports-row-2 {
    display: flex;
    justify-content: center;
}

.ports-row-2 .cta-button {
    font-size: 0.9em;
    padding: 12px 25px;
    min-width: 160px;
}

/* Placeholder Notice */
.coming-soon {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    color: #856404;
    font-weight: 500;
}

/* Feature highlights */
.feature-highlight {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
}

.feature-highlight h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Statistics or number highlights */
.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1em;
    color: #666;
    margin-top: 5px;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Tablet view - 2 columns for better readability */
@media (max-width: 1024px) {
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .seo-title {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .flex-2-col > div {
        min-width: 100%;
    }

    .grid-4-col {
        grid-template-columns: 1fr;
    }

    #Quick-Filter-Bar {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 60px 20px;
    }

    .tour-card {
        padding: 25px;
    }

    h2 {
        font-size: 1.8em;
    }

    .contact-box {
        padding: 40px 30px;
        margin: 40px auto;
    }

    .contact-box h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 15px 40px;
    }

    .seo-title {
        font-size: 1.5em;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1em;
        line-height: 1.5;
    }

    .tour-card {
        padding: 20px;
    }

    .tour-card h3 {
        font-size: 1.3em;
    }

    .location-links {
        flex-direction: column;
        align-items: center;
    }

    .location-link {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .filter-btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}

/* =================================================================
   ACCESSIBILITY & FOCUS STATES
   ================================================================= */
.filter-btn:focus,
.cta-button:focus,
.location-link:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .tour-card {
        border: 2px solid var(--dark);
    }

    .filter-btn, .cta-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .filter-btn,
    .cta-button,
    .location-link,
    .tour-card {
        transition: none;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .filter-btn,
    .cta-button,
    .location-link {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .hero-section,
    #Quick-Filter-Bar,
    .contact-box {
        display: none;
    }

    .tour-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
