/*
   London Ice Cream Cart - Additional Styles
   Styles for the cart-specific features and sections
*/

/* ====== Cart Locator Section ====== */
.cart-locator {
    background: linear-gradient(135deg, #FF85A2 0%, #FFD7E9 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cart-locator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/cart-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 0;
}

.cart-locator .container {
    position: relative;
    z-index: 1;
}

.cart-locator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .cart-locator-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tab-headers {
        flex-wrap: wrap;
        justify-content: center;
    }

    .schedule-list-header {
        display: flex !important; /* Ensure header is visible on mobile */
    }
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
}

.map-canvas {
    width: 100%;
    height: 400px;
    border-radius: 15px;
}

/* Location Card */
.location-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    color: #FF85A2;
    margin-bottom: 20px;
}

.location-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.location-card p {
    margin: 10px 0;
    color: #666;
}

.status-text {
    margin: 15px 0;
    font-weight: 500;
}

.status-value {
    color: #FF85A2;
    font-weight: 600;
}

/* Schedule Section */
.cart-schedule {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.schedule-tabs {
    margin-top: 20px;
}

.tab-headers {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    position: relative;
}

.tab-headers button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px; /* Align button bottom with container bottom border */
}

.tab-headers button.active {
    color: #FF85A2;
    border-bottom-color: #FF85A2;
}

.tab-headers button:hover {
    color: #FF85A2;
}

.tab-content {
    padding: 20px 0;
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

.cart-schedule .tab-pane .location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-schedule .tab-pane .location-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    padding: 12px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.2s ease-in-out;
}

.cart-schedule .tab-pane .location-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cart-schedule .tab-pane .location-list .time {
    display: inline-block;
    background: #FF85A2;
    color: #fff;
    font-weight: 600;
    border-radius: 16px;
    padding: 5px 15px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    flex-basis: 120px;
    text-align: center;
}

.schedule-list-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 12px 10px 12px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-list-header .header-time {
    flex-basis: 120px;
    flex-shrink: 0;
    text-align: center;
}

.schedule-list-header .header-details {
    flex-grow: 1;
}

.location-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.location-details strong {
    font-weight: 600;
}

.location-details .address {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 2px;
}

