///////////////////////////////////////////////////////////////
// Device: Desktop
///////////////////////////////////////////////////////////////

.casino-locator
{
  .gm-style-pbt
  {
    margin-left: 410px;
    margin-right: 20px;
    text-align: center;
  }
}

.casino-locator-mobile-display {
    display: none;
}

.casino-locator-state
{
    display: none;
}

.casino-locator-state.is-active
{
    display: block;
}

.casino-locator-normal
{
    position: relative;
    height: 770px;
}

input:-webkit-autofill {
    background-color: $color-white !important;
}

#geolocationBtn {
    text-decoration: underline;
    font-size: 0.8em;
    &:hover {
        font-size: 0.8em;
    }
}

#casino-locator-map {
    height: 100%;
}

.casino-locator-panel {
    position: absolute;
    top: 40px;
    left: 20px;
    z-index: 2;
    width: 370px;
    background-color: $color-white;
    border: 8px solid $color-golden;
    padding: 0 20px;
}

.casino-locator-panel-header {
    text-align: center;
    margin-top: 15px;

    h2 {
        font-family: 'Lucien-bold';
        font-size: 1.06em;
        margin-top: 20px;
        text-transform: uppercase;
    }
}

.casino-locator-panel-location {
    margin-top: 35px;
    margin-bottom: 15px;

    @include mobile-landscape-and-below {
        display: none;
    }
}

.casino-locator-panel-form {
    text-align: center;
}

.casino-locator-panel-form-title {
    position: relative;
    display: inline-block;
    font-family: 'Lucien-regular';
    color: $color-golden;
    font-size: 1.175em;
    background-color: $color-white;
    padding: 0 10px;

}

.casino-locator-panel-form-title-container {

    margin-top: 25px;
    margin-bottom: 25px;
    position: relative;

    &:before {
        content: '';
        position: absolute;
        top: 7px;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: $color-grey-light;
    }

}

.casino-locator-panel-form-search {
    margin-top: 20px;
}

// google places : autocomplete list
.pac-container {
    z-index: 22222;
}
.casino-locator-panel-form-search-input {
    background: #FFFFFF url("../img/svg/icon-search.svg") 95% center no-repeat;
    background-size: 18px 29px;
    border: 1px solid $color-grey-light;
    color: $color-grey-lighter;
    display: block;
    font-family: 'georgia-regular', serif;
    font-size: 1em;
    font-style: italic;
    height: 50px;
    outline: 0;
    padding: 0 35px 0 10px;
    width: 100%;
    transition: all 200ms ease;

    &:focus {
        box-shadow: 0 0 5px #a57b1b;
        border: 1px solid #a57b1b;
        color: #000000;
    }
}

.casino-locator-panel-form-checkbox {

    @include outer-container;
    margin-bottom: 40px;
    text-align: left;

    label {
        font-family: 'Arial';
        font-weight: 300;
        font-size: 0.8em;
        display: block;
        /*max-width: 88%;*/
        clear: both;
        margin-bottom: 12px;

        @include tablet-landscape-and-below {
            font-size: 0.6em;
        }

        span {
            margin: 0 2px;
        }

    }

    input[type=checkbox] {
        margin-right: 5px;
        outline: none;
        @include border-top-radius(0px);
        @include border-right-radius(0px);
        @include border-bottom-radius(0px);
        @include border-left-radius(0px);
    }

}

.casino-locator-panel-form-checkbox-col1 {
    width: 74%;
    float: left;
}

.casino-locator-panel-form-checkbox-col2 {
    @include span-columns(4);
    width: 26%;
}

#resetFilterBtn {
    display: block;
    margin-top: 8px;
    text-decoration: underline;
    color: $color-black-light;
    font-size: 0.8em;
}

/* Infowindow Casino Locator */

#iw-container .iw-title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 22px;
    font-weight: 400;
    padding: 10px;
    background-color: #48b5e9;
    color: white;
    margin: 1px;
    border-radius: 2px 2px 0 0; /* In accordance with the rounding of the default infowindow corners. */
}

.gm-style-iw {
    width: 420px !important;
    top: 18px !important;
    left: 0 !important;
    @include border-top-radius(0px);
    @include border-right-radius(0px);
    @include border-bottom-radius(0px);
    @include border-left-radius(0px);
}

.infowindow-close {
    background-color: $color-white;
    right: 30px !important;
    font-size: 20px !important;
    opacity: 1 !important;
}

.casino-locator-infowindow {
    max-width: 420px;
    border: 2px solid $color-golden;
    background-color: $color-white;
}

.casino-locator-infowindow-container {
    @include outer-container;
    padding: 0 20px;
    margin-top: 15px;
}

.casino-locator-infowindow-visuel {

    img {
        width: 100%;
    }

}

.js-has-geoloc {
    display: none; // wait for geoloc to show these elements (js)
}

.casino-locator-infowindow-col1 {
    //@include span-columns(2);
}

.casino-locator-infowindow-col2 {
    //@include span-columns(10);
}

.casino-locator-infowindow-title {
    font-family: 'Lucien-regular';
    font-size: 1.3em;
    text-transform: uppercase;
    color: $color-golden;
}

.casino-locator-infowindow-adress {
    font-family: 'Georgia';
    font-size: 1.08em;
}

.casino-locator-infowindow-atouts {
    font-family: 'Lucien-bold';
    font-size: 0.8em;
    margin-top: 10px;
    overflow: hidden;

    padding-left: 15px;

    li {
        float: left;
        width: 50%;

        &:last-child {

            &:after {

                content: '';
                clear: both;

            }
        }

    }

}

