/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@700&family=Noto+Sans+Sinhala:wght@400;600;700&display=swap');

:root { 
    --dark-maroon: #800000; 
    /* ... rest of your CSS ... */
}
```



/* Local Font Loading */
@font-face {
    font-family: 'Noto Sans Sinhala';
    src: url('../fonts/NotoSansSinhala-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Sinhala';
    src: url('../fonts/NotoSansSinhala-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Sinhala';
    src: url('../fonts/NotoSansSinhala-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abhaya Libre';
    src: url('../fonts/AbhayaLibre-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root { 
    --dark-maroon: #800000; 
    --sinhala-font: 'Noto Sans Sinhala', sans-serif;
    /* ... rest of your CSS ... */
}
:root { 
    --dark-maroon: #800000; 
    --light-maroon: #a52a2a;
    --golden-yellow: #FFD700; 
    --saffron: #F4C430;
    --dark-saffron: #d4a830;
    --sinhala-font: 'Noto Sans Sinhala', sans-serif;
    --gradient-primary: linear-gradient(135deg, #800000 0%, #a52a2a 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #F4C430 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.2);
}

.details-container { 
    max-width: 1200px; 
    margin: -120px auto 60px; 
    padding: 0 20px; 
    position: relative; 
    z-index: 5; 
}

/* Ultra Modern Hero Image */
.main-cover {
    height: 480px;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.2);
}

.main-cover:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 90px rgba(0,0,0,0.25);
}

.main-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.2) 40%, 
        rgba(0,0,0,0.7) 75%,
        rgba(0,0,0,0.92) 100%);
    z-index: 1;
}

.cover-content { 
    position: absolute; 
    bottom: 35px; 
    left: 40px; 
    right: 40px; 
    z-index: 2; 
    color: #fff;
}

.cover-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 4px 30px rgba(0,0,0,0.7);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.cover-content .badge {
    font-size: 0.95rem;
    padding: 9px 22px;
    backdrop-filter: blur(15px) saturate(180%);
    background: rgba(244,196,48,0.3);
    border: 2px solid rgba(244,196,48,0.5);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cover-content .badge:hover {
    background: rgba(244,196,48,0.45);
    transform: translateY(-2px);
}

/* Social Share Bar */
.share-bar {
    display: flex; 
    gap: 12px; 
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
    z-index: 100;
    position: relative;
}

.share-btn {
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    color: #fff !important; 
    font-size: 1.3rem !important; 
    text-decoration: none !important;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 100;
    cursor: pointer;
}

.share-btn i,
.share-btn svg {
    position: relative;
    z-index: 10;
    color: #fff !important;
    fill: #fff !important;
    font-size: 1.3rem;
    line-height: 1;
    display: block !important;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.share-btn:hover::before {
    opacity: 1;
}

.share-btn.fb { 
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
    box-shadow: 0 6px 20px rgba(24,119,242,0.5);
}

.share-btn.wa { 
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.share-btn.copy { 
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 6px 20px rgba(108,117,125,0.5);
}

.share-btn:hover { 
    transform: translateY(-4px) scale(1.1);
    color: #fff !important;
}

.share-btn.fb:hover { 
    box-shadow: 0 10px 30px rgba(24,119,242,0.7); 
    background: linear-gradient(135deg, #2a8cff 0%, #1a6fd6 100%);
}

.share-btn.wa:hover { 
    box-shadow: 0 10px 30px rgba(37,211,102,0.7); 
    background: linear-gradient(135deg, #30e674 0%, #22b85e 100%);
}

.share-btn.copy:hover { 
    box-shadow: 0 10px 30px rgba(108,117,125,0.7); 
    background: linear-gradient(135deg, #7d858d 0%, #5a6268 100%);
}

/* Owner Alert */
.details-container .alert {
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.95) !important;
    border: 2px solid rgba(255,193,7,0.3) !important;
    border-radius: 20px !important;
    padding: 20px 30px !important;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.details-container .alert:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Info Cards */
.buddhist-card { 
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), 
                0 0 0 1px rgba(255,255,255,0.5);
    padding: 35px;
    margin-top: 30px;
    border: 1px solid rgba(244,196,48,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.buddhist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.buddhist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
}

.buddhist-card:hover::before {
    opacity: 1;
}

/* Section Titles */
.section-title { 
    color: var(--dark-maroon);
    font-weight: 700;
    font-size: 1.65rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 28px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.buddhist-card:hover .section-title::after {
    width: 100%;
}

/* Info Items */
.info-item { 
    margin-bottom: 22px;
    padding-left: 18px;
    border-left: 4px solid var(--saffron);
    transition: all 0.3s ease;
    position: relative;
}

.info-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--dark-maroon);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.info-item:hover {
    padding-left: 22px;
}

.info-item:hover::before {
    transform: scaleY(1);
}

.info-item label { 
    font-size: 0.88rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span { 
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.05rem;
    display: block;
    line-height: 1.5;
}

/* Description Text */
.description-text {
    line-height: 1.9;
    text-align: justify;
    color: #333;
    font-size: 1.02rem;
    max-height: none;
    overflow: visible;
}

/* Profile Boxes */
.profile-box { 
    text-align: center;
    padding: 32px 25px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(244,196,48,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: auto;
    height: auto;
    margin-bottom: 20px;
}

.profile-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.profile-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.15);
}

.profile-box:hover::before {
    transform: scaleX(1);
}

.profile-img { 
    width: 135px;
    height: 135px;
    border-radius: 50%;
    border: 5px solid var(--saffron);
    object-fit: cover;
    margin: 0 auto 18px;
    display: block;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(244,196,48,0.3);
}

.profile-box:hover .profile-img {
    transform: scale(1.05);
    border-color: var(--dark-maroon);
    box-shadow: 0 15px 40px rgba(128,0,0,0.35);
}

.profile-box h5 {
    font-size: 1.25rem;
    margin: 12px 0 8px;
    color: var(--dark-maroon);
    font-weight: 700;
    line-height: 1.3;
}

.profile-box .text-muted {
    font-size: 0.92rem;
    color: #666 !important;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Buttons - Only for details page */
.details-container .btn {
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.details-container .btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.details-container .btn:hover::before {
    transform: translateX(100%);
}

.details-container .btn-warning {
    background: var(--gradient-gold) !important;
    color: #1a1a1a !important;
    box-shadow: 0 8px 24px rgba(244,196,48,0.4);
}

.details-container .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(244,196,48,0.5);
}

.details-container .btn-dark {
    background: var(--gradient-primary) !important;
    box-shadow: 0 8px 24px rgba(128,0,0,0.4);
}

.details-container .btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(128,0,0,0.5);
}

.details-container .btn-outline-dark {
    border: 2px solid var(--dark-maroon);
   
}

.details-container .btn-outline-dark:hover {
    background: var(--dark-maroon);
    transform: translateY(-2px);
}

.details-container .btn-primary {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%) !important;
    border: none;
}

/* Last Update */
.last-update { 
    font-size: 0.9rem;
    color: #999;
    text-align: center;
    margin-top: 50px;
    font-style: italic;
    padding: 15px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .details-container {
        margin-top: -80px;
    }
    
    .main-cover {
        height: 420px;
    }
    
    .cover-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .details-container { 
        margin-top: -60px;
        padding: 0 15px;
    }
    
    .main-cover { 
        height: 380px;
        border-radius: 22px;
    }
    
    .cover-content { 
        bottom: 25px;
        left: 25px;
        right: 25px;
    }
    
    .cover-content h1 {
        font-size: 1.95rem;
        margin-bottom: 15px;
    }
    
    .cover-content .badge {
        font-size: 0.85rem;
        padding: 7px 16px;
    }
    
    .share-bar {
        gap: 10px;
        margin-top: 16px;
    }
    
    .share-btn {
        width: 44px;
        height: 44px;
    }
    
    .share-btn i,
    .share-btn svg {
        font-size: 1.2rem;
    }
    
    .buddhist-card {
        padding: 28px 22px;
        border-radius: 20px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 22px;
    }
    
    .info-item {
        margin-bottom: 18px;
        padding-left: 15px;
    }
    
    .info-item span {
        font-size: 1rem;
    }
    
    .description-text {
        font-size: 0.98rem;
        line-height: 1.8;
    }
    
    .profile-box {
        padding: 28px 20px;
        margin-bottom: 18px;
    }
    
    .profile-img {
        width: 115px;
        height: 115px;
    }
    
    .profile-box h5 {
        font-size: 1.15rem;
    }
    
    .details-container .alert {
        padding: 18px 20px !important;
        flex-direction: column !important;
        text-align: center;
    }
    
    .details-container .alert .btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .main-cover {
        height: 320px;
        border-radius: 18px;
    }
    
    .cover-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .cover-content h1 {
        font-size: 1.6rem;
    }
    
    .cover-content .badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    
    .share-bar {
        gap: 8px;
        margin-top: 14px;
    }
    
    .share-btn {
        width: 42px;
        height: 42px;
    }
    
    .share-btn i,
    .share-btn svg {
        font-size: 1.1rem;
    }
    
    .buddhist-card {
        padding: 22px 18px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .description-text {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    
    .profile-box {
        padding: 24px 18px;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .profile-box h5 {
        font-size: 1.05rem;
    }
}

/* Map Container */
.map-container {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/* Phone buttons in profile */
.profile-box .btn-sm {
    font-size: 0.85rem;
    padding: 6px 16px;
}

.profile-box .btn-sm i {
    font-size: 0.9rem;
}