/* ---------------------------------------------------------------------------
   Hotel Asmara Palace - supplementary styles.

   theme.css is the original Ravis stylesheet and is left untouched. Everything
   below styles markup that did not exist in the old build (the single-page
   booking form, the rules table, room detail sidebar, filters) and smooths over
   a few places where the theme assumed content we no longer have.
   ------------------------------------------------------------------------- */

:root {
    --hap-gold: #d8aa42;
    --hap-dark: #1c1c1c;
    --hap-muted: #7b7b7b;
    --hap-line: #e6e6e6;
    --hap-bg-soft: #faf8f4;
}

img { max-width: 100%; height: auto; }

.fixedImg { width: 100%; height: auto; display: block; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* Honeypot - visually gone, still reachable to bots reading the DOM */
.hp-field {
    position: absolute !important; left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

.empty-state {
    padding: 40px 20px; text-align: center; color: var(--hap-muted);
    background: var(--hap-bg-soft); border: 1px dashed var(--hap-line);
}

/* --------------------------------------------------------- quick search --- */

#main-availability-form {
    /*background: rgba(28, 28, 28, .92);*/
    padding: 22px 0;
}

#main-availability-form .form-group { margin-bottom: 0; padding: 6px 10px; }

#main-availability-form label {
    display: block; color: #fff; font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase; margin-bottom: 6px;
}

#main-availability-form input,
#main-availability-form select {
    width: 100%; height: 44px; padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08); color: #fff;
}

#main-availability-form select option { color: #222; }

#main-availability-form button { width: 100%; height: 44px; margin-top: 26px; }

/* ------------------------------------------------------------ room cards --- */

#rooms-section, #other-rooms, #staff-section, #gallery-section,
#events-section, #reservation-section, #contact-section, #poster-section,
#hotel-rules, #service-details, #history-section, #restaurant-outlets {
    padding: 70px 0;
}

#hotel-rules, #other-rooms, #history-section { background: var(--hap-bg-soft); }

.rooms-container { margin: 0 -15px; }

.room-box { padding: 15px; }

.room-box .inner-box {
    background: #fff; border: 1px solid var(--hap-line); height: 100%;
    transition: box-shadow .25s ease, transform .25s ease;
}

.room-box .inner-box:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12); transform: translateY(-3px);
}

.room-box .img-container { position: relative; overflow: hidden; }

.room-box .img-container img {
    width: 100%; height: 240px; object-fit: cover; display: block;
}

.room-box .price-box {
    position: absolute; right: 0; bottom: 0;
    background: var(--hap-gold); color: #fff; padding: 8px 14px; text-align: center;
}

.room-box .price-box .price { display: block; font-size: 18px; font-weight: 700; }
.room-box .price-box .type { display: block; font-size: 11px; text-transform: uppercase; }

.room-box .desc-box { padding: 20px; }
.room-box .desc-box .title { margin: 0 0 6px; font-size: 20px; }
.room-box .desc-box .title a { color: var(--hap-dark); }
.room-box .desc-box .title a:hover { color: var(--hap-gold); }
.room-box .desc-box .sub-title { color: var(--hap-muted); margin-bottom: 14px; }

.room-facts { margin: 0 0 16px; padding: 0; color: var(--hap-muted); font-size: 13px; }
.room-facts li { padding: 0 12px 0 0; }
.room-facts i { color: var(--hap-gold); margin-right: 5px; }

.room-box .ravis-btn { margin: 0 6px 0 0; }

/* --------------------------------------------------------- room details --- */

.room-gallery { margin: 0 -8px 30px; }
.room-gallery-item { display: block; float: left; width: 33.333%; padding: 8px; }
.room-gallery-item img { width: 100%; height: 180px; object-fit: cover; }

.room-description p { margin-bottom: 8px; }

.room-summary {
    background: #fff; border: 1px solid var(--hap-line); padding: 26px;
}

.room-summary .price-box {
    text-align: center; padding-bottom: 18px; margin-bottom: 18px;
    border-bottom: 1px solid var(--hap-line);
}

.room-summary .price { display: block; font-size: 32px; color: var(--hap-gold); font-weight: 700; }
.room-summary .type { color: var(--hap-muted); font-size: 13px; text-transform: uppercase; }

.room-specs, .room-amenities { list-style: none; margin: 0 0 22px; padding: 0; }

.room-specs li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 9px 0; border-bottom: 1px dashed var(--hap-line); font-size: 14px;
}

.room-specs li span { color: var(--hap-muted); }

.room-amenities li { padding: 6px 0; font-size: 14px; }
.room-amenities i { color: var(--hap-gold); width: 20px; }

.room-summary .title { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }

.btn-block { display: block; width: 100%; text-align: center; }

.booking-note { font-size: 13px; color: var(--hap-muted); margin: 0; }

/* --------------------------------------------------------- rules tables --- */

