﻿/* Accommodation (hotels booking) module.
   .acc_*  public / attendee pages (website master page or the account shell)
   .acca_* organiser screens (Hotels > ...)
   Linked directly with a last-write ?v= stamp (not bundled). Palette follows my-account.css. */

.acc_page { }
.acc_muted { color: #7a8288; }
.acc_small { font-size: 12px; }
.acc_hidden { display: none !important; }
.acc_intro { margin-bottom: 14px; }
.acc_empty { padding: 18px; text-align: center; color: #7a8288; background: #f7f9fa; border-radius: 6px; }
.acc_hint { padding: 12px 0; }
.acc_spin { display: inline-block; animation: acc_spin 1s linear infinite; }
@keyframes acc_spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.acc_cta_row { margin: 10px 0 18px; }
.acc_chip { display: inline-block; padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: 12px; background: #eef0f2; font-size: 12px; color: #444; }
.acc_chip_ok { background: #e6f6ea; color: #1f7a3a; }
.acc_chip_warn { background: #fff3e0; color: #9a5b00; }
.acc_stars { color: #f0ad4e; font-size: 13px; margin-left: 6px; }
.acc_price { font-size: 18px; font-weight: 600; color: #16335b; white-space: nowrap; }
.acc_from { color: #16335b; font-weight: 600; margin: 4px 0; }

/* layout: search + results use the whole width; the selection is a bar fixed to the bottom of the
   window (.acc_bar, under "selection bar" below) and the page ends with a spacer as tall as the bar. */
.acc_main { min-width: 0; }
.acc_bar_spacer { height: 84px; }

/* search form */
.acc_search { background: #f7f9fa; border: 1px solid #e4e7ea; border-radius: 6px; padding: 12px; margin-bottom: 14px; }
.acc_search_row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.acc_search_field label { display: block; font-size: 12px; color: #6b7177; margin-bottom: 3px; font-weight: 600; }
.acc_search_field_sm { width: 90px; }
.acc_search_field .acc_date { width: 130px; }
.acc_search_field_check label { font-weight: 400; margin-bottom: 8px; }
.acc_search_field_btn { margin-left: auto; }
.acc_results_head { margin: 6px 0 12px; color: #444; }

/* hotel card */
.acc_hotel { border: 1px solid #e4e7ea; border-radius: 8px; margin-bottom: 18px; overflow: hidden; background: #fff; }
.acc_hotel_head { display: flex; gap: 16px; padding: 14px; }
.acc_hotel_photo { flex: 0 0 240px; height: 160px; border-radius: 6px; background: #eef0f2 center/cover no-repeat; }
.acc_hotel_info { flex: 1 1 auto; min-width: 0; }
.acc_hotel_name { margin: 0 0 4px; font-size: 20px; }
.acc_hotel_desc { margin-top: 8px; color: #444; max-height: 7.5em; overflow: hidden; }
.acc_amenities { margin-top: 6px; }
.acc_gallery { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; }
.acc_gallery img { height: 90px; border-radius: 4px; }
@media (max-width: 600px) {
    .acc_hotel_head { display: block; }
    .acc_hotel_photo { width: 100%; margin-bottom: 8px; }
}

/* room rows */
.acc_room { display: flex; gap: 14px; padding: 12px 14px; border-top: 1px solid #eef0f2; }
.acc_room_unavailable { background: #fafafa; }
.acc_room_photo { flex: 0 0 120px; }
.acc_room_photo img { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; }
.acc_room_photo_ph { width: 120px; height: 80px; border-radius: 4px; background: #eef0f2; color: #aab; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.acc_room_info { flex: 1 1 220px; min-width: 0; }
.acc_room_name { font-weight: 600; font-size: 15px; }
.acc_room_desc { margin-top: 4px; font-size: 13px; color: #555; max-height: 4.5em; overflow: hidden; }
.acc_scarce { color: #c0392b; font-size: 12px; margin-top: 4px; }
.acc_room_rates { flex: 1 1 320px; min-width: 0; }
.acc_rate { display: flex; gap: 10px; justify-content: space-between; padding: 8px 0; border-top: 1px dashed #eef0f2; }
.acc_rate:first-child { border-top: 0; padding-top: 0; }
.acc_rate_off { opacity: .6; }
.acc_rate_name { font-weight: 600; }
.acc_rate_price { text-align: right; flex: 0 0 auto; }
.acc_rate_price .btn { margin-top: 4px; }
.acc_rate_blocked { color: #9a5b00; background: #fff3e0; padding: 6px 10px; border-radius: 4px; font-size: 13px; margin-bottom: 6px; }
.acc_rate_blocked_inline { color: #9a5b00; }
.acc_policies { padding: 10px 14px; border-top: 1px solid #eef0f2; font-size: 13px; }
.acc_policies_body { margin-top: 6px; color: #555; }
@media (max-width: 767px) {
    .acc_room { flex-wrap: wrap; }
    .acc_rate { flex-wrap: wrap; }
    .acc_rate_price { text-align: left; }
}

/* selection bar: fixed to the bottom of the window (the script moves #acc_basket under <body>);
   the row shows the summary and the continue button, the panel above it lists the held rooms */
.acc_bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid #d9dde1; box-shadow: 0 -4px 16px rgba(0, 0, 0, .10); font-size: 14px; }
.acc_bar_inner { max-width: 1170px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acc_bar_toggle { font-weight: 600; font-size: 15px; color: #16335b; text-decoration: none !important; white-space: nowrap; }
.acc_bar_toggle:hover, .acc_bar_toggle:focus { color: #16335b; }
.acc_bar_caret { display: inline-block; margin-left: 4px; font-size: 10px; vertical-align: middle; transition: transform .15s; }
.acc_bar_open .acc_bar_caret { transform: rotate(180deg); }
.acc_basket_count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #15b1d4; color: #fff; font-size: 12px; text-align: center; margin-left: 4px; vertical-align: middle; }
.acc_bar_meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.acc_bar_total { font-size: 18px; font-weight: 600; color: #16335b; white-space: nowrap; }
.acc_bar_total_label { font-size: 12px; font-weight: 400; color: #7a8288; margin-right: 4px; }
.acc_countdown_wrap { color: #9a5b00; font-size: 13px; white-space: nowrap; }
#acc_countdown { font-weight: 600; font-variant-numeric: tabular-nums; }
.acc_bar_actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.acc_bar_actions form { margin: 0; }
.acc_bar_actions .btn { white-space: nowrap; }
.acc_bar_panel { display: none; max-height: 45vh; overflow-y: auto; border-bottom: 1px solid #eef0f2; background: #fff; }
.acc_bar_open .acc_bar_panel { display: block; }
.acc_bar_panel_inner { max-width: 1170px; margin: 0 auto; padding: 10px 16px; }
.acc_basket_empty { margin: 0; }
.acc_basket_list { list-style: none; margin: 0; padding: 0; }
.acc_basket_item { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #eef0f2; }
.acc_basket_item:first-child { border-top: 0; }
.acc_basket_item_title { font-weight: 600; }
.acc_basket_item_price { text-align: right; flex: 0 0 auto; }
.acc_basket_item_price .acc_price { font-size: 15px; }
.acc_bar_flash { animation: acc_bar_flash .9s ease-out; }
@keyframes acc_bar_flash { from { background: #e6f6ea; } to { background: #fff; } }
@media (max-width: 767px) {
    .acc_bar_inner { gap: 8px 12px; padding: 8px 12px; }
    .acc_bar_actions { margin-left: 0; width: 100%; }
    .acc_bar_actions .btn, .acc_bar_actions form { width: 100%; }
}

/* guest details (stand-alone page): a full-width card under the results, shown once a room is held */
.acc_checkout_section { margin-top: 18px; }
.acc_checkout_form { border: 1px solid #e4e7ea; border-radius: 8px; background: #fff; padding: 14px 16px; }
.acc_checkout_form h4 { margin-top: 0; }
.acc_checkout_actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.acc_room_guest { border-top: 1px dashed #e4e7ea; padding-top: 8px; margin-top: 4px; }
.acc_room_guest_title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
/* my bookings (account shell) */
.acc_my_list { }
.acc_my_item { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #e4e7ea; border-left-width: 4px; border-radius: 6px; margin-bottom: 10px; background: #fff; }
.acc_my_item_success { border-left-color: #2e9e5b; }
.acc_my_item_warning { border-left-color: #f0ad4e; }
.acc_my_item_info { border-left-color: #15b1d4; }
.acc_my_item_danger { border-left-color: #c0392b; }
.acc_my_item_default { border-left-color: #ccc; }
.acc_my_item_title { font-weight: 600; font-size: 15px; }
.acc_my_item_side { text-align: right; flex: 0 0 auto; }
.acc_mybookings td { vertical-align: middle; }
@media (max-width: 600px) {
    .acc_my_item { display: block; }
    .acc_my_item_side { text-align: left; margin-top: 8px; }
}

/* header button */
.acc_header_btn { }

/* ───────────── organiser ───────────── */
.acca_toolbar { margin-bottom: 14px; }
.acca_toolbar .btn { margin-right: 4px; }
.acca_empty { text-align: center; padding: 24px; }
.acca_steps li { margin-bottom: 4px; }
.acca_tabs { margin-bottom: 14px; }
.acca_inline { display: inline-block !important; width: auto !important; vertical-align: middle; }
/* Date / time picker fields (jQuery UI, same widgets as the event setup). After .acca_inline so the widths win. */
.acca_date { display: inline-block !important; width: 120px !important; vertical-align: middle; }
.acca_time { display: inline-block !important; width: 100px !important; vertical-align: middle; }
.acca_filter_range { display: inline-block; white-space: nowrap; margin-right: 6px; }
.acca_filter_range .form-control { margin-right: 0; }
/* The booking window of the hotel form reuses the event-setup classes (datetime_field / range_sep):
   four 120px fields in a row, exactly as the event dates look there. */
.acca_window .datetime_field { width: 120px; }
.acca_grid4 { display: flex; flex-wrap: wrap; gap: 10px; }
.acca_grid4 label { font-weight: 400; font-size: 12px; color: #555; }
.acca_grid4 label .form-control { width: 110px; }
/* The pricing-mode explanation sits under the two radios; a little air above it, nothing else. */
.acca_mode_hint { margin-top: 8px; }
.acca_room { border: 1px solid #e4e7ea; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; background: #fff; }
.acca_room_inactive { opacity: .7; }
.acca_room_head { margin-bottom: 8px; }
.acca_room_head .acca_drag { color: #bbb; cursor: move; margin-right: 6px; }
.acca_rates { margin-bottom: 4px; }
.acca_rates td { vertical-align: middle; }
.acca_ov_row td { background: #fafbfc; }
.acca_ov_list { list-style: none; margin: 0; padding: 0 0 0 10px; font-size: 12px; }
.acca_ov_list li { padding: 2px 0; }
/* Photo upload row: one aligned line (room choice, picker, chosen name, caption, button), wrapping on narrow screens. */
.acca_upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acca_upload .form-control { margin: 0; }
.acca_upload .acca_caption { width: 260px; }
/* Bootstrap-styled file picker: the real input sits transparent over the button so the browser's own control never shows. */
.acca_file { position: relative; overflow: hidden; margin-bottom: 0; cursor: pointer; }
.acca_file input[type="file"] { position: absolute; top: 0; right: 0; min-width: 100%; min-height: 100%; opacity: 0; cursor: pointer; font-size: 100px; }
.acca_file_name { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.acca_gallery { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.acca_photo { width: 220px; border: 1px solid #e4e7ea; border-radius: 6px; overflow: hidden; background: #fff; }
.acca_photo img { width: 220px; height: 150px; object-fit: cover; display: block; }
.acca_photo_meta { padding: 6px 8px; }
.acca_photo_actions { padding: 0 8px 8px; }
.acca_photo_actions a { margin-right: 10px; }
.acca_avail_bar { margin-bottom: 10px; }
.acca_avail_bar .form-control, .acca_avail_bar .btn-group { margin-right: 8px; }
.acca_avail td { vertical-align: middle; }
.acca_avail .form-control { width: 70px; display: inline-block; }
.acca_saving { opacity: .5; }
.acca_bulk { margin-top: 14px; }
.acca_bulk label { margin-right: 8px; font-weight: 400; }
.acca_kpis { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.acca_kpi { flex: 1 1 160px; background: #fff; border: 1px solid #e4e7ea; border-radius: 8px; padding: 12px 14px; }
.acca_kpi_value { font-size: 22px; font-weight: 600; color: #16335b; }
.acca_kpi_label { color: #7a8288; font-size: 12px; }
.acca_filters .form-control { margin-right: 6px; margin-bottom: 6px; }
.acca_filters .btn { margin-bottom: 6px; }
.acca_dl dt { width: 110px; text-align: left; }
.acca_dl dd { margin-left: 120px; }

/* ----- Availability plan (Hotels > Availability plan): dates across, room types down, bookings as stripes ----- */
.acca_plan_wrap { overflow-x: auto; border: 1px solid #e4e7ea; border-radius: 6px; background: #fff; margin-top: 12px; }
.acca_plan { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.acca_plan th, .acca_plan td { border-right: 1px solid #f0f2f4; border-bottom: 1px solid #f0f2f4; padding: 0; text-align: center; vertical-align: middle; min-width: 36px; }
.acca_plan thead th { background: #f7f9fb; color: #555; font-weight: 400; padding: 4px 2px; line-height: 1.2; }
.acca_plan_dow { color: #999; font-size: 10px; text-transform: uppercase; }
.acca_plan_month { color: #16335b; font-weight: 600; font-size: 10px; }
.acca_plan thead th.acca_plan_weekend { background: #eef1f5; }
.acca_plan thead th.acca_plan_event { box-shadow: inset 0 -3px 0 #3c8dbc; }
.acca_plan thead th.acca_plan_today { color: #c0392b; font-weight: 600; }
.acca_plan .acca_plan_room { text-align: left; padding: 4px 8px; min-width: 210px; max-width: 280px; position: sticky; left: 0; background: #fff; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 2px solid #e4e7ea; }
.acca_plan thead th.acca_plan_room { background: #f7f9fb; }
.acca_plan_hotel td { background: #eef5fb; text-align: left; padding: 6px 8px; }
.acca_plan_numbers td.acca_plan_cell { height: 28px; font-weight: 600; }
.acca_plan_ok { background: #e8f6ec; color: #1e7b34; }
.acca_plan_low { background: #fff4d6; color: #8a6100; }
.acca_plan_full { background: #fde2e1; color: #b02a25; }
.acca_plan_over { background: #c0392b; color: #fff; }
.acca_plan_none { background: #f4f4f4; color: #aaa; }
.acca_plan_stop { background: repeating-linear-gradient(135deg, #f4d3d2, #f4d3d2 4px, #fbe9e8 4px, #fbe9e8 8px); color: #8a1f1b; }
.acca_plan_flag { margin-left: 2px; font-size: 9px; }
.acca_plan_lane td { height: 22px; }
.acca_plan_barcell { padding: 2px 1px !important; }
.acca_plan_bar { display: block; height: 18px; line-height: 18px; border-radius: 9px; padding: 0 8px; font-size: 11px; color: #fff !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.acca_plan_bar_info { background: #5bc0de; }
.acca_plan_bar_warning { background: #f0ad4e; }
.acca_plan_bar_success { background: #5cb85c; }
.acca_plan_bar_default, .acca_plan_bar_danger { background: #999; }
.acca_plan_bar_cut_l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.acca_plan_bar_cut_r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.acca_plan_legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12px; color: #555; }
.acca_plan_chip { display: inline-block; width: 26px; height: 14px; border-radius: 7px; vertical-align: middle; margin-right: 4px; }
.acca_plan_cellchip { display: inline-block; width: 22px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 4px; border: 1px solid #e4e7ea; }
