/* --- Start Packages Page Overlay Styles (Appended) --- */
.package-image-wrapper {
    position: relative;
    overflow: hidden; /* Ensure content outside is clipped */
}

.package-card .featured-overlay,
.package-card .duration-overlay,
.package-card .discount-overlay {
    position: absolute;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    z-index: 10;
    display: inline-block; /* Ensures the box respects width/height */
    white-space: nowrap; /* Prevents text from wrapping */
    box-sizing: border-box; /* Includes padding in element's total width and height */
    min-width: fit-content; /* Ensures the box is only as wide as its content */
    text-align: center;
}

.package-card .featured-overlay {
    top: 10px;
    left: 10px;
    background-color: var(--secondary-orange); /* Orange */
}

.package-card .duration-overlay {
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Darker background */
}

.package-card .discount-overlay {
    top: 10px;
    right: 10px;
    background-color: #28a745; /* Green */
}

/* Filter Bar Specific Styles for packages.php */
.search-box-packages {
    background-color: rgba(255,255,255,.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.search-box-packages .input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.search-box-packages label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.search-box-packages select,
.search-box-packages input[type="text"] {
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    font-size: 16px;
    min-width: 180px;
    width: auto; /* Ensure it doesn't take full width unless necessary */
}

.search-box-packages .btn-primary,
.search-box-packages .btn-outline-secondary {
    padding: 10px 30px;
    border-radius: 50px; /* Pill style */
}
/* --- End Packages Page Overlay Styles (Appended) --- */

/* --- Styles for Package Details Page Image Overlays --- */
.package-main-image-container {
    position: relative;
    margin-bottom: 30px;
}

.package-main-image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.package-main-image-container .featured-overlay,
.package-main-image-container .duration-overlay,
.package-main-image-container .discount-overlay {
    position: absolute;
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    display: none; /* Hidden by default, shown by JS */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.package-main-image-container .featured-overlay {
    top: 15px;
    left: 15px;
    background-color: var(--secondary-orange);
}

.package-main-image-container .duration-overlay {
    top: 15px;
    right: 15px;
    background-color: var(--primary-blue);
}

.package-main-image-container .discount-overlay {
    bottom: 15px;
    left: 15px;
    background-color: #28a745; /* Green */
}

/* --- Styles for Package Details Action Buttons --- */
.package-actions-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between Enquiry button and the share buttons group */
    margin-top: 30px; /* Space above the entire button container */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.social-share-buttons {
    display: flex;
    gap: 10px; /* Space between individual share buttons */
}

.package-detail-section {
    margin-bottom: 50px; /* Adds space between the section and the footer */
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- New Styles for Package Details Page --- */
.package-detail-content h1 {
    font-size: 38px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-align: center; /* Center the title */
}

.package-detail-content .package-location {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    text-align: center; /* Center the location */
}

.package-detail-content .package-prices {
    display: flex;
    justify-content: center; /* Center the prices */
    align-items: baseline;
    margin-bottom: 25px;
    gap: 10px;
}

.package-detail-content .package-location i {
    color: #dc3545; /* Red for map icon */
}

.package-detail-content .package-location span {
    font-weight: 700;
    color: var(--primary-blue); /* Theme color for location text */
}

.package-detail-content .current-price {
    font-size: 32px;
    font-weight: 700;
    color: #28a745; /* Green for current price */
}

.package-detail-content .original-price {
    font-size: 22px;
    color: #dc3545;
    text-decoration: line-through;
    font-weight: 600;
}

.package-detail-content .per-person {
    font-size: 16px;
    color: #888;
    margin-left: 5px;
}

.package-detail-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
    text-align: justify; /* Justify description text */
}

.package-detail-content h3 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-blue); /* Underline effect */
    padding-bottom: 10px;
}

.package-detail-content ul {
    list-style: none;
    padding-left: 0;
}

.package-detail-content ul li {
    font-size: 17px;
    color: #444;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.package-detail-content #package-itinerary p {
    margin-bottom: 15px;
    padding-left: 0; /* Remove padding for itinerary paragraphs */
    text-align: left; /* Align itinerary text left */
}

.package-detail-content #package-itinerary h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.package-detail-content #package-itinerary ul {
    list-style: disc;
    margin-left: 20px;
}

.package-detail-content #package-itinerary ul li {
    padding-left: 0;
}

.package-detail-content #package-itinerary ul li::before {
    content: none;
}

.package-detail-content #package-inclusions li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #28a745; /* Green checkmark */
    position: absolute;
    left: 0;
    top: 2px;
}

.package-detail-content #package-exclusions li::before {
    content: '\f00d'; /* FontAwesome times icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #dc3545; /* Red cross */
    position: absolute;
    left: 0;
    top: 2px;
}