/*
 Theme Name:   PilotAdvisor
 Description:  Theme du site PilotAdvisor
 Author:       Flore Leclerc / Jerome Micucci
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  pilotadvisor
*/

/* Reset */
*,
::before,
::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    text-size-adjust: 100%;
    position: relative;
}

a:focus,
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

li {
    list-style-type: none;
}

ul {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Global */
:root {
    /* old clor Bax Shadows and Grey 
	box-shadow: 1px 1px 6px 3px #D3D3D3;*/

    --comodite-color: #432ee8;
    --event-color: #751867;
    --interets-color: #3d328b;
}

body {
    background-color: #fff;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 1.1em;
}

.clearboth {
    clear: both;
    float: none;
}

/* search field */
.map.search-form {
    position: fixed;
    z-index: 300000;
    left: 12px;
    top: 100px;
}

.map.search-form input[type="submit"] {
    padding: 13px 20px;
    border-radius: 2px;
    border: none;
    top: 0;
    right: 0;
    position: absolute;
    color: transparent;
    background: 0 0;
    max-width: 45px;
    z-index: 2;
}

.map.search-form::after {
    font-family: Astra;
    font-size: 1.2em;
    font-weight: 400;
    content: "\e8b6";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translate(0, -50%);
}

/* map leaflet */
#map {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 0;
}

.leaflet-popup {
    top: 55px !important;
}

.leaflet-popup-tip-container {
    top: 0px !important;
}

.leaflet-popup-tip {
    box-shadow: none !important;
}

.leaflet-popup:before {
    content: "";
    position: absolute;
    border: 13px solid transparent;
    border-bottom-color: white;
    bottom: 0px;
    margin-left: -13px;
}

.map-overlay-2 {
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    position: absolute;
    width: 200px;
    top: 0;
    left: 50px;
    padding: 10px;
}

.map-overlay-2 .map-overlay-inner {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 10px;
}

.map-overlay-inner fieldset {
    border: none;
    padding: 0;
    margin: 0 0 10px;
}

.map-overlay-inner .categoryLabel {
    display: block;
    font-weight: bold;
    margin: 0 0 5px;
}

/* Map Container */
.map-container {
    position: relative;
    height: 650px;
    overflow: hidden;
    margin: 1em auto;
}

.map-container.map-fullscreen {
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0px;
    z-index: 10000;
    top: 0px;
    left: 0px;
}

/* Correction Border */
.main-header-bar {
    border: none !important;
}

/* structures Generale */
/* Star color */
.rating-post {
    color: #EBB12F;
}

.single-structures .content-area.structure-template,
.single-structures header .ast-site-title-wrap {
    text-align: left;
}

/* Button Return */
.single-structures header .return-link {
	display: flex;
    color: var(--interets-color);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid var(--interets-color);
}

.single-structures header .return-icon {
    width: 50px;
    height: 50px;
    display: flex;
    border: 2px solid;
    border-radius: 50%;
    padding: .3em;
}

.single-structures header .return-title {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 1em;
    font-size: 1.35em
}

.single-structures .content-area.structure-template {
    width: 1200px !important;
    margin: 0 auto !important;
    float: none !important;
}

.single-structures header .site-branding {
    text-align: left !important;
    padding-left: 1em !important;
    padding-bottom: 0 !important;
}

.single-structures header .site-branding .ast-site-identity {
    padding: .5em 0;
}

.structure-template p {
    margin-bottom: 0.5em;
}

.structure-template li {
    list-style-type: none;
}

.single-structures .site-header-structure {
	background-color: #fff;
	padding: 10px 0;
}

.single-structures .site-content-structure {
	top: 100px !important;
}

.single-structures .center-col,
.single-structures .left-col,
.single-structures .form-new-post .comment-form {
    /*border: 1px solid #ededed;*/
    border-radius: 15px;
    padding: 15px;
}

.form-new-post .comment-form-comment textarea {
    height: 10em;
}

.single-structures .infos-generales,
.single-structures .form-new-post,
.single-structures .comments-area {
    border: 1px solid #ededed;
    border-radius: 15px;
    box-shadow: 1px 1px 6px 3px #AAA;
    margin-bottom: 2em;
}

.single-structures .container-left.photos,
.single-structures .container-left.videos {
    margin-bottom: 1em;
    position: relative;
}

.single-structures .container-media-left {
    max-height: 300px;
    overflow: auto;
}

.single-structures .title-container-left {
    color: #AAA;
    font-weight: bold;
    margin-bottom: 1em;
}

.single-structures .comments-area {
    height: 300px;
    overflow-x: auto;
}

.single-structures .comments-area .no-comments {
    display: flex;
    height: 280px;
}