.rule-intro, .rule-tab { max-width: 900px; margin: 0 auto 26px; text-align: center; }

.rules-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; background: #fff; }

.rules-table td {
    border: 1px solid var(--hap-gold); padding: 12px 14px;
    vertical-align: top; font-size: 14px;
}

.rules-table td:first-child { width: 28%; font-weight: 600; background: rgba(216, 170, 66, .07); }

.rule-offer { text-align: center; }
.rule-offer h4 { color: var(--hap-gold); text-transform: uppercase; letter-spacing: .1em; }

/* ------------------------------------------------------------- services --- */

.services-container { margin: 0 -10px; }
.service-box { padding: 10px; }

.service-box .inner-box {
    position: relative; height: 190px; display: flex;
    align-items: flex-end; justify-content: center;
    background-size: cover; background-position: center;
}

.service-box .inner-box::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .05));
}

.service-box .title {
    position: relative; z-index: 2; color: #fff; padding: 14px;
    text-align: center; font-size: 15px; letter-spacing: .04em;
}

.detail-row { padding: 34px 0; border-bottom: 1px solid var(--hap-line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row img { margin-bottom: 18px; }

/* ---------------------------------------------------------------- staff --- */

.staff-container { margin: 0 -12px; }
.staff-box { padding: 12px; }
.staff-box .inner-box { background: #fff; border: 1px solid var(--hap-line); text-align: center; }
.staff-box .img-container img { width: 100%; height: 240px; object-fit: cover; }
.staff-box .desc-box { padding: 18px; }
.staff-box .title { margin: 0 0 4px; font-size: 18px; }
.staff-box .position { color: var(--hap-gold); font-size: 13px; text-transform: uppercase; }
.staff-box .desc { color: var(--hap-muted); font-size: 13px; margin-top: 10px; }

/* -------------------------------------------------------------- history --- */

.history-timeline { list-style: none; margin: 0 -12px; padding: 0; }
.history-timeline li { padding: 12px; text-align: center; }
.history-timeline .year {
    font-size: 34px; color: var(--hap-gold); font-weight: 700; line-height: 1.1;
}
.history-timeline .title { font-size: 15px; margin-top: 8px; }

/* ---------------------------------------------------- gallery and events --- */

.gallery-filter, .event-filter { text-align: center; margin-bottom: 30px; padding: 0; }

.gallery-filter a, .event-filter a {
    display: inline-block; padding: 8px 18px; color: var(--hap-muted);
    border: 1px solid transparent; text-transform: uppercase;
    font-size: 12px; letter-spacing: .08em;
}

.gallery-filter a.active, .event-filter a.active,
.gallery-filter a:hover, .event-filter a:hover {
    color: var(--hap-gold); border-color: var(--hap-gold);
}

.gallery-container { margin: 0 -8px; }
.gallery-box { padding: 8px; }
.gallery-box a { position: relative; display: block; overflow: hidden; }
.gallery-box img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.gallery-box a:hover img { transform: scale(1.07); }

.gallery-box .overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(216, 170, 66, .75); color: #fff; font-size: 22px;
    opacity: 0; transition: opacity .3s ease;
}

.gallery-box a:hover .overlay { opacity: 1; }

.events-container { margin: 0 -12px 40px; }
.event-box { padding: 12px; }
.event-box .inner-box {
    background: #fff; border: 1px solid var(--hap-line);
    height: 100%; display: flex; flex-direction: column;
}

/* Event posters arrive at whatever size the designer made them - mostly
   portrait flyers, with the odd landscape one. Rather than crop text off them,
   every poster sits inside a frame of fixed height and is scaled to fit. A
   blurred copy of the same image fills whatever space is left over, so the row
   lines up without anything being cut. */
.event-box .img-container {
    position: relative;
    height: 340px;
    overflow: hidden;
    background-color: #0f1620;
    background-size: cover;
    background-position: center;
}

.event-box .img-container::before {
    content: '';
    position: absolute;
    inset: -8%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(.55) saturate(1.1);
    transform: scale(1.08);
}

.event-box .img-container a {
    position: relative;
    z-index: 1;
    display: block;
    height: 100%;
}

.event-box .img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}

.event-box .img-container a:hover img { transform: scale(1.04); }

.event-box .desc-box { flex: 1; }
.event-box .desc-box { padding: 18px; min-height: 160px;background: rgba(0,44,78,0.7) }
.events-container.past .event-box .desc-box { padding: 18px; min-height: 0 !important;background: rgba(0,44,78,0.7) }

.event-box .category {
    display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--hap-gold); margin-bottom: 6px;
}
.event-box .title { margin: 0 0 4px; font-size: 19px; }
.event-box .sub-title { color: var(--hap-gold); font-size: 13px; margin-bottom: 10px; }
.event-box .desc { font-size: 14px; }
.events-container.past .inner-box { opacity: .78; }

