/* ==========================================================
   ABC.lk — Restaurant Profile & Homepage Styling (v2, polished)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

.restaurant-profile, .abc-home {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: #222;
}

/* ---------------- RESTAURANT PROFILE PAGE ---------------- */

.restaurant-profile {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
}

/* Cover + logo */
.rp-cover {
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    position: relative;
}
.rp-cover-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.15) 60%, rgba(0,0,0,0));
    width: 100%;
    padding: 30px 24px 22px 24px;
    color: #fff;
    text-align: center;
}
.rp-logo {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    margin-bottom: 12px;
    background: #fff;
}
.rp-name {
    font-size: 26px;
    margin: 0 0 8px 0;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.rp-short-desc {
    font-size: 13.5px;
    margin: 0 auto;
    max-width: 520px;
    opacity: 0.92;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Buttons */
.rp-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 24px 18px;
    background: #fafafa;
}
.rp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    background: #c40000;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    flex: 1 1 auto;
    min-width: 140px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rp-btn:hover {
    background: #8c0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.rp-btn:active {
    transform: translateY(0);
}
.rp-btn-icon {
    font-size: 15px;
    line-height: 1;
}
.rp-btn-whatsapp { background: #25D366; }
.rp-btn-whatsapp:hover { background: #1ba851; }
.rp-btn-maps { background: #4285F4; }
.rp-btn-maps:hover { background: #2f5fc4; }
.rp-btn-review { background: #f4a900; color: #1a1a1a !important; }
.rp-btn-review:hover { background: #d99400; }

/* Sections */
.rp-section {
    padding: 26px 20px;
    border-top: 1px solid #f0f0f0;
}
.rp-section h2 {
    font-size: 19px;
    color: #c40000;
    margin: 0 0 16px 0;
    font-weight: 800;
}

/* Offers */
.rp-offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.rp-offer-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.rp-offer-card:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.rp-offer-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.rp-offer-card h3,
.rp-offer-card p,
.rp-offer-card a.rp-offer-link {
    padding-left: 14px;
    padding-right: 14px;
}
.rp-offer-card h3 {
    margin: 12px 0 6px 0;
    font-size: 15px;
    font-weight: 700;
}
.rp-offer-card p {
    margin: 0 0 8px 0;
    font-size: 12.5px;
    color: #666;
    line-height: 1.5;
}
.rp-offer-link {
    display: block;
    margin: 4px 0 14px 0;
    color: #c40000;
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: none;
}
.rp-offer-link:hover { text-decoration: underline; }

/* Quick info */
.rp-info p {
    font-size: 13.5px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 10px 0;
}

/* Social row */
.rp-social {
    margin-top: 14px;
    display: flex;
    gap: 16px;
}
.rp-social a {
    color: #c40000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    background: #fdf0f0;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.rp-social a:hover { background: #f9dcdc; }

@media (min-width: 600px) {
    .rp-btn { flex: 0 1 auto; }
    .rp-offers-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------- HOMEPAGE ---------------- */

.abc-home {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 18px 50px 18px;
}

.abc-search-wrap { margin-bottom: 34px; }
.abc-search-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}
.abc-search-form input[type="search"] {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-right: none;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.abc-search-form input[type="search"]:focus { border-color: #c40000; }
.abc-search-form button {
    padding: 14px 24px;
    background: #c40000;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}
.abc-search-form button:hover { background: #8c0000; }

.abc-section-title {
    font-size: 21px;
    color: #1a1a1a;
    border-left: 5px solid #c40000;
    padding-left: 12px;
    margin: 36px 0 18px 0;
    font-weight: 800;
}

.abc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 600px) { .abc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .abc-grid { grid-template-columns: 1fr 1fr 1fr; } }

.abc-card {
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.abc-card:hover {
    box-shadow: 0 10px 22px rgba(0,0,0,0.09);
    transform: translateY(-3px);
    border-color: #f0d0d0;
}
.abc-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}
.abc-card-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c40000, #8c0000);
    color: #fff;
    font-weight: 800;
    font-size: 22px;
}
.abc-card-body { min-width: 0; }
.abc-card-title {
    margin: 0 0 4px 0;
    font-size: 15.5px;
    font-weight: 700;
    color: #1a1a1a;
}
.abc-card-desc {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.abc-card-address {
    margin: 0;
    font-size: 11px;
    color: #aaa;
}

.abc-pagination {
    margin-top: 28px;
    text-align: center;
}
.abc-pagination .page-numbers {
    display: inline-block;
    padding: 9px 14px;
    margin: 0 3px;
    border: 1px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease;
}
.abc-pagination .page-numbers:hover { background: #f7f7f7; }
.abc-pagination .page-numbers.current {
    background: #c40000;
    color: #fff;
    border-color: #c40000;
}

/* ---------------- OFFERS SLIDER ---------------- */

.abc-offers-swiper {
    padding-bottom: 40px !important;
}
.abc-offer-slide {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.abc-offer-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.abc-offer-slide img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.abc-offer-slide-body {
    padding: 14px;
}
.abc-offer-restaurant {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #c40000;
    background: #fdf0f0;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.abc-offer-slide-body h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}
.abc-offer-slide-body p {
    margin: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}
.swiper-pagination-bullet-active {
    background: #c40000 !important;
}
