/* Store Locator Page Styles */
/* Header/Nav/Mega-Menu styles are in header.css */

@font-face {
    font-family: "Forum";
    src: url("/thf-assets/fonts/forum/Forum-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: "Forum", serif;
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.9);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* HERO BANNER */
.hero-banner {
    width: 100%;
    height: 420px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)),
    url('{{ asset("thf-assets/images/mewabites_banner.jpg") }}') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 900px;
    padding: 0 40px;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero-title {
    font-size: 3.8rem;
    font-weight: 300;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 20px;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.hero-sub {
    font-size: 1.3rem;
    opacity: 0.85;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* MAIN CONTAINER */
.container {
    max-width: 1400px;
    margin: -100px auto 60px;
    padding: 0 40px;
    position: relative;
    z-index: 5;
}

/* FLOATING CARD */
.floating-card {
    background: rgba(15, 15, 15, 0.85);
    padding: 50px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: cardFloatUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes cardFloatUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

/* HEADER ROW */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 30px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.5px;
    position: relative;
}

.main-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 40px;
    height: 2px;
    background: #d4af37;
}

/* BUTTONS */
.map-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    font-weight: 400;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    font-family: "Forum", serif;
}

.map-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

/* FILTER CARD */
.filter-card {
    background: rgba(20, 20, 20, 0.7);
    padding: 35px;
    border-radius: 18px;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.location-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(180, 150, 50, 0.9));
    color: #000;
    padding: 15px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: "Forum", serif;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.filter-fields {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.filter-fields select,
.filter-fields input {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 160px;
    background: rgba(10, 10, 10, 0.8);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-family: "Forum", serif;
}

.filter-fields select:focus,
.filter-fields input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

.filter-fields button {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Forum", serif;
}

.filter-fields button:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.cafes-count {
    font-size: 1.2rem;
    font-weight: 400;
    color: #d4af37;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* SECTION TITLE */
.cafes-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #fff;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.cafes-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: #d4af37;
}

/* STORE LIST */
.cafes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
}

/* STORE CARD */
.cafe-card {
    background: rgba(20, 20, 20, 0.7);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.cafe-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.1);
}

.cafe-image-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.cafe-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.cafe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cafe-card:hover .cafe-image {
    transform: scale(1.08);
}

.cafe-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cafe-header {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
}

.cafe-locality {
    font-size: 1.1rem;
    font-weight: 300;
    color: #d4af37;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cafe-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 25px;
    flex: 1;
}

.details-row {
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.details-row i {
    color: #d4af37;
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
}

.open-now {
    color: #1da678;
    font-weight: 500;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.open-now::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #1da678;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.cafe-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.cafe-actions button,
.cafe-actions a {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-weight: 400;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-family: "Forum", serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cafe-actions .primary-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(180, 150, 50, 0.9));
    color: #000;
}

.cafe-actions .primary-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 1), rgba(180, 150, 50, 1));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.cafe-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.cafe-actions .secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .cafes-list {
        grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    }

    .filter-card {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-fields {
        justify-content: stretch;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        /* Mobile: no negative overlap. The hero text is too long to fit
           inside a fixed-height banner, so let the banner grow naturally and
           stack the floating card cleanly below it. */
        margin: 30px auto 60px;
    }

    .floating-card {
        padding: 30px 22px;
    }

    .hero-banner {
        /* Allow the banner to grow tall enough to fit the description */
        height: auto;
        min-height: 320px;
        padding: 80px 0;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1rem;
        line-height: 1.5;
    }

    .cafes-list {
        grid-template-columns: 1fr;
    }
}