/* Custom Tourist styles with modern rich design and Outfit/Inter fonts */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f9fa;
    color: #333333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Premium Color Palette */
:root {
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --dark-navy: #0f172a;
    --secondary-slate: #475569;
    --card-shadow: 0 12px 36px rgba(15, 23, 42, 0.03);
    --card-hover-shadow: 0 20px 45px rgba(13, 148, 136, 0.12);
}

/* Header styling */
.tourist-hero {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #2c4257 100%);
    padding: 60px 0;
    color: white;
    border-bottom: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.tourist-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(147, 187, 64, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Glassmorphism card for Search and Filters */
.search-filter-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* Tab button custom styles */
.type-tab-btn {
    border: 1px solid rgba(13, 148, 136, 0.15);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    color: #475569;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.type-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.type-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

/* Object Cards */
.tourist-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.tourist-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(147, 187, 64, 0.2);
}

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

.tourist-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tourist-card:hover .tourist-card-img {
    transform: scale(1.08);
}

.tourist-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.tourist-card-zone-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Micro-animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Custom pricing labels */
.price-tag {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Leaflet maps custom styles */
.map-detail {
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Modern Details layout */
.details-sidebar {
    position: relative;
    top: auto;
    z-index: 990;
}

@media (min-width: 992px) {
    .details-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Action button styles */
.btn-action-book {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-action-book:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 187, 64, 0.3);
}

.btn-action-tour {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-action-tour:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-action-buy {
    background-color: #ec4899;
    border-color: #ec4899;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-action-buy:hover {
    background-color: #db2777;
    border-color: #db2777;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Custom list group styles */
.attribute-item {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f5f9;
}

.attribute-label {
    font-weight: 600;
    color: var(--dark-navy);
}

.attribute-value {
    color: #475569;
}

/* Dynamic Filter Form */
.dynamic-filter-field {
    animation: fadeIn 0.3s ease;
}

/* Carousel controls styling */
.carousel-inner, .carousel-item {
    border-radius: 16px;
}

/* Category Selection Grid Cards Styling */
.category-card {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
    border-color: rgba(13, 148, 136, 0.3);
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card-img {
    transform: scale(1.12);
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: background 0.4s ease;
    z-index: 2;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(13, 148, 136, 0.9) 100%);
}

.category-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-card:hover .category-card-icon {
    background: #f59e0b;
    color: #0f172a;
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.category-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.category-card-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.category-card:hover .category-card-count {
    color: rgba(255, 255, 255, 0.9);
}

.btn-back-categories {
    background: transparent;
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: #0d9488;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back-categories:hover {
    background: rgba(13, 148, 136, 0.05);
    color: #0f766e;
    transform: translateX(-4px);
}

/* View Mode Tabs (List / Map toggle) */
.view-mode-tabs {
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(13, 148, 136, 0.12);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    gap: 4px;
}

.view-mode-tabs .btn {
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    color: #64748b;
}

.view-mode-tabs .btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #0f766e 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.view-mode-tabs .btn:not(.active):hover {
    background: rgba(13, 148, 136, 0.07);
    color: var(--primary);
}

/* Leaflet list-map custom popup */
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15) !important;
    border: none !important;
    overflow: hidden;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important;
}

.map-popup-card {
    display: flex;
    flex-direction: column;
}

.map-popup-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.map-popup-body {
    padding: 12px 14px;
}

.map-popup-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #0d9488;
    margin-bottom: 4px;
}

.map-popup-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.map-popup-zone {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 10px;
}

.map-popup-link {
    display: inline-block;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
    transition: all 0.2s ease;
}

.map-popup-link:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
    transform: translateY(-1px);
}

.leaflet-popup-tip {
    box-shadow: none !important;
}

/* Fix badge text visibility for bg-opacity-10 and bg-success */
.badge.bg-opacity-10,
.badge.bg-success.bg-opacity-10 {
    background-color: rgba(13, 148, 136, 0.12) !important;
    color: #0d9488 !important;
    border: 1px solid rgba(13, 148, 136, 0.25) !important;
}

.badge.bg-success.text-white {
    background-color: #0d9488 !important;
    color: #ffffff !important;
    border: none !important;
}

