/* ==========================================
   MARKETPLACE (website)
   Scoped to .mkt-* classes so no existing
   page, component or carousel is affected.
   The carousel geometry mirrors the Beach
   Events cards so the marketplace, dining and
   event listings share one visual language.
   ========================================== */

.mkt-page {
    padding-bottom: 32px;
}

.mkt-block {
    margin-top: 26px;
}

.mkt-block-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.mkt-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    font-size: .85rem;
    color: #5d6b78;
}

.mkt-breadcrumb a {
    color: #0878db;
    text-decoration: none;
}

.mkt-page-head {
    margin-bottom: 16px;
}

/* ---------- Compact business card ---------- */

/* ONE photo on the left, details on the right, one short action row
   underneath. Small enough that two to three cards fit on a phone
   screen. object-fit: cover crops rather than stretching the photo. */

.mkt-card--compact {
    display: block;
    padding: 9px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eceff4;
    box-shadow: 0 1px 4px rgba(38, 76, 110, .05);
}

.mkt-card-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.mkt-card-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 108px;
    border-radius: 11px;
    overflow: hidden;
    background: #f2f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mkt-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mkt-card-thumb-fallback {
    font-size: 2rem;
}

.mkt-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

.mkt-card-name {
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mkt-card-text {
    margin: 2px 0 0;
    color: #5d6b78;
    font-size: .76rem;
    line-height: 1.35;
}

.mkt-card-meta {
    margin: 3px 0 0;
    font-size: .72rem;
    gap: 3px 8px;
}

.mkt-card-name-link {
    color: inherit;
    text-decoration: none;
}

.mkt-card-name-link:hover {
    color: #0878db;
}

.mkt-badge {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
}

.mkt-badge-featured {
    background: #fff1dc;
    color: #a35b00;
}

.mkt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.mkt-chip,
.mkt-chip-link {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef4fb;
    color: #35506b;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
}

.mkt-chip-link:hover {
    background: #dbe9f8;
    color: #0878db;
}

.mkt-subcategory-row {
    margin-top: 8px;
}

/* ---------- Card actions (one compact row) ---------- */

.mkt-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.mkt-card-actions .mkt-btn {
    flex: 1 1 auto;
    min-width: 66px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 9px;
    border: 1px solid #dde5ee;
    background: #ffffff;
    color: #35506b;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.mkt-card-actions .mkt-btn-reserve {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.mkt-card-actions .mkt-btn-whatsapp {
    border-color: #bfe3cd;
    color: #1f9d55;
}

/* ---------- Location selector ---------- */

.mkt-location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #f4f9ff;
    border: 1px solid #e2eefa;
}

.mkt-location-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mkt-location-pin {
    font-size: 1.3rem;
}

.mkt-location-question {
    display: block;
    color: #5d6b78;
    font-size: .78rem;
}

.mkt-location-current {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: #17324d;
    overflow-wrap: anywhere;
}

.mkt-location-change {
    flex: 0 0 auto;
    border: 1.5px solid #0d6efd;
    background: #ffffff;
    color: #0d6efd;
    border-radius: 12px;
    font-weight: 600;
}

.mkt-location-note {
    margin: 14px 0 0;
    color: #5d6b78;
    font-size: .82rem;
}

.mkt-location-results {
    margin-top: 10px;
    max-height: 240px;
    overflow-y: auto;
}

.mkt-location-result {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: #f6f8fb;
    text-align: left;
    margin-bottom: 6px;
}

.mkt-location-result:hover {
    background: #e9f1fb;
}

.mkt-location-result strong {
    display: block;
    font-size: .95rem;
}

.mkt-location-result small {
    color: #5d6b78;
}

/* ---------- Location cards ---------- */

.mkt-location-card {
    border-radius: 18px;
    color: inherit;
}

.mkt-location-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mkt-location-card-name {
    font-size: 1.05rem;
}