.casino-locator-infowindow-cta {
    clear: both;
    margin-top: 10px;
    margin-bottom: 15px;

    .button-golden {
        width: 100%;
        padding: 12px 0 12px 0;
    }

}

.casino-locator-infowindow-icon {

    width: 31px;
    height: 47px;
    background: url('../img/svg/icon-geolocation.svg');

}

.casino-locator-disabled
{
    position: relative;
}
.casino-locator-disabled-background
{
    display: block;
    width: 100%;
}
.casino-locator-disabled-background-image
{
    display: block;
    width: 100%;
}
.casino-locator-disabled-alert
{
    border: 2px solid $color-golden;
    max-width: 400px;

    position: absolute;
        left: 50%;
        top: 50%;
    transform: translateX(-50%) translateY(-50%);
}
.casino-locator-disabled-alert-header
{
    background: #FFFFFF;
    padding: 50px 30px;
}
.casino-locator-disabled-alert-header-title
{
    color: $color-golden;
    font-family: lucien-regular, Arial, Helvetica, sans-serif;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
}
.casino-locator-disabled-alert-content
{
    background: #DDD;
    padding: 15px 30px;
}
.casino-locator-disabled-alert-content-message
{
    text-align: center;

    p
    {
        font-family: lucien-book, Arial, Helvetica, sans-serif;
    }
}
.casino-locator-disabled-alert-content-controls
{
    display: flex;
    margin-top: 15px;
}
.casino-locator-disabled-alert-content-control
{
    @include fixed-columns(2, 10px);

    font-size: 0.8rem !important;
    padding: 10px !important;
}

// Google Map Info Window

.infowindow-close {
    width: 30px !important;
    height: 30px !important;
    top: 5px !important;

    background: url('../img/svg/close-golden.svg') center center #FFF;
    background-size: 70%;
    background-repeat: no-repeat;

    img {
        display: none;
    }

}

///////////////////////////////////////////////////////////////
// Device: Desktop XL
///////////////////////////////////////////////////////////////

@include desktop-xl {

}

///////////////////////////////////////////////////////////////
// Device: Tablet
///////////////////////////////////////////////////////////////

@include tablet-landscape-and-below {

}

@include tablet-portrait-and-below {
    .casino-locator-normal
    {
        height: auto;
    }
    #casino-locator-map {
        display: none;
    }
    .casino-locator-panel {
        left: 0;
        width: 100%;
        border-left: none;
        border-right: none;
        border-bottom: none;
        position: relative;
        padding-bottom: 40px;
        text-align: center;
    }
    .casino-locator-mobile-display {
        display: block;
        height: 100%;
    }
    .casino-locator-mobile-results {
        background-color: $color-grey-background;
        padding: 0 10px;
        height: 100%;
    }
    .casino-locator-mobile-results-count {
        text-align: center;
        padding-bottom: 40px;
        padding-top: 80px;
        font-family: "lucien-regular";
        text-transform: uppercase;
        color: $color-black-light;
        background-color: $color-grey-background;
    }
    .casino-locator-infowindow {
        width: 100%;
        max-width: 100%;
        margin-bottom: 40px;
    }
    .casino-locator-infowindow-container {
        padding: 0 10px 0 10px;
    }
    .casino-locator-infowindow-col1 {
        margin-right: 0;
        width: 14%;
    }
    .casino-locator-infowindow-col2 {
        width: 86%;
        margin: 0;
    }
    .casino-locator-infowindow-title {
        font-size: 1.2em;
    }
    .casino-locator-infowindow-adress {
        font-size: 1em;
    }
    .casino-locator-infowindow-atouts {
        font-size: 0.6em;
        margin: 20px 0 20px 0;
        text-indent: -0.4em;
    }
    .casino-locator-panel-form-checkbox-col1 {
        width: 35%;
    }
    .casino-locator-panel-form-checkbox-col2 {
        width: 15%;
        margin-left: 15%;
    }
    .casino-locator-panel-form-checkbox {
        margin-bottom: 20px;
        label {
            font-size: 1em;
        }
    }
    #searchForm {
        padding-bottom: 20px;
    }
    #resetFilterBtn {
        text-align: center;
        font-size: 0.75em;
        display: inline-block;
        margin: 0 auto;
    }
    #casino-locator-search-mobile-btn {
        margin-bottom: 40px;
        width: 100%;
    }
}

///////////////////////////////////////////////////////////////
// Device: Mobile
///////////////////////////////////////////////////////////////

@include mobile-landscape-and-below {
    .casino-locator-panel-form-checkbox {
        label {
            font-size: 0.75em;
        }
    }

    .casino-locator-panel-form-checkbox-col1 {
        width: 58%;
    }

    .casino-locator-panel-form-checkbox-col2 {
        width: 25%;
    }

    .casino-locator-disabled
    {
        padding-left: 15px;
        padding-right: 15px;
    }
    .casino-locator-disabled-background
    {
        display: none;
    }
    .casino-locator-disabled-alert
    {
        max-width: none;
        position: static;
        transform: none;
    }
    .casino-locator-disabled-alert-header
    {
        padding-left: 10px;
        padding-right: 10px;
    }
    .casino-locator-disabled-alert-content
    {
        padding-bottom: 0;
        padding-left: 10px;
        padding-right: 10px;
    }
}



