/* =====================================================
   ARMENIANOS UNE
   SECTIONS
===================================================== */

/* =====================================================
   SECCIONES GENERALES
===================================================== */

.au-section {
    padding: 90px 0;
}

.au-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.au-section-title {
    margin: 0 0 18px;
    color: var(--au-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

.au-section-description {
    max-width: 760px;
    margin: 0 auto;
    color: var(--au-text-light);
    font-size: 18px;
    line-height: 1.8;
}


/* =====================================================
   PARTNERS
===================================================== */

.au-partners {
    padding: 80px 0;
}

.au-partners-header {
    text-align: center;
    margin-bottom: 40px;
}

.au-partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.au-partner-card {
    background: #fff;
    border: 1px solid var(--au-border);
    border-radius: 20px;
    padding: 40px;

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

    text-align: center;

    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: var(--au-shadow);
}

.au-partner-card:hover {
    transform: translateY(-6px);
}

.au-partner-card img {
    width: 100%;
    max-width: 280px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 25px;
}

.au-partner-card span {
    color: var(--au-primary);
    font-weight: 600;
}


/* =====================================================
   LISTING SECTION HEADERS
   Viviendas / Empleos / Anuncios
===================================================== */

.ja-section-click {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ja-section-click:hover {
    text-decoration: none;
}

.ja-section {
    margin-bottom: 20px;
}

.ja-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 64px;
    padding: 12px 18px;

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f7f9fc 100%
    );

    border-left: 4px solid #315a80;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.ja-section-title {
    margin: 0;
    color: #1f4f7d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.ja-section-subtitle {
    margin-top: 4px;
    color: #607d9a;
    font-size: 13px;
    line-height: 1.3;
}

.ja-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 14px;

    background: #eef2f6;
    color: #1f4f7d;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;

    text-decoration: none;
}

.ja-section-link:hover {
    background: #e4ebf2;
    color: #1f4f7d;
    text-decoration: none;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .au-section {
        padding: 70px 0;
    }

    .au-partners {
        padding: 60px 0;
    }

    .au-partners-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 768px) {

    .au-section {
        padding: 55px 0;
    }

    .au-section-header {
        margin-bottom: 35px;
    }

    .au-section-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .au-section-description {
        font-size: 16px;
        line-height: 1.7;
    }

    .au-partners {
        padding: 50px 0;
    }

    .au-partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .au-partner-card {
        padding: 30px 20px;
    }

    .au-partner-card img {
        max-width: 240px;
        height: 100px;
    }


    /* Listing headers */

    .ja-section-header {
        min-height: auto;
        padding: 18px;
    }

    .ja-section-title {
        font-size: 19px;
    }

    .ja-section-subtitle {
        font-size: 13px;
    }

    .ja-section-link {
        padding: 9px 12px;
        font-size: 13px;
    }

}


@media (max-width: 560px) {

    .ja-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ja-section-link {
        align-self: flex-start;
    }

}



/* =====================================================
   ARMENIANOS UNE
   ADS - NAVEGACIÓN Y FILTROS
===================================================== */

/* -----------------------------------------------------
   NAVEGACIÓN MARKETPLACE
----------------------------------------------------- */

.ja-top-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
}

.ja-top-navigation a {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;

    color: #2C5175;
    background: #fff;

    border: 1px solid #e1e8ef;
    border-radius: 9px;

    text-decoration: none;
    font-size: 15px;
    font-weight: 600;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.ja-top-navigation a:hover {
    color: #fff;
    background: #2C5175;
    border-color: #2C5175;
    transform: translateY(-1px);
}

.ja-top-navigation a.active {
    color: #fff;
    background: #2C5175;
    border-color: #2C5175;
}


/* -----------------------------------------------------
   BOTONES DE PUBLICACIÓN
----------------------------------------------------- */

.ja-submit-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
}

.ja-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    background: #fff;
    color: #2C5175;

    border: 1px solid #dce5ed;
    border-radius: 10px;

    text-decoration: none;
    font-size: 15px;
    font-weight: 600;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .04);

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.ja-submit-btn:hover {
    background: #2C5175;
    color: #fff;
    border-color: #2C5175;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(44, 81, 117, .15);
}


/* -----------------------------------------------------
   FILTRO DE CATEGORÍAS
----------------------------------------------------- */

.ja-categories-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0 0 30px;
}

.ja-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    background: #eef2f6;
    color: #2C5175;

    border: 1px solid #e0e7ee;
    border-radius: 999px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.ja-cat-btn:hover {
    background: #dfe8f0;
    color: #244866;
    transform: translateY(-1px);
}

