/* Cancun Plaza 2401: search, availability result, quote form and gallery */

.cp-booking-search * { box-sizing: border-box; }

.cp-booking-search {
    width: min(980px, 100%);
    margin: 24px auto 20px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.cp-booking-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr auto;
    gap: 10px;
    align-items: end;
}

.cp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.cp-field label {
    color: #333;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cp-field input,
.cp-field select,
.cp-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
}

.cp-field textarea {
    min-height: 90px;
    resize: vertical;
}

.cp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #007a99;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.cp-button:hover,
.cp-button:focus { filter: brightness(1.08); }

.cp-button[disabled] { opacity: .6; cursor: wait; }

.cp-button-whatsapp { background: #1f9d55; }

.cp-button-light {
    background: #fff;
    color: #007a99;
    border: 1px solid #007a99;
}

/* Result panel under the search: checking / available / not available / quote sent */
.cp-result {
    display: none;
    width: min(980px, 100%);
    margin: 0 auto 20px;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    color: #222;
    text-align: left;
}

.cp-result.is-visible { display: block; }

.cp-result h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: #007a99;
}

.cp-result p { margin: 0 0 14px; color: #444; }

.cp-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.cp-quote-form .cp-field-wide,
.cp-quote-form .cp-result-actions { grid-column: 1 / -1; }

.cp-quote-dates {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eef7fa;
    color: #134a59;
    font-weight: 700;
}

.cp-quote-note { font-size: .85rem; color: #666; }

.cp-honeypot { position: absolute; left: -10000px; }

/* Booking page: our own date bar above Beds24 (Beds24's search is hidden in layout 2) */
.cp-booking-bar {
    flex: 0 0 auto;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #e3eaec;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cp-booking-bar * { box-sizing: border-box; }

.cp-booking-bar .cp-booking-search-form {
    max-width: 980px;
    margin: 0 auto;
}

.cp-booking-bar .cp-field input,
.cp-booking-bar .cp-field select,
.cp-booking-bar .cp-button { min-height: 40px; }

@media (max-width: 760px) {
    .cp-booking-bar { padding: 8px 10px; }
    .cp-booking-bar .cp-booking-search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 62px; gap: 6px; }
    .cp-booking-bar .cp-field { min-width: 0; }
    .cp-booking-bar .cp-field input,
    .cp-booking-bar .cp-field select { min-width: 0; padding: 8px 6px; font-size: 14px; }
    .cp-booking-bar .cp-booking-search-form .cp-button { grid-column: 1 / -1; width: 100%; }
    .cp-booking-bar .cp-field label { font-size: 0.7rem; }
}

/* Gallery: one grid, click opens the photo */
.cp-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cp-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    background: #e9eef0;
}

.cp-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.cp-gallery a:hover img { transform: scale(1.04); }

.cp-gallery-title {
    margin: 26px 0 10px;
    font-size: 1.05rem;
    color: #134a59;
}

@media (max-width: 900px) {
    .cp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .cp-booking-search { margin-top: 18px; padding: 12px; }
    .cp-booking-search-form { grid-template-columns: 1fr 1fr; }
    .cp-booking-search-form .cp-button { grid-column: 1 / -1; width: 100%; }
    .cp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

@media (max-width: 480px) {
    .cp-booking-search-form,
    .cp-quote-form { grid-template-columns: 1fr; }
    .cp-result { padding: 16px; }
    .cp-result-actions .cp-button { width: 100%; }
}