.single-structures .infos-generales {
    border: none;
    background-position: left -3px;
    background-repeat: no-repeat;
    background-size: 102%;
    background-image: url("assets/images/background.svg");
}

.single-structures .form-new-post,
.single-structures .comments-area {
    box-shadow: none;
}

.single-structures .container-left:last-child,
.single-structures .form-new-post:last-child,
.single-structures .comments-area:last-child {
    margin-bottom: 0;
}

.structure-template .infos-general.background-svg {
    height: 5em;
}

#primary .left-col {
    width: 24%;
    float: left;
    margin-bottom: 2em;
    /*margin-right: 15px;*/
}

#primary .center-col {
    width: 74%;
    float: left;
    position: relative;
}

.center-col .row-data-detail {
    margin-bottom: -1em;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 2em;
}

.container-left.photos ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    justify-content: space-between;
}

.container-left.photos li,
.container-left.videos li {
    /* width: calc((100%/2) - 0.3em);*/
    width: 100%;
    position: relative;
    margin-bottom: 0.4em;
    display: flex;
}

.container-left.photos li a {
    position: relative;
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
}

.container-left.photos li img {
    width: 100%;
    height: auto;
}

/* .container-left.photos li:last-child{ margin-right: auto;} */
/* .container-left.photos li:nth-last-child(even){ margin-right: auto;}
/* infos-generales-content*/
.structure-template .title.infos-general {
    font-size: 1.3em;
    text-align: center;
    color: white;
}

.structure-template .infos-generales-content {
    padding: 15px;
}

.structure-template .infos-generales-content .toponyme {
    margin-bottom: 1em;
}

.structure-template .infos-generales-content p {
    line-height: 1.4
}

.structure-template .infos-generales-content .toponyme .label {
    display: block
}

.structure-template .infos-generales-content .toponyme .info {
    font-weight: bolder;
}

/* Commodités / détails structures */
.structure-details {
    width: 30%;
    height: 350px;
    overflow-y: auto;
    margin: 0.7em;
    margin-bottom: 1em;
    border-radius: 15px;
    box-shadow: 1px 1px 6px 3px #AAA;
    background-position: left -3px;
    background-repeat: no-repeat;
    background-size: 102%;
}

.structure-details.interets-aeronautiques {
    background-image: url("assets/images/Header_event.svg");
}

.structure-details.commodites {
    background-image: url("assets/images/Header_commodite.svg");
}

.structure-details.evenement {
    background-image: url("assets/images/background.svg");
}

.structure-details .background-svg {
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    width: 100%;
    color: white;
}

.structure-details .title-detail-event {
    font-size: 1.3em;
    margin-bottom: 0.3em;
}

.structure-details .title-detail-event span {
    display: block;
    font-size: 1.4em;
}

.structure-details .elementor-icon {
    background-color: white;
    border-radius: 50%;
    width: 1.1em;
    height: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    margin: 0 auto;
    font-size: 55px;
    margin-top: .5em;
    margin-bottom: .2em;
}

.structure-details .elementor-icon i {
    font-size: 0.5em;
    height: auto;
    width: auto;
}

.structure-details .elementor-icon i::before {
    position: relative;
    left: auto;
}

.structure-details.evenement .elementor-icon {
    color: var(--interets-color);
}

.structure-details.commodites .elementor-icon {
    color: var(--comodite-color);
}

.structure-details.interets-aeronautiques .elementor-icon {
    color: var(--event-color);
}

