.am-thuc-page :is(.food-featured-name,.food-card-title,.nha-hang-featured-name,.nha-hang-card-name,.pho-featured-name,.pho-card-name) a {
    color: inherit;
    text-decoration: none;
}

.explore-place-info {
    font-size: 14px;
    color: #52615b;
    margin-bottom: 16px;
}

.explore-place-info p {
    margin: 4px 0;
}

.am-thuc-page .food-featured-thumb-wrap,
.am-thuc-page .food-card-thumb-wrap,
.am-thuc-page :is(.nha-hang-featured-thumb-wrap,.nha-hang-card-thumb-wrap,.pho-featured-thumb-wrap,.pho-card-thumb-wrap) {
    display: block;
}

.am-thuc-page :is(.nha-hang-featured-content,.nha-hang-card,.pho-card-info) {
    min-width: 0;
}

.am-thuc-page :is(.nha-hang-card-actions,.nha-hang-featured-actions,.pho-card-actions,.pho-featured-actions) {
    flex-wrap: wrap;
}

.am-thuc-page .food-cards-grid:empty {
    display: none;
}

.am-thuc-page #tim-quan-map .fe-map-scroll-hint{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);z-index:1000;max-width:calc(100% - 40px);padding:10px 16px;border-radius:8px;background:rgba(15,23,42,.86);color:#fff;font:14px/1.5 Arial,sans-serif;text-align:center;pointer-events:none}
.am-thuc-page #tim-quan-map .fe-map-scroll-hint[hidden]{display:none}

/* ==========================================================================
   CUSTOM MAP PIN MARKER (.fe-map-pin)
   ========================================================================== */
.am-thuc-page .fe-map-marker-wrapper {
    background: transparent !important;
    border: none !important;
}

.am-thuc-page .fe-map-pin {
    position: relative;
    width: 42px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom center;
}

.am-thuc-page .fe-map-pin:hover {
    transform: translateY(-3px) scale(1.1);
}

.am-thuc-page .fe-map-pin.is-selected {
    transform: translateY(-4px) scale(1.16);
}

.am-thuc-page .fe-map-pin-pulse {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border-radius: 50%;
    background: rgba(185, 28, 28, 0.35);
    opacity: 0;
    pointer-events: none;
}

.am-thuc-page .fe-map-pin.is-selected .fe-map-pin-pulse {
    opacity: 1;
    animation: feMapPinPulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes feMapPinPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.75;
    }
    70% {
        transform: scale(1.65);
        opacity: 0;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

.am-thuc-page .fe-map-pin-body {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.am-thuc-page .fe-map-pin.is-selected .fe-map-pin-body {
    background: linear-gradient(135deg, #dc2626 0%, #852221 100%);
    border-color: #fef08a;
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.22), 0 8px 18px rgba(127, 29, 29, 0.48);
}

.am-thuc-page .fe-map-pin-tip {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: -6px;
    background: #7f1d1d;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    border-bottom-right-radius: 2px;
    box-shadow: 2px 2px 4px rgba(15, 23, 42, 0.2);
}

.am-thuc-page .fe-map-pin.is-selected .fe-map-pin-tip {
    background: #852221;
    border-color: #fef08a;
}

/* ==========================================================================
   CUSTOM LEAFLET POPUP MODAL (.tq-map-popup & .fe-popup-card)
   ========================================================================== */
.am-thuc-page #tim-quan-map .tq-map-popup .leaflet-popup-content-wrapper {
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden;
}

.am-thuc-page #tim-quan-map .tq-map-popup .leaflet-popup-content {
    margin: 0 !important;
    max-width: calc(100vw - 64px) !important;
    line-height: 1.45;
}

.am-thuc-page #tim-quan-map .tq-map-popup .leaflet-popup-tip {
    background: #ffffff !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16) !important;
}

.am-thuc-page #tim-quan-map .tq-map-popup .leaflet-popup-close-button {
    top: 10px !important;
    right: 10px !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    font: 600 16px/26px 'Be Vietnam Pro', Arial, sans-serif !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    z-index: 10;
}

.am-thuc-page #tim-quan-map .tq-map-popup .leaflet-popup-close-button:hover {
    background: #fee2e2 !important;
    color: #991b1b !important;
    transform: rotate(90deg);
}

