/*
 Theme Name:     Fans-Of-Pets-v2
 Theme URI:      https://www.detype.com
 Description:    Custom theme
 Author:         DeType
 Author URI:     https://www.detype.com
 Template:       Divi
 Version:        1.0.0
*/






/* =Theme customization starts here
------------------------------------------------------- */
.bannersection .et_pb_blurb {
    display: inline-block;
    margin-right: 30px;
    margin-bottom: 20px !important;
    transition: all ease-out .3s;
    border: 1px solid white;
}



.wp-grid-builder .wpgb-card .wpgb-card-media-content>div {
    text-align: center;
}

.wp-grid-builder .wpgb-card-5 .wpgb-block-7{
    display: inline-block !important;
}

span.simplefavorite-button {
    float: right;
    margin-right: 13px !important;
    margin-top: 11px !important;
    font-size: 25px !important;
    color: #ffffff !important;
    opacity: .8 !important;
}

.wp-grid-builder .wpgb-card-5 .wpgb-card-media-content{
        border-top-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-top-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}



/* ================================================================
   LATEST PETS — DESKTOP GRID
   ================================================================ */

.pets-listing-home {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pets-listing-home > li {
    display: block;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pets-listing-home > li::before,
.pets-listing-home > li::marker {
    display: none !important;
    content: "" !important;
}


/* ================================================================
   IMAGE
   ================================================================ */

.pets-listing-home .hometumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 36px;
}


/* ================================================================
   VIEW DETAILS OVERLAY
   ================================================================ */

.pets-listing-home .viewbtncover {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 5;

    opacity: 0;
    visibility: hidden;

    background: rgba(0, 0, 0, 0.12);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.pets-listing-home .hometumb:hover .viewbtncover {
    opacity: 1;
    visibility: visible;
}

.pets-listing-home .hometumb__view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 58px;
    padding: 12px 38px;

    border-radius: 999px;

    background: #f2aa2e;
    color: #fff !important;

    font-size: 18px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.pets-listing-home .hometumb__view-btn:hover {
    transform: translateY(-2px);
}


/* ================================================================
   PET TITLE
   ================================================================ */

.pets-listing-home .pet-card-title {
    margin: 24px 0 14px !important;
    padding: 0 !important;

    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
}

.pets-listing-home .pet-card-title a {
    color: #222 !important;
    text-decoration: none !important;
}


/* ================================================================
   SHORT DESCRIPTION
   ================================================================ */

.pets-listing-home .pet-card-bio {
    margin: 0 !important;
    padding: 0 0 12px !important;

    border-bottom: 1px solid #e4e4e4;

    color: #666;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}


/* ================================================================
   PET ID
   ================================================================ */

.pets-listing-home .pet-card-id {
    margin: 10px 0 0 !important;
    padding: 0 !important;

    color: #777;
    font-size: 16px;
    line-height: 1.3;
}


/* ================================================================
   ADOPTED RIBBON
   ================================================================ */

.pets-listing-home .pet-ribbon-cards {
    position: absolute;
    top: 20px;
    left: -38px;

    z-index: 8;

    width: 150px;
    padding: 7px 0;

    background: #e45427;
    color: #fff;

    text-align: center;

    transform: rotate(-45deg);

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.pets-listing-home .pet-ribbon-cards span {
    display: block;

    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}


/* Don't show placeholder */

.pets-listing-home .pet-ribbon--placeholder {
    display: none;
}


/* ================================================================
   FAVOURITE BUTTON
   Keep favourite shortcode above everything else
   ================================================================ */

.pets-listing-home .hometumb > .simplefavorite-button,
.pets-listing-home .hometumb > .favorite-button,
.pets-listing-home .hometumb > [class*="favorite"] {
    position: absolute;
    top: 20px;
    right: 20px;

    z-index: 10;
}


/* ================================================================
   TABLET
   ================================================================ */

@media (max-width: 1100px) {

    .pets-listing-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}


/* ================================================================
   MOBILE — SWIPE
   1 full card + part of next card
   ================================================================ */

@media (max-width: 767px) {

    .pets-listing-home {
        display: flex !important;
        grid-template-columns: none !important;

        gap: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;

        margin: 0 !important;

        /*
         * Right padding prevents the final card
         * sticking against the screen edge.
         */
        padding: 0 20px 20px 0 !important;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .pets-listing-home::-webkit-scrollbar {
        display: none;
    }

    .pets-listing-home > li {
        /*
         * 80% = one full card with roughly
         * 1/4 of the next one showing.
         */
        flex: 0 0 80%;
        width: 80%;

        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .pets-listing-home .hometumb {
        border-radius: 26px;
    }

    /*
     * Show button without needing hover
     * because touch devices have no real hover.
     */
    .pets-listing-home .viewbtncover {
        background: transparent;
        opacity: 1;
        visibility: visible;

        align-items: flex-end;

        padding-bottom: 22px;

        pointer-events: none;
    }

    .pets-listing-home .hometumb__view-btn {
        min-height: 48px;
        padding: 10px 28px;

        font-size: 16px;

        pointer-events: auto;
    }

    .pets-listing-home .pet-card-title {
        margin-top: 16px !important;
        margin-bottom: 9px !important;

        font-size: 24px;
    }

    .pets-listing-home .pet-card-bio {
        font-size: 15px;
    }

    .pets-listing-home .pet-card-id {
        font-size: 15px;
    }
}


.simplefavorite-button{
    font-family: "ETmodules" !important;
    color: white;
    font-size: 32px;
    opacity: .5;
    cursor: pointer;
}

.simplefavorite-button.active{
    font-family: "ETmodules" !important;
        color: #de582c;
    font-size: 32px;
    opacity: 1;
}







/* home category shortcode */

.pet-type-tiles {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media(min-width:901px) {
 .pet-type-card{
  flex: 1;
 }
}

@media(max-width:900px) {
  .pet-type-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .pet-type-card{
    width: 23%;
  }
}

@media(max-width:600px) {
  .pet-type-tiles {
    grid-template-columns: 1fr
  }
  .pet-type-card{
    width: 30%;
  }
}

.pet-type-card {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
  transition: .15s
}

.pet-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .1)
}

.pet-type-media {
  aspect-ratio: 1.6/1;
}

.pet-type-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
    display: block;
    padding: 15px;
}

.pet-type-meta {
  padding: .9rem 1rem;
  text-align: center;
}

.pet-type-name {
  margin: 0;
    font-weight: 200 !important;
    color: #111;
    font-size: 19px;
    padding-bottom: 0px;
}

.pet-type-count {
      margin: .15rem 0 0;
    font-size: .9rem;
    color: #b1afaf;
    font-weight: 200;
}





/* Ensure card wrapper can hold absolutely-positioned children */
.wpgb-card { position: relative; }

/* Corner ribbon */
.pet-ribbon{
    min-width: 100%;
    text-align: center;
    color: white !important;
    background: #e8a63adb;
  padding:6px 50px;
  font-size:13px; font-weight:700; text-transform:uppercase;
  transform:rotate(-45deg);
  box-shadow:0 2px 6px rgba(0,0,0,.2);
  z-index:9; pointer-events:none;
}
.pet-ribbon span { display:inline-block; }

.wpgb-card-media.wpgb-scheme-light {
    border-radius: 15px;
    overflow: hidden;
}




/*
 * Pets shortlist — detailed comparison cards
 */

.fop-shortlist {
    width: 100%;
}

.fop-shortlist__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.fop-shortlist__eyebrow {
    margin: 0 0 5px;
    padding: 0;
    color: #6a6a6a;
    font-size: 18px;
    line-height: 1.3;
}

.fop-shortlist__title {
    margin: 0;
    padding: 0;
}

.fop-shortlist__count {
    margin: 0 0 5px;
    color: #777;
    font-size: 15px;
}

.fop-shortlist__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

/* Card shell */
.fop-shortlist-card {
    display: grid;
    grid-template-columns: minmax(300px, 32%) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    border-radius: 30px;
    background: #fff;
    transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}

/* Adopted cards stay usable, but visually recede. */
.fop-shortlist-card.is-adopted {
    background: #f5f5f5;
    border-color: #dedede;
}

.fop-shortlist-card.is-adopted .fop-shortlist-card__media {
    filter: grayscale(.75);
    opacity: .72;
}

.fop-shortlist-card.is-adopted .fop-shortlist-card__content {
    opacity: .70;
}

.fop-shortlist-card.is-adopted .fop-shortlist-card__ribbon,
.fop-shortlist-card.is-adopted .fop-shortlist-card__saved,
.fop-shortlist-card.is-adopted .fop-shortlist-card__view {
    filter: none;
    opacity: 1;
}

/* Photo */
.fop-shortlist-card__media {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background-color: #f3f3f3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Adopted ribbon — top-left of image. */
.fop-shortlist-card__ribbon {
    position: absolute;
    z-index: 8;
    top: 25px;
    left: -50px;
    width: 185px;
    padding: 10px 0;
    transform: rotate(-45deg);
    background: #ef5726;
    color: #fff;
    text-align: center;
    pointer-events: none;
}

.fop-shortlist-card__ribbon span {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

/* Content */
.fop-shortlist-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 38px 30px;
}

.fop-shortlist-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.fop-shortlist-card__identity {
    min-width: 0;
}

.fop-shortlist-card__name {
    margin: 0 0 10px;
    padding: 0;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 500;
}

.fop-shortlist-card__name a {
    color: inherit;
    text-decoration: none;
}

.fop-shortlist-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: #5e5e5e;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.fop-shortlist-card__meta-sep {
    color: #777;
    font-weight: 500;
}

/* Shortlisted control */
.fop-shortlist-card__saved {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
    color: #666;
}

.fop-shortlist-card__saved-label {
    font-size: 17px;
    line-height: 1;
}

.fop-shortlist-card__favourite {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.fop-shortlist-card__favourite .simplefavorite-button,
.fop-shortlist-card__favourite .favorite-button {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* At a glance */
.fop-shortlist-card__glance {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e2e2e2;
}

.fop-shortlist-card__section-label {
    margin: 0 0 14px;
    padding: 0;
    color: #6d6d6d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.fop-shortlist-card__details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.fop-shortlist-card__detail {
    min-width: 0;
    padding: 13px 15px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 13px;
    background: #f7f7f7;
}

.fop-shortlist-card__detail span {
    display: block;
    margin-bottom: 4px;
    color: #888;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
}

.fop-shortlist-card__detail strong {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

/* Actions */
.fop-shortlist-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid #e2e2e2;
}

.fop-shortlist-card__contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.fop-shortlist-card__cta,
.fop-shortlist-card__view,
.fop-shortlist__browse {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    background: #fff;
    color: #333 !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.fop-shortlist-card__cta--primary {
    min-width: 120px;
    border-color: #1fa455;
    background: #1fa455;
    color: #fff !important;
}

.fop-shortlist-card__view,
.fop-shortlist__browse {
    min-width: 125px;
    margin-left: auto;
    border-color: #fbb02d;
    background: #fbb02d;
    color: #fff !important;
}

.fop-shortlist-card.is-adopted .fop-shortlist-card__view {
    opacity: 1;
}

/* Empty state */
.fop-shortlist__empty {
    padding: 52px 34px;
    border: 1px solid #e7e7e7;
    border-radius: 24px;
    text-align: center;
}

.fop-shortlist__empty h2 {
    margin-bottom: 8px;
}

.fop-shortlist__empty p {
    margin-bottom: 22px;
}

@media (max-width: 1200px) {
    .fop-shortlist-card {
        grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
    }

    .fop-shortlist-card__details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .fop-shortlist-card {
        grid-template-columns: 1fr;
    }

    .fop-shortlist-card__media {
        min-height: 390px;
    }

    .fop-shortlist-card__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .fop-shortlist__header {
        display: block;
        margin-bottom: 26px;
    }

    .fop-shortlist__count {
        margin-top: 8px;
    }

    .fop-shortlist-card {
        border-radius: 22px;
    }

    .fop-shortlist-card__media {
        min-height: 300px;
    }

    .fop-shortlist-card__content {
        padding: 22px 20px;
    }

    .fop-shortlist-card__topline {
        gap: 16px;
    }

    .fop-shortlist-card__name {
        font-size: 28px;
    }

    .fop-shortlist-card__meta {
        font-size: 15px;
    }

    .fop-shortlist-card__saved-label {
        display: none;
    }

    /* Compact table-style At a glance on mobile */
    .fop-shortlist-card__glance {
        margin-top: 20px;
        padding-top: 18px;
    }

    .fop-shortlist-card__section-label {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .fop-shortlist-card__details {
        display: block;
        border-top: 1px solid #e3e3e3;
    }

    .fop-shortlist-card__detail {
        display: grid;
        grid-template-columns: minmax(105px, 42%) minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 9px 0;
        border: 0;
        border-bottom: 1px solid #e8e8e8;
        border-radius: 0;
        background: transparent;
    }

    .fop-shortlist-card__detail span,
    .fop-shortlist-card__detail strong {
        margin: 0;
        line-height: 1.25;
    }

    .fop-shortlist-card__detail span {
        font-size: 12px;
        color: #888;
    }

    .fop-shortlist-card__detail strong {
        font-size: 14px;
        text-align: right;
    }

    .fop-shortlist-card__actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 30px;
    }

    .fop-shortlist-card__contact-actions {
        width: 100%;
    }

    .fop-shortlist-card__cta,
    .fop-shortlist-card__view {
        flex: 1 1 calc(50% - 5px);
        margin-left: 0;
    }
}


/* ================================================================
 * Shortlist v5 — share pop-in + restart section
 * ================================================================ */
.fop-shortlist-card__end-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.fop-shortlist-card__share {
    position: relative;
    flex: 0 0 auto;
}

.fop-shortlist-card__share-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.fop-shortlist-card__share-toggle > span:first-child {
    font-size: 18px;
    line-height: 1;
}

.fop-shortlist-card__share-popin {
    position: absolute;
    z-index: 40;
    right: 0;
    bottom: calc(100% + 12px);
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 8px;
    padding: 12px;
    border: 1px solid #e2e2e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
}

.fop-shortlist-card__share-popin[hidden] {
    display: none !important;
}

.fop-shortlist-card__share-popin a,
.fop-shortlist-card__share-popin button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid #ececec;
    border-radius: 50%;
    background: #f8f8f8;
    cursor: pointer;
}

.fop-shortlist-card__share-popin img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.fop-shortlist-card__share-popin button.is-copied {
    background: #edf9f1;
    border-color: #b9e2c8;
}

/* Restart/clear shortlist panel — only rendered when pets exist. */
.fop-shortlist-reset {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 54px;
    padding: 38px 46px;
    border-radius: 30px;
    background: #f2f2f2;
}

.fop-shortlist-reset__eyebrow {
    margin: 0 0 4px;
    padding: 0;
    color: #777;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fop-shortlist-reset h2 {
    margin: 0;
    padding: 0;
    color: #e7352c;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.08;
}

.fop-shortlist-reset .simplefavorites-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.fop-shortlist-reset .simplefavorites-clear:hover {
    background: #333;
    color: #fff;
}

.fop-shortlist-reset .simplefavorites-clear:disabled {
    opacity: .55;
    cursor: wait;
}

@media (max-width: 600px) {
    .fop-shortlist-card__actions {
        gap: 12px;
    }

    .fop-shortlist-card__end-actions {
        width: 100%;
        margin-left: 0;
    }

    .fop-shortlist-card__share,
    .fop-shortlist-card__share-toggle,
    .fop-shortlist-card__view {
        flex: 1 1 0;
    }

    .fop-shortlist-card__share-toggle,
    .fop-shortlist-card__view {
        width: 100%;
    }

    .fop-shortlist-card__share-popin {
        right: auto;
        left: 0;
    }

    .fop-shortlist-reset {
        display: block;
        margin-top: 36px;
        padding: 26px 22px;
        border-radius: 22px;
    }

    .fop-shortlist-reset h2 {
        font-size: 28px;
    }

    .fop-shortlist-reset__action {
        margin-top: 18px;
    }

    .fop-shortlist-reset .simplefavorites-clear {
        width: 100%;
    }
}
