/* Tourism Module Mobile Responsive Styles - Desa Pulosarok */

/* Tourism Base Styles */
.tourism-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tourism-section {
    padding: 2rem 0;
}

.tourism-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tourism-hero::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.tourism-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tourism-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tourism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tourism-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.tourism-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tourism-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.tourism-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tourism-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tourism-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.tourism-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tourism-button {
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tourism-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tourism-icon {
    width: 2rem;
    height: 2rem;
    color: #3b82f6;
}

.tourism-stat {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    text-align: center;
}

.tourism-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.25rem;
}

.tourism-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tourism-nav-item {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tourism-nav-item:hover,
.tourism-nav-item.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.tourism-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.tourism-filter-item {
    flex: 1;
    min-width: 200px;
}

.tourism-form input,
.tourism-form select,
.tourism-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.tourism-form input:focus,
.tourism-form select:focus,
.tourism-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tourism-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.tourism-pagination-item {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    min-width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tourism-pagination-item:hover,
.tourism-pagination-item.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.tourism-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.tourism-modal-content {
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.tourism-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.tourism-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.tourism-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tourism-gallery-item:hover img {
    transform: scale(1.05);
}

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

.tourism-form-group {
    margin-bottom: 1.5rem;
}

.tourism-form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.tourism-button-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.tourism-text-responsive {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.tourism-heading-responsive {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.tourism-animate {
    animation: fadeInUp 0.6s ease-out;
}

.tourism-hover:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.tourism-focus:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.tourism-lazy {
    loading: lazy;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Mobile First Approach */
@media (max-width: 640px) {
    /* Force 2 columns on mobile for all grids */
    .tourism-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    /* Card adjustments for mobile */
    .tourism-card {
        min-height: 200px !important;
        padding: 0.75rem !important;
    }
    
    /* Image adjustments */
    .tourism-image {
        height: 120px !important;
        object-fit: cover;
    }
    
    /* Text adjustments */
    .tourism-title {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .tourism-description {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Badge adjustments */
    .tourism-badge {
        font-size: 0.625rem !important;
        padding: 0.125rem 0.375rem !important;
    }
    
    /* Button adjustments */
    .tourism-button {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    /* Icon adjustments */
    .tourism-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
    
    /* Form adjustments */
    .tourism-form input,
    .tourism-form select,
    .tourism-form textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem !important;
    }
    
    /* Hero section adjustments */
    .tourism-hero {
        padding: 1rem 0 !important;
    }
    
    .tourism-hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    .tourism-hero p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
    
    /* Statistics adjustments */
    .tourism-stat {
        font-size: 1.5rem !important;
    }
    
    .tourism-stat-label {
        font-size: 0.625rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 768px) {
    .tourism-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .tourism-card {
        min-height: 220px !important;
        padding: 1rem !important;
    }
    
    .tourism-image {
        height: 140px !important;
    }
    
    .tourism-title {
        font-size: 1rem !important;
    }
    
    .tourism-description {
        font-size: 0.875rem !important;
    }
    
    .tourism-badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .tourism-button {
        font-size: 0.875rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .tourism-grid {
        gap: 0.5rem !important;
    }
    
    .tourism-card {
        min-height: 180px !important;
        padding: 0.5rem !important;
    }
    
    .tourism-image {
        height: 100px !important;
    }
    
    .tourism-title {
        font-size: 0.8125rem !important;
    }
    
    .tourism-description {
        font-size: 0.6875rem !important;
    }
    
    .tourism-badge {
        font-size: 0.5625rem !important;
        padding: 0.125rem 0.25rem !important;
    }
    
    .tourism-button {
        font-size: 0.6875rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .tourism-card {
        min-height: 160px !important;
    }
    
    .tourism-image {
        height: 80px !important;
    }
    
    .tourism-title {
        font-size: 0.75rem !important;
    }
    
    .tourism-description {
        font-size: 0.625rem !important;
    }
}

/* Default image styling */
.tourism-default-image {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    width: 100%;
    height: 100%;
}

.tourism-default-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .tourism-nav {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .tourism-nav-item {
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem !important;
    }
}

/* Mobile filter improvements */
@media (max-width: 768px) {
    .tourism-filter {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .tourism-filter-item {
        width: 100% !important;
    }
}

/* Mobile pagination improvements */
@media (max-width: 768px) {
    .tourism-pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.25rem !important;
    }
    
    .tourism-pagination-item {
        min-width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 0.875rem !important;
    }
}

/* Mobile modal improvements */
@media (max-width: 768px) {
    .tourism-modal {
        margin: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
        max-height: calc(100vh - 2rem) !important;
    }
    
    .tourism-modal-content {
        padding: 1rem !important;
    }
}

/* Mobile gallery improvements */
@media (max-width: 768px) {
    .tourism-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .tourism-gallery-item {
        aspect-ratio: 1 !important;
    }
}

/* Mobile form improvements */
@media (max-width: 768px) {
    .tourism-form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .tourism-form-group {
        margin-bottom: 1rem !important;
    }
    
    .tourism-form-label {
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Mobile button improvements */
@media (max-width: 768px) {
    .tourism-button-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .tourism-button-group .tourism-button {
        width: 100% !important;
    }
}

/* Mobile text improvements */
@media (max-width: 768px) {
    .tourism-text-responsive {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    .tourism-heading-responsive {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }
}

/* Mobile spacing improvements */
@media (max-width: 768px) {
    .tourism-section {
        padding: 1rem 0 !important;
    }
    
    .tourism-container {
        padding: 0 1rem !important;
    }
}

/* Mobile animation improvements */
@media (max-width: 768px) {
    .tourism-animate {
        animation-duration: 0.3s !important;
    }
    
    .tourism-hover:hover {
        transform: none !important;
    }
}

/* Mobile accessibility improvements */
@media (max-width: 768px) {
    .tourism-focus:focus {
        outline: 2px solid #3b82f6 !important;
        outline-offset: 2px !important;
    }
    
    .tourism-button:focus {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    .tourism-lazy {
        loading: lazy !important;
    }
    
    .tourism-image {
        will-change: transform !important;
    }
}

/* Mobile dark mode improvements */
@media (max-width: 768px) {
    .dark .tourism-card {
        background-color: #1f2937 !important;
        border-color: #374151 !important;
    }
    
    .dark .tourism-text {
        color: #d1d5db !important;
    }
    
    .dark .tourism-badge {
        background-color: #374151 !important;
        color: #f9fafb !important;
    }
}