/* -------------------------------------------------------- booking form --- */

.booking-form { margin-top: 10px; }

.form-section-title {
    font-size: 15px; text-transform: uppercase; letter-spacing: .1em;
    margin: 26px 0 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--hap-line); clear: both;
}

.booking-form .form-group { margin-bottom: 18px; padding: 0 10px; }

.booking-form label {
    display: block; font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--hap-muted); margin-bottom: 6px;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form input[type="number"],
.booking-form select,
.booking-form textarea,
.contact-form input,
.contact-form textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--hap-gold);
    background: transparent; font-size: 14px; /*color: var(--hap-dark);*/
}

.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus,
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--hap-gold);
}

.req { color: #c0392b; }

.room-choice { margin: 0 -8px 10px; }

.room-choice-item { display: block; padding: 8px; cursor: pointer; }

.room-choice-item input { position: absolute; opacity: 0; pointer-events: none; }

.room-choice-item .inner-box {
    display: flex; gap: 14px; align-items: center; padding: 10px;
    border: 2px solid var(--hap-line); background: transparent; transition: border-color .2s ease;
}

.room-choice-item:hover .inner-box { border-color: rgba(216, 170, 66, .5); }

.room-choice-item input:checked + .inner-box {
    border-color: var(--hap-gold); background: rgba(216, 170, 66, .06);
}

.room-choice-item .img-container { flex: 0 0 90px; }
.room-choice-item .img-container img { width: 90px; height: 70px; object-fit: cover; display: block; }
.room-choice-item .desc-box { display: block; }
.room-choice-item .title { display: block; font-weight: 600; }
.room-choice-item .price { display: block; color: var(--hap-gold); font-size: 13px; }
.room-choice-item .sub-title { display: block; color: var(--hap-muted); font-size: 12px; min-height: 40px}

.booking-summary {
    background: transparent; border: 1px solid var(--hap-line); padding: 24px;
    position: sticky; top: 20px;
}

.booking-summary .title {
    font-size: 15px; text-transform: uppercase; letter-spacing: .08em;
    margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hap-line);
}

.booking-summary ul { list-style: none; margin: 0 0 16px; padding: 0; }

.booking-summary li {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--hap-line);
}

.booking-summary li span { color: var(--hap-muted); }

.booking-summary .total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 14px 0; margin-bottom: 14px; border-top: 2px solid var(--hap-gold);
}

.booking-summary .total strong { font-size: 24px; color: var(--hap-gold); }

.booking-summary .note { font-size: 12px; color: var(--hap-muted); margin-bottom: 16px; }

/* ------------------------------------------------------------- receipts --- */

.booking-receipt { max-width: 560px; margin: 0 auto 30px; }
.booking-receipt ul { list-style: none; margin: 0; padding: 0; }
.booking-receipt li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 11px 0; border-bottom: 1px dashed var(--hap-line);
}
.booking-receipt li span { color: var(--hap-muted); }
.booking-receipt li.total { border-bottom: 0; border-top: 2px solid var(--hap-gold); margin-top: 6px; }
.booking-receipt li.total strong { color: var(--hap-gold); font-size: 20px; }

#poster-section .content { max-width: 720px; margin: 0 auto 26px; text-align: center; }

/* -------------------------------------------------------------- contact --- */

.contact-form { margin: 0 -10px; }
.contact-form .form-group { padding: 0 10px; margin-bottom: 18px; }
.contact-form label {
    display: block; font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--hap-muted); margin-bottom: 6px;
}

.contact-details { background: rgba(255, 255, 255, .08); padding: 26px; border: 1px solid var(--hap-gold); }
.contact-details .title { margin-top: 0; }
.contact-details .contact-info { list-style: none; margin: 0; padding: 0; }
.contact-details .contact-info li { padding: 9px 0; border-bottom: 1px dashed var(--hap-line); }
.contact-details .contact-info i { color: var(--hap-gold); width: 24px; }

/* ----------------------------------------------------------- newsletter --- */

.newsletter-form { margin-top: 12px; }

.newsletter-form input[type="email"] {
    width: 100%; padding: 10px 12px; margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08); color: #fff;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, .5); }

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 991px) {
    .booking-summary { position: static; margin-top: 26px; }
    .room-gallery-item { width: 50%; }
}

@media (max-width: 991px) {
    .event-box .img-container { height: 300px; }
}

@media (max-width: 767px) {
    .event-box .img-container { height: 380px; }

    #rooms-section, #other-rooms, #staff-section, #gallery-section,
    #events-section, #reservation-section, #contact-section, #poster-section,
    #hotel-rules, #service-details, #history-section, #restaurant-outlets {
        padding: 44px 0;
    }
    .room-gallery-item { width: 100%; }
    .rules-table td:first-child { width: 38%; }
    #main-availability-form button { margin-top: 10px; }
}
