/* Dominican Way Tours - Elementor Widget Styles */

.dominican-way-tours-widget {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.dominican-way-tours-widget * {
    box-sizing: border-box;
}

/* Hero Section */
.dwt-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%2300c6ff"/><stop offset="100%" style="stop-color:%230072ff"/></linearGradient></defs><rect width="1200" height="600" fill="url(%23bg)"/><circle cx="200" cy="150" r="3" fill="white" opacity="0.6"/><circle cx="400" cy="100" r="2" fill="white" opacity="0.4"/><circle cx="600" cy="200" r="4" fill="white" opacity="0.5"/><circle cx="800" cy="120" r="2" fill="white" opacity="0.7"/><circle cx="1000" cy="180" r="3" fill="white" opacity="0.4"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dwt-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.dwt-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
}

.dwt-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
    color: #ffffff;
}

.dwt-hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
    color: #ffffff;
}

/* Text alignment utilities */
.dwt-hero-content[style*="text-align: left"] p {
    margin-left: 0;
    margin-right: auto;
}

.dwt-hero-content[style*="text-align: right"] p {
    margin-left: auto;
    margin-right: 0;
}

.dwt-hero-content[style*="text-align: center"] p {
    margin-left: auto;
    margin-right: auto;
}

/* Vehicles Showcase */
.dwt-vehicles-showcase {
    margin-top: 50px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Carousel Layout */
.dwt-vehicles-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.dwt-vehicles-carousel::-webkit-scrollbar {
    height: 8px;
}

.dwt-vehicles-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dwt-vehicles-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.dwt-vehicles-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Grid Layout */
.dwt-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Floating Layout */
.dwt-vehicles-floating {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.dwt-vehicles-floating .dwt-vehicle-card {
    animation: float 3s ease-in-out infinite;
}

.dwt-vehicles-floating .dwt-vehicle-card:nth-child(2n) {
    animation-delay: 1s;
}

.dwt-vehicles-floating .dwt-vehicle-card:nth-child(3n) {
    animation-delay: 2s;
}

/* Vehicle Card */
.dwt-vehicle-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 320px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.dwt-vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.dwt-vehicle-card:hover::before {
    left: 100%;
}

.dwt-vehicle-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--dwt-primary-color, #4ecdc4);
}

.dwt-vehicle-image {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dwt-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dwt-vehicle-card:hover .dwt-vehicle-image img {
    transform: scale(1.1);
}

.dwt-vehicle-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.dwt-vehicle-capacity {
    font-size: 1rem;
    color: var(--dwt-primary-color, #4ecdc4);
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.dwt-vehicle-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dwt-feature-tag {
    background: linear-gradient(135deg, var(--dwt-primary-color, #4ecdc4), #45b7d1);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Auto-scroll for carousel */
.dwt-vehicles-carousel {
    animation: autoScroll 20s linear infinite;
}

.dwt-vehicles-carousel:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        scroll-behavior: auto;
    }
    100% {
        scroll-behavior: auto;
    }
}

/* Container */
.dwt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section */
.dwt-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.dwt-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--dwt-secondary-color, #ff6b6b), var(--dwt-primary-color, #4ecdc4), #45b7d1);
}

.dwt-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.dwt-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--dwt-secondary-color, #ff6b6b), var(--dwt-primary-color, #4ecdc4));
    border-radius: 2px;
}

/* Services Grid */
.dwt-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.dwt-service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.dwt-service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.dwt-service-card:hover::before {
    animation: dwt-shine 0.6s ease;
}

@keyframes dwt-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.dwt-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--dwt-primary-color, #4ecdc4);
}

.dwt-service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dwt-primary-color, #4ecdc4);
}

.dwt-service-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.dwt-service-details {
    color: #666;
    line-height: 1.6;
}

.dwt-service-details p {
    margin-bottom: 8px;
}

/* Booking Form */
.dwt-booking-form {
    background: white;
    border-radius: 15px;
    padding: 0;
}

.dwt-form-group {
    margin-bottom: 25px;
}

.dwt-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.dwt-form-group select,
.dwt-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.dwt-form-group select:focus,
.dwt-form-group input:focus {
    outline: none;
    border-color: var(--dwt-primary-color, #4ecdc4);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.dwt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dwt-submit-btn {
    background: linear-gradient(135deg, var(--dwt-primary-color, #4ecdc4) 0%, #45b7d1 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.dwt-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.dwt-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* CTA Section */
.dwt-cta-section {
    background: linear-gradient(135deg, var(--dwt-secondary-color, #ff6b6b) 0%, #ee5a52 100%);
    color: white;
    text-align: center;
    padding: 50px 40px;
    border-radius: 20px;
    margin: 40px 0;
}

.dwt-cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.dwt-cta-section h2::after {
    display: none;
}

.dwt-cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.dwt-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.dwt-cta-button {
    display: inline-block;
    background: white;
    color: var(--dwt-secondary-color, #ff6b6b);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dwt-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #e74c3c;
    text-decoration: none;
}

/* Contact Info */
.dwt-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.dwt-contact-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.dwt-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dwt-contact-icon {
    font-size: 2.5rem;
    color: var(--dwt-primary-color, #4ecdc4);
    margin-bottom: 15px;
}

.dwt-contact-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.dwt-contact-card p {
    color: #666;
    margin-bottom: 8px;
}

/* Form Messages */
.dwt-form-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.dwt-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dwt-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.dwt-loading {
    position: relative;
}

.dwt-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--dwt-primary-color, #4ecdc4);
    border-radius: 50%;
    animation: dwt-spin 1s linear infinite;
}

@keyframes dwt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Vehicle Animation States */
.dwt-vehicle-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.dwt-vehicle-card.dwt-animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Vehicle Selection Feedback */
.dwt-vehicle-selected {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Vehicle Hover Effects */
.dwt-vehicle-card {
    cursor: pointer;
    user-select: none;
}

.dwt-vehicle-card:active {
    transform: translateY(-5px) scale(0.98);
}

/* Pulse animation for featured vehicles */
.dwt-vehicle-card.featured {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Loading placeholder for vehicle images */
.dwt-vehicle-image:empty::before {
    content: '🚗';
    font-size: 4rem;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Hero Split Layout (Left/Right) */
.dwt-hero-split {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left !important;
}

.dwt-hero-split .dwt-hero-text-content {
    flex: 1;
    min-width: 0;
}

.dwt-hero-split .dwt-hero-vehicles-content {
    flex: 1;
    min-width: 0;
}

.dwt-hero-left_side .dwt-hero-vehicles-content {
    order: -1;
}

.dwt-hero-split .dwt-hero-text-content h1,
.dwt-hero-split .dwt-hero-text-content p {
    margin-left: 0;
    margin-right: 0;
}

.dwt-hero-split .dwt-vehicles-showcase {
    margin-top: 0;
}

.dwt-hero-split .dwt-vehicles-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.dwt-hero-split .dwt-vehicles-carousel {
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dwt-hero-split .dwt-vehicles-floating {
    flex-direction: column;
    max-width: 400px;
}

/* Enhanced text controls */
.dwt-hero-content h1 {
    transition: all 0.3s ease;
}

.dwt-hero-content p {
    transition: all 0.3s ease;
}

/* Custom text shadows */
.dwt-hero-content h1[style*="text-shadow"] {
    text-shadow: inherit !important;
}

.dwt-hero-content p[style*="text-shadow"] {
    text-shadow: inherit !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dwt-hero-section {
        min-height: 500px;
        padding: 60px 20px;
    }
    
    .dwt-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .dwt-hero-content p {
        font-size: 1.1rem;
    }
    
    /* Mobile split layout becomes stacked */
    .dwt-hero-split {
        flex-direction: column;
        text-align: center !important;
        gap: 30px;
    }
    
    .dwt-hero-split .dwt-hero-text-content,
    .dwt-hero-split .dwt-hero-vehicles-content {
        flex: none;
        width: 100%;
    }
    
    .dwt-hero-left_side .dwt-hero-vehicles-content {
        order: 0;
    }
    
    .dwt-hero-split .dwt-hero-text-content h1,
    .dwt-hero-split .dwt-hero-text-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .dwt-hero-split .dwt-vehicles-grid,
    .dwt-hero-split .dwt-vehicles-floating {
        max-width: none;
    }
    
    .dwt-hero-split .dwt-vehicles-carousel {
        flex-direction: row;
        max-height: none;
        overflow-y: hidden;
        overflow-x: auto;
    }
    
    .dwt-vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .dwt-vehicles-floating {
        flex-direction: column;
        align-items: center;
    }
    
    .dwt-vehicle-card {
        min-width: 100%;
        max-width: 350px;
    }
    
    .dwt-vehicles-carousel {
        padding: 20px 10px;
    }
    
    .dwt-section {
        padding: 30px 20px;
    }
    
    .dwt-section h2 {
        font-size: 1.5rem;
    }
    
    .dwt-services-grid {
        grid-template-columns: 1fr;
    }
    
    .dwt-form-row {
        grid-template-columns: 1fr;
    }
    
    .dwt-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .dwt-cta-button {
        width: 200px;
    }
    
    .dwt-contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dwt-hero-section {
        padding: 40px 15px;
    }
    
    .dwt-container {
        padding: 0 15px;
    }
    
    .dwt-section {
        padding: 20px 15px;
    }
    
    .dwt-service-card {
        padding: 20px;
    }
    
    .dwt-contact-card {
        padding: 20px;
    }
}