a:active, a:focus {
  outline: none !important; /* Removes the default outline */
}

input {
    outline: none;
}

@keyframes inputAlert {
  0% { border: 1px solid red; box-shadow: 0 0 5px red; }
  33% { border: 1px solid #ccc; box-shadow: 0 0 0 transparent; }
  66% { border: 1px solid red; box-shadow: 0 0 5px red; }
  100% { border: 1px solid #ccc; box-shadow: 0 0 0 transparent; }
}

.blink-alert {
  animation: inputAlert 1s ease-in-out forwards;
}

@keyframes inputShortAlert {
  0% { border: 1px solid red; box-shadow: 0 0 5px red; }
  100% { border: 1px solid #ccc; box-shadow: 0 0 0 transparent; }
}

.input-alert {
  animation: inputShortAlert 0.3s ease-in-out forwards;
}

@keyframes messageShortAlert {
  0% { color: #ff0000; border:1px solid red; padding: 5px;}
  75% { color: #ff0000; border:1px solid red; padding: 5px;}
  100% { color: #4a4a4a; border:1px solid transparent; padding: 0; }
}

.message-alert {
  animation: messageShortAlert 1s ease-in-out forwards;
}

.rcab-property {
    font-family: "Varta", Sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 1.4;
}

.rcab-elem-gallery--mosaic {
  height: 322px;
  margin: 16px 0;
}

.rcab-elem-gallery--mosaic .rcab-elem-gallery__mosaic{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:2px;
  align-items:stretch;
  height: 100%;
}

.rcab-elem-gallery--mosaic .rcab-elem-gallery__big,
.rcab-elem-gallery--mosaic .rcab-elem-gallery__singleBig{
  display:block;
  width:100%;
  height:100%;
  overflow:hidden;
  height: 100%;
}

.rcab-elem-gallery--mosaic .rcab-elem-gallery__smallGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap:2px;
  height: 100%;
}

.rcab-elem-gallery--mosaic .rcab-elem-gallery__small{
  display:block;
  width:100%;
  height:100%;
  overflow:hidden;
  height: 100%;
}

.rcab-elem-gallery__tile {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* TABS */
.rcab-property-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 32px;
    margin-top: 5px;
    position: relative;
}

.rcab-property-tabs::after {
    content: "";
    display: block;
    width: 100%;
    position: absolute;
    height: 1px;
    border-bottom: 1px solid #ddd;
    bottom: -7px;
    left: 0;
}

.rcab-property-tabs span {
    padding: 10px 20px;
    cursor: pointer;
    color: #191E3B;
    font-family: 'Varta', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.rcab-property-tabs span.active,
.rcab-property-tabs span:hover
{
    border-bottom: 2px solid #B5862D;
    font-weight: 600;
    color: #B5862D;
}

/* SECTIONS */
.rcab-property-section {
    display: none;
}

.rcab-property-section.active {
    display: block;
}



#rcab-overview.active {
    display: grid;
}

#rcab-overview {
    grid-template-columns: 2fr 1fr;
    gap: 3em;
    align-items: stretch;
}

.rcab-property-subtitle {
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 10px;
    color: #191E3B;
}

.rcab-property-title {
    font-family: "Cormorant", serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1;
    color: #B5862D;
    margin-bottom: 0.4em;
}

.rcab-property-address {
    font-weight: 400;
    font-size: 14px;
}

.rcab-property-text {
    font-size: 14px;
    line-height: 20px;
    color: #1A1A1A;
}

.rcad-property-amenities {
    margin-top: 20px;
}

.rcad-property-amenities h3 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.rcab-property .inline-icon {
    height: 20px;
}

.amen-icon {
    width: 15px;
    height: 15px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: -4px;
    margin-right: 2px;
}

.rcab-property-content {
    margin: 1.5em 0 0;
}

.rcab-property-map {
    margin-top: 2em;
    border-radius: 5px;
    overflow: hidden;
}

.rcab-map-wrapper {
    height: 100%;
    max-height: 500px;
}

.rcab-leaflet-map {
    height: 100%;
    min-height: 300px;
}

.rcab-leaflet-map .leaflet-popup-content {
    margin: 15px 20px 12px 10px;
    line-height: 1.3;
    font-size: 1rem;
}

.rcab-amenity-box {
    font-family: Varta;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    vertical-align: middle;
    display: inline-block;
    padding: 0 20px 10px 0;
    break-inside: avoid;
    color: #1A1A1A;
}

.rcab-amenity-box .inline-icon {
    padding-right: 5px;
}

.rcab-availability {
    font-family: Varta, sans-serif;
}

h2.rcab-availability-heading {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 32px;
}

.rcab-availability input, .rcab-availability select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    margin-bottom: 0;
    height: auto;
}

#rcab-availability-dates {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    align-items: end;
}

.rcab_action {
    line-height: 1;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    background: #124734;
    color: #fff;
    border: 1px solid #124734;
    padding: 0;
    transition: color 0.3s, background-color 0.5s;
}

.rcab_action:hover {
    background: #fff;
    color: #0f3d2e;
    border: 1px solid;
}

div#rcab-rooms-selection {
    margin-top: 20px;
    min-height: 200px;
}

.rcab_room_row {
    display: grid;
    grid-template-columns: 2fr 0.6fr 1.4fr 1fr;
    border: 1px solid #e5e5e5;
    border-top: none;
    position: relative;
}

.rcab_room_row:first-child {
    border-top: 1px solid #e5e5e5;
}

.rcab_room_col {
    padding: 20px;
    border-right: 1px solid #e5e5e5;
}

.rcab_room_col.cost {
    border-right: none;
}

.rcab-room-image {
    width: 80%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    border-radius: 8px;
    margin: 10px 0;
}

.rcab-category-description {
    line-height: 1.2;
    margin: 10px 0;
}

.rcab-rooms-left {
    font-family: Varta;
    font-weight: 700;
    font-size: 12.3px;
    line-height: 20px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #B5862D;
    margin: 10px 0;
}

.rcab-pie {
    display: inline-block;
    vertical-align: middle;
}

.rcab-category-amenities {
    margin: 15px 0;
}

.rcab-category-amenities .rcab-amenity-box {
    border: 1px solid #ddd;
    padding: 10px 10px;
    margin: 0 5px 5px 0;
    border-radius: 8px;
    font-size: 12px;
}

.rcab-category-amenities .rcab-amenity-box .inline-icon {
    height: 15px;
}

.rcab_room_col.rates label {
    display: block;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.rcab_room_col.guests label {
    line-height: 1;
    display: block;
    font-weight: bold;
}

.rcab_room_col label.col_label {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    display: block;
    margin-bottom: 5px;
    color: #124734;
    border: none;
    padding-bottom: 10px;
}

.rcab_room_col.rates input[type="radio"] {
    display: inline-block;
    width: auto;
    margin-top: 0;
    margin-right: 5px;
    vertical-align: middle;
}

.rcab_room_col.rates label span{
    display: block;
    padding-left: 20px;
    line-height: 1.2;
    font-size: 0.85em;
    font-weight: normal;
    color: #888;
}

.rcab_room_col.guests input {
    margin: 0 0 10px 0;
}

.rcab_room_col .rcab_nights_count, .rcab_room_col .rcab_price_per_night {
    font-size: 12px;
    line-height: 1.2;
}

.max_guest_notice {
    font-size: 12px;
    line-height: 1.2;
}

.rcab_price {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
}

.rcab_remove, .rcab_reserve, .rcab_add_room, .rcab_refresh, .rcab_refresh_single {
    padding: 0 20px;
    display: inline-block;
}

.rcab_remove {
    margin-top: 5px;
    margin-left: 10px;
}

.rcab_refresh_single {
    margin-bottom: 10px;
}

.rcab_secondary {
    background-color: #B5862D;
    border: #B5862D;
    padding: 0 60px;
}

.rcab_secondary:hover {
    border-color: #B5862D;
    color: #B5862D;
}

.rcab-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0 10px;
    margin-top: 0;
}

.rcab-summary {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.rcab-total {
    font-size: 26px;
    line-height: 1.2;
    text-align: right;
}

.rcab-total .total{
    font-size: 41px;
}

.rcab-checkout, .rcab-refresh {
    text-align: right;
}

.rcab-tax {
    font-size: 12px;
    line-height: 1;
}

.rcab_nocharge, .rcab_newquote {
    font-size: 12px;
    margin:0;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

p.rcab_alert::before {
    content: "*";
    font-weight: bold;
    font-size: 32px;
    line-height: 0.5;
    position: relative;
    top: 12px;
    padding-right: 10px;
}

p.rcab_alert {
    color: red;
    font-weight: bold;
    margin: -10px 0 10px;
    line-height: 1;
}

#rcab-availability-wrapper {
    position: relative;
}

#rcab-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .75);
    display: grid;
    place-items: center;
    z-index: 1;
}

/* Spinner */
.spinner {
    width: 112px;
    height: 112px;
    border: 16px solid rgba(22, 63, 22, 0.55);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .9s linear infinite;
}

.rcab_min_stay_error,.rcab_availability_error {
    color: red;
    font-weight: bold;
    line-height: 1;
    margin: 8px 0;
}

.rcab_backlink {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: 'Varta', sans-serif;
    height: 1em;
    color: #124734 !important;
    fill: #124734;
    margin-bottom: 6px;
}

.rcab_backlink svg {
    height: 1em;
    position: relative;
    top: -1px;
}

@keyframes spin{
  to{ transform: rotate(360deg); }
}

@media (max-width:940px){
    .rcab_room_row {
        grid-template-columns: 1fr;
    }

    .room_info {
        display: flex;
        gap: 25px;
        flex-direction: row-reverse;
    }

    .rcab_guests_inputs {
        display: flex;
        gap: 10px;
    }

    .rcab_secondary {
        padding: 0 15px;
    }
}

@media (max-width:800px){
    #rcab-overview {
        grid-template-columns: 1fr;
        gap: 0;
    }
    div#rcab-property-map {
        height: 50vh;
    }
    .rcab-elem-gallery--mosaic {
        height: 200px;
    }
}

@media (max-width:680px){
    .rcab-room-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width:480px){

    .rcab-elem-gallery--mosaic {
        height: 200px;
    }

    .rcab-elem-gallery--mosaic .rcab-elem-gallery__mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: 3fr 1fr;
    }

    .rcab-elem-gallery--mosaic .rcab-elem-gallery__smallGrid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr;
    }

    #rcab-availability-dates {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    #rcab_apply_button {
        grid-column-end: span 2;
    }

    .rcab-room-image {
        width: 100%;
        height: 80px;
    }

    .rcab-bottom-bar {
        flex-direction: column;
        align-items: stretch;
        gap:15px;
    }

    .rcab-summary {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* Optional: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .spinner{ animation: none; }
}