/* Travel Tools & Affiliate Integration Styles */

/* Integrated Travel Tools Header */
.travel-tools-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.travel-tools-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.travel-tools-header-label {
    flex-shrink: 0;
}

.tools-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.tools-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
}

.travel-tools-header-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.header-tool-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.header-tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.header-tool-item:hover::before {
    left: 100%;
}

.header-tool-item:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.header-tool-item:active {
    transform: translateY(0);
}

.header-tool-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.header-tool-item:hover .header-tool-icon {
    transform: scale(1.1);
}

.header-tool-label {
    white-space: nowrap;
    font-weight: 500;
}

/* Fix hero section overlap */
.hero-section {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Responsive Design for Header Tools */
@media (max-width: 1200px) {
    .travel-tools-header-grid {
        gap: 0.75rem;
    }
    
    .header-tool-item {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 1024px) {
    .travel-tools-header-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .travel-tools-header {
        padding: 1.25rem 0;
    }
    
    .travel-tools-header-grid {
        justify-content: center;
        gap: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .travel-tools-header {
        padding: 1rem 0;
    }
    
    .travel-tools-header-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .travel-tools-header-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        width: 100%;
    }
    
    .header-tool-item {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.375rem;
        min-height: 70px;
        justify-content: center;
    }
    
    .header-tool-icon {
        font-size: 1.5rem;
    }
    
    .header-tool-label {
        white-space: normal;
        line-height: 1.2;
        font-size: 0.6875rem;
    }
    
    .tools-label {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .travel-tools-header-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .header-tool-item {
        padding: 0.625rem 0.375rem;
        min-height: 65px;
    }
    
    .header-tool-icon {
        font-size: 1.375rem;
    }
    
    .tools-label {
        font-size: 0.75rem;
    }
}

/* Horizontal scroll option for very small screens */
@media (max-width: 360px) {
    .travel-tools-header-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 0.5rem;
        gap: 0.75rem;
    }
    
    .header-tool-item {
        flex-shrink: 0;
        scroll-snap-align: start;
        min-width: 120px;
        flex-direction: column;
    }
}

/* Travel Tools Bar - Updated with Modern Icons */
.travel-tools-bar {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Modern Icon Styles for Travel Tools */
.travel-tool-icon {
    font-size: 1.5rem !important;
    line-height: 1;
}

/* Replace emoji icons with modern Remix icons */
.travel-tool-item[href*="trip.tpk.mx"] .travel-tool-icon::before {
    content: "";
    font-family: "remixicon";
    font-size: 1.5rem;
}

.travel-tool-item[href*="kiwitaxi.tpk.mx"] .travel-tool-icon::before {
    content: "";
    font-family: "remixicon";
    font-size: 1.5rem;
}

.travel-tool-item[href*="ektatraveling.tpk.mx"] .travel-tool-icon::before {
    content: "";
    font-family: "remixicon";
    font-size: 1.5rem;
}

.travel-tool-item[href*="airalo.tpk.mx"] .travel-tool-icon::before {
    content: "";
    font-family: "remixicon";
    font-size: 1.5rem;
}

.travel-tool-item[href*="getrentacar.tpk.mx"] .travel-tool-icon::before {
    content: "";
    font-family: "remixicon";
    font-size: 1.5rem;
}

.travel-tool-item[href*="wise.com"] .travel-tool-icon::before {
    content: "";
    font-family: "remixicon";
    font-size: 1.5rem;
}

.travel-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.travel-tools-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.travel-tools-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.travel-tool-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.travel-tool-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
}

.travel-tool-icon {
    font-size: 1.25rem;
}

.travel-tool-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Travel Essentials Cards */
.travel-essentials {
    background: #f8fafc;
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
}

.essentials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.essentials-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.essentials-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.essentials-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.essentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.essential-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.essential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.essential-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.essential-icon {
    font-size: 1.75rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.essential-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0;
}

.essential-content {
    padding: 1.5rem;
    flex: 1;
}

.essential-description {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.essential-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.essential-cta:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

/* Quote Confirmation Essentials */
.quote-essentials {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.quote-essentials-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.quote-essentials-icon {
    font-size: 1.5rem;
    color: #3b82f6;
}

.quote-essentials-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #0f172a;
    margin: 0;
}

.quote-essentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quote-essential-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quote-essential-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.quote-essential-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quote-essential-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.quote-essential-text {
    font-size: 0.75rem;
    color: #64748b;
}

/* Deal Page Essentials */
.deal-essentials {
    margin-top: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.deal-essentials-header {
    margin-bottom: 1.25rem;
}

.deal-essentials-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.deal-essentials-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

.deal-essentials-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.deal-essential-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.deal-essential-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.deal-essential-icon {
    font-size: 1.25rem;
}

.deal-essential-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #0f172a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .travel-tools-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .travel-tool-item {
        width: 100%;
        justify-content: center;
    }
    
    .essentials-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-essentials-grid {
        grid-template-columns: 1fr;
    }
    
    .deal-essentials-grid {
        flex-direction: column;
    }
    
    .deal-essential-pill {
        width: 100%;
        justify-content: center;
    }
}