.structure-details .structure-detail-content {
    padding: 0 20px;
    height: calc(100% - 4em);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.structure-details .detail-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.detail-container .detail-content p,
.detail-container .detail-title p {
    margin-bottom: 0;
}

.structure-details .elementor-heading-title:first-of-type {
    font-size: 1em;
    font-weight: bold;
    position: relative;
    margin-bottom: .5em;
}

.elementor-heading-title::after {
    content: "";
    height: 2px;
    width: 100px;
    background-color: #ededed;
    position: absolute;
    left: 0;
    margin-top: 1.5em;
}

.structure-details .rating-post {
    display: flex;
}

.structure-details .rating-post .dashicons {
    width: 15px;
    font-size: 15px;
}

.structure-details .detail-content,
.structure-details .detail-title,
.structure-details .detail-title .elementor-heading-title {
    width: 100%;
    font-size: .8em;
    margin-top: 0;
    margin-bottom: 0;
}

.structure-details .detail-title,
.elementor-heading-title-detail {
    width: 100%;
    font-size: .8em;
    margin-top: 5px;
    font-style: italic;
    font-weight: bold;
}

.structure-details.interets-aeronautiques .detail-title .elementor-heading-title,
.structure-details.evenement .detail-title .elementor-heading-title {
    display: flex;
    flex-direction: column;
}

/* button */
.structure-details button.elementor-toggle-popup {
    border: none;
    font-style: italic;
    background-color: transparent;
    color: black;
    margin: 5px 0;
    padding: 5px 0;
    font-size: .8em;
    text-align: left;
    display: flex;
    align-items: center;
}

.structure-details button.elementor-toggle-popup::before {
    content: "\2023";
    margin-right: 10px;
    font-size: 2.5em;
}

.structure-details.interets-aeronautiques .details-content,
.structure-details .rating.star {
    margin-bottom: 1em;
    margin-top: auto;
}

.popup-overlay {
    visibility: hidden;
}

.detail-description {
    display: none;
    visibility: hidden;
}

.detail-description.active {
    display: block;
}

.popup-overlay.active {
    visibility: visible;
    background-color: rgba(0, 0, 0, .6);
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1000;
    left: 0px;
    top: 0px;
}

.detail-description.active {
    visibility: visible;
    background-color: rgba(255, 255, 255, 1);
    width: 80%;
    height: 80%;
    position: fixed;
    z-index: 1010;
    left: 10%;
    top: 15%;
    overflow-y: auto;
    padding: 20px;
    border-radius: 15px;
    overflow-x: hidden;
}

/* Comment / news post  Section*/
.single-structures header.ast-comment-meta {
    width: auto !important;
}

.comment-form .logged-in-as,
.comment-form label,
.comments-count-wrapper {
    display: none;
}

.single-structures .form-new-post {
    padding: 15px;
}

.form-new-post .comment-respond h3 {
    font-size: 1em;
    padding: 15px;
    padding-top: 0;
    ;
}

.ast-comment-list li:last-child article {
    border-bottom: none;
}

.ast-comment-meta ul {
    display: flex;
    flex-direction: row;
    margin-left: 0;
    justify-content: space-around;
    height: 100%;
    width: 100%;
    position: relative;
}

.ast-comment-meta ul li {
    margin-right: 15px;
    margin-left: 0;
}

.ast-comment-meta ul li:last-child {
    margin-right: auto;
}

/* Comment Form */
.form-new-post .acf-comment-fields button,
.form-new-post .ast-comment-formwrap input,
.form-new-post .form-submit input.submit,
.form-new-post .acf-comment-fields a.acf-button {
    background-color: transparent !important;
    color: var(--interets-color) !important;
    border: 2px solid var(--interets-color) !important;
    border-radius: 20px !important;
    padding: 5px 20px !important;
    font-size: .9em;
}

.form-new-post .form-submit input.submit {
    background-color: var(--interets-color) !important;
    color: white !important;
    font-weight: bolder !important;
    padding: 10px 25px !important;
}

/* Correction */
.form-new-post form p.form-submit {
    text-align: right;
}

.form-new-post p.comment-notes {
    font-size: .75em;
}

.form-new-post .acf-comment-fields button {
    margin: 7px;
    margin-left: 0;
}

.form-new-post .ast-comment-formwrap.ast-row {
    display: flex;
    margin: 0;
}

.form-new-post .ast-comment-formwrap p {
    width: auto;
    float: none !important;
    padding: 0;
    margin-right: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Remove Consent cookies */
.form-new-post form .comment-form-cookies-consent {
    display: none;
}

/* .form-new-post form .comment-form-cookies-consent{
	display: none;
    flex-direction: row;
    width: 50%;
    justify-content: space-around;
    align-items: center;}
.form-new-post form .comment-form-cookies-consent input{ margin-right: 15px;}
.form-new-post form .comment-form-cookies-consent label{ display: flex;}
/* no margin-bootom */
.form-new-post form p.form-submit,
.form-new-post form p.comment-notes {
    margin-bottom: 0;
}

.details-content button.close {
    color: transparent;
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid black;
    background-color: transparent;
    position: absolute;
    right: 1em;
    top: 1em;
}

/* Button Add Structure */
.structure-template .left-col .btn.btn-action {
    position: relative;
    border-radius: 15px;
    box-shadow: 1px 1px 6px 3px #AAA;
    margin-bottom: 2em;
    width: 100%;
    display: flex;
    padding: .9em;
    align-content: center;
    justify-content: center;
    text-align: center;
    padding-left: 2.7em;
}

.structure-template .left-col .btn.btn-action.btn-add::after {
    content: "\f067";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    height: 40px;
    width: 40px;
    left: .5em;
    padding-top: .35em;
    font-size: 1.25em;
    margin-top: -.45em;
    color: white;
    background-color: var(--comodite-color);
    border-radius: 50%;
}

.structure-template .left-col .btn.btn-action::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    height: 40px;
    width: 40px;
    left: .5em;
    padding-top: .35em;
    font-size: 1.25em;
    margin-top: -.45em;
    color: white;
    border-radius: 50%;
}

.structure-template .left-col .btn.btn-action.btn-add::after {
    content: "\f067";
    background-color: var(--comodite-color);
}

.structure-template .left-col .btn.btn-action.btn-edit::after {
    content: "\f304";
    background-color: var(--yellow);
}

/* Correction Icone */
.details-content button.close::after {
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: black;
    position: absolute;
    top: 21px;
    left: 21px;
    font-size: 1.3em;
    transform: translate3d(-50%, -50%, 0);
}

/* Responsive */
@media screen and (max-width: 1180px) {
	div#content {
		top: 110px!important;
	}
	
	header .site-branding {
		padding-bottom: 0!important;
	}
	
    .single-structures .content-area.structure-template,
    .header-structure,
    .header-svg-background,
    .single-structures header {
        width: 100% !important;
    }
	
	.single-structures .site-content-structure .infos-generales {
		background-size: 165%;
	}
}