.ja-cat-btn.active {
    background: #2C5175;
    color: #fff;
    border-color: #2C5175;
}


/* -----------------------------------------------------
   ESTADO VACÍO
----------------------------------------------------- */

.ja-empty-state {
    background: #fff;

    border: 1px solid #e0e8ef;
    border-radius: 16px;

    padding: 55px 35px;

    text-align: center;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.ja-empty-state h2 {
    margin: 0 0 14px;

    color: #2C5175;

    font-size: 30px;
    font-weight: 700;
}

.ja-empty-state p {
    margin: 0 0 28px;

    color: #60758a;

    font-size: 18px;
    line-height: 1.7;
}

.ja-empty-state .ja-btn-main {
    display: inline-flex;
}


/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */

@media (max-width: 768px) {

    .ja-top-navigation {
        gap: 6px;
    }

    .ja-top-navigation a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .ja-submit-links {
        flex-direction: column;
        align-items: stretch;
    }

    .ja-submit-btn {
        width: 100%;
    }

    .ja-categories-filter {
        gap: 7px;
    }

    .ja-cat-btn {
        padding: 8px 13px;
        font-size: 13px;
    }

    .ja-empty-state {
        padding: 40px 20px;
    }

    .ja-empty-state h2 {
        font-size: 25px;
    }

}



/* =====================================================
   MARKETPLACE — NAVEGACIÓN PRINCIPAL
===================================================== */

.ja-top-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0 0 24px;
}

.ja-top-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    background: #ffffff;
    color: #2C5175;

    border: 1px solid #dce5ed;
    border-radius: 10px;

    text-decoration: none;
    font-size: 15px;
    font-weight: 600;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .04);

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.ja-top-navigation a:hover {
    background: #eef3f7;
    color: #244866;
    border-color: #cbd9e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 81, 117, .10);
}

.ja-top-navigation a.active {
    background: #2C5175;
    color: #ffffff;
    border-color: #2C5175;
    box-shadow: 0 6px 16px rgba(44, 81, 117, .18);
}

.ja-top-navigation a.active:hover {
    background: #244866;
    color: #ffffff;
    border-color: #244866;
}

@media (max-width: 768px) {

    .ja-top-navigation {
        gap: 7px;
    }

    .ja-top-navigation a {
        padding: 8px 13px;
        font-size: 14px;
    }

}



/* =====================================================
   MOBILE — NAVEGACIÓN MARKETPLACE
===================================================== */

.ja-top-navigation {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 24px !important;
}

.ja-top-navigation a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 9px 14px !important;

    background: #ffffff !important;
    color: #2C5175 !important;

    border: 1px solid #dce5ed !important;
    border-radius: 10px !important;

    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .04) !important;
}

.ja-top-navigation a.active {
    background: #2C5175 !important;
    color: #ffffff !important;
    border-color: #2C5175 !important;
}


/* =====================================================
   MOBILE — BOTONES DE PUBLICACIÓN
===================================================== */

.ja-submit-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 28px !important;
}

.ja-submit-links .ja-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 10px 14px !important;

    background: #ffffff !important;
    color: #2C5175 !important;

    border: 1px solid #dce5ed !important;
    border-radius: 10px !important;

    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .04) !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .ja-top-navigation {
        width: 100% !important;
        margin-bottom: 18px !important;
    }

    .ja-top-navigation a {
        flex: 0 0 auto !important;
    }

    .ja-submit-links {
        width: 100% !important;
        margin-bottom: 22px !important;
    }

    .ja-submit-links .ja-submit-btn {
        flex: 0 0 auto !important;
    }

}


/* =====================================================
   MOBILE PEQUEÑO
===================================================== */

@media (max-width: 480px) {

    .ja-top-navigation {
        gap: 6px !important;
    }

    .ja-top-navigation a {
        padding: 8px 11px !important;
        font-size: 13px !important;
    }

    .ja-submit-links {
        gap: 7px !important;
    }

    .ja-submit-links .ja-submit-btn {
        padding: 8px 11px !important;
        font-size: 13px !important;
    }

}



/* =====================================================
   ANUNCIOS — AJUSTES EXCLUSIVOS
===================================================== */

/* Separación del contenido de Anuncios respecto al header */
body.post-type-archive-ads .ja-section {
    padding-top: 45px;
}

/* Cabecera de Anuncios */
body.post-type-archive-ads .ja-section-header {
    margin-bottom: 30px;
}




/* =====================================================
   GALERÍA — PÁGINA INDIVIDUAL DE ANUNCIOS
===================================================== */

.au-single-gallery {
    width: 100%;
    max-width: 900px;
    margin: 25px 0 0;
}


