/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =========================================================
   Custom Product Gallery Carousel
   ========================================================= */

.cpg-gallery {
    width: 100%;
}

/* ---- Main image ---- */
.cpg-main-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.cpg-main-wrap img.cpg-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

/* ---- Thumbnail row ---- */
.cpg-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.cpg-thumb-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.cpg-thumb-track {
    display: flex;
    gap: 8px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ---- Individual thumbnail ---- */
.cpg-thumb {
    flex: 0 0 calc(20% - 7px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f5f5f5;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    outline: none;
}

.cpg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.cpg-thumb:hover {
    opacity: 0.8;
}

.cpg-thumb:focus-visible {
    border-color: #2c7be5;
    box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.35);
}

.cpg-thumb--active {
    border-color: #2c7be5;
}

/* ---- Prev / Next buttons ---- */
.cpg-prev,
.cpg-next {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.cpg-prev:hover:not(:disabled),
.cpg-next:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #aaa;
}

.cpg-prev:disabled,
.cpg-next:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .cpg-thumb {
        flex: 0 0 calc(25% - 6px);
    }
}

@media (max-width: 480px) {
    .cpg-thumb {
        flex: 0 0 calc(33.333% - 6px);
    }

    .cpg-prev,
    .cpg-next {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* =========================================================
   Product Info Shortcodes
   ========================================================= */

/* [product_info] combined block */
.cpg-product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpg-info-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cpg-info-label {
    font-weight: 600;
    min-width: 90px;
    flex-shrink: 0;
}

.cpg-info-value {
    color: #555;
}

/* Amenities list inside [product_info] and standalone [product_amenities] */
.cpg-amenities-list,
.cpg-amenities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cpg-amenities-list li,
.cpg-amenities li {
    background: #f0f4ff;
    border: 1px solid #d0daf5;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.875em;
    color: #333;
}

/* =========================================================
   Reservation Form Widget
   ========================================================= */

.cpg-res-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    max-width: 480px;
}

.cpg-res-title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* ---- Product meta (adults / children) ---- */
.cpg-res-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #f5f8ff;
    border-radius: 8px;
    border: 1px solid #dde6ff;
}

.cpg-res-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: #444;
}

.cpg-res-meta-item svg {
    flex-shrink: 0;
    color: #2c7be5;
}

/* ---- Fields ---- */
.cpg-res-field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cpg-res-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #444;
}

.cpg-req {
    color: #e53e3e;
    margin-left: 2px;
}

.cpg-res-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dde1e7;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.cpg-res-input:focus {
    border-color: #2c7be5;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.15);
    background: #fff;
}

/* Flatpickr input cursor */
.cpg-datepicker {
    cursor: pointer;
}

/* ---- Availability status ---- */
.cpg-availability-status {
    font-size: 0.8125rem;
    font-weight: 600;
    min-height: 1.2em;
    transition: color 0.2s;
}

.cpg-status-available {
    color: #1a8a4a;
}

.cpg-status-unavailable {
    color: #c0392b;
}

.cpg-status-checking {
    color: #888;
}

/* ---- Submit button ---- */
.cpg-res-submit {
    width: 100%;
    padding: 12px 20px;
    margin-top: 8px;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.cpg-res-submit:hover:not(:disabled) {
    background: #1a63c8;
}

.cpg-res-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---- Success / error message ---- */
.cpg-res-message {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 0;
    transition: all 0.2s;
}

.cpg-msg-success {
    background: #edfaf3;
    border: 1px solid #a8e6c3;
    color: #1a6b3c;
}

.cpg-msg-error {
    background: #fff0f0;
    border: 1px solid #f5b8b8;
    color: #b91c1c;
}

/* ---- Flatpickr: booked day dot ---- */
.flatpickr-day.cpg-day-booked {
    position: relative;
    color: #aaa !important;
    background: #f9f9f9 !important;
    text-decoration: line-through;
    cursor: not-allowed !important;
}

.flatpickr-day.cpg-day-booked::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: #e53e3e;
    border-radius: 50%;
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================================
   Availability Search Widget
   ========================================================= */

.cpg-sa-wrap {
    width: 100%;
}

/* ---- Search bar ---- */
.cpg-sa-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.cpg-sa-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 0;
    min-width: 140px;
}

.cpg-sa-field-submit {
    flex: 0 0 auto;
    min-width: 0;
}

.cpg-sa-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.cpg-sa-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    font-size: 0.9375rem;
    color: #1a1a2e;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cpg-sa-input:focus {
    border-color: #2e6b35;
    box-shadow: 0 0 0 3px rgba(46, 107, 53, 0.15);
}

.cpg-sa-checkin,
.cpg-sa-checkout {
    cursor: pointer;
}

.cpg-sa-submit {
    padding: 12px 34px;
    background: #2e6b35;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.cpg-sa-submit:hover {
    opacity: 0.9;
}

/* ---- Results ---- */
.cpg-sa-results-wrap {
    margin-top: 28px;
}

.cpg-sa-results-heading {
    margin: 0 0 18px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
}

.cpg-sa-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cpg-sa-no-results {
    padding: 16px 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    font-weight: 500;
}

/* ---- Result card ---- */
.cpg-sa-card {
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cpg-sa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cpg-sa-card-img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.cpg-sa-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpg-sa-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpg-sa-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.3;
}

.cpg-sa-card-title:hover {
    color: #2e6b35;
}

.cpg-sa-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #666;
}

.cpg-sa-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.cpg-sa-card-btn {
    margin-top: 6px;
    align-self: flex-start;
    padding: 9px 18px;
    background: #2e6b35;
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cpg-sa-card-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .cpg-sa-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cpg-sa-form {
        flex-direction: column;
        align-items: stretch;
    }

    .cpg-sa-field {
        flex: 1 1 auto;
        width: 100%;
    }

    .cpg-sa-submit {
        width: 100%;
    }

    .cpg-sa-results {
        grid-template-columns: 1fr;
    }
}