/* Wisata Page Specific Styles */
:root {
    --primary: #2c786c;
    --primary-dark: #1a4d44;
    --primary-light: #3d9d8f;
    --secondary: #2c786c;
    --secondary-dark: #1a4d44;
    --accent: #004445;
    --success: #10b981;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] {
    --light: #1e293b;
    --dark: #f8fafc;
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner-ring {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-screen p {
    color: white;
    margin-top: 1.5rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 6rem 0 4rem;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
    color: white;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 50%);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

.header-stats {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-stats h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.header-stats small {
    color: rgba(255, 255, 255, 0.8);
}

/* Category Cards */
.category-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
    height: 100%;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: var(--transition);
    opacity: 0;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.category-card i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.9;
}

.category-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-card p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

.category-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Filter Section */
.filter-section {
    background: var(--gray-50);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--gray-200);
}

[data-bs-theme="dark"] .filter-section {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

.form-select,
.form-control {
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 120, 108, 0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    background: white;
}

[data-bs-theme="dark"] .card {
    background: var(--gray-800);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-rating {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-rating i {
    color: #fbbf24;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating i {
    color: #fbbf24;
}

.destination-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
    margin-top: 1rem;
}

[data-bs-theme="dark"] .destination-meta {
    border-color: var(--gray-700);
}

.tags .badge {
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-700);
}

[data-bs-theme="dark"] .tags .badge {
    background: var(--gray-700);
    color: var(--gray-300);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 3rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
}

.feature-list i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Map Preview */
.map-preview {
    height: 300px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.map-preview .text-center {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-800);
    color: white;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Section Styles */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

[data-bs-theme="dark"] .section-title {
    color: var(--gray-100);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

[data-bs-theme="dark"] .section-subtitle {
    color: var(--gray-400);
}

/* Modal Styles */
.destination-detail-modal .modal-content {
    border-radius: 1.5rem;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-xl);
}

.destination-detail-modal .modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.destination-detail-modal .modal-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.destination-detail-modal .btn-close {
    filter: brightness(0) invert(1);
}

.destination-detail-modal .modal-body {
    padding: 2rem;
}

.destination-info-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

[data-bs-theme="dark"] .destination-info-section {
    border-color: var(--gray-700);
}

.destination-info-section:last-child {
    border-bottom: none;
}

.destination-meta-details {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

[data-bs-theme="dark"] .info-item {
    border-color: var(--gray-700);
}

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

.info-item strong {
    color: var(--primary);
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.info-item span {
    color: var(--gray-700);
    flex: 1;
}

[data-bs-theme="dark"] .info-item span {
    color: var(--gray-300);
}

.facilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.facility-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

[data-bs-theme="dark"] .facility-tag {
    background: var(--gray-700);
}

.facility-tag:hover {
    background: var(--primary);
    color: white;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list .badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 9999;
}

.toast-notification {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
}

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

.toast-notification.success { border-left-color: var(--success); }
.toast-notification.error { border-left-color: var(--danger); }
.toast-notification.info { border-left-color: var(--primary); }

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }

    [data-bs-theme="dark"] .navbar-collapse {
        background: var(--gray-800);
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 4rem 0 3rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .header-stats h3 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-card {
        margin-bottom: 1rem;
    }

    .filter-section .col-md-6 {
        margin-bottom: 1rem;
    }

    .destination-meta-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .btn {
        width: 100%;
        justify-content: center;
    }

    .destination-detail-modal .modal-header {
        padding: 1rem 1.5rem;
    }

    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-item strong {
        min-width: auto;
    }
}