/* File: public/css/business.css */

:root {
    --color-primary: #4285F4; /* Google Blue */
    --color-secondary: #0f9d58; /* Google Green */
    --color-text: #202124;
    --color-subtext: #5f6368;
    --color-background: #ffffff;
    --color-light-gray: #f1f3f4;
    --color-border: #dadce0;
}

/* Base Styles (Mobile First) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-width: 320px;
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-light-gray);
    padding-bottom: 4px;
}

p {
    font-size: 16px;
    color: var(--color-subtext);
    margin-bottom: 16px;
}

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

/* Layout */
#app {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--color-background);
}

.section {
    padding: 16px;
}

/* Header/Cover Section */
.cover-container {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: var(--color-light-gray);
}

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

.logo-container {
    position: absolute;
    bottom: -40px;
    left: 20px;
    padding: 4px;
    background-color: var(--color-background);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Info Bar */
.info-bar {
    padding: 24px 20px 0 120px; /* Offset for logo */
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.status-open {
    background-color: #e6f7ed;
    color: var(--color-secondary);
    border: 1px solid #b7ebc7;
}

.status-closed {
    background-color: #fce8e6;
    color: #d93025;
    border: 1px solid #f9d8d6;
}

.categories {
    margin-top: 8px;
}

.category-tag {
    display: inline-block;
    background-color: var(--color-light-gray);
    color: var(--color-subtext);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.address-info {
    font-size: 14px;
    color: var(--color-subtext);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.address-info svg {
    margin-right: 6px;
}

/* Call Button */
.call-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--color-primary);
    color: var(--color-background);
    text-align: center;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 16px;
}

.call-button:hover {
    background-color: #3b7ae0;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

/* Menu/Services/Products Sections */
.item-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: var(--color-background);
}

.item-details {
    flex-grow: 1;
}

.item-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
}

.item-description {
    font-size: 14px;
    color: var(--color-subtext);
    margin: 4px 0 0;
}

.item-price {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 16px;
}

.item-image-container {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--color-light-gray);
}

.item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Utility - Not Available */
.not-available {
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    color: var(--color-subtext);
    margin-top: 20px;
}

/* Mobile-first adjustments */
@media (max-width: 600px) {
    .info-bar {
        padding: 24px 16px 0 16px;
        text-align: center;
    }
    .logo-container {
        left: 50%;
        transform: translateX(-50%);
        bottom: -50px;
    }
    .logo-image {
        width: 100px;
        height: 100px;
    }
    .info-bar h1 {
        margin-top: 60px;
    }
    .call-button {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    .section {
        padding: 16px 20px;
    }
    h1 {
        font-size: 28px;
    }
}

/* Desktop/Tablet adjustments */
@media (min-width: 600px) {
    .cover-container {
        height: 350px;
    }
    .logo-container {
        bottom: -60px;
        left: 40px;
    }
    .logo-image {
        width: 120px;
        height: 120px;
    }
    .info-bar {
        padding: 40px 40px 20px 200px;
    }
    h1 {
        font-size: 36px;
    }
    .call-button {
        max-width: 300px;
    }
    .section {
        padding: 20px 40px;
    }
}

/* Fullscreen Image Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Hidden by default */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
