/* Umrah Plugin Styles */

/* Search Widget */
.umrah-search-widget {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.umrah-field {
    display: flex;
    flex-direction: column;
}

.umrah-field label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.umrah-field input,
.umrah-field select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.umrah-btn {
    background: #d4af37;
    /* Gold-ish */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s;
}

.umrah-btn:hover {
    background: #c09b2d;
}

/* Results Widget */
.umrah-results-container {
    padding: 20px 0;
}

.umrah-package-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.umrah-package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.umrah-package-title {
    font-size: 20px;
    margin: 0;
}

.umrah-hotels {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.umrah-hotel-info {
    flex: 1;
}

.umrah-pricing-section {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.umrah-price-display {
    font-size: 24px;
    color: #2c3e50;
    font-weight: bold;
}

.umrah-sharing-toggles {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.umrah-sharing-btn {
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.umrah-sharing-btn.active {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

/* --- Layout Wrappers (Resetting Theme Interference) --- */
.umrah-page-wrapper *,
.umrah-page-wrapper *::before,
.umrah-page-wrapper *::after {
    box-sizing: border-box;
}

.umrah-page-wrapper h1,
.umrah-page-wrapper h2,
.umrah-page-wrapper h3 {
    margin-top: 0;
    color: #1f2937;
}

.umrah-page-wrapper p {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1em;
}

.umrah-page-wrapper ul {
    padding-left: 20px;
    color: #4b5563;
}

/* Filter Checkboxes */
.umrah-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #4b5563;
}

.umrah-filter-group input {
    margin-right: 8px;
}

/* Result Card Enhanced */
.umrah-result-item {
    display: grid;
    grid-template-columns: 200px 1fr 180px;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.umrah-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.umrah-result-thumb {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.umrah-result-content {
    padding: 20px 0;
}

.umrah-result-price-box {
    padding: 20px;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

/* Price Breakdowns */
.price-breakdown {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.price-total {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.btn-view-deal {
    background: #1a73e8;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-view-deal:hover {
    background: #1557b0;
}

/* Badges */
.umrah-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.badge-green {
    background: #d1fae5;
    color: #065f46;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

/* In Detail Page */
.umrah-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {

    .umrah-layout,
    .umrah-detail-grid {
        grid-template-columns: 1fr;
    }

    .umrah-result-item {
        grid-template-columns: 1fr;
    }

    .umrah-result-thumb {
        height: 200px;
    }

    .umrah-result-price-box {
        align-items: flex-start;
        text-align: left;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
}

/* --- New Layout System --- */
.umrah-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 20px 0;
}

@media (max-width: 900px) {
    .umrah-layout-container {
        grid-template-columns: 1fr;
    }
}

/* --- New Sidebar --- */
.filter-sidebar {
    background: #fff;
    height: 100%;
    min-height: calc(100vh - 200px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #BAA35D;
}

.sidebar-map-widget {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 120px;
    background: #eee url('https://placehold.co/600x240/e2e8f0/475569?text=Map+View') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #ddd;
}

.sidebar-map-label {
    background: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #1a73e8;
}

.filter-group {
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* --- Horizontal Result Card (Expedia Style) --- */
.result-card-horizontal {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-card-horizontal:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Premium hover */
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.card-image-col {
    width: 32%;
    min-width: 260px;
    position: relative;
    background: #f1f5f9;
}

.card-bg-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.result-card-horizontal:hover .card-bg-img {
    transform: scale(1.02);
}

.image-badge-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #475569;
}

.favorite-btn:hover {
    color: #ef4444;
    /* Heart red */
}

/* Content Columns */
.card-info-col {
    flex: 1;
    display: flex;
    padding: 20px;
}

@media (max-width: 768px) {
    .result-card-horizontal {
        flex-direction: column;
    }

    .card-image-col {
        width: 100%;
        height: 200px;
    }

    .card-info-col {
        flex-direction: column;
    }
}

.card-main-info {
    flex: 1;
    padding-right: 20px;
    cursor: pointer;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    /* Bolder */
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.card-location {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.card-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-score {
    background: #059669;
    /* Green */
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
}

.rating-text {
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
}

.card-features {
    margin: 10px 0;
    font-size: 13px;
    color: #475569;
}

.feature-item {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reserve-line {
    color: #059669;
    /* Green */
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* Price Column */
.card-price-col {
    width: 160px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Bottom align similar to Expedia */
    border-left: 1px solid #f1f5f9;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .card-price-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 15px;
        margin-top: 15px;
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .card-price-col .umrah-btn-primary {
        margin-top: 0 !important;
    }
}

.price-discount {
    background: #BAA35D;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 6px;
    align-self: flex-end;
}

.price-night {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.price-sub {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

/* Button */
.umrah-btn-primary {
    background: #BAA35D;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.umrah-btn-primary:hover {
    background: #8B7B3E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(186, 163, 93, 0.4);
}

.umrah-btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.umrah-btn-outline:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* Room Sharing Toggle Buttons */
.sharing-btn {
    padding: 6px 12px;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.sharing-btn:hover {
    border-color: #BAA35D;
    color: #BAA35D;
}

.sharing-btn.active {
    border-color: #BAA35D;
    background: #BAA35D;
    color: #fff;
}

/* --- Desktop/Laptop Only Styles (min-width: 1024px) --- */
@media (min-width: 1024px) {
    .umrah-page-wrapper,
    .umrah-detail-container {
        max-width: 100% !important;
    }

    .filter-sidebar,
    .umrah-booking-sidebar {
        position: sticky;
        top: 0;
        height: fit-content;
    }

    .umrah-search-widget {
        display: flex;
        gap: 15px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .page-id-30 .umrah-search-widget {
        display: flex !important;
        gap: 15px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        height: 15vh !important;
    }

    .umrah-search-widget .umrah-field,
    .umrah-search-widget button {
        flex: 1 1 0;
        min-width: 0;
    }
}