/* Custom overrides for Buddhist Cemetery Theme */

/* Logo strip phía trên menu chính */
.site-brand-bar {
    background: #fff;
    border-bottom: 1px solid #e8e0d5;
}
.site-brand-bar__logo {
    max-height: 72px;
    width: auto;
    max-width: min(320px, 90vw);
    object-fit: contain;
}
.site-brand-bar__link { text-decoration: none; }

/* Menu off-canvas — ẩn markup gốc trước khi mmenu.js xử lý */
#mmenu:not(.mm-menu) {
    display: none;
}

.mm-menu .mmenu-actions > a {
    font-weight: 600;
    color: var(--green-color, #477827);
}

/* Header menu-black — căn chỉnh khớp mẫu */
.menu.menu-black .menu__right .d-flex { gap: 12px; flex-wrap: nowrap; }
.menu.menu-black .account { display: flex; align-items: center; white-space: nowrap; }
.menu.menu-black .account svg { flex-shrink: 0; margin-right: 6px; }
.menu.menu-black .search-location .menu__search { cursor: pointer; }

/* Autocomplete dropdown */
#autocompleteList { padding: 0; }
#autocompleteList li { padding: 10px 14px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #eee; list-style: none; }
#autocompleteList li:hover { background: #f5f0e8; color: #8B6914; }
#autocompleteList li:last-child { border-bottom: none; }

/* Results table improvements */
.results-table { width: 100%; border-collapse: collapse; }
.results-table thead th { background: #5C4033; color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.results-table tbody td { padding: 10px 14px; border-bottom: 1px solid #e0d5c5; font-size: 14px; vertical-align: middle; }
.results-table tbody tr:hover { background: #FAF3E0; }

/* Memorial page styles */
.memorial-header { background: linear-gradient(135deg, #5C4033, #8B6914); color: #fff; text-align: center; padding: 48px 20px; }
.memorial-header .lotus { font-size: 48px; margin-bottom: 12px; }
.memorial-header .dharma-name { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; margin-bottom: 4px; }
.memorial-header h1 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.memorial-header .years { font-size: 16px; opacity: .9; }
.memorial-nav { display: flex; gap: 12px; padding: 16px 0; justify-content: center; flex-wrap: wrap; }
.memorial-nav a { padding: 8px 20px; border-radius: 999px; font-size: 13px; color: #5C4033; background: #FFF8F0; border: 1px solid #e0d5c5; }
.memorial-nav a:hover { background: #8B6914; color: #fff; border-color: #8B6914; text-decoration: none; }
.memorial-card { background: #FFF8F0; border-radius: 16px; padding: 24px; margin-bottom: 20px; border: 1px solid #e0d5c5; }
.memorial-card h2 { font-size: 18px; color: #8B6914; margin-bottom: 16px; }
.portrait { text-align: center; margin-bottom: 20px; }
.portrait img { width: 200px; height: 250px; object-fit: cover; border-radius: 12px; border: 4px solid #8B6914; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-item { padding: 12px; background: #FAF3E0; border-radius: 8px; }
.info-item .label { font-size: 12px; color: #A9A9A9; text-transform: uppercase; letter-spacing: .5px; }
.info-item .value { font-size: 15px; font-weight: 600; margin-top: 2px; }
.gallery-grid-memorial { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery-grid-memorial img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform .2s; }
.gallery-grid-memorial img:hover { transform: scale(1.05); }
.memorial-msg { padding: 16px; background: #FAF3E0; border-radius: 12px; margin-bottom: 12px; border-left: 3px solid #8B6914; }
.memorial-msg .author { font-weight: 600; color: #5C4033; }
.memorial-msg .date { font-size: 12px; color: #A9A9A9; margin-top: 4px; }

/* Services cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.svc-card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #e0d5c5; text-align: center; transition: transform .2s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.svc-card .svc-icon { font-size: 40px; margin-bottom: 12px; }
.svc-card h3 { color: #8B6914; margin-bottom: 8px; }
.svc-card .svc-price { font-size: 18px; font-weight: 700; color: #5C4033; margin: 12px 0; }
.svc-card .svc-desc { font-size: 14px; color: #A9A9A9; margin-bottom: 16px; }
.btn-gold { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; background: #8B6914; color: #fff; border: none; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-gold:hover { background: #5C4033; color: #fff; text-decoration: none; }
.btn-outline-gold { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; background: transparent; color: #8B6914; border: 2px solid #8B6914; text-decoration: none; }
.btn-outline-gold:hover { background: #8B6914; color: #fff; text-decoration: none; }

/* Grave grid for map zone */
.grave-row { margin-bottom: 20px; }
.grave-row h4 { font-size: 15px; color: #8B6914; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e0d5c5; }
.grave-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.grave-item { background: #fff; border: 1px solid #e0d5c5; border-radius: 8px; padding: 8px; text-align: center; font-size: 12px; cursor: pointer; transition: all .2s; display: block; color: inherit; text-decoration: none; }
.grave-item:hover { border-color: #8B6914; background: #FAF3E0; text-decoration: none; color: inherit; }
.grave-item .grave-icon { font-size: 20px; color: #A9A9A9; margin-bottom: 4px; }
.grave-item .grave-pos { font-weight: 700; color: #8B6914; font-size: 14px; }
.grave-item .grave-name { font-size: 11px; color: #6b5b4f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 404 page */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 50vh; text-align: center; padding: 48px 20px; }
.error-page h1 { font-size: 96px; color: #8B6914; margin-bottom: 8px; }
.error-page p { color: #6b5b4f; margin-bottom: 24px; font-size: 18px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info-card { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #e0d5c5; }
.contact-info-card h3 { margin-bottom: 16px; color: #8B6914; }
.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li { padding: 10px 0; border-bottom: 1px solid #eee; display: flex; gap: 10px; }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list i { color: #8B6914; width: 20px; margin-top: 3px; }
.contact-form { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #e0d5c5; }
.contact-form h3 { margin-bottom: 16px; color: #8B6914; }

/* Section styling */
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p { color: #6b5b4f; }

/* Responsive */
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
    .memorial-header h1 { font-size: 22px; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
