/* Advanced UI Enhancements */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #66BB6A;
    --accent-color: #81C784;
    --dark-color: #1B5E20;
    --light-mint: #C8E6C9;
    --mint-bg: #A5D6A7;
    --white: #ffffff;
    --gradient-bg: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-heavy: 0 15px 40px rgba(0,0,0,0.15);
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Glass Morphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Advanced Search Section */
.search-section {
    background: var(--light-mint);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
    overflow: hidden;
}

.search-section::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Advanced Tab Navigation */
.nav-tabs {
    border: none;
    background: transparent;
    border-radius: 20px;
    padding: 8px;
    justify-content: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 25px 45px;
    border-radius: 15px 15px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    margin-right: 3px;
    border-bottom: 4px solid transparent;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.nav-tabs .nav-link::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;
}

.nav-tabs .nav-link:hover::before {
    left: 100%;
}

.nav-tabs .nav-link .ekit-icon-image {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-tabs .nav-link .elementskit-tab-title {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), #388E3C);
    color: white;
    border-bottom: 4px solid #2E7D32;
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    animation: pulse 2s infinite;
}

.nav-tabs .nav-link.active .ekit-icon-image {
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

.nav-tabs .nav-link:not(.active) {
    background: var(--white);
    color: var(--dark-color);
}

.nav-tabs .nav-link:hover:not(.active) {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Advanced Form Container */
.search-form-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(174,217,218,0.8));
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 0 20px 20px 20px;
    box-shadow: var(--shadow-heavy);
    margin-top: -4px;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.search-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76,175,80,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.tab-content {
    background: transparent;
    border-radius: 0 20px 20px 20px;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Advanced Form Controls */
.form-control, .form-select {
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    position: relative;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15), var(--shadow-medium);
    transform: translateY(-2px);
    background: var(--white);
}

.form-control::placeholder {
    color: #8e9aaf;
    font-weight: 400;
}

/* Advanced Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #388E3C);
    border: none;
    border-radius: 15px;
    padding: 18px 35px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #388E3C, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Advanced Responsive Design */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        min-width: 140px;
        padding: 20px 25px;
        font-size: 13px;
    }
    
    .nav-tabs .nav-link .ekit-icon-image {
        width: 32px;
        height: 32px;
    }
    
    .search-form-container {
        padding: 30px 20px;
        border-radius: 0 15px 15px 15px;
    }
    
    .form-control, .form-select {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .btn-primary {
        padding: 15px 25px;
        font-size: 14px;
    }
}

/* Micro-interactions */
.nav-tabs .nav-link:active {
    transform: scale(0.98);
}

.form-control:hover {
    border-color: rgba(255, 140, 66, 0.5);
}

/* Success/Error Messages with Advanced Styling */
.alert {
    border-radius: 15px;
    border: none;
    padding: 20px 25px;
    margin-top: 25px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    animation: slideInUp 0.5s ease;
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    color: #1B5E20;
    border-left: 4px solid var(--primary-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.05));
    color: #721c24;
    border-left: 4px solid #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Header Styles */
.top-bar {
    background: var(--light-mint);
    color: var(--dark-color);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar .contact-info a {
    color: var(--dark-color);
    text-decoration: none;
}

.navbar {
    background: var(--white) !important;
    box-shadow: none;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

/* Independent Logo Styling */
.logo-img {
    height: 90px;
    width: auto;
}

.navbar {
    min-height: 80px !important;
    padding: 1rem 0 !important;
}

.navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.navbar-brand {
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.navbar-brand img,
#header-logo {
    width: 160px !important;
    height: auto !important;
    max-height: 50px !important;
    display: block !important;
    object-fit: contain !important;
}

.navbar-nav {
    margin: 0 auto !important;
    align-items: center !important;
    display: flex !important;
}

.navbar-nav .nav-link {
    margin: 0 1rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 0 !important;
}

.navbar-toggler {
    order: 3 !important;
}

/* Override any Bootstrap img defaults */
.navbar img {
    width: 160px !important;
    height: auto !important;
    max-height: 50px !important;
}

#footer-logo {
    width: 200px !important;
    height: auto !important;
    max-height: 100px !important;
    display: block !important;
    object-fit: contain !important;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    margin: 0 15px;
    transition: color 0.3s ease;
    font-size: 15px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #388E3C;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--light-mint);
    color: var(--dark-color);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    padding: 60px 0;
}

/* Slider Image Styling */
.slider-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero-pattern.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    animation: fadeInUp 1s ease 0.4s both;
}

.carousel-item img {
    animation: fadeInRight 1s ease;
    max-width: 100%;
    height: auto;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Search Section */
.search-section {
    background: var(--light-mint);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.nav-tabs {
    border: none;
    background: transparent;
    border-radius: 15px;
    padding: 0;
    justify-content: center;
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 20px 40px;
    border-radius: 15px 15px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: var(--white);
    margin-right: 2px;
    border-bottom: 3px solid transparent;
    min-width: 180px;
}

.nav-tabs .nav-link .ekit-icon-image {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tabs .nav-link .elementskit-tab-title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-bottom: 3px solid var(--primary-color);
}

.nav-tabs .nav-link:not(.active) {
    background: var(--white);
    color: var(--dark-color);
}

.nav-tabs .nav-link:hover:not(.active) {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.search-form-container {
    background: var(--mint-bg);
    padding: 40px;
    border-radius: 0 15px 15px 15px;
    box-shadow: none;
    margin-top: -3px;
}

.tab-content {
    background: var(--mint-bg);
    border-radius: 0 15px 15px 15px;
    padding: 0;
}

.form-control, .form-select {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.25);
}

@media (max-width: 768px) {
    .nav-tabs .nav-link {
        min-width: 120px;
        padding: 15px 20px;
        font-size: 12px;
    }
    
    .nav-tabs .nav-link .ekit-icon-image {
        width: 24px;
        height: 24px;
    }
}

/* Services Section */
.services-section {
    background: var(--white);
    padding: 80px 0;
}

.services-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.services-section h2 {
    color: var(--dark-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Destinations Section */
.destination-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-10px);
}

.destination-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.destination-info {
    padding: 25px;
}

.destination-info h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.destination-info p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.about-features li i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--dark-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--light-mint) !important;
    color: var(--dark-color) !important;
    padding: 60px 0 20px 0;
}

.footer h5 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer .contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.footer .contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

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

.footer hr {
    border-color: rgba(45, 62, 80, 0.2);
}

.footer .text-center p {
    color: var(--dark-color);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-form-container {
        padding: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Advanced Alert System */
.advanced-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-heavy);
    animation: slideInRight 0.5s ease;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.2);
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(102, 187, 106, 0.7));
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(220, 53, 69, 0.7));
    color: white;
}

.alert-icon {
    margin-right: 15px;
    font-size: 24px;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    margin-left: auto;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.alert-close:hover {
    background: rgba(255,255,255,0.2);
}

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

/* Advanced Loading Animations */
.loading-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Form Validation Styles */
.is-valid {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(73, 230, 112, 0.15) !important;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.focused {
    transform: scale(1.02);
}

/* Advanced Card Hover Effects */
.service-card, .destination-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover::before, .destination-card:hover::before {
    left: 100%;
}

/* Advanced Typography */
.hero-title {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease;
}

.hero-subtitle {
    position: relative;
    display: inline-block;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: slideInLeft 1s ease 0.5s both;
}

@keyframes slideInLeft {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Advanced Responsive Enhancements */
@media (max-width: 768px) {
    .advanced-alert {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-tabs .nav-link {
        padding: 18px 20px;
        min-width: 120px;
    }
}
