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

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 50%, #1a0f0a 100%);
    color: #e8d5b7;
    overflow-x: hidden;
}

/* Subtle mandala pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}


/* Main Container */
.container {
    display: flex;
    gap: 25px;
    padding: 25px;
    height: calc(100vh - 85px);
    position: relative;
    z-index: 10;
}

/* Left Sidebar - Dark elegant */
.sidebar {
    width: 320px;
    background: rgba(20, 12, 8, 0.85);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 400;
    color: #d4af37;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Search box with button */
.search-box {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    gap: 8px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 14px 18px 14px 45px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    color: #e8d5b7;
    transition: all 0.4s;
    font-family: 'Georgia', serif;
}

.search-box input:focus {
    border-color: #d4af37;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.search-box input::placeholder {
    color: rgba(232, 213, 183, 0.4);
    font-style: italic;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 16px;
}

/* Search button */
.search-btn {
    padding: 14px 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #1a0f0a;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 3px 15px rgba(212, 175, 55, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #e5c158 0%, #d4af37 100%);
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #d4af37;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Cinzel', serif;
}

.filter-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    color: #e8d5b7;
    cursor: pointer;
    outline: none;
    transition: all 0.4s;
    font-family: 'Georgia', serif;
}

.filter-select:focus {
    border-color: #d4af37;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.filter-select option {
    background: #1a0f0a;
    color: #e8d5b7;
}

/* Ornamental divider */
.ornament {
    text-align: center;
    color: #d4af37;
    font-size: 16px;
    margin: 25px 0;
    opacity: 0.5;
    letter-spacing: 10px;
}

/* Map Container */
.map-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Monastery Card - BOTTOM POSITION - Auto height based on content */
.monastery-card {
    width: 100%;
    min-height: 240px;
    max-height: 320px;
    background: rgba(20, 12, 8, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: none;
    position: relative;
}

.monastery-card.active {
    display: block;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-content {
    display: flex;
    gap: 25px;
    padding: 25px;
    height: 100%;
}

.card-image {
    width: 280px;
    max-height: 270px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 24px;
    font-weight: 400;
    color: #d4af37;
    line-height: 1.2;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    margin-bottom: 10px;
}

.card-description {
    font-size: 14px;
    color: #c9b88f;
    line-height: 1.5;
    font-family: 'Georgia', serif;
    font-style: italic;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 2px solid #d4af37;
    margin-bottom: 15px;
}

.card-meta-item {
    font-size: 12px;
    color: #c9b88f;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Georgia', serif;
}

.card-meta-item strong {
    color: #d4af37;
    font-weight: 400;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #1a0f0a;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e5c158 0%, #d4af37 100%);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #e5c158;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* New button styles for Read About and Hotels */
.btn-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 5px 25px rgba(52, 152, 219, 0.4);
}

.btn-info:hover {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    box-shadow: 0 8px 35px rgba(52, 152, 219, 0.6);
    transform: translateY(-2px);
}

.btn-hotel {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 5px 25px rgba(231, 76, 60, 0.4);
}

.btn-hotel:hover {
    background: linear-gradient(135deg, #ec7063 0%, #e74c3c 100%);
    box-shadow: 0 8px 35px rgba(231, 76, 60, 0.6);
    transform: translateY(-2px);
}

/* Hotel map popup card (blue pins) */
.hotel-leaflet-popup .leaflet-popup-content-wrapper {
    background: rgba(20, 12, 8, 0.96);
    border: 1px solid rgba(52, 152, 219, 0.55);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.hotel-leaflet-popup .leaflet-popup-tip {
    background: rgba(20, 12, 8, 0.96);
}

.hotel-leaflet-popup .leaflet-popup-content {
    margin: 12px 14px;
}

.hotel-popup-card {
    color: #e8d5b7;
    min-width: 240px;
    font-family: 'Lato', sans-serif;
}

.hotel-popup-title {
    font-family: 'Cinzel', serif;
    color: #5dade2;
    font-size: 18px;
    margin-bottom: 6px;
}

.hotel-popup-location {
    font-size: 12px;
    color: rgba(232, 213, 183, 0.85);
    margin-bottom: 10px;
}

.hotel-popup-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 8px;
}

.hotel-popup-price {
    font-size: 13px;
    color: #d4af37;
    margin-bottom: 6px;
    font-weight: 700;
}

.hotel-popup-status {
    font-size: 12px;
    color: rgba(232, 213, 183, 0.75);
    margin-bottom: 10px;
}

.hotel-popup-actions {
    display: flex;
}

.hotel-popup-btn {
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.hotel-popup-btn:hover {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(20, 12, 8, 0.9);
    border: 1px solid #d4af37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #d4af37;
    transition: all 0.4s;
    z-index: 10;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.close-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(90deg);
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
}

/* Empty state */
.card-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    text-align: center;
    color: rgba(201, 184, 143, 0.5);
    min-height: 240px;
}

.card-empty-state .icon {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.card-empty-state p {
    font-size: 15px;
    line-height: 1.8;
    font-family: 'Georgia', serif;
    font-style: italic;
}

/* No results state */
.no-results-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    text-align: center;
    min-height: 240px;
}

.no-results-state .icon {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.4;
    color: #d4af37;
}

.no-results-state .title {
    font-size: 20px;
    color: #d4af37;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

.no-results-state .message {
    font-size: 14px;
    color: #c9b88f;
    line-height: 1.8;
    font-family: 'Georgia', serif;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
    }

    .map-wrapper {
        height: 700px;
    }

    .card-content {
        flex-direction: column;
    }

    .card-image {
        width: 100%;
        max-height: 200px;
    }

    .monastery-card {
        max-height: 500px;
    }
    
    .card-actions {
        grid-template-columns: 1fr;
    }
}