.au-single {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px 60px;
    box-sizing: border-box;
}


/* =====================================================
   IMAGEN PRINCIPAL
===================================================== */

.au-gallery-main {
    width: 100%;
    max-width: 900px;
    height: 500px;

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

    background: #f1f3f5;
    border-radius: 16px;
    overflow: hidden;
}

.au-gallery-main-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =====================================================
   MINIATURAS
===================================================== */

.au-gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    margin-top: 14px;
}


/* =====================================================
   SCROLL HORIZONTAL
===================================================== */

.au-gallery-thumbs {
    display: flex;
    gap: 10px;

    flex: 1;
    min-width: 0;

    overflow-x: auto;
    scroll-behavior: smooth;

    scrollbar-width: thin;

    padding: 3px 2px 8px;
}

.au-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.au-gallery-thumbs::-webkit-scrollbar-track {
    background: #edf1f5;
    border-radius: 10px;
}

.au-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #2C5175;
    border-radius: 10px;
}


/* =====================================================
   MINIATURAS
===================================================== */

.au-gallery-thumb {
    flex: 0 0 90px;

    width: 90px;
    height: 70px;

    padding: 0;

    border: 2px solid transparent;
    border-radius: 10px;

    overflow: hidden;

    background: #fff;
    cursor: pointer;

    opacity: .75;

    transition: all .2s ease;
}

.au-gallery-thumb:hover {
    opacity: 1;
}

.au-gallery-thumb.active {
    border-color: #2C5175;
    opacity: 1;
}

.au-gallery-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =====================================================
   FLECHAS
===================================================== */

.au-gallery-arrow {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

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

    border: none;
    border-radius: 50%;

    background: #2C5175;
    color: #fff;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: all .2s ease;
}

