/* Content */
.arribar-sec p strong {
    font-family: 'Konstanz-Semibold';
}

/* Que fer */
.quefer-list ul li img {
    aspect-ratio: 0.7;
    object-fit: cover;
}

.category-list .category-img img {
    aspect-ratio: 1.7;
    object-fit: cover;
}

/* Agenda */

.desco-list ul li .blog-img img{
    aspect-ratio: 1.35;
    object-fit: cover;
}

.calendar .ui-datepicker-calendar .has-event .ui-state-default {
    color: #067CC0;
}


/* Formulari */

.contact-form .form-box input[type="email"], .contact-form .form-box input[type="tel"]{
    width: 100%;
    color: #000000;
    font-family: 'Konstanz-Regular';
    padding: 10px 20px 10px;
    height: 56px;
    border-radius: 28px;
    border: none;
    border: 1px solid #ffffff;
    font-size: 16px;
    transition: all .5s ease;
    background: rgba(255, 255, 255, 1);
}
.contact-form .form-box input[type="email"]:focus, .contact-form .form-box input[type="tel"]:focus {
    border: 1px solid #000000;
}

/* ESTAT ACTIVAT: Quan té focus O quan té la classe 'has-value' */
.floating-label-group:focus-within .floating-label,
.floating-label-group.has-value .floating-label {
    top: -5px !important;
    bottom: auto !important;
    left: 20px !important;
    font-size: 12px !important;
    opacity: 1 !important;
    color: #000000 !important;
    font-family: 'Konstanz-SemiBold' !important;
    background: #fff !important;
    line-height: 12px !important;
    padding: 0 5px !important;
    z-index: 10;
}

/* Base de la etiqueta (per seguretat) */
.floating-label-group {
    position: relative;
    display: flex; /* Ajuda a alinear */
    flex-direction: column;
}

.floating-label {
    position: absolute;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 5;
}

.wpcf7 form.sent .wpcf7-response-output {
    float: left;
}


/* 1. Amagar l'input original */
.contact-form .form-box .frm-input.checkbox input {
    height: 1px;
    left: 0;
    position: absolute;
    top: 0;
    visibility: hidden;
    width: 1px;
}

/* 2. Estil base del label (el pare) */
.contact-form .form-box .frm-input.checkbox label {
    color: #000000;
    cursor: pointer;
    letter-spacing: 0.4px;
    font-family: 'Konstanz-Regular';
    font-size: 14px;
    padding-left: 35px;
    position: relative;
    display: inline-block;
    line-height: 22px;
    margin-bottom: 0px;
}

/* 3. El cercle de fons (Blanc amb vora) */
.contact-form .form-box .frm-input.checkbox label::after {
    background: rgba(255, 255, 255, 1);
    content: "";
    width: 20px;
    height: 20px;
    left: 0;
    position: absolute;
    top: 2px;
    border-radius: 50px;
    border: 1px solid #000;
    z-index: 1;
}

/* 4. El cercle que es pintarà (el de sobre) */
.contact-form .form-box .frm-input.checkbox label::before {
    background: none;
    content: "";
    height: 20px;
    left: 0;
    position: absolute;
    top: 2px;
    transition: all 0.3s ease-in-out 0s;
    width: 20px;
    border-radius: 50px;
    z-index: 9; /* Per sobre de l'after */
}

/* 5. Quan l'input DINS del label està checked, pintem el BEFORE del pare */
/* Aquesta és la clau per a Contact Form 7 */
.contact-form .form-box .frm-input.checkbox label:has(input:checked)::before {
    background: #067CC0;
    box-shadow: inset 0 0 0 3px #fff; /* Opcional: crea un efecte de vora blanca interna molt polit */
}

/* Alternativa si el teu navegador és antic i no suporta :has */
.contact-form .form-box .frm-input.checkbox input:checked + .wpcf7-list-item-label::before {
    background: #067CC0;
    content: "";
    height: 20px;
    width: 20px;
    position: absolute;
    left: 0;
    top: 2px;
    border-radius: 50px;
    z-index: 10;
}