.no-schedule-notice {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.schedule-day li {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.schedule-day li span {
    font-weight: 600;
    display: block;
    color: var(--gray-dark);
}

.schedule-day.weekend h4 {
    color: var(--accent);
}

.request-visit {
    margin-top: 2rem;
    text-align: center;
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.request-visit h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.weather-promo {
    background: var(--gradient-accent);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    box-shadow: var(--shadow);
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 3rem;
    border-right: 2px dashed rgba(255, 255, 255, 0.5);
}

.weather-info i {
    font-size: 4.8rem;
    color: #FF8C00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.temp-display {
    text-align: center;
}

.temp-display span {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
}

.temp-display p {
    font-size: 1.4rem;
    color: var(--gray-dark);
    margin: 0;
}

.hot-day-special {
    flex: 1;
    text-align: center;
}

.hot-day-special h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hot-day-special p {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.promo-code {
    font-size: 1.6rem;
}

.promo-code span {
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

/* ====== Events Section ====== */
.events {
    background-color: var(--white);
    position: relative;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.events-image {
    margin-bottom: 3rem;
}

.events-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.event-info {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.event-info h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}

.event-info p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.event-types {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.event-types li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.event-types li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.event-types li i {
    color: var(--primary);
    font-size: 1.8rem;
}

@media screen and (max-width: 768px) {
    .event-types {
        grid-template-columns: 1fr;
    }
}

.booking-form-container {
    background-color: #ffffff; /* White */
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease-in-out;
}

.booking-form h3 {
    font-size: 2.4rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--primary);
}

/* ====== Loyalty Program Section ====== */
.loyalty {
    background-color: var(--light);
    position: relative;
}

.loyalty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.loyalty-card {
    perspective: 1000px;
    width: 100%;
    height: 24rem;
    margin-bottom: 3rem;
}

.loyalty-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.loyalty-card:hover .loyalty-card-inner {
    transform: rotateY(180deg);
}

.loyalty-card-front, .loyalty-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

.loyalty-card-front {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.loyalty-card-back {
    background-color: white;
    color: var(--dark);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.loyalty-logo h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 0;
}

.loyalty-logo span {
    color: var(--accent);
}

.loyalty-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 1rem 0;
}

.loyalty-scoops {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.scoop {
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px dashed white;
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loyalty-instruction {
    font-size: 1.6rem;
    font-weight: 500;
}

.loyalty-card-back h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.loyalty-card-back ol {
    text-align: left;
    padding-left: 2rem;
}

.loyalty-card-back ol li {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.qr-code {
    margin-top: auto;
    text-align: center;
}

.qr-placeholder {
    width: 8rem;
    height: 8rem;
    background-color: var(--gray-light);
    margin: 0 auto 1rem;
    position: relative;
}

.qr-placeholder::after {
    content: 'QR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray);
    font-weight: 700;
}

.qr-code p {
    font-size: 1.2rem;
    color: var(--gray);
}

.loyalty-benefits {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.loyalty-benefits h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.6rem;
}

.benefits-list li i {
    color: var(--primary);
    font-size: 1.8rem;
}

.signup-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.signup-form h3 {
    font-size: 2.4rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    height: auto;
}

.checkbox-group label {
    margin-bottom: 0;
}

.app-download {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
}

.app-download h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.app-download p {
    margin-bottom: 2rem;
    font-size: 1.6rem;
    color: var(--gray-dark);
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--primary) !important;
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    text-align: left;
    transition: var(--transition);
    border: 2px solid var(--primary) !important;
}

.app-btn:hover {
    background-color: white !important;
    color: var(--primary) !important;
    transform: translateY(-3px);
    border-color: var(--primary) !important;
}

.app-btn i {
    font-size: 2.4rem;
}

.app-btn span {
    font-size: 1.2rem;
    line-height: 1.2;
}

.app-btn strong {
    font-size: 1.6rem;
}

/* ====== Social Feed Section ====== */
.social-feed {
    background-color: var(--white);
    position: relative;
}

.feed-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.feed-intro p {
    font-size: 1.8rem;
    max-width: 80rem;
    margin: 0 auto 2rem;
}

.feed-hashtag {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 2rem;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feed-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feed-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feed-img {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 100%;
}

.feed-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feed-item:hover .feed-img img {
    transform: scale(1.1);
}

.feed-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feed-item:hover .feed-overlay {
    opacity: 1;
}

.feed-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.feed-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--gray-light);
    overflow: hidden;
}

.feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-username {
    font-weight: 600;
    font-size: 1.4rem;
}

.feed-caption {
    font-size: 1.3rem;
    line-height: 1.4;
}

.feed-link {
    text-align: center;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    background-color: var(--primary) !important;
    color: white !important;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary) !important;
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* ====== Cart Story Section ====== */
.cart-story {
    background-color: var(--light);
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.story-content {
    max-width: 54rem;
}

.story-title {
    font-size: 3.6rem;
    margin-bottom: 2.4rem;
    line-height: 1.2;
}

.story-title span {
    color: var(--primary);
    position: relative;
}

.story-title span::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    height: 0.8rem;
    background-color: var(--accent);
    z-index: -1;
    opacity: 0.7;
}

.story-text {
    font-size: 1.6rem;
    margin-bottom: 2.4rem;
    color: var(--gray-dark);
}

.timeline {
    margin-top: 4rem;
}

.timeline-header {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.timeline-items {
    position: relative;
    padding-left: 3rem;
}

.timeline-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--primary);
}

.timeline-year {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 1.5rem;
    color: var(--gray-dark);
}

.story-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 5rem);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

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

.gallery-item:nth-child(1) {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
}

.gallery-item:nth-child(2) {
    grid-column: 4 / span 3;
    grid-row: 1 / span 2;
}

.gallery-item:nth-child(3) {
    grid-column: 4 / span 2;
    grid-row: 3 / span 2;
}

.gallery-item:nth-child(4) {
    grid-column: 6 / span 1;
    grid-row: 3 / span 2;
}

.gallery-item:nth-child(5) {
    grid-column: 1 / span 2;
    grid-row: 4 / span 3;
}

.gallery-item:nth-child(6) {
    grid-column: 3 / span 4;
    grid-row: 5 / span 2;
}

/* ====== Media Queries ====== */
@media screen and (max-width: 1200px) {
    .cart-locator-grid,
    .events-grid,
    .loyalty-grid,
    .story-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .package-cards {
        grid-template-columns: 1fr;
    }
    
    .package-card.featured {
        transform: scale(1);
    }
    
    .package-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schedule-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .weather-promo {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .weather-info {
        border-right: none;
        border-bottom: 2px dashed rgba(255, 255, 255, 0.5);
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 576px) {
    .schedule-list {
        grid-template-columns: 1fr;
    }
    
    .feed-grid {
        grid-template-columns: 1fr;
    }
}
