/* ===================================
   POS PAGE - STYLES
   =================================== */

/* ===================================
   POS HERO SECTION WITH OVERLAY
   =================================== */

.pos-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 900px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3
    ;
}

.pos-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pos-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.2));
    z-index: 1;
}

.pos-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 150px;
}

.pos-hero-title {
    font-size: 120px;
    font-weight: 800;
    color: var(--burgundy);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Overlapping Content Box */
.pos-intro-box {
    position: absolute;
    bottom: -15%; /* Overlaps hero image at bottom */
    left: 15%;
    right: 15%;
    background: var(--burgundy);
    padding: 60px 80px;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pos-intro-box p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--off-white);
    margin-bottom: 20px;
    text-align: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pos-intro-box p:last-child {
    margin-bottom: 0;
}

/* ===================================
   MAP SECTION
   =================================== */

.map-section {
    background: var(--off-white);
    padding: 250px 0 80px;
    text-align: center;
}

.map-section .section-title {
    margin-bottom: 60px;
}

.map-container-pos {
    position: relative;
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.map-pos {
    width: 100%;
    height: 500px;
    position: relative;
}

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

.map-btn-pos {
    position: absolute;
    bottom: 30px;
    right: 30px;
}

/* ===================================
   STORE DIRECTORY SECTION
   =================================== */

.store-directory {
    background: var(--off-white);
    padding: 80px 0 100px;
}

.store-directory .section-title {
    text-align: center;
    margin-bottom: 10px;
}

.store-directory .section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.store-search-wrapper {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
}

.store-search-bar {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    color: var(--burgundy);
    background: white;
    transition: var(--transition);
    outline: none;
}

.store-search-bar:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 4px rgba(79, 5, 6, 0.1);
}

.store-search-bar::placeholder {
    color: #aaa;
}

.store-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
}

html[dir="rtl"] .store-search-bar {
    padding: 14px 48px 14px 20px;
}

html[dir="rtl"] .store-search-icon {
    left: auto;
    right: 18px;
}

.district-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 0 20px;
}

.district-btn {
    background: white;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.district-btn:hover {
    background: var(--burgundy);
    color: var(--yellow);
    transform: translateY(-2px);
}

.district-btn.active {
    background: var(--burgundy);
    color: var(--yellow);
    border-color: var(--burgundy);
    box-shadow: var(--shadow-sm);
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.market-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: default;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.market-card.hidden {
    display: none;
}

.market-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    font-size: 16px;
}

.market-card-info {
    flex: 1;
    min-width: 0;
}

.market-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--burgundy);
    margin: 0 0 6px;
    line-height: 1.3;
}

.market-card-district {
    font-size: 13px;
    color: #777;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.market-card-district i {
    font-size: 11px;
    color: var(--burgundy);
    opacity: 0.5;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.no-results.visible {
    display: block;
}

.no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 16px;
    color: #999;
    font-weight: 500;
}

/* Home page compact store preview */
.store-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.store-preview-grid .market-card {
    padding: 18px;
}

.store-preview-cta {
    text-align: center;
    margin-top: 10px;
}

/* ===================================
   LOCATIONS SLIDER SECTION (legacy)
   =================================== */

.locations-slider {
    background: var(--off-white);
    padding: 80px 0 100px;
}

.slider-wrapper {
    position: relative;
    padding: 0 60px;
}

.locations-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.locations-container::-webkit-scrollbar {
    display: none;
}

/* Location Card */
.location-card {
    flex: 0 0 900px;
    background: var(--green);
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

/* Location Header */
.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 50px 30px;
    gap: 30px;
}

.location-name {
    flex: 1;
}

.location-name .accent-line {
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin-bottom: 20px;
}

.location-name h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1.2;
    margin: 0;
}

.location-hours {
    text-align: right;
}

.location-hours p {
    font-size: 18px;
    font-weight: 600;
    color: var(--off-white);
    margin: 0;
}

/* Location Body */
.location-body {
    padding: 0 50px 30px;
}

.location-body p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--off-white);
    margin-bottom: 20px;
}

.location-body p:last-child {
    margin-bottom: 0;
}

/* Location Footer */
.location-footer {
    padding: 30px 50px 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.location-address {
    flex: 1;
}

.address-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 8px;
}

.address-text {
    font-size: 15px;
    color: var(--off-white);
    margin: 0;
}

/* Slider Navigation Buttons */
.location-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--yellow);
    color: var(--burgundy);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.location-slider-btn:hover {
    background: var(--burgundy);
    color: var(--yellow);
    transform: translateY(-50%) scale(1.1);
}

.prev-location {
    left: 0;
}

.next-location {
    right: 0;
}

/* ===================================
   RESPONSIVE DESIGN - POS PAGE
   =================================== */

@media (max-width: 1200px) {
    .location-card {
        flex: 0 0 700px;
    }
}

