/* ==========================
   CSS Variables & Theme
========================== */
:root {
    --primary-color: #d45211;
    /* BBQ Orange */
    --primary-hover: #b0410a;
    --bg-color: #fcf9f6;
    --card-bg: #ffffff;
    --text-main: #2d2d2d;
    --text-muted: #666666;
    --border-color: #eaeaea;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Rye', serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(212, 82, 17, 0.15);

    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    --transition: all 0.3s ease;

    /* Layout variables for listing pages */
    --container-max: 1200px;
    --sidebar-width: 280px;
}

/* ==========================
   Global Resets
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================
   Container
========================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================
   Layout Container
========================== */
.biopage-container {
    max-width: 600px;
    /* "LinkTree" style constraints */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==========================
   Typography & Common
========================== */
.section-block {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.subsection-title {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    color: var(--text-main);
}

/* ==========================
   Buttons
========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(212, 82, 17, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 82, 17, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #e4e4e4;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: auto;
    padding: 0.75rem 2rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ==========================
   Header / Hero
========================== */
.hero-section {
    text-align: center;
    padding: 0 0 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.hero-cover {
    width: 100%;
    height: 180px;
}

.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-img-container {
    width: 120px;
    height: 120px;
    margin: -60px auto 1rem;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    padding: 4px;
    background: #fff;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.brand-handle {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==========================
   Rating Display in Header
========================== */
.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0.8rem 0 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 165, 0, 0.05);
    border-radius: var(--radius-pill);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.rating-display .stars {
    display: flex;
    gap: 0.2rem;
    color: #ffa500;
    font-size: 1.1rem;
}

.rating-display .stars i {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.rating-display .rating-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rating-display .rating-text strong {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.05rem;
}

.rating-display .divider {
    color: var(--border-color);
    font-weight: 300;
}

.rating-display .count {
    color: var(--text-muted);
}

/* ==========================
   Breadcrumb Navigation
========================== */
.breadcrumb-nav {
    text-align: center;
}

.breadcrumb, .breadcrumb-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 0.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 500;
}

.breadcrumb-item.active span {
    color: var(--text-main);
}

/* ==========================
   Intro Section
========================== */
.intro-section {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ==========================
   Menu Preview
========================== */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.dish-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dish-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.dish-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.dish-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(4px);
}

.menu-list {
    list-style: none;
    margin-bottom: 2rem;
}

.menu-item-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.item-name {
    color: var(--text-main);
}

.item-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 10px;
    opacity: 0.5;
}

.item-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================
   Accordions (Amenities & FAQ)
========================== */
details {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
}

summary {
    padding: 1rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    /* remove default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    color: var(--primary-color);
}

summary i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

details[open] summary {
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

details[open] summary i {
    transform: rotate(180deg);
}

.amenity-list,
.faq-answer {
    padding: 1rem 1.2rem;
    color: var(--text-muted);
}

.amenity-list {
    list-style: none;
}

.amenity-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amenity-list li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ==========================
   Gallery
========================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    /* Square thumbnails */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================
   Contact & Hours
========================== */
.contact-info .info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.info-row a:hover {
    color: var(--primary-color);
}

.icon-accent {
    width: 35px;
    height: 35px;
    background: rgba(212, 82, 17, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-muted);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li .day {
    font-weight: 500;
}

.hours-list li .time {
    font-weight: 600;
    color: var(--text-main);
}

/* ==========================
   Map
========================== */
.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

/* ==========================
   Reviews
========================== */
.reviews-slider {
    margin-bottom: 2rem;
    padding-bottom: 3rem;
    /* space for pagination */
}

.review-card {
    background: #fcfcfc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.review-stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.review-author {
    font-weight: 600;
    color: var(--text-main);
}

/* Swiper styling */
.swiper-pagination-bullet {
    background: var(--text-muted);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Review Form */
.review-form-wrapper {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group textarea,
.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 82, 17, 0.1);
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    color: #ddd;
    font-size: 1.5rem;
    transition: color 0.2s;
    margin: 0;
}

.rating-input input:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
    color: #ffc107;
}

/* ==========================
   Footer
========================== */
.site-footer {
    text-align: center;
    padding: 1rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================
   Content Sections (Why Visit, Likes)
========================== */
.content-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-text strong {
    color: var(--text-main);
    display: inline-block;
}

.pros-cons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.text-success {
    color: #2e7d32;
}

.text-danger {
    color: #c62828;
}

.text-light {
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================
   Menu Page Specific Styles
========================== */
.menu-nav-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.menu-nav-chips::-webkit-scrollbar {
    height: 4px;
}

.menu-nav-chips::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.menu-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-main);
}

.menu-chip:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.menu-category-block {
    margin-bottom: 2.5rem;
    scroll-margin-top: 1rem;
}

.menu-category-block:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.5px;
}

.menu-items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item-card {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.menu-item-card:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.item-header .item-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    flex: 1;
}

.item-header .item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Related Places Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.related-card {
    display: block;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-info {
    padding: 0.8rem;
}

.related-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.related-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================
   Animations
========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-block {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Staggered animation for children could be added via JS or extended CSS */

/* ==========================
   Back to Top Button
========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(0) scale(1.05);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================
   Utility Classes
========================== */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 2rem;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 768px) {
    .breadcrumb, .breadcrumb-list {
        font-size: 0.75rem;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.35rem;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .dish-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }

    .breadcrumb, .breadcrumb-list {
        font-size: 0.7rem;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.25rem;
    }

    .rating-display {
        font-size: 0.85rem;
        gap: 0.4rem;
        padding: 0.4rem 0.8rem;
    }

    .rating-display .stars {
        font-size: 1rem;
    }

    .rating-display .rating-text strong {
        font-size: 0.95rem;
    }
}