.mkt-location-count {
    display: block;
    margin-top: 10px;
    color: #0878db;
    font-size: .85rem;
    font-weight: 700;
}

/* ---------- Category grid ---------- */

.mkt-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.mkt-category-tile {
    padding: 14px 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e8eef5;
}

.mkt-category-link {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.mkt-category-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: #f4f9ff;
    font-size: 1.7rem;
    overflow: hidden;
}

.mkt-category-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mkt-category-name {
    display: block;
    font-size: .95rem;
    font-weight: 700;
}

.mkt-category-count {
    display: block;
    color: #5d6b78;
    font-size: .78rem;
}

/* ---------- Business detail page ---------- */

.mkt-detail-media {
    margin-bottom: 12px;
}

.mkt-detail-image {
    width: 100%;
    height: 230px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    background: #f2f6fa;
}

/* Two-photo carousel: native horizontal swipe with scroll snap, tiny
   dot indicators and previous/next controls. No carousel library and
   no gallery of every uploaded photo. */

.mkt-carousel {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f6fa;
}

.mkt-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mkt-carousel-track::-webkit-scrollbar {
    display: none;
}

.mkt-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
    scroll-snap-align: center;
    display: block;
}

.mkt-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #17324d;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(23, 50, 77, .18);
}

.mkt-carousel-prev {
    left: 8px;
}

.mkt-carousel-next {
    right: 8px;
}

.mkt-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.mkt-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    cursor: pointer;
}

.mkt-carousel-dot.is-active {
    background: #0d6efd;
}

/* ---------- Desktop/Tablet carousel enhancements ---------- */
@media (min-width: 700px) {
    .mkt-carousel-slide {
        height: 340px;
    }
}

@media (min-width: 992px) {
    .mkt-carousel-slide {
        height: 400px;
    }
}

@media (min-width: 700px) {
    .mkt-carousel-nav {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, .95);
        box-shadow: 0 4px 16px rgba(23, 50, 77, .22);
    }

    .mkt-carousel-prev {
        left: 16px;
    }

    .mkt-carousel-next {
        right: 16px;
    }

    .mkt-carousel-dots {
        bottom: 16px;
    }

    .mkt-carousel-dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, .8);
        border: 2px solid transparent;
    }

    .mkt-carousel-dot:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.2);
    }

    .mkt-carousel-dot.is-active {
        background: #0d6efd;
        border-color: #fff;
        transform: scale(1.3);
    }
}

/* ---------- Hero carousel for category pages ---------- */
.mkt-hero-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f2f6fa;
    margin-bottom: 20px;
}

.mkt-hero-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mkt-hero-carousel-track::-webkit-scrollbar {
    display: none;
}

.mkt-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    scroll-snap-align: center;
    display: block;
}

.mkt-hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #17324d;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(23, 50, 77, .18);
}

.mkt-hero-carousel-prev {
    left: 12px;
}

.mkt-hero-carousel-next {
    right: 12px;
}

.mkt-hero-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.mkt-hero-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    cursor: pointer;
}

.mkt-hero-carousel-dot.is-active {
    background: #0d6efd;
}

@media (min-width: 700px) {
    .mkt-hero-slide {
        height: 280px;
    }
}

@media (min-width: 992px) {
    .mkt-hero-slide {
        height: 320px;
    }
}

@media (min-width: 700px) {
    .mkt-hero-carousel-nav {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, .95);
        box-shadow: 0 4px 16px rgba(23, 50, 77, .22);
    }

    .mkt-hero-carousel-prev {
        left: 20px;
    }

    .mkt-hero-carousel-next {
        right: 20px;
    }

    .mkt-hero-carousel-dots {
        bottom: 16px;
    }

    .mkt-hero-carousel-dot {
        width: 10px;
        height: 10px;
    }
}

.mkt-detail-name {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
}

.mkt-detail-meta {
    margin: 0 0 4px;
}

