
/* UPDATE 18/08/2023 */
@media (min-width: 1920px){
    .homebuttonsservices{
        padding-top:0px;
        padding-bottom:30px !important;
        margin-bottom:0px !important;
    }
    .csth2 {
        font-size: 3rem !important;
    }
    #desktop-img-container {
        height: 500px;
    }
    .wrapper {
        max-width: 2880px;
    }
    .slider-title {
        left: 280px;
    }
    .img-housekeeper, .img-seniorcg, .img-specialcg {
        margin-top: 90px;
    }
}
@media (min-width: 1536px) and (max-width: 1919px){

    .homebuttonsservices{
        padding-top:0px;
        padding-bottom:30px !important;
        margin-bottom:0px !important;
    }

    #desktop-img-container {
        height: 400px;
    }
    .slider-title {
        left: 130px;
    }
    .img-housekeeper, .img-seniorcg, .img-specialcg {
        margin-top: 80px;
    }
}

@media (min-width: 1440px) and (max-width: 1535px){

    .homebuttonsservices{
        padding-top:0px;
        padding-bottom:30px !important;
        margin-bottom:0px !important;
    }

    #desktop-img-container {
        height: 400px;
        margin-top: 10px !important;
    }
    .wrapper {
        max-width: 1590px;
    }
    .slider-title {
        left: 130px;
    }
    .slider-title {
        font-size: 3.2em !important;
        line-height: 60px !important;
    }
    .tab {
        font-size: 15px !important;
        line-height: 1.1 !important;
    }
    .img-housekeeper, .img-seniorcg, .img-specialcg {
        margin-top: 70px;
    }
}

@media (min-width: 1336px) and (max-width: 1439px){
    .img-housekeeper, .img-seniorcg, .img-specialcg {
        margin-top: 60px;
    }
}

@media (min-width: 1280px) and (max-width: 1335px){
    #desktop-img-container {
        margin-top: 10px !important;
    }
    .img-housekeeper, .img-seniorcg, .img-specialcg {
        margin-top: 70px;
    }
}

@media (min-width: 1100px) and (max-width: 1279px){
    #desktop-img-container {
        margin-top: -10px !important;
    }
    .img-housekeeper, .img-seniorcg, .img-specialcg {
        margin-top: 80px;
    }
}

@media (min-width: 1024px) and (max-width: 1099px){
    #desktop-img-container {
        margin-top: -20px !important;
    }
    .img-housekeeper, .img-seniorcg, .img-specialcg {
        margin-top: 50px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px){
    #desktop-img-container {
        height: 350px;
    }
    .wrapper {
        max-width: 1350px;
    }
    .slider-title {
        left: 70px;
    }
    .slider-title {
        font-size: 3.3em !important;
        line-height: 60px !important;
    }
    .tab {
        font-size: 15px !important;
        line-height: 1.1 !important;
    }
}

.tabs {
    color:#4D4D4D;
    margin-top: 10px !important;
}
#input-container {
    margin-top: 0 !important;
}

/* MONITOR */
@media (min-width: 1024px){
    .homebuttonsservices{
        padding-top:0px;
        padding-bottom:30 !important;
        margin-bottom:0px !important;
    }

    .square-title{
        font-weight: bold !important;
    }

    .tabs{
        margin-top:0px !important;
    }

    #squareimgbabysitter{

    }

    .wrapper {
        max-width: 2380px;
    }
    #input-container .input-wrapper {
        position: relative;
        width: 640px;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
    .squarebadge {
        margin: 0 7px 0px;
    }
    .squarebadge a {
        padding: 5px 10px 0px 10px;
    }
    .squarebadge img {
        height: 50px;
    }
    .square-title {
        font-size: 14px !important;
        width: 120px;
        left: -7px;
        margin: 25px 0 0;
    }
    .slider-subtitle {
        margin-bottom: 20px;
    }
    .csth2 {
        font-size: 32px !important;
    }
    .header-section {
        margin-bottom: -100px;
    }
    .clear-icon {
        top: 41px;
        right: 112px;
        z-index: 2;
    }
    #desktop-img-container {
        overflow: hidden;
        display: flex;
        align-items: center;
        margin-top: 20px;
    }

    .desktop-img {
        width: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .tab {
        padding: 10px 50px 10px 50px;
        font-size: 15px;
        flex: 0 0 370px;
        width: 370px;
        height: 60px;
    }
    .slider-title {
        font-size: 3.8em;
        line-height: 70px;
        width: 480px;
    }
    .homesearch {
        width: 580px !important;
    }

    /* HOME CARDS */
    .cst-cards-inner {
        max-height: 230px;
        height: 230px;
    }
    .div-show-more {
        justify-content: right;
        display: flex;
        position: absolute;
        right: 0;
        bottom: 0;
    }
    .btn-show-more {
        color:white !important;
        font-weight: bold;
        border-radius: 5px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 40px;
        width: 160px;
        border: 2px solid #008542;
        background-color: #008542;
        right: -15px;
    }

    .btn-show-more:hover {
        color:#008542 !important;
        font-weight: bold;
        border-radius: 5px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 40px;
        width: 160px;
        border: 2px solid #008542;
        background-color: white;
        right: -15px;
        text-decoration: none;
    }
}

