/* ==========================================================
   CHIRALA RESORTS — GLOBAL FOOTER
   V2
========================================================== */

.cr-site-footer {
    position: relative;

    width: 100%;

    color: #d9e3e8;
    background: #061f2d;
}


/* ==========================================================
   MAIN
========================================================== */

.cr-site-footer__main {
    padding: 56px 0 42px;
}


/* ==========================================================
   GRID
========================================================== */

.cr-site-footer__grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 1.6fr)
        repeat(4, minmax(140px, 1fr));

    gap: 46px;

    align-items: start;
}


/* ==========================================================
   FOOTER BRAND TITLE
========================================================== */

.cr-site-footer__brand-title{
    margin:0;

    color:#ffffff;

    font-size:28px;
    font-weight:800;
    line-height:1.1;
    letter-spacing:-0.5px;
}

.cr-site-footer__brand{
    margin-top:0;
}

/*
 * WordPress custom logo markup.
 */
.cr-site-footer__logo .custom-logo-link {
    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0;
}


.cr-site-footer__logo img,
.cr-site-footer__logo .custom-logo {
    display: block;

    width: auto;
    max-width: 185px;
    max-height: 64px;

    margin: 0;
}


.cr-site-footer__logo strong {
    color: #ffffff;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}


/* ==========================================================
   TAGLINE
========================================================== */

.cr-site-footer__tagline {
    max-width: 300px;

    margin: 18px 0 0;

    color: #aebbc4;

    font-size: 13px;
    line-height: 1.75;
}


/* ==========================================================
   CONTACT
========================================================== */

.cr-site-footer__contact {
    display: grid;

    gap: 10px;

    margin-top: 22px;
}


.cr-site-footer__contact a,
.cr-site-footer__contact > span {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin: 0;

    color: #b9c5cc;

    font-size: 12px;
    line-height: 1.5;

    text-decoration: none;
}


.cr-site-footer__contact a {
    transition: color 0.18s ease;
}


.cr-site-footer__contact a:hover {
    color: #ffffff;
}


/* ==========================================================
   SOCIAL
========================================================== */

.cr-site-footer__social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 23px;
}


.cr-site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    margin: 0;
    padding: 0;

    color: #ffffff;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    font-size: 12px;
    font-weight: 800;
    line-height: 1;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.cr-site-footer__social a:hover {
    transform: translateY(-2px);

    color: #ffffff;
    background: #0f766e;

    border-color: #0f766e;
}


/* ==========================================================
   FOOTER COLUMNS
========================================================== */

.cr-site-footer__column {
    align-self: start;

    min-width: 0;
}


.cr-site-footer__column h2 {
    margin: 0 0 20px;
    padding: 0;

    color: #ffffff;

    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;

    letter-spacing: 0.01em;
}


.cr-site-footer__column ul {
    margin: 0;
    padding: 0;

    list-style: none;
}


.cr-site-footer__column li {
    margin: 0;
    padding: 0;
}


.cr-site-footer__column li + li {
    margin-top: 11px;
}


.cr-site-footer__column a {
    color: #aebbc4;

    font-size: 12px;
    line-height: 1.45;

    text-decoration: none;

    transition: color 0.18s ease;
}


.cr-site-footer__column a:hover {
    color: #ffffff;
}


/* ==========================================================
   PROPERTY OWNER CTA
========================================================== */

.cr-site-footer__partner-cta {
    margin-top: 26px;
    padding: 14px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}


.cr-site-footer__partner-cta > span {
    display: block;

    color: #aebbc4;

    font-size: 10px;
    line-height: 1.4;
}


.cr-site-footer__partner-cta a {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: 6px;

    color: #ffd166;

    font-size: 11px;
    font-weight: 750;

    text-decoration: none;
}


.cr-site-footer__partner-cta a:hover {
    color: #ffffff;
}


.cr-site-footer__partner-cta a span {
    display: inline-block;

    transition: transform 0.2s ease;
}


.cr-site-footer__partner-cta a:hover span {
    transform: translateX(3px);
}


/* ==========================================================
   BOTTOM BAR
========================================================== */

.cr-site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.cr-site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    min-height: 68px;
}


.cr-site-footer__bottom p {
    margin: 0;

    color: #8796a0;

    font-size: 11px;
    line-height: 1.5;
}


/* ==========================================================
   PAYMENTS
========================================================== */

.cr-site-footer__payments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}


.cr-site-footer__payments > span {
    margin-right: 3px;

    color: #8796a0;

    font-size: 10px;
}


.cr-site-footer__payments strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding: 0 8px;

    color: #d9e3e8;
    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.cr-site-footer a:focus-visible {
    outline: 3px solid rgba(255, 209, 102, 0.45);
    outline-offset: 4px;
}


/* ==========================================================
   TABLET — LARGE
========================================================== */

@media (max-width: 1050px) {

    .cr-site-footer__main {
        padding: 52px 0 40px;
    }


    .cr-site-footer__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 42px 34px;
    }


    .cr-site-footer__brand {
        grid-column: span 3;

        max-width: 500px;

        margin-top: 0;
    }

}


/* ==========================================================
   TABLET / MOBILE
========================================================== */

@media (max-width: 680px) {

    .cr-site-footer__main {
        padding: 48px 0 36px;
    }


    .cr-site-footer__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 36px 24px;
    }


    .cr-site-footer__brand {
        grid-column: span 2;

        max-width: 100%;

        margin-top: 0;
    }


    .cr-site-footer__tagline {
        max-width: 360px;
    }


    .cr-site-footer__bottom-inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 14px;

        min-height: 0;

        padding: 22px 0;
    }


    .cr-site-footer__payments {
        flex-wrap: wrap;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 430px) {

    .cr-site-footer__grid {
        grid-template-columns: 1fr;

        gap: 32px;
    }


    .cr-site-footer__brand {
        grid-column: auto;
    }


    .cr-site-footer__logo img,
    .cr-site-footer__logo .custom-logo {
        max-width: 165px;
    }


    .cr-site-footer__column h2 {
        margin-bottom: 16px;
    }


    .cr-site-footer__column li + li {
        margin-top: 9px;
    }

}

/* ==========================================================
   GLOBAL FOOTER — FULL VIEWPORT WIDTH
   Fixes constrained footer inside ListingHive page wrappers
========================================================== */

.cr-site-footer {
	position: relative;
	z-index: 10;

	width: 100vw !important;
	max-width: none !important;

	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;

	clear: both;
}

/* Keep footer content centred, not stretched */
.cr-site-footer .cr-v2-container {
	width: min(1320px, calc(100% - 40px)) !important;
	max-width: 1320px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 0;
	padding-left: 0;
}

/* Main footer background */
.cr-site-footer__main {
	width: 100%;
	background: #062238;
}

/* Bottom copyright row */
.cr-site-footer__bottom {
	width: 100%;
	background: #051d30;
}

/* Prevent the archive page from clipping the full-width footer */
body.tax-hp_listing_category,
body.tax-hp_listing_category .site-container,
body.tax-hp_listing_category .site-content,
body.tax-hp_listing_category .content-area,
body.tax-hp_listing_category .site-main {
	overflow-x: clip;
}

/* Remove the old ListingHive category hero */
body.tax-hp_listing_category .header-hero {
	display: none !important;
}

/* Remove unwanted space left by the hidden hero */
body.tax-hp_listing_category .site-content {
	padding-top: 0 !important;
}

@media (max-width: 767px) {
	.cr-site-footer .cr-v2-container {
		width: calc(100% - 28px) !important;
	}
}
