/* ─── Variables ─────────────────────────────────────────── */
:root {
    --bg:          #f0f3f5;
    --surface:     #ffffff;
    --surface-2:   #f0efe9;
    --border:      #e3e1d8;
    --text:        #1a1916;
    --text-sub:    #6b6860;
    --accent:      #c8501a;
    --accent-soft: #f7e9e3;
    --green:       #1a7a4a;
    --green-soft:  #e3f2ea;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:   0 4px 16px rgba(0,0,0,.08);
    --radius:      14px;
    --radius-sm:   8px;
    --font-head:   'Sora', sans-serif;
    --font-body:   'DM Sans', sans-serif;
    --transition:  .2s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: #f2f2f2;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 72px; /* fallback only — JS overrides this to the real height */
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }

/* ─── Page Wrap ──────────────────────────────────────────── */
.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ───────── TOP ADS ───────── */
.top-ad {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    aspect-ratio: 21 / 8;   /* fixed ratio — same crop behavior at every screen size */
    background-color: #fafafa;
    text-align: center;
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
}

.ads-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
}
.ad-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Clear, modern readable overlay */
.ad-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    padding: 24px 40px;
    /* Soft left-to-right gradient so the text is consistently legible regardless of image colors */
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 3;
}

/* Label design matching your screenshot style */
.ad-label {
    position: absolute;
    top: 14px;
    right: 20px;
    z-index: 10;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Empty state */
.empty-ad {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.default-ad {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.default-ad img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.social-widget .social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    transition: opacity 0.15s, transform 0.15s;
}

.social-link:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.social-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.social-link.tiktok     { background: #000000; }
.social-link.instagram  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.facebook   { background: #1877f2; }
.social-link.website    { background: #334155; }

.share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.share:hover {
    background: #f6f6f6;
    border-color: #ccc;
}
.share.copied {
    background: #e8f9ee;
    border-color: #43e97b;
    color: #1a8a4d;
}

/* Fix for the breaking mobile query at the bottom of your file */
@media (max-width: 768px) {
    /* ... your other 768px rules ... */
    .top-ad {
        aspect-ratio: 16 / 6;
        min-height: 130px;
    }
    .ad-overlay {
        padding: 16px;
    }
    .ad-overlay h3 {
        font-size: 18px;
    }
    .ad-overlay p {
        font-size: 12px;
        max-width: 75%;
    }
}

/* ─── Main Layout ────────────────────────────────────────── */
.layout {
    display: grid;
    grid-template-columns: 52px 1fr 260px;
    gap: 20px;
    max-width: 1280px;
    width: 100%;
    margin: 24px auto;
    padding: 0 20px;
    align-items: start;
}

/* ─── Left Col — icon sidebar ────────────────────────────── */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 24px;
}

.side-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    font-size: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-decoration: none;
}

.side-link:hover {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.side-link.green { color: var(--green); border-color: var(--green-soft); }
.side-link.green:hover { background: var(--green); color: #fff; border-color: var(--green); }

.side-link.fav-side:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.side-link.fav-side.active { background: #fdf0f0; color: #c0392b; border-color: #c0392b; }
.side-link.fav-side.active:hover { background: #c0392b; color: #fff; }

/* ─── Gallery ────────────────────────────────────────────── */
.gallery {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--surface);
}

.main-image {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
    cursor: zoom-in;
}

.main-image img {
    transition: transform .4s ease;
}

.main-image:hover img { transform: scale(1.02); }

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.18) 0%, transparent 50%);
    pointer-events: none;
}

.thumbs {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: var(--surface);
}

.thumb {
    flex: 1;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--surface-2);
}

.thumb:hover { border-color: var(--accent); transform: translateY(-1px); }
.thumb.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ─── Shop Meta ──────────────────────────────────────────── */
.shop-meta {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.shop-name {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 18px;
    line-height: 1.2;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Category tag */
.categories-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

/* Owner */
.owner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-sub);
}

.owner-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-sub);
}

.owner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--green-soft);
}