/* MOBILE */
@media (max-width: 1023px){
    .homebuttonsservices{
        padding-top:0px;
        padding-bottom:50px !important;
        margin-bottom:0px !important;
    }

    .input-wrapper {
        width: 100%;
    }
    .squarebadge {
        margin: 0 10px 20px;
    }
    .squarebadge a {
        padding-left: 10px;
        padding-right: 10px;
    }
    .squarebadge img {
        height: 75px;
    }
    .square-title {
        font-size: 14px !important;
        width: 118px;
        margin: 20px 0 0;
    }
    #input-container label {
        position: absolute;
        top: 0;
        left: 15px;
        width: 90%;
    }
    .clear-icon {
        top: 41px;
        z-index: 2;
    }
    .offers.wrapper {
        /*margin-top: -100px !important;*/
        margin-bottom: -40px !important;
    }
    #desktop-img-container {
        position: relative;
        height: 200px;
        overflow: hidden;
        display: flex;
        align-items: center;
        margin-top: 20px;
    }
    .desktop-img {
        position: absolute;
        object-fit: cover;
        object-position: center;
    }
    .tab {
        font-size: 12px;
    }

    .content-wrapper {
        height: 260px;
    }

    /* HOME CARDS */
    .cst-cards-inner {
        max-height: 540px;
        height: 540px;
    }
    .bestcaregivers .slick-slide.slick-active {
        width: 400px !important;
    }
    .cst-cards-descr {
        padding-left: inherit !important;
    }

    /* BUTTON NEW! */
    .btn-show-more {
        color:white;
        font-weight: bold;
        border-radius: 5px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 40px;
        width: 160px;
        border: 2px solid #008542;
        background-color: #008542;
        right: -15px;
    }

    .btn-show-more:hover {
        color:#008542;
        font-weight: bold;
        border-radius: 5px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 40px;
        width: 160px;
        border: 2px solid #008542;
        background-color: white;
        right: -15px;
        text-decoration: none;
    }
    .gslideinner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .gimg img {
        max-width: none !important;
    }
    .cst-cards-descr .gname {
        text-align: center;
    }

    /* HOME IMAGENES */
    .img-nanny {
        right: -250px !important;
    }
    .img-housekeeper {
        right: -40px !important;
    }
    .img-seniorcg {
        right: -190px !important;
    }
    #seniorcg-subtitle {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* IPHONE 14 MAX */
@media only screen and (min-device-width: 1284px) and (max-device-width: 2778px) {
    .homebuttonsservices{
        padding-top:0px;
        padding-bottom:30px !important;
        margin-bottom:0px !important;
    }
/*
    .input-wrapper {
        width: 100%;
    }
    .squarebadge {
        margin: 0 10px 20px;
    }
    .squarebadge a {
        padding-left: 10px;
        padding-right: 10px;
    }
    .squarebadge img {
        height: 75px;
    }
    .square-title {
        font-size: 14px !important;
        width: 118px;
        margin: 20px 0 0;
    }
    */
  }


@media only screen and (min-width: 390px) and (max-width: 411px) {
    .cst-cards-container {
        max-width: 355px;
    }
}