.contact-form .form-box .frm-input.checkbox span {
    color: #000000;
    cursor: pointer;
    letter-spacing: 0.4px;
    font-family: 'Konstanz-Regular';
    font-size: 14px;
    position: relative;
    float: left;
    width: auto;
    line-height: 22px;
    margin-bottom: 0px;
    text-align: left;
}


/* HOME */
.destaquem-sec .desta-desk ul li img {
    aspect-ratio: 0.714;
    object-fit: cover;
    filter: brightness(0.95);    
} 
.destaquem-sec .desta-desk ul li:nth-child(5), .destaquem-sec ul li:nth-child(6){
    aspect-ratio: 1.7 ;
    object-fit: cover;
    filter: brightness(0.95);    
}

.agenda-slider .swiper-slide .agenda-img img, .litoral-list ul li .litoral-img img{
    aspect-ratio: 1.4;
    object-fit: cover;
    filter: brightness(0.95);    
}

/* RUTA */

.punts-lft ul li .punts-img img {
    float: left;
    width: 100%;
    aspect-ratio: 1.4;
    object-fit: cover;    
    filter: brightness(0.95);    
}

/* LListats post types */

.allot-tab-sec{
    row-gap: 15px;
}
.allot-tab-sec .filter-list-sec{
    flex : 7 ;
}
.filter-list-sec ul {
    flex-flow: wrap;
    row-gap: 15px;
}

.allot-grid {
    flex : 1;
}
.allot-grid ul{
    justify-content: end;
}

.allot-cat ul{
    row-gap: 15px;
}

/* Allotjaments i Restaurants */

.allot-tab .tab-cnt {
    float: left;
    width: 100%;
    display: none
}
.allot-tab .tab-cnt.current { display: block; }


@media screen and (max-width: 767px) {
    .allot-grid {
        flex : unset;
    }
}

.pagination ul li span.rgt, .pagination ul li span.lft {
    background-size: contain;
}

/* Com moure't */

.arribar-list ul li .arribar-info p strong {
    font-family: 'Konstanz-Semibold';
}

.arribar-list ul li .arribar-info ul {
    margin-bottom: 15px;
}

/* Cards */

.llistat-list ul li .llistat-img img {
    filter: brightness(0.95);
    object-fit: cover;
    aspect-ratio: 1.4;
}

.allot-cat {
    padding-top: 15px;
}

.badia-sec .fabriques-lft h2 {
    font-size: 45px;
    line-height: 55px;
}

.quefer-list ul li h3 {
    padding: 0px 30px;
}

.newsletter-sec::after {
    top: -20px;
}

.newsletter-sec{
    margin-top : 40px;
}
.search-in {
    margin-top: 150px;
}

.blog-slider .swiper-slide ul li .blog-img {
    width: 99%;
}

.desco-list ul li .blog-img img {
    aspect-ratio: 1.35;
    object-fit: cover;
}

.allot-cat ul li {
    font-size: 12px;
    letter-spacing: 0px;
    font-family: 'Konstanz-Regular';
    border: 1px solid #000000;
	padding: 0px 10px 0px 10px;
    height: 29px;    
    line-height: 25px;
}

.allot-cat ul {
    row-gap: 7px;
}

.llistat-list ul li .llistat-caption span {
    font-family: 'Konstanz-Semibold';
}

/* Blog */

.post-cnt-rht {
    height: inherit;
}

.author-img img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    object-fit: cover;
}

.blog-title p strong {
    font-family: 'Konstanz-Semibold';
}

.blog-title p a {
    border-bottom: 1px solid rgba(5, 123, 191, 0.3);
    color:#067CC0;
}

.blog-title p a:hover {
    border-bottom: 1px solid rgba(5, 123, 191, 1);
    transition: all 0.2s ease-in-out 0s;
}

/* Contingut WYSIWYG */

.rich-text p {
    font-size: 16px;
    line-height: 26px;
}

.rich-text strong {
    font-family: 'Konstanz-Semibold';
}

