/* Day Tours Shortcode Styles */

/* Tailwind Config */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Custom CSS Variables */
:root {
    --sri-green: #2d5a27;
    --sri-gold: #ffd700;
    --sri-blue: #1e40af;
}

/* Base Styles */
.day-tours-wrapper {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1440px;
    margin: 0 auto;
}

/* Tour Card Styles */
.tour-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.tour-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 90, 39, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.tour-image {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    height: 12rem;
}

.tour-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.1) 0%, rgba(45, 90, 39, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tour-card:hover .tour-image::before {
    opacity: 1;
}

.attraction-item {
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 0.75rem;
    background-color: #f9fafb;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin: 0.125rem;
}

.attraction-item:hover {
    transform: translateX(4px);
    color: var(--sri-green);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--sri-green) 0%, #4a7c59 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.1);
    color: var(--sri-gold);
}

.tour-details {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: var(--sri-green);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.itinerary-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.itinerary-item:last-child {
    border-bottom: none;
}

.time-badge {
    background: var(--sri-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 1rem;
    min-width: 80px;
    text-align: center;
}

.pricing-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--sri-green);
}

.price-unit {
    font-size: 1rem;
    color: #6b7280;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-16 { margin-bottom: 4rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }

.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-white { color: #ffffff; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-300 { background-color: #d1d5db; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.p-6 { padding: 1.5rem; }
.p-3 { padding: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.w-full { width: 100%; }
.h-48 { height: 12rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.leading-relaxed { line-height: 1.625; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-yellow-400:hover { background-color: #facc15; }
.hover\:bg-gray-400:hover { background-color: #9ca3af; }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }

.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--sri-green); }
.focus\:border-transparent:focus { border-color: transparent; }

.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.border-t { border-top-width: 1px; }

.pt-2 { padding-top: 0.5rem; }

.resize-none { resize: none; }

/* Button Styles */
button {
    cursor: pointer;
    border: none;
    outline: none;
}

.bg-sri-green { background-color: var(--sri-green); }
.bg-sri-gold { background-color: var(--sri-gold); }
.text-sri-green { color: var(--sri-green); }

/* Form Styles */
input, select, textarea {
    outline: none;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--sri-green);
    box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.2);
}

/* Responsive Design */
@media (max-width: 767px) {
    .day-tours-wrapper {
        padding: 2rem 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .tour-details {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
}