/* ONLY MOBILE */
@media (max-width: 767px){
    .desktop-img {
        /*left: -80px;*/
        text-align: right;
        height: 200px;
    }
    .slider-subtitle {
        margin-top: -5px !important;
    }
    #input-container .input-wrapper {
        position: relative;
        width: 90vw;
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }
    .homesearch {
        width: 100% !important;
    }
    .clear-icon {
        right: 100px;
    }
    .slider-title {
        font-size: 1.9em;
        left: 10px;
        width: 250px;
        line-height: 30px;
        top: -20px !important;
    }
    .squarebadge {
        width: 100px;
    }
    .square-title {
        left: -5px;
    }
    .tab {
        padding: 5px 5px 5px 5px;
    }
    /* HOME CARDS */
    .cst-cards-container {
        width: 90vw !important;
    }
    .cst-cards-inner {
        width: 90vw !important;
    }
    .bgslide .gslidedescr {
        width: 80vw;
    }

    .desktop-img {
        width: 100%;
        object-fit: cover;
        object-position: right center;
    }

    .slider-title a {
        text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
    }

}

@media (max-width: 374px){
    .squarebadge {
        width: 95px !important;
    }
}

/* TABLETS */
@media (min-width: 768px) and (max-width: 1023px){
    #desktop-img-container {
        height: 350px !important;
    }
    .clear-icon {
        right: 120px;
    }
    #input-container .input-wrapper {
        position: relative;
        width: 560px;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
    .homesearch{
        width: 450px !important;
    }
    .desktop-img {
        /* right: -80px; */
        height: 350px;
    }
    .slider-title {
        font-size: 3.3em !important;
        line-height: 60px !important;
        width: 400px;
        left: 10px;
        top: -40px !important;
    }
    .squarebadge {
        width: 133px;
    }
    .square-title {
        left: 8px;
    }
    /* HOME CARDS */
    .cst-cards-container {
        width: 50vw !important;
    }
    .cst-cards-inner {
        width: 50vw !important;
    }
    .bgslide .gslidedescr {
        width: 45vw;
    }
    .tab {
        padding: 5px 55px 5px 55px;
    }
}


.header-section .wrapper, .lightgraybg, .slbbg {
    background-color: #f6f6f6;
}

#header-wrapper {
    position: relative;
}
.wrapper {
    width: 96%;
}

.slider-title {
    position: absolute;
    top: -30px;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}
.slider-title a{
    font-weight: 900;
    color: #40403f;
    text-decoration: none;
}

.slider-subtitle {
    font-size: 15px;
    color: #40403f;
    width: 530px;
    line-height: 1.5;
    margin-top: 10px;
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.homesearch {
    border: 2px solid #008542;
    margin-top: 9px;
    height: 63px;
    position: relative;
}

.search-button {
    background-color: #008542;
    border: #008542 solid 1px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-right:20px;
    margin-left: -5px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    width: 100px;
    color: white;
    margin-top: 9px;
    cursor: pointer;
    height: 63px;
    font-weight: bold;
}

.search-button img {
    width: 100%;
    height: auto;
    display: block;
}
#input-container label {
    position: absolute;
    top: 0;
    width: fit-content;
}

/* TABS */
.tabs {
    list-style-type: none;
    margin-top: 10px;
    padding: 0;
    display: flex;
}

.tab {
    flex: 1;
    cursor: pointer;
    position: relative;
    background-color: #ccc;
    border-radius: 5px 5px 5px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 900;
    line-height: 1.2;
}
.left-tab {
    margin-right: -5px;
}

.tab.active {
    background-color: #7e2b61;
    color: white;
    z-index: 1;
}

/*
.tab.active::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #7e2b61;
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: calc(50% - 5px);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #7e2b61;
    z-index: 2;
}*/

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
    position: relative;
    z-index: 0;
    border-radius: 0 0 5px 5px;
}

.tab-content.active {
    display: block;
}

.desktop-wrapper {
    display: flex;
    justify-content: center;
    font-weight: bold;
}
.left-text {
    width: 35%;
}
.center-text {
    width: 30%;
}
.right-text {
    width: 35%;
}

/* SQUARE MENU */
.square-title {
    position: absolute;
    line-height: 14px !important;
    color: #7e2b61 !important;
    /* font-weight: 100; */
}
.squarebadge {
    position: relative;
    width: 100px;
    height: 120px;
}

.squarebadge a {
    border: 0 solid;
    border-radius: 10px;
}

.squarebadge img {
    min-height: 50px;
    width: auto;
}
.sq-active {
    box-shadow: inherit !important;
}
#item-babysitter {
    background-color: #7e2b61;
}
#item-nanny {
    background-color: #e070b7;
}
#item-petsitter {
    background-color: #e8983e;
}
#item-housekeeper {
    background-color: #72c059;
}
#item-seniorcg {
    background-color: #6ab7f9;
}
#item-specialcg {
    background-color: #376ac8;
}