.rich-text a {
    border-bottom: 1px solid rgba(5, 123, 191, 0.3);
    color:#067CC0;
}

.rich-text a:hover {
    border-bottom: 1px solid rgba(5, 123, 191, 1);
    transition: all 0.2s ease-in-out 0s;
}

.rich-text ul {
	list-style-type: none;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 20px 0px;
}

.rich-text li {
	list-style: none;
	padding: 0px 0px 0px 20px;
	margin: 0px 0px 20px 0px;
	border-left: 2px solid #067CC0;
    font-size: 16px;
    line-height: 26px;

}

.rich-text .compart a {
    border-bottom:none;
}

.rich-text .compart a:hover {
    border-bottom:none;
}

.rich-text h1 {
	font-size: 30px;
    line-height: 40px;
    font-family: 'PlayfairDisplay-Bold';
    margin-bottom: 20px;
    margin-top: 0px;
}

.rich-text h2 {
	font-size: 22px;
    line-height: 32px;
    font-family: 'PlayfairDisplay-Bold';
    margin-bottom: 20px;
    margin-top: 0px;
}

.rich-text h3 {
	font-size: 30px;
    line-height: 40px;
    margin-bottom: 20px;
    font-family: 'Konstanz-Regular';
    margin-top: 0px;
}

.rich-text h4 {
	font-size: 22px;
    line-height: 32px;
    margin-bottom: 20px;
    font-family: 'Konstanz-Regular';
    margin-top: 0px;
}

.rich-text .hotel-map-sec a {
    text-decoration: none;
}

.rich-text .compart {
    clear:both;
}

.rich-text.post-cnt-lft .compart {
    padding-top: 20px;
}

.rich-text .hotel-map-sec {
    margin-top: 15px;
}


/* Blog */

.blog-title {
    margin-bottom: 40px;
}

.post-cnt-det {
    margin: 50px 0 0;
}

.post-cnt-rht {
    margin-top: 10px;
}

.blog-slider .swiper-slide ul li .blog-caption {
    padding: 0 150px 20px 50px;
}


/* Headers i imatges */

.main-banner .swiper-slide img {
    aspect-ratio: 3;
    filter: brightness(0.8);
}

.platja-img img {
    max-height: 500px;
    object-fit: cover;
}

.desco-list ul li .blog-img img,
.blog-slider .swiper-slide ul li .blog-img img {
   filter: brightness(0.95);
}


/* Agenda */

.agenda-rht .desco-list ul li .blog-caption h3 {
    min-height:0px;
}

/* Descarregables */

.descarregables .descar-sec ul li .descar-img img {
    filter: brightness(0.95); 
}

.descarregables .descar-sec ul li {
    flex: 0 1 21%;
}

.descarregables .descar-sec ul li .descar-txt h3 {
    font-size: 22px;
    line-height: 32px;
}

.filter-list-sec ul li a {
    font-size: 15px;
    line-height: 25px
}

.filter-list-sec ul li a {
    float: left;
    font-family: 'Konstanz-Medium';
    color: #000000;
    letter-spacing: normal;
    transition: all .5s ease;
    position: relative;
    height: 52px;
    padding: 0px 22px;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    border-radius: 35px;
}

/* Filtre rang de dates (agenda) */
.agenda-date-range {
    float: left;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 10px;
    margin-top: 15px;
}

.agenda-date-range input[type="text"] {
    flex: 0 0 auto;
    width: 280px;
    max-width: 100%;
    border: 1px solid #000000;
    border-radius: 55px;
    height: 54px;
    padding: 0 30px;
    font-family: 'Konstanz-Regular';
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    background: #FFFFFF;
    cursor: pointer;
}