@media screen and (max-width: 600px) {	
	.single-structures .site-content-structure .infos-generales {
		background-size: 102%;
	}
	
    .structure-template .infos-generales-content {
        padding: 10px;
		margin-top: 30px;
    }
}

@media screen and (min-width: 600px) and (max-width: 1024px) {
    .structure-template .title.infos-general {
        font-size: 1.2em;
        padding: 7px;
    }

    .structure-template .infos-generales-content {
        padding: 10px;
		margin-top: 5px;
    }

    .structure-details button.elementor-toggle-popup {
        font-size: 0.8em;
    }

    .structure-details .background-svg {
        margin-bottom: 0.5em;
        padding: 10px;
    }
}

@media screen and (max-width: 970px) {
    .ast-header-break-point .ast-mobile-header-stack .ast-site-identity {
        justify-content: left;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --size-Font: 1.1em;
    }

    /**/
    .single-structures.ast-header-break-point .ast-mobile-header-inline .main-header-container,
    .single-structures.ast-header-break-point .ast-mobile-header-stack .main-header-container {
        display: block
    }

    /**/
    .ast-comment-meta {
        font-size: inherit;
    }

    #primary .left-col,
    #primary .center-col {
        float: none;
        width: 100%;
        font-size: var(--size-Font);
    }

    #primary .left-col {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 1em;
        justify-content: space-between;
    }

    .structure-details {
        width: calc((100%/2) - 1em);
    }

    /*
	.single-structures .container-left,.single-structures a.btn{
		width: calc((100%/2) - 1em); }
	/* Change flex to grid */
    .single-structures .container-left.infos-general {
        grid-area: Info;
    }

    .single-structures .container-left.photos {
        grid-area: Photos;
    }

    .single-structures .container-left.videos {
        grid-area: Videos;
    }

    .single-structures a.btn {
        grid-area: button_;
        height: 60px;
    }

    .structure-template .left-col {
        display: grid !important;
        grid-template-columns: repeat(2, calc((100%/2) - 1em));
        grid-template-areas:
            "Info Photos"
            "button_ Videos";
        gap: 0px 0px;
    }

    .structure-template .infos-general.background-svg {
        height: 6.5em;
        padding: 30px;
    }

    .center-col .row-data-detail {
        justify-content: space-between;
        margin-top: 2em;
    }

    .structure-details {
        height: 400px;
        margin: 0;
        margin-bottom: 1.5em;
    }

    .structure-details .structure-detail-content {
        padding: 0 40px;
    }

    .row-data-detail button {
        font-size: 0.9em;
    }

    .structure-details .elementor-icon {
        width: 1.4em;
        height: 1.4em;
        margin-top: .8em;
    }

    .single-structures .center-col,
    .single-structures .left-col,
    .single-structures .form-new-post .comment-form,
    .ast-comment-data-wrap {
        font-size: var(--size-Font);
    }

    .structure-details .elementor-heading-title.elementor-size-default {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .single-structures .form-new-post .ast-comment-formwrap.ast-row {
        display: block;
        margin: 0;
    }
}

@media screen and (max-width: 480px) {
    .structure-template .left-col {
        display: flex !important;
    }

    .header-svg-background .site-title a {
        font-size: 1.1em;
    }

    .structure-details,
    .single-structures .container-left {
        width: 100%;
    }

    .structure-details .elementor-heading-title {
        font-size: 1.3em;
        width: 100%;
    }

    .single-structures .center-col,
    .single-structures .left-col,
    .single-structures .form-new-post .comment-form,
    .ast-comment-data-wrap {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 320px) {
    .header-svg-background {
        padding-left: 0;
    }

    .header-svg-background .site-title a {
        font-size: 1em;
    }
}