.owner-status {
    color: var(--green);
    font-size: 12px;
    font-weight: 500;
}

/* Contact Buttons */
.meta-right {
    display: flex;
    gap: 8px;
}

.whatsapp, .call {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp {
    background: var(--green);
    color: #fff;
}

.whatsapp:hover {
    background: #155e38;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,122,74,.25);
}

.call {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.call:hover {
    background: var(--text);
    color: #fff;
    transform: translateY(-1px);
}

/* ─── Description ────────────────────────────────────────── */
.description {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.description h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.description h3 i { color: var(--accent); }

.description p {
    color: var(--text-sub);
    line-height: 1.8;
    font-size: 14.5px;
}

/* ─── Right Col ──────────────────────────────────────────── */
.right-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 24px;
}

.widget-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-sub);
    margin-bottom: 12px;
}

.widget-title i { color: var(--accent); }

/* Map */
.map-placeholder {
    height: 140px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    font-size: 13px;
    border: 1px dashed var(--border);
}

.map-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: inherit;
    padding: 20px;
    border-radius: 8px;
    transition: background var(--transition);
}

.map-link:hover { background: rgba(0,0,0,.04); }
.map-link .fa-map-location-dot { font-size: 2rem; color: #e03c3c; }
.map-link span { font-weight: 600; font-size: .9rem; }
.map-address { font-size: .8rem; color: var(--text-sub); text-align: center; }

/* Favourite button */
.fav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--surface-2);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.fav-btn i { font-size: 16px; transition: var(--transition); }

.fav-btn:hover {
    background: #fdf0f0;
    border-color: #e88080;
    color: #c0392b;
}

.fav-btn.active {
    background: #fdf0f0;
    border-color: #c0392b;
    color: #c0392b;
}

.fav-btn.active i { animation: heartPop .3s ease; }

@keyframes heartPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ─── Zoom Button ────────────────────────────────────────── */
.zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.main-image:hover .zoom-btn {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Lightbox ───────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,10,8,.92);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 90vw;
    max-height: 90vh;
}

.lb-image-wrap {
    max-width: 85vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img {
    max-width: 85vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    object-fit: contain;
    transition: opacity .15s ease;
}

.lb-img.lb-fade { opacity: 0; }

.lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.15);
    z-index: 2;
}

.lb-close:hover { background: rgba(255,255,255,.25); transform: scale(1.1); }

.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.15);
    z-index: 2;
}

.lb-nav:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.1); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-counter {
    font-family: var(--font-head);
    font-size: 13px;
    color: rgba(255,255,255,.6);
    letter-spacing: .08em;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 52px 1fr 220px;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .left-col {
        display: none;
    }
    .right-col {
        position: static;
    }
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-ad {
        height: 80px;
    }
}

/* suggestion section */

.suggestions-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    width: 100%; 
}

.suggestions-heading {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestions-heading i {
    color: var(--accent);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

@media (max-width: 900px) {
    .suggestions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .suggestions-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.suggested-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;   /* was: width: 500px; */
    text-decoration: none; 
}

.suggested-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.suggested-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    overflow: hidden;
}


.suggested-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.suggested-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 12px; 
}

.suggested-name {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0; 
    line-height: 1.4;
}

.suggested-loc {
    font-size: 13px;
    color: var(--text-sub);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.suggested-loc i {
    margin-top: 3px;
    color: var(--text-sub);
    flex-shrink: 0; 
}

@media (max-width: 768px) {
    .suggestions-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .suggestions-heading {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }
    
    .suggestions-grid {
        gap: 16px; 
    }
}

@media (max-width: 480px) {
    .suggestions-grid {
        grid-template-columns: 1fr; 
    }
    
    .suggested-info {
        padding: 12px;
    }
}

@media (max-width: 900px) {
    .suggestions-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    .suggestions-heading {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }
}

@media (max-width: 560px) {
    .suggested-info {
        padding: 12px;
    }
    .suggested-name {
        font-size: 14px;
    }
    .suggested-loc {
        font-size: 12px;
    }
}