@media (max-width: 968px) {
    /* Hero adjustments - keep taller for overlap effect */
    .pos-hero {
        min-height: 500px;
        height: 60vh;
        overflow: visible; /* Allow overlap */
    }
    
    .pos-hero-title {
        font-size: 72px;
        padding-bottom: 60px;
    }
    
    /* Keep intro box overlapping but adjust for mobile */
    .pos-intro-box {
        position: absolute; /* Keep absolute for overlap */
        bottom: -10%; /* Less overlap on mobile */
        left: 5%;
        right: 5%;
        margin: 0;
        padding: 40px 30px;
        z-index: 10;
    }
    
    .pos-intro-box p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* Map section spacing - more space for overlapping box */
    .map-section {
        padding: 120px 0 60px; /* Extra top padding for overlapping box */
    }
    
    .map-section .section-title {
        font-size: 26px;
        padding: 0 20px;
        margin-bottom: 40px;
        line-height: 1.4;
    }
    
    .map-pos {
        height: 400px;
    }
    
    /* Location slider fixes for mobile */
    .locations-slider {
        padding: 60px 0 80px;
    }
    
    .slider-wrapper {
        padding: 0 40px;
    }
    
    .location-card {
        flex: 0 0 85vw;
        max-width: 500px;
    }
    
    .location-header {
        padding: 30px 25px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .location-hours {
        text-align: left;
    }
    
    .location-name h3 {
        font-size: 22px;
    }
    
    .location-hours p {
        font-size: 15px;
    }
    
    .location-body {
        padding: 0 25px 20px;
    }
    
    .location-body p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .location-footer {
        padding: 20px 25px 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .location-footer .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pos-hero {
        height: 55vh;
        min-height: 450px;
    }
    
    .pos-hero-title {
        font-size: 56px;
    }
    
    /* Adjust intro box for smaller screens */
    .pos-intro-box {
        bottom: -8%;
        left: 4%;
        right: 4%;
        padding: 30px 25px;
    }
    
    .pos-intro-box p {
        font-size: 14px;
    }
    
    /* Map section - more top padding */
    .map-section {
        padding: 100px 0 60px;
    }
    
    .location-card {
        flex: 0 0 90vw;
        max-width: 450px;
    }
    
    .location-name h3 {
        font-size: 20px;
    }
    
    .location-hours p {
        font-size: 14px;
    }
    
    .map-section .section-title {
        font-size: 22px;
    }
    
    .slider-wrapper {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .pos-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .pos-hero-title {
        font-size: 42px;
        padding-bottom: 40px;
    }
    
    /* Smaller overlap on tiny screens */
    .pos-intro-box {
        bottom: -5%;
        left: 3%;
        right: 3%;
        padding: 25px 20px;
    }
    
    .pos-intro-box p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .map-section {
        padding: 80px 0 40px;
    }
    
    .map-section .section-title {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .slider-wrapper {
        padding: 0 25px;
    }
    
    .location-card {
        flex: 0 0 85vw;
    }
    
    .location-header,
    .location-body,
    .location-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .location-name h3 {
        font-size: 18px;
    }
    
    .location-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .pos-hero-title {
        font-size: 90px;
    }
    
    .location-card {
        flex: 0 0 700px;
    }
    
    .location-name h3 {
        font-size: 28px;
    }
}

@media (max-width: 968px) {
    .pos-hero {
        height: 80vh;
        min-height: 600px;
    }
    
    .pos-hero-title {
        font-size: 72px;
        padding-bottom: 100px;
    }
    
    .pos-intro-box {
        transform: translateY(0);
        position: relative;
        margin-top: -100px;
    }
    
    .map-section {
        padding: 80px 0;
    }
    
    .location-card {
        flex: 0 0 600px;
    }
    
    .location-header {
        flex-direction: column;
        padding: 40px 40px 20px;
    }
    
    .location-hours {
        text-align: left;
    }
    
    .location-body {
        padding: 0 40px 20px;
    }
    
    .location-footer {
        padding: 20px 40px 40px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slider-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .pos-hero-title {
        font-size: 56px;
    }
    
    .pos-intro-box {
        padding: 40px 20px;
        margin-top: -80px;
    }
    
    .pos-intro-box p {
        font-size: 16px;
    }
    
    .map-section .section-title {
        font-size: 28px;
    }
    
    .location-card {
        flex: 0 0 calc(100vw - 100px);
        max-width: 500px;
    }
    
    .location-name h3 {
        font-size: 24px;
    }
    
    .location-header,
    .location-body,
    .location-footer {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 480px) {
    .pos-hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .pos-hero-title {
        font-size: 42px;
        letter-spacing: 2px;
    }
    
    .pos-intro-box {
        padding: 30px 15px;
        margin-top: -60px;
    }
    
    .pos-intro-box p {
        font-size: 15px;
    }
    
    .map-section {
        padding: 60px 0;
    }
    
    .map-section .section-title {
        font-size: 22px;
        padding: 0 15px;
    }
    
    .location-card {
        flex: 0 0 calc(100vw - 80px);
    }
    
    .location-name h3 {
        font-size: 20px;
    }
    
    .location-hours p {
        font-size: 14px;
    }
    
    .location-body p {
        font-size: 14px;
    }
    
    .location-header {
        padding: 30px 20px 15px;
    }
    
    .location-body {
        padding: 0 20px 15px;
    }
    
    .location-footer {
        padding: 15px 20px 30px;
    }
    
    .slider-wrapper {
        padding: 0 40px;
    }
    
    .location-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ===================================
   STORE DIRECTORY RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
    .markets-grid,
    .store-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .markets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-directory {
        padding: 60px 0 80px;
    }

    .district-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
    }

    .district-filter::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .market-card {
        padding: 18px;
    }

    .market-card-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .market-card-name {
        font-size: 14px;
    }

    .market-card-district {
        font-size: 12px;
    }

    .district-btn {
        padding: 7px 16px;
        font-size: 12px;
    }

    .store-search-bar {
        font-size: 14px;
        padding: 12px 16px 12px 42px;
    }

    html[dir="rtl"] .store-search-bar {
        padding: 12px 42px 12px 16px;
    }
}

@media (max-width: 480px) {
    .markets-grid,
    .store-preview-grid {
        grid-template-columns: 1fr;
    }

    .store-directory {
        padding: 40px 0 60px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

.location-card {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