.mkt-detail-address {
    margin: 0 0 6px;
    color: #5d6b78;
    font-size: .85rem;
}

.mkt-detail-summary {
    color: #35506b;
    font-size: .9rem;
    margin: 6px 0 0;
}

.mkt-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mkt-detail-actions .btn {
    flex: 1 1 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 600;
}

.mkt-detail-actions .mkt-action-whatsapp {
    color: #1f9d55;
    border-color: #bfe3cd;
}

.mkt-detail-text {
    color: #35506b;
    line-height: 1.65;
}

.mkt-service-card {
    border-radius: 18px;
    overflow: hidden;
}

.mkt-enquiry-form {
    max-width: 640px;
    padding: 16px;
    border-radius: 18px;
    background: #f7fafd;
    border: 1px solid #e8eef5;
}

/* ---------- Search ---------- */

.mkt-search-form {
    margin-bottom: 18px;
}

.mkt-search-form .input-group {
    max-width: 620px;
}

.mkt-result-count {
    color: #35506b;
    font-weight: 600;
}

.mkt-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mkt-result-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

.mkt-result-list a {
    color: #0878db;
    font-weight: 600;
    text-decoration: none;
    margin-right: 8px;
}

.mkt-result-list a:hover {
    text-decoration: underline;
}

/* ---------- Homepage integration ---------- */

.mkt-selector-host {
    padding-top: 8px;
}

.mkt-home-search {
    margin: 18px 0 8px;
}

.mkt-home-search .input-group {
    max-width: 640px;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
    .mkt-detail-image,
    .mkt-carousel-slide {
        height: 210px;
    }

    /* The header already carries the location chip and the search icon
       on a phone, so the full-width location bar is hidden there to
       keep the header to one compact row. It still renders (and still
       works) on tablet and desktop. */

    .mkt-bar--home {
        display: none;
    }

    .mkt-location-bar {
        flex-wrap: wrap;
    }

    .mkt-location-change {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .mkt-card-thumb {
        flex-basis: 88px;
        width: 88px;
        height: 100px;
    }

    .mkt-card-actions .mkt-btn {
        font-size: .68rem;
    }
}

/* ---------- Stacked business list (homepage sections) ---------- */

/* Compact cards, one under the other, so two to three fill a phone
   screen. Tablet shows two columns and desktop three, but the cards
   stay the same small size instead of stretching. */

.mkt-card-list {
    display: grid;
    gap: 9px;
}

@media (min-width: 768px) {
    .mkt-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .mkt-card-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Service cards on the business detail page: one column on a phone,
   two from the tablet width up. */

.mkt-service-list {
    display: grid;
    gap: 10px;
}

@media (min-width: 768px) {
    .mkt-service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Homepage location + search bar ---------- */

/* The design puts the location and the search in one bar. The location
   chip is the modal trigger - the same modal the "Change location"
   button opens on the other pages, where this variant is not used. */

.mkt-bar--home {
    gap: 10px;
    padding: 9px 12px;
    flex-wrap: nowrap;
}

.mkt-location-copy {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.mkt-location-text {
    min-width: 0;
}

.mkt-bar--home .mkt-home-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 9px 14px;
    background: #ffffff;
    border: 1px solid #e2eefa;
    border-radius: 999px;
}

.mkt-search-icon {
    font-size: .95rem;
    line-height: 1;
    opacity: .65;
}

.mkt-bar--home .mkt-home-search .form-control {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: .92rem;
    box-shadow: none;
}

.mkt-bar--home .mkt-home-search .form-control:focus {
    box-shadow: none;
}

@media (max-width: 700px) {
    .mkt-bar--home .mkt-location-question {
        font-size: .68rem;
    }

    .mkt-bar--home .mkt-location-current {
        font-size: .92rem;
    }

    .mkt-bar--home .mkt-home-search {
        padding: 8px 12px;
    }
}