/* File: perfectflight/assets/css/frontend.css (Finalized with corrected logo sizing) */

/* --- SIDEBAR STYLES (Retained for the red background) --- */
.pf-sidebar { 
    background: #ff2a2a; /* Primary Red */ 
    color: #fff; 
    padding: 20px; 
    border-radius: 12px; 
    font-family: 'Poppins', sans-serif; 
}
.pf-sidebar h4 {
    color: #fff;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}
.pf-sidebar label {
    display: block;
    cursor: pointer;
    font-size: 14px;
    padding: 3px 0;
}
.pf-sidebar .pf-search input {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    margin-bottom: 15px;
}
.pf-list{ 
    list-style: none;
    margin: 0;
    padding: 0; 
}
.pf-list label span {
    margin-left: 5px;
}

/* Flex container for sidebar + cards */
.pf-flights-wrapper {
    display: flex;
    gap: 20px; 
    align-items: flex-start;
}
/* Wrapper around the flight cards shortcode for AJAX targeting */
.pf-flight-cards-container {
    flex-grow: 1;
}

/* --- FLIGHT CARDS STYLES (Based on User's HTML/CSS) --- */

/* Container Grid */
.flight-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 15px;
    padding: 5px;
    font-family: 'Poppins', sans-serif;
}

/* Tablet View/Layout Change (Max-width 900px) */
@media(max-width: 900px) {
    .pf-flights-wrapper { flex-direction: column; } /* Stack sidebar above cards */
    .pf-flights-wrapper > .pf-sidebar { width: 100%; } /* Sidebar takes full width */
    .flight-cards-container { grid-template-columns: repeat(2, 1fr); } /* 2 columns on tablets */
}

/* Mobile View (Max-width 600px) */
@media (max-width: 600px) {
    .flight-cards-container {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}


/* Card Design - Compact */
.flight-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

/* Row 1 */
.card-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
}
.airline-logo {
    font-weight: 800;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}
.airline-logo img {
    /* CRITICAL FIX: Explicitly sizing the logo image element */
    width: 25px; 
    height: 25px;
    object-fit: contain;
}

/* Price - Updated Red #ff2a2a */
.flight-price {
    font-size: 22px;
    font-weight: 700;
    color: #ff2a2a; 
    line-height: 1;
}

/* Row 2 */
.card-row-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.card-route {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}
.card-route span {
    color: #666;
    font-weight: 400;
    margin: 0 5px;
}
.flight-type {
    font-size: 10px;
    color: #666;
    text-align: right;
    line-height: 1.2;
    max-width: 80px;
}

/* Row 3 */
.card-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

/* Icons Group */
.action-icons {
    display: flex;
    gap: 5px;
}

/* Phone Icon Button - White BG with Red Border (#ff2a2a) */
.icon-btn {
    width: 30px;
    height: 30px;
    background-color: #ffffff; /* White Background */
    border: 1px solid #ff2a2a; /* Red Border */
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff2a2a; /* Red Icon Color */
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}
.icon-btn:hover {
    background-color: #ff2a2a; /* Hover pe Red */
    color: white; /* Hover pe Icon White */
}

/* Save Text - Updated Red #ff2a2a */
.save-text {
    font-size: 9px;
    color: #ff2a2a; 
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    margin-right: auto; /* Push Enquire button to the right */
    padding-left: 10px;
}

/* Enquire Button - Updated Red #ff2a2a & Compact */
.enquire-btn {
    background-color: #ff2a2a; 
    color: white;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    height: fit-content;
}
.enquire-btn:hover {
    background-color: #d61b1b; /* Darker Red Hover */
}



/* --- DESTINATION GRID STYLES --- */
.pf-destination-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 20px;
    padding: 10px 0;
}
@media (max-width: 900px) {
    .pf-destination-grid-wrapper { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pf-destination-grid-wrapper { grid-template-columns: 1fr; }
}

.pf-destination-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer; /* Hand shape cursor */
    text-decoration: none;
    height: 300px; /* Fixed height for consistent grid look */
}

.pf-destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect: Zoom image */
.pf-destination-card:hover img {
    transform: scale(1.05);
}

.pf-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 20px 15px;
    transition: transform 0.3s ease;
    transform: translateY(0);
}

/* Hover Effect: Slide up (animation) */
.pf-destination-card:hover .pf-card-overlay {
    transform: translateY(-10px);
}

.pf-dest-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.pf-dest-details {
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
}

.pf-view-details-btn {
    display: inline-block;
    background-color: #ff2a2a; /* Red background */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.3s;
}
.pf-view-details-btn:hover {
    background-color: #d61b1b;
}