﻿body {
    font-family: Inter,system-ui,-apple-system,sans-serif;
    background: #f5f6f8;
    scroll-behavior: smooth;
    margin-top: 60px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* HERO */

.restaurant-hero {
    position: relative;
    height: 320px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}
.restaurant-hero {
    margin-top: -20px;
}


.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,rgba(0,0,0,.05),rgba(0,0,0,.35));
}
.restaurant-hero::after {
    pointer-events: none;
}

.hero-rating {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: white;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    text-decoration: none;
    color: #111827;
    cursor: pointer;
    z-index: 5;
    transition: .2s;
}

    .hero-rating i {
        color: #facc15;
    }

    .hero-rating span {
        color: #6b7280;
    }

    .hero-rating:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(0,0,0,.2);
    }

    .hero-rating i {
        color: #facc15;
    }

    .hero-rating span {
        color: #6b7280;
    }

    .hero-rating:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    }

/* MAIN CARD */

.restaurant-card {
    position: relative;
    max-width: 1200px;
    margin: -100px auto 40px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.restaurant-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.restaurant-logo {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
}

    .restaurant-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.restaurant-main h1 {
    font-size: 30px;
    margin-bottom: 6px;
}

.restaurant-address {
    color: #6b7280;
    margin-bottom: 8px;
}

.restaurant-tags {
    display: flex;
    gap: 10px;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.cuisine {
    background: #e8eeff;
    color: #3b5bfd;
}

.open {
    background: #dcfce7;
    color: #15803d;
}

.close {
    color: white;
    background: #ef4444;
}


/* ACTION BUTTONS */

.restaurant-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
}

    .btn.dark {
        background: #1f2937;
        color: white;
    }

    .btn.outline {
        border: 1px solid #d1d5db;
    }


/* INFO GRID */

.restaurant-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 на ред */
    gap: 30px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

/* CARD */
.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

    .info-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    }

    /* ICON */
    .info-item .icon {
        font-size: 22px;
        flex-shrink: 0;
    }

    /* TEXT */
    .info-item > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .info-item label {
        font-size: 11px;
        color: #9ca3af;
        letter-spacing: 0.5px;
    }

    .info-item p {
        margin: 0;
        font-weight: 700;
        font-size: 16px;
        color: #0f172a;
    }

/* =========================
   TABLET → 2 + 1 centered
========================= */

@media (max-width: 1000px) {
    .restaurant-info {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }

   div.info-item {
        justify-content: center;
   }

    .restaurant-info .info-item:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 300px;
        width: 100%;
    }
}

/* =========================
   MOBILE → 1 column
========================= */

@media (max-width: 600px) {
    .restaurant-info {
        grid-template-columns: 1fr;
    }

        .restaurant-info .info-item:nth-child(3) {
            grid-column: auto;
            justify-self: stretch;
            max-width: 100%;
        }
}


/* STATS */

.restaurant-stats {
    width: 85%;
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat {
    background: white;
    border-radius: 16px;
    padding: 26px;
    border: 2px solid transparent;
    min-width: 0;

    text-align: center;
}

    .stat:hover {
        transform: translateY(-2px);
        transition: .2s;
    }

.stat-number {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    color: #6b7280;
}

.stat-yellow {
    border-color: #fbbf24;
}

.stat-green {
    border-color: #22c55e;
}

.stat-pink {
    border-color: #ec4899;
}

.stat-blue {
    border-color: #3b82f6;
}

/* 2 на ред */
@media (max-width: 992px) {
    .restaurant-stats {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
    }
    .section-header {
        text-align: center;
    }
}

/* 1 на ред */
@media (max-width: 576px) {
    .restaurant-stats {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 0 30px;
    }
}

/* OFFERS */

.offers-section {
    width: 85%;
    max-width: 1200px;
    margin: 40px auto;
}

.section-header {
    margin: 1.5cm 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
}

.section-subtitle {
    color: #6b7280;
    font-size: 14px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.offer-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    transition: .25s;
    margin: 0 !important;
    width: 100%;
}

    .offer-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0,0,0,.15);
    }

.offer-image {
    position: relative;
}

    .offer-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #16a34a;
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
}

.offer-content {
    padding: 20px;
}

.offer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.offer-prices {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
}

.price-new {
    font-size: 22px;
    font-weight: 700;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 992px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .offers-grid {
        grid-template-columns: minmax(300px, 380px);
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* COUNTDOWN */

.offer-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #e67e22;
}

.offer-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

    /* повече от 3 часа */
    .offer-countdown.safe {
        color: #2e7d32;
    }

    /* под 3 часа */
    .offer-countdown.warning {
        color: #e67e22;
    }

    /* под 1 час */
    .offer-countdown.urgent {
        color: #e53935;
    }

    /* изтекла */
    .offer-countdown.expired {
        color: #9e9e9e;
    }


/* REVIEWS */

.reviews-section {
    width: 85%;
    max-width: 1200px;
    margin: 60px auto;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.reviews-title {
    font-size: 30px;
    font-weight: 700;
}

.reviews-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #facc15;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    border-left: 6px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: .25s;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

.rating-5 {
    border-color: #22c55e;
}

.rating-4 {
    border-color: #84cc16;
}

.rating-3 {
    border-color: #f59e0b;
}

.rating-2 {
    border-color: #fb7185;
}

.rating-1 {
    border-color: #ef4444;
}

.review-stars {
    color: #facc15;
    font-size: 18px;
}

.review-text {
    margin: 14px 0;
    font-size: 16px;
    line-height: 1.6;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #6b7280;
}


/* SHOW MORE */

.hidden-review {
    display: none;
}

.reviews-show-more {
    text-align: center;
    margin-top: 20px;
}

.show-more-btn {
    border: none;
    background: #f3f4f6;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    transition: .2s;
}

    .show-more-btn:hover {
        background: #e5e7eb;
    }
/* RESPONSIVE */

@media (max-width: 1200px) {
    .stat-label {
        font-size: 13.5px;
    }
}
@media (max-width: 1000px) {
    .restaurant-header {
        flex-direction: column;
        gap: 50px;
    }
    div.restaurant-main {
        text-align: center;
    }
    .restaurant-tags{
        justify-content: center;
    }
}

@media (max-width: 775px) {
    .restaurant-stats {
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    .info-item label {
        font-size: 10px;
    }
    .info-item p {
        font-size: 14px;
    }
}

@media (max-width: 385px) {
    .restaurant-actions a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .restaurant-left {
        flex-direction: column;
    }
}