.am-thuc-page .fe-popup-card {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px 15px;
    font-family: var(--font-header, 'Be Vietnam Pro'), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background: linear-gradient(180deg, #fffafa 0%, #ffffff 38%);
}

.am-thuc-page .fe-popup-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 30px;
    margin-bottom: 12px;
}

.am-thuc-page .fe-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: 999px;
    background: rgba(133, 34, 33, 0.1);
    color: #852221;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.am-thuc-page .fe-popup-badge i {
    font-size: 10.5px;
}

.am-thuc-page .fe-popup-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
}

.am-thuc-page .fe-popup-rating i {
    color: #f59e0b;
    font-size: 10px;
}

.am-thuc-page .fe-popup-main {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.am-thuc-page .fe-popup-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: block;
}

.am-thuc-page .fe-popup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.am-thuc-page .fe-popup-thumb:hover img {
    transform: scale(1.07);
}

.am-thuc-page .fe-popup-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.am-thuc-page .fe-popup-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.am-thuc-page .fe-popup-title:hover {
    color: #852221 !important;
}

.am-thuc-page .fe-popup-row {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #475569;
}

.am-thuc-page .fe-popup-row i {
    width: 13px;
    margin-top: 2px;
    text-align: center;
    flex-shrink: 0;
    color: #dc2626;
    font-size: 12px;
}

.am-thuc-page .fe-popup-address span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-thuc-page .fe-popup-status {
    align-items: center;
    color: #15803d;
    font-weight: 600;
    font-size: 12px;
}

.am-thuc-page .fe-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    flex-shrink: 0;
}

.am-thuc-page .fe-popup-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #f1f5f9;
}

.am-thuc-page .fe-popup-btn-detail {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8.5px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(133, 34, 33, 0.24);
    transition: all 0.22s ease;
}

.am-thuc-page .fe-popup-btn-detail:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #852221 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(133, 34, 33, 0.34);
}

.am-thuc-page .fe-popup-btn-detail i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.am-thuc-page .fe-popup-btn-detail:hover i {
    transform: translateX(3px);
}

.am-thuc-page .fe-popup-btn-dir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8.5px 12px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid rgba(35, 71, 49, 0.2);
    color: #234731 !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.am-thuc-page .fe-popup-btn-dir:hover {
    background: #234731;
    border-color: #234731;
    color: #ffffff !important;
}

/* ==========================================================================
   CARDS BELOW MAP (#timQuanItemsGrid)
   ========================================================================== */
.am-thuc-page .tim-quan-selection-status {
    margin: 0 0 18px;
    padding: 10px 16px;
    border-left: 4px solid #852221;
    border-radius: 8px;
    background: linear-gradient(90deg, #fef2f2 0%, #fffcfc 100%);
    color: #7f1d1d;
    font-family: var(--font-header, 'Be Vietnam Pro'), sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.am-thuc-page .tim-quan-selection-status[hidden] {
    display: none;
}

.am-thuc-page #timQuanItemsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
    gap: 20px;
    align-items: stretch;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 360px;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-card.is-selected {
    border-color: #852221;
    box-shadow: 0 0 0 2px rgba(133, 34, 33, 0.85), 0 12px 28px rgba(133, 34, 33, 0.14);
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-thumb {
    display: block;
    flex: 0 0 175px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-thumb img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-card:hover .tim-quan-item-thumb img {
    transform: scale(1.06);
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    padding: 15px 16px 16px;
    font-family: var(--font-header, 'Be Vietnam Pro'), sans-serif;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-title {
    display: block;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16.5px;
    line-height: 24px;
    height: 24px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-title:hover {
    color: #852221;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 9px 0 10px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-meta-line {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-meta-line i {
    width: 14px;
    margin-top: 2.5px;
    text-align: center;
    flex-shrink: 0;
    color: #dc2626;
    font-size: 12px;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-meta-line span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-card-actions {
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.am-thuc-page #timQuanItemsGrid .food-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #234731;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.am-thuc-page #timQuanItemsGrid .food-map-link:hover {
    background: #f0fdf4;
    border-color: #234731;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-item-card.is-selected .food-map-link {
    background: #fef2f2;
    border-color: rgba(133, 34, 33, 0.35);
    color: #852221;
    font-weight: 700;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-card-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.am-thuc-page #timQuanItemsGrid .tim-quan-card-detail-link:hover {
    color: #852221;
}

@media (max-width: 480px) {
    .am-thuc-page .fe-popup-thumb {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }
}