.au-gallery-arrow:hover {
    background: #21415f;
    transform: scale(1.05);
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 600px) {

    .au-single-gallery {
        max-width: 100%;
        margin-top: 20px;
    }

    .au-gallery-main {
        height: 300px;
        border-radius: 12px;
    }

    .au-gallery-thumb {
        flex-basis: 75px;
        width: 75px;
        height: 60px;
    }

    .au-gallery-arrow {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

}



/* =====================================================
   ARMENIANOS UNE
   SINGLE VIVIENDA
===================================================== */

.ja-single-container{
	width:100%;
	max-width:1060px;
	margin:0 auto;
	padding:24px 20px 60px;
	box-sizing:border-box;
}

.ja-single-layout{
	display:grid;
	grid-template-columns:minmax(0,1fr) 320px;
	gap:32px;
	align-items:start;
}

.ja-single-left{
	min-width:0;
}

.ja-single-back{
	margin-bottom:12px;
}

.ja-single-back a{
	color:var(--au-primary);
	text-decoration:none;
	font-size:14px;
}

.ja-single-back a:hover{
	text-decoration:underline;
}

.ja-single-header{
	margin-bottom:18px;
}

.ja-single-title{
	margin:0 0 8px;
	color:var(--au-primary);
	font-size:32px;
	line-height:1.2;
	font-weight:700;
}

.ja-single-meta{
	color:var(--au-text-light);
	font-size:16px;
}


/* =====================================================
   IMAGEN
===================================================== */

.ja-single-image{
	width:100%;
	max-width:800px;
	margin:0 auto 12px;
	border-radius:16px;
	overflow:hidden;
	background:#f1f3f5;
}

.ja-single-image img{
	display:block;
	width:100%;
	height:auto;
	max-height:560px;
	object-fit:contain;
}


/* =====================================================
   PRECIO
===================================================== */

.ja-single-price{
	margin:0 0 14px;
	color:var(--au-primary);
	font-size:24px;
	font-weight:700;
}


/* =====================================================
   DESCRIPCIÓN
===================================================== */

.ja-single-content{
	color:var(--au-text);
}

.ja-single-content h2{
	margin:0 0 14px;
	color:var(--au-primary);
	font-size:24px;
}

.ja-single-description{
	font-size:16px;
	line-height:1.7;
}


/* =====================================================
   CONTACTO
===================================================== */

.ja-single-sidebar{
	position:sticky;
	top:30px;
}

.ja-contact-box{
	background:#fff;
	border:1px solid var(--au-border);
	border-radius:16px;
	padding:24px;
	box-shadow:0 8px 25px rgba(0,0,0,.05);
}

.ja-contact-box h2{
	margin:0 0 12px;
	color:var(--au-primary);
	font-size:22px;
	line-height:1.3;
}

.ja-contact-box p{
	margin:0 0 18px;
	color:var(--au-text-light);
	line-height:1.6;
}

.ja-contact-button{
	display:block;
	width:100%;
	box-sizing:border-box;
	padding:13px 18px;
	background:var(--au-primary);
	color:#fff;
	border-radius:10px;
	text-align:center;
	text-decoration:none;
	font-weight:700;
}

.ja-contact-button:hover{
	opacity:.9;
}

.ja-contact-phone{
	margin-top:12px;
	color:var(--au-primary);
	font-weight:600;
	text-align:center;
}

.ja-contact-note{
	margin-top:18px;
	padding-top:16px;
	border-top:1px solid var(--au-border);
	color:var(--au-text-light);
	font-size:13px;
	line-height:1.5;
}

.ja-contact-unavailable{
	font-size:14px;
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width:900px){

	.ja-single-layout{
		grid-template-columns:1fr;
		gap:24px;
	}

	.ja-single-sidebar{
		position:static;
	}

	.ja-single-image{
		max-width:100%;
	}

}

@media (max-width:600px){

	.ja-single-container{
		padding:20px 15px 40px;
	}

	.ja-single-title{
		font-size:26px;
	}

	.ja-single-image{
		border-radius:12px;
	}

	.ja-contact-box{
		padding:20px;
	}

}



/* =====================================================
   ARMENIANOS UNE
   GALERÍA MULTIMEDIA SINGLE
===================================================== */

.ja-single-gallery{
	width:100%;
	max-width:800px;
	margin:0 auto 18px;
	overflow:hidden;
	border-radius:16px;
	background:#f1f3f5;
}

.ja-single-gallery-track{
	display:flex;
	gap:12px;
	overflow-x:auto;
	overflow-y:hidden;
	scroll-snap-type:x mandatory;
	scroll-behavior:smooth;
	-webkit-overflow-scrolling:touch;
	scrollbar-width:thin;
	padding:0;
}

.ja-single-gallery-track::-webkit-scrollbar{
	height:7px;
}

.ja-single-gallery-track::-webkit-scrollbar-thumb{
	background:#2c5175;
	border-radius:10px;
}

.ja-single-gallery-item{
	flex:0 0 100%;
	width:100%;
	height:500px;
	scroll-snap-align:start;
	background:#f1f3f5;
	display:flex;
	align-items:center;
	justify-content:center;
}

.ja-single-gallery-item img,
.ja-single-gallery-item video{
	display:block;
	width:100%;
	height:100%;
	object-fit:contain;
}

.ja-single-gallery-video video{
	background:#000;
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width:600px){

	.ja-single-gallery{
		border-radius:12px;
	}

	.ja-single-gallery-item{
		height:360px;
	}

}


/* =====================================================
   GALERÍA INDIVIDUAL
===================================================== */

.au-single-gallery{
    position:relative;
    width:100%;
    max-width:100%;
    margin:18px 0 20px;
    overflow:hidden;
    border-radius:16px;
    background:#f1f3f5;
}

.au-gallery-track{
    display:flex;
    width:100%;
    overflow-x:auto;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    -ms-overflow-style:none;
}

.au-gallery-track::-webkit-scrollbar{
    display:none;
}

.au-gallery-slide{
    flex:0 0 100%;
    width:100%;
    min-width:100%;
    height:480px;
    scroll-snap-align:start;

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

    background:#f1f3f5;
}

.au-gallery-slide img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.au-gallery-video{
    width:100%;
    height:100%;
}

.au-gallery-video iframe{
    width:100%;
    height:100%;
    border:0;
}


/* =====================================================
   FLECHAS
===================================================== */

.au-gallery-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:10;

    width:46px;
    height:46px;

    border:0;
    border-radius:50%;

    background:rgba(44,81,117,.92);
    color:#fff;

    font-size:34px;
    line-height:1;

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

    cursor:pointer;

    box-shadow:0 4px 14px rgba(0,0,0,.20);

    transition:
        background .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.au-gallery-arrow:hover{
    background:#234563;
    transform:translateY(-50%) scale(1.05);
}

.au-gallery-prev{
    left:14px;
}

.au-gallery-next{
    right:14px;
}


/* =====================================================
   UNA SOLA IMAGEN
===================================================== */

.au-single-gallery:has(.au-gallery-slide:only-child) .au-gallery-arrow{
    display:none;
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width:700px){

    .au-single-gallery{
        border-radius:14px;
        margin-top:16px;
    }

    .au-gallery-slide{
        height:360px;
    }

    .au-gallery-arrow{
        width:40px;
        height:40px;
        font-size:29px;
    }

    .au-gallery-prev{
        left:8px;
    }

    .au-gallery-next{
        right:8px;
    }
}