.agenda-date-range input[type="text"]::placeholder { color: #000000; }

.agenda-date-range button {
    flex: 0 1 auto;
    font-family: 'Konstanz-Medium';
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    height: 52px;
    padding: 0 28px;
    background: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 30px;
    cursor: pointer;
    transition: all .5s ease;
}

.agenda-date-range button:hover {
    background: #F6A954;
    border-color: #F6A954;
}

.agenda-date-range button.filtre-data-aplicar {
    background: #F6A954;
    border-color: #F6A954;
    font-family: 'Konstanz-Bold';
}

.agenda-date-range button.filtre-data-aplicar:hover {
    background: #F39548;
    border-color: #F39548;
}

@media (max-width: 767px) {
    .agenda-date-range input[type="text"],
    .agenda-date-range button {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* Popup del datepicker del filtre de rang — mateix aspecte que el calendari de l'agenda */
#ui-datepicker-div.agenda-rang-cal {
    width: auto;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    z-index: 9999;
    font-family: 'Konstanz-Medium';
}

.agenda-rang-cal .ui-datepicker-header {
    position: relative;
    background: none;
    border: none;
    margin-bottom: 15px;
}

.agenda-rang-cal .ui-datepicker-title {
    text-align: left;
    color: #000000;
    font-size: 16px;
    text-transform: none;
    font-family: 'Konstanz-Bold';
}

.agenda-rang-cal .ui-datepicker-prev,
.agenda-rang-cal .ui-datepicker-next {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.agenda-rang-cal .ui-datepicker-next { right: 0; }
.agenda-rang-cal .ui-datepicker-prev { right: 32px; }

/* Fletxes dibuixades amb CSS (sense dependre d'imatges) */
.agenda-rang-cal .ui-datepicker-prev span,
.agenda-rang-cal .ui-datepicker-next span {
    display: block;
    width: 8px;
    height: 8px;
    border-left: 2px solid #000000;
    border-bottom: 2px solid #000000;
    text-indent: -9999px;
    overflow: hidden;
    position: absolute;
    top: 4px;
    transition: all .4s ease;
}

.agenda-rang-cal .ui-datepicker-prev span { left: 8px; transform: rotate(45deg); }
.agenda-rang-cal .ui-datepicker-next span { left: 4px; transform: rotate(-135deg); }

.agenda-rang-cal .ui-datepicker-prev:hover span,
.agenda-rang-cal .ui-datepicker-next:hover span { border-color: #F6A954; }

.agenda-rang-cal table.ui-datepicker-calendar {
    width: 252px;
    text-align: center;
    border-collapse: collapse;
}

.agenda-rang-cal .ui-datepicker-calendar th {
    font-size: 14px;
    font-family: 'Konstanz-Medium';
    font-weight: normal;
    color: rgba(0, 0, 0, .4);
    letter-spacing: 1px;
    line-height: 30px;
}

.agenda-rang-cal .ui-datepicker-calendar td {
    padding: 5px 0;
    position: relative;
}

.agenda-rang-cal .ui-datepicker-calendar td a,
.agenda-rang-cal .ui-datepicker-calendar td span {
    display: block;
    color: #000000;
    font-size: 13px;
    line-height: 24px;
    text-decoration: none;
    font-family: 'Konstanz-Medium';
}

.agenda-rang-cal .ui-datepicker-calendar td a:hover { color: #067CC0; }

.agenda-rang-cal .ui-datepicker-calendar td .ui-state-active {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    font-family: 'Konstanz-Bold';
}

.agenda-rang-cal .ui-datepicker-calendar td .ui-state-active:after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #067CC0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.agenda-rang-cal .ui-datepicker-unselectable .ui-state-default { color: #bbbbbb; }

/* Newsletter: l'input és type="email" i ha de tenir l'estil de type="text" */
.news-box input[type="email"] { background: #fff; width: 100%; border: none; color: #000000; font-size: 16px; height: 72px; line-height: 72px; font-family: 'Konstanz-Medium'; border-radius: 36px; padding: 0px 135px 0 35px; letter-spacing: 0.2px; }
@media screen and (min-width:768px) and (max-width:1023px) {
    .news-box input[type="email"] { height: 62px; line-height: 62px; }
}
@media screen and (max-width:767px) {
    .news-box input[type="email"] { height: 58px; line-height: 58px; padding: 0px 115px 0 25px; font-size: 15px; }
}
