/* Define color variables (Consistent) */
:root {
    --bg-color: #FDF8F5;
    --text-color: #4A4A4A;
    --heading-color: #8B735B;
    --accent-color: #B58D7B;
    --subtle-accent: #C8A2A3;
    --white-color: #ffffff;
    --border-color: #EAE0DC;
    --card-bg-color: var(--white-color);
}

/* Basic Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* === MOBILE FIRST STYLES === */
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 900px; /* Suitable for readable content */
    margin: 0 auto;
    padding: 0 15px;
}

/* Page Heading */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: var(--heading-color);
    text-align: center;
    margin: 40px 0 20px 0;
    font-weight: 700;
}
.page-intro {
    text-align: center;
    color: var(--text-color);
    margin: 0 auto 40px auto;
    max-width: 600px;
    font-size: 1.05em;
}

/* Vendor Category Heading */
.vendor-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em; /* Mobile size */
    color: var(--accent-color);
    text-align: center; /* Center on mobile */
    margin: 40px 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 400;
}

/* Vendor Card Styling */
.vendor-card {
    display: flex;
    flex-direction: column; /* Stack image and info on mobile */
    gap: 15px;
    background-color: var(--card-bg-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.vendor-image-logo {
    flex-shrink: 0;
    width: 120px; /* Logo/Image size on mobile */
    height: 120px;
    margin: 0 auto 10px auto; /* Center and space below */
}

.vendor-image-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 'contain' for logos, 'cover' for photos */
    border-radius: 6px; /* Slightly rounded */
    /* border: 1px solid var(--border-color); */
}

.vendor-info {
    flex-grow: 1;
    text-align: center; /* Center text on mobile */
}

.vendor-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em; /* Mobile size */
    color: var(--heading-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.vendor-contact p {
    font-size: 0.95em;
    margin-bottom: 8px;
    line-height: 1.5;
}

.vendor-contact a {
    color: var(--subtle-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.vendor-contact a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
/* Add display:block for easier tapping on mobile */
.vendor-contact a { display: inline-block; margin: 0 5px; }


.vendor-blurb {
    font-size: 0.9em;
    color: var(--text-color);
    margin-top: 10px;
    font-style: italic;
    line-height: 1.6;
}


/* === TABLET STYLES (min-width: 600px) === */
@media (min-width: 480px) {
    .container { width: 85%; }
    .page-title { font-size: 3.2em; }
    .page-intro { font-size: 1.1em; }
    .vendor-category-title { font-size: 2em; text-align: center; }

    .vendor-card {
        flex-direction: row; /* Image on left, info on right */
        text-align: left; /* Align text left */
        align-items: flex-start; /* Align items to the top of the card */
        gap: 25px;
    }
    .vendor-image-logo {
        width: 100px; /* Adjust size for tablet */
        height: 100px;
        margin: 0; /* Remove auto margin */
    }
    .vendor-info {
        text-align: center; /* Align text left */
    }
    .vendor-name { font-size: 1.5em; }
    .vendor-role { font-size: 14px; }
    .vendor-contact a { display: inline; margin: 0; } /* Reset display for links */
    .vendor-contact p span::after { /* Add separator between contact details */
        content: "  |  ";
        margin: 0 5px;
        color: var(--border-color);
    }
    .vendor-contact p span:last-child::after {
        content: ""; /* Remove separator from last item */
        margin: 0;
    }
    .vendor-instagram-embed .instagram-media, /* Targets the blockquote */
    .vendor-instagram-embed iframe {         /* Targets the iframe generated by the script */
        max-width: 100% !important;          /* Prevents it from being wider than .vendor-instagram-embed */
        width: 100% !important;              /* Tries to make it fill the container width */
        min-width: 0 !important;             /* Attempts to override Instagram's default min-width */
        box-sizing: border-box !important;   /* Ensures padding/border are part of the width calculation */
        margin-left: auto !important;        /* Helps center it if it becomes narrower than its container */
        margin-right: auto !important;
        display: block !important;           /* Ensures it behaves as a block for margin auto to work */
    }
}

/* === DESKTOP STYLES (min-width: 992px) === */
@media (min-width: 992px) {
    .container { width: 80%; }
    .page-title { font-size: 3.8em; margin: 60px 0 30px 0;}
    .page-intro { margin-bottom: 50px; }
    .vendor-category-title { font-size: 2.2em; margin: 50px 0 30px 0; }

    .vendor-card {
        padding: 25px;
        gap: 30px;
    }
    .vendor-image-logo {
        width: 120px; /* Slightly larger on desktop */
        height: 120px;
    }
    .vendor-name { font-size: 1.6em; }
    .vendor-contact p { font-size: 1em; }
    .vendor-blurb { font-size: 0.95em; }
}