#item-babysitter.sq-active span{
    border-top: 4px solid #7e2b61;
}
#item-nanny.sq-active span{
    border-top: 4px solid #e070b7;
}
#item-petsitter.sq-active span{
    border-top: 4px solid #e8983e;
}
#item-housekeeper.sq-active span{
    border-top: 4px solid #72c059;
}
#item-seniorcg.sq-active span{
    border-top: 4px solid #6ab7f9;
}
#item-specialcg.sq-active span{
    border-top: 4px solid #376ac8;
}

.clear-icon {
    position: absolute;
    transform: translateY(-50%);
    cursor: pointer;
}
.input-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

/* HOME CARDS */
.bestcaregivers .slick-slide.slick-active {
    width: 647px !important;
}
.bestcaregivers .gname {
    margin-top: 0;
}
.bestcaregivers .slick-track {
    width: 11000px !important;
}
.cst-cards-container {
    max-width: 624px;
}
.cst-cards-inner {
    max-width: 620px;
}
.cst-cards-descr {
    position: relative;
}
.cst-cards-descr p.age {
    font-size: 15px !important;
}


.slick-arrow {
    /* display: none !important; */
}

.searchhomeform{
    padding-top: 0px !important;
    margin-top: 0px !important;
    padding-bottom:50px;
}

/* ============================================
   SERVICE PICKER - circular buttons
   Scoped to #flex-row (home + service landing pages)
   so it doesn't touch .squarebadge/.square-title used
   elsewhere (registration forms, etc.)
============================================ */
.offers.wrapper.homebuttonsservices {
    padding-top: 30px !important;
    padding-bottom: 5px !important;
}

.circles-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #40403f;
    margin: 0 0 20px;
}

#flex-row {
    justify-content: center;
    align-items: flex-start;
}

#flex-row .squarebadge {
    width: auto;
    height: auto;
    margin: 0 20px 24px;
    padding-bottom: 46px;
    text-align: center;
}

#flex-row .squarebadge a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#flex-row .squarebadge a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

#flex-row .squarebadge img {
    min-height: 0;
    height: 52px;
    width: auto;
}

#flex-row .squarebadge a span {
    display: none;
}

/* El label vive dentro del <a> en el markup, pero lo sacamos visualmente
   fuera del círculo con position:absolute, centrado debajo */
#flex-row .square-title {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 110px;
    margin: 8px 0 0;
    white-space: normal;
    font-size: 12px !important;
    line-height: 14px !important;
    font-weight: 600;
    letter-spacing: 0.6px;
}

#flex-row .squarebadge p {
    display: none;
}

#item-babysitter.sq-active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #7e2b61, 0 4px 12px rgba(0, 0, 0, 0.12); }
#item-nanny.sq-active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e070b7, 0 4px 12px rgba(0, 0, 0, 0.12); }
#item-petsitter.sq-active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e8983e, 0 4px 12px rgba(0, 0, 0, 0.12); }
#item-housekeeper.sq-active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #72c059, 0 4px 12px rgba(0, 0, 0, 0.12); }
#item-seniorcg.sq-active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #6ab7f9, 0 4px 12px rgba(0, 0, 0, 0.12); }
#item-specialcg.sq-active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #376ac8, 0 4px 12px rgba(0, 0, 0, 0.12); }

@media (min-width: 768px) and (max-width: 1023px) {
    #flex-row .squarebadge a {
        width: 84px;
        height: 84px;
    }
    #flex-row .squarebadge img {
        height: 56px;
    }
}

@media (max-width: 767px) {
    #flex-row .squarebadge a {
        width: 70px;
        height: 70px;
    }
    #flex-row .squarebadge img {
        height: 46px;
    }
    #flex-row .squarebadge {
        margin: 0 12px 20px;
        padding-bottom: 42px;
    }
    #flex-row .square-title {
        width: 100px;
        font-size: 11px !important;
    }
}

@media (max-width: 374px) {
    #flex-row .squarebadge a {
        width: 62px;
        height: 62px;
    }
    #flex-row .squarebadge img {
        height: 40px;
    }
    #flex-row .square-title {
        width: 90px;
    }
}
