/* ==========================================================================
   Site Modernization Styles
   Reuses design tokens from property-cards.css (:root --tr-* variables)
   ========================================================================== */

/* ==========================================================================
   1A. Breadcrumbs
   ========================================================================== */

.tr-breadcrumbs {
    padding: 12px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.tr-breadcrumbs a {
    color: var(--tr-text-secondary);
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tr-breadcrumbs a:hover {
    color: var(--tr-navy);
    text-decoration: none;
}

.tr-breadcrumbs__sep {
    margin: 0 8px;
    font-size: 9px;
    color: #ccc;
}

.tr-breadcrumbs__current {
    color: var(--tr-navy);
    font-family: 'montserratmed', sans-serif;
    font-size: 13px;
    font-weight: 500;
}


/* ==========================================================================
   1B. Page Headers
   ========================================================================== */

.tr-page-header {
    background: linear-gradient(180deg, #fff 0%, #F7F7F7 100%);
    padding: 48px 0 40px;
    text-align: center;
}

.tr-page-header__title {
    color: var(--tr-navy);
    font-family: 'judson', serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    position: relative;
    display: inline-block;
}

.tr-page-header__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--tr-beige);
    margin: 16px auto 0;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .tr-page-header {
        padding: 32px 0 28px;
    }
    .tr-page-header__title {
        font-size: 30px;
    }
}


/* ==========================================================================
   1C. Action Pills (replaces .insights)
   ========================================================================== */

.tr-action-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tr-action-pills__label {
    color: var(--tr-navy);
    font-family: 'judson', serif;
    font-size: 24px;
    font-weight: 400;
    display: flex;
    align-items: center;
    padding-right: 8px;
    white-space: nowrap;
}

.tr-action-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border: 2px solid var(--tr-navy);
    border-radius: var(--tr-radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
    min-width: 110px;
    text-align: center;
    background: transparent;
}

.tr-action-pill:hover,
.tr-action-pill:focus {
    background: var(--tr-navy);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--tr-shadow-md);
}

.tr-action-pill__count {
    font-family: 'judson', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--tr-navy);
    line-height: 1;
    transition: color 0.25s ease;
}

.tr-action-pill__text {
    font-family: 'montserratmed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tr-text-secondary);
    margin-top: 4px;
    transition: color 0.25s ease;
}

.tr-action-pill:hover .tr-action-pill__count,
.tr-action-pill:hover .tr-action-pill__text {
    color: #fff;
}

@media (max-width: 767px) {
    .tr-action-pills {
        gap: 8px;
    }
    .tr-action-pill {
        padding: 12px 20px;
        min-width: 90px;
        flex: 1;
    }
    .tr-action-pill__count {
        font-size: 24px;
    }
    .tr-action-pills__label {
        width: 100%;
        font-size: 20px;
        margin-bottom: 4px;
    }
}


/* ==========================================================================
   1D. Specs Grid (edificio detail)
   ========================================================================== */

.tr-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.tr-spec-card {
    background: var(--tr-white);
    border: 1px solid #e8e8e8;
    border-radius: var(--tr-radius-sm);
    padding: 20px 16px;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tr-spec-card:hover {
    box-shadow: var(--tr-shadow-md);
    transform: translateY(-2px);
}

.tr-spec-card__icon {
    color: var(--tr-beige);
    font-size: 20px;
    margin-bottom: 8px;
}

.tr-spec-card__value {
    font-family: 'judson', serif;
    font-size: 20px;
    color: var(--tr-navy);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 4px;
    word-break: break-word;
}

.tr-spec-card__label {
    font-family: 'montserrat', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tr-text-secondary);
}

@media (max-width: 991px) {
    .tr-specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .tr-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .tr-spec-card {
        padding: 16px 12px;
    }
    .tr-spec-card__value {
        font-size: 17px;
    }
}


/* ==========================================================================
   1E. Zone Cards (zonas listing)
   ========================================================================== */

.tr-zone-card {
    background: var(--tr-white);
    border-radius: var(--tr-radius);
    overflow: hidden;
    box-shadow: var(--tr-shadow-sm);
    transition: transform var(--tr-transition), box-shadow var(--tr-transition);
    margin-bottom: 24px;
}

.tr-zone-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tr-shadow-hover);
}

.tr-zone-card__image-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.tr-zone-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tr-zone-card:hover .tr-zone-card__image-wrap img {
    transform: scale(1.05);
}

.tr-zone-card__image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

.tr-zone-card__zone-name {
    position: absolute;
    bottom: 14px;
    left: 18px;
    z-index: 2;
    color: #fff;
    font-family: 'judson', serif;
    font-size: 24px;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.tr-zone-card__body {
    padding: 18px 18px 20px;
}

.tr-zone-card__desc {
    font-family: 'montserrat', sans-serif;
    font-size: 14px;
    color: var(--tr-text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tr-zone-card__stats {
    display: flex;
    gap: 8px;
}

.tr-zone-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.tr-zone-stat:hover {
    border-color: var(--tr-navy);
    background: rgba(0, 82, 121, 0.04);
    text-decoration: none;
}

.tr-zone-stat__count {
    font-family: 'judson', serif;
    font-size: 22px;
    color: var(--tr-navy);
    line-height: 1;
}

.tr-zone-stat__label {
    font-family: 'montserrat', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tr-text-secondary);
    margin-top: 3px;
}

.tr-zone-stat:hover .tr-zone-stat__count,
.tr-zone-stat:hover .tr-zone-stat__label {
    color: var(--tr-navy);
}

@media (max-width: 767px) {
    .tr-zone-card__image-wrap {
        height: 200px;
    }
    .tr-zone-card__zone-name {
        font-size: 22px;
    }
}


/* ==========================================================================
   1F. Amenities Grid (edificio detail)
   ========================================================================== */

.tr-amenities-section {
    background: var(--tr-bg-light);
    padding: 48px 0;
}

.tr-amenities-section__title {
    color: var(--tr-navy);
    font-family: 'judson', serif;
    font-size: 36px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 32px;
    position: relative;
}

.tr-amenities-section__title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--tr-beige);
    margin: 14px auto 0;
    border-radius: 2px;
}

.tr-amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.tr-amenity-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--tr-white);
    border-radius: 8px;
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    color: var(--tr-text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.tr-amenity-chip:hover {
    box-shadow: var(--tr-shadow-sm);
}

.tr-amenity-chip__icon {
    color: var(--tr-beige);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .tr-amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .tr-amenities-section {
        padding: 36px 0;
    }
    .tr-amenities-section__title {
        font-size: 28px;
    }
    .tr-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .tr-amenity-chip {
        padding: 10px 12px;
        font-size: 12px;
    }
}


/* ==========================================================================
   1G. Map Wrapper
   ========================================================================== */

.tr-map-wrap {
    border-radius: var(--tr-radius);
    overflow: hidden;
    box-shadow: var(--tr-shadow-sm);
    height: 350px;
}

.tr-map-wrap #map {
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .tr-map-wrap {
        height: 280px;
        border-radius: var(--tr-radius-sm);
    }
}


/* ==========================================================================
   1H. CTA Banner
   ========================================================================== */

.tr-cta-banner {
    background: linear-gradient(135deg, #03679F 0%, #005279 100%);
    border-radius: var(--tr-radius);
    padding: 32px 40px;
    text-align: center;
    margin: 40px auto 40px;
    max-width: 800px;
}

.tr-cta-banner p {
    color: #fff;
    font-family: 'montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.tr-cta-banner b,
.tr-cta-banner strong {
    font-family: 'montserratmed', sans-serif;
    color: #fff;
}

.tr-cta-banner a {
    color: var(--tr-beige);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.tr-cta-banner a:hover {
    color: #fff;
}

@media (max-width: 767px) {
    .tr-cta-banner {
        padding: 24px 20px;
        margin: 30px 15px;
        border-radius: var(--tr-radius-sm);
    }
    .tr-cta-banner p {
        font-size: 14px;
    }
}


/* ==========================================================================
   1I. Contact Form Section
   ========================================================================== */

.tr-contact-section {
    background: var(--tr-white);
    border-radius: var(--tr-radius);
    box-shadow: var(--tr-shadow-md);
    padding: 40px 32px;
    margin: 40px auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.tr-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tr-beige), var(--tr-navy));
}

.tr-contact-section__title {
    color: var(--tr-navy);
    font-family: 'judson', serif;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 8px;
}

.tr-contact-section__subtitle {
    color: var(--tr-text-secondary);
    font-family: 'montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    margin: 0 0 24px;
}

@media (max-width: 767px) {
    .tr-contact-section {
        padding: 28px 20px;
        margin: 30px 15px;
    }
    .tr-contact-section__title {
        font-size: 24px;
    }
}


/* ==========================================================================
   Hero Carousel (zona/edificio detail)
   ========================================================================== */

.tr-hero-carousel {
    position: relative;
}

.tr-hero-carousel #myCarousel,
.tr-hero-carousel #myCarousel .carousel-inner,
.tr-hero-carousel #myCarousel .carousel-inner > .item,
.tr-hero-carousel #myCarousel .carousel-inner > .item > img {
    width: 100%;
    height: 65vh;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 992px) {
    .tr-hero-carousel #myCarousel,
    .tr-hero-carousel #myCarousel .carousel-inner,
    .tr-hero-carousel #myCarousel .carousel-inner > .item,
    .tr-hero-carousel #myCarousel .carousel-inner > .item > img {
        height: 50vh;
    }
}

@media (max-width: 767px) {
    .tr-hero-carousel #myCarousel,
    .tr-hero-carousel #myCarousel .carousel-inner,
    .tr-hero-carousel #myCarousel .carousel-inner > .item,
    .tr-hero-carousel #myCarousel .carousel-inner > .item > img {
        height: 40vh;
    }
}

/* Scroll indicator */
.tr-hero-carousel .field {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 40px;
    left: 0;
    z-index: 2;
}

.tr-hero-carousel .mouse {
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 60px;
    position: relative;
}

.tr-hero-carousel .mouse::before {
    content: '';
    width: 8px;
    height: 8px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    opacity: 1;
    animation: tr-wheel 2s infinite;
}

@keyframes tr-wheel {
    to {
        opacity: 0;
        top: 50px;
    }
}


/* ==========================================================================
   Content Block (zona/edificio description area)
   ========================================================================== */

.tr-content-area {
    padding-top: 32px;
    padding-bottom: 48px;
}

.tr-content-area__title {
    color: var(--tr-navy);
    font-family: 'judson', serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 24px;
}

.tr-content-area__desc {
    color: var(--tr-text-primary);
    font-family: 'montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.tr-content-area__desc p {
    margin-bottom: 16px;
}

.tr-section-title {
    color: var(--tr-navy);
    font-family: 'judson', serif;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 28px;
    position: relative;
}

.tr-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--tr-beige);
    margin: 14px auto 0;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .tr-content-area {
        padding-top: 24px;
        padding-bottom: 36px;
    }
    .tr-content-area__title {
        font-size: 30px;
    }
    .tr-content-area__desc {
        font-size: 15px;
    }
    .tr-section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
}


/* ==========================================================================
   Footer Modernization
   ========================================================================== */

.tr-footer {
    background: var(--tr-navy);
    padding: 0;
}

.tr-footer__accent {
    height: 3px;
    background: linear-gradient(90deg, var(--tr-beige), var(--tr-blue-accent));
}

.tr-footer__main {
    padding: 40px 0 24px;
}

.tr-footer__logo img {
    width: 80%;
    max-width: 120px;
}

.tr-footer__tagline {
    color: rgba(255,255,255,0.6);
    font-family: 'montserrat', sans-serif;
    font-size: 12px;
    margin-top: 12px;
}

.tr-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
}

.tr-footer__links li {
    display: inline;
    padding: 0 8px;
}

.tr-footer__links li + li {
    border-left: 1px solid rgba(255,255,255,0.2);
}

.tr-footer__links a {
    color: rgba(255,255,255,0.8);
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tr-footer__links a:hover {
    color: var(--tr-beige);
}

.tr-footer__social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.tr-footer__social a {
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tr-footer__social a:hover {
    color: var(--tr-beige);
    transform: translateY(-2px);
}

.tr-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    text-align: center;
}

.tr-footer__copyright {
    color: rgba(255,255,255,0.4);
    font-family: 'montserrat', sans-serif;
    font-size: 12px;
    margin: 0;
}

@media (max-width: 767px) {
    .tr-footer__main {
        padding: 32px 0 20px;
        text-align: center;
    }
    .tr-footer__links {
        margin-top: 20px;
    }
}


/* ==========================================================================
   Pre-header & Navbar Polish
   ========================================================================== */

.tr-pre-header {
    background: var(--tr-beige);
    padding: 6px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tr-pre-header p {
    color: #fff;
    font-family: 'montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin: 0;
}

.tr-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 36px;
}

.tr-hamburger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tr-navy);
    border-radius: 1px;
    transition: all 0.2s ease;
}

.tr-hamburger:hover .tr-hamburger__line {
    background: var(--tr-beige);
}


/* ==========================================================================
   Utility: zones grid row
   ========================================================================== */

.tr-zones-grid {
    display: flex;
    flex-wrap: wrap;
}

.tr-zones-grid > .col-sm-6 {
    margin-bottom: 24px;
}


/* ==========================================================================
   Contact Form — Unified Styles
   ========================================================================== */

/* Modal wrapper improvements */
.tr-form-modal .modal-dialog {
    max-width: 480px;
    margin: 60px auto;
}

.tr-form-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.tr-form-modal .modal-header {
    border-bottom: none;
    padding: 32px 32px 0;
    text-align: center;
    display: block;
    position: relative;
}

.tr-form-modal .modal-header .close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    opacity: 0.4;
    transition: opacity 0.2s;
    z-index: 1;
}

.tr-form-modal .modal-header .close:hover {
    opacity: 0.8;
}

.tr-form-modal .modal-body {
    padding: 16px 32px 32px;
}

.tr-form-modal .modal-footer {
    display: none;
}

.tr-form-modal .tr-form__title {
    color: var(--tr-navy);
    font-family: 'judson', serif;
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 8px;
    line-height: 1.2;
}

.tr-form-modal .tr-form__subtitle {
    color: #555;
    font-family: 'montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

.tr-form-modal .tr-form__subtitle a {
    color: var(--tr-navy);
    font-weight: 500;
}

/* Form base */
.tr-form .form-group {
    margin-bottom: 16px;
}

.tr-form label {
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.tr-form .form-control {
    border-radius: 8px;
    border: 1.5px solid #ddd;
    padding: 10px 14px;
    font-family: 'montserrat', sans-serif;
    font-size: 14px;
    height: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tr-form .form-control:focus {
    border-color: var(--tr-navy);
    box-shadow: 0 0 0 3px rgba(0,82,121,0.08);
    outline: none;
}

.tr-form .form-control::placeholder {
    color: #aaa;
}

/* Phone group with country code selector */
.tr-form__phone-group {
    display: flex;
    align-items: stretch;
}

.tr-form__lada {
    width: 100px;
    min-width: 100px;
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    background-color: #f7f7f7;
    font-family: 'montserrat', sans-serif;
    font-size: 14px;
    color: #444;
    padding: 10px 6px 10px 10px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 22px;
}

.tr-form__lada:focus {
    border-color: var(--tr-navy);
    box-shadow: 0 0 0 3px rgba(0,82,121,0.08);
    outline: none;
    background-color: #f0f0f0;
}

.tr-form__phone {
    flex: 1;
    border-radius: 0 8px 8px 0 !important;
}

/* Submit button */
.tr-form__submit {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--tr-navy);
    color: #fff;
    font-family: 'montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.tr-form__submit:hover {
    background: #003d5c;
    box-shadow: 0 4px 12px rgba(0,82,121,0.3);
}

.tr-form__submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

/* Optional fields toggle */
.tr-form__toggle {
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    color: var(--tr-navy);
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.tr-form__toggle:hover {
    color: #003d5c;
    text-decoration: none;
}

/* Response message */
.tr-form__response {
    text-align: center;
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    margin-top: 12px;
    min-height: 20px;
}

.tr-form__response.success { color: #2e7d32; }
.tr-form__response.error { color: #c62828; }

/* Inline form (propiedad/edificio detail pages) */
.tr-form--inline {
    background: var(--tr-white, #fff);
    border-radius: var(--tr-radius, 12px);
    box-shadow: var(--tr-shadow-md, 0 4px 16px rgba(0,0,0,0.08));
    padding: 32px 28px;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.tr-form--inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tr-beige, #D9B394), var(--tr-navy, #005279));
}

.tr-form--inline .tr-form__title {
    color: var(--tr-navy);
    font-family: 'judson', serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 6px;
}

.tr-form--inline .tr-form__subtitle {
    color: #666;
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    text-align: center;
    margin: 0 0 20px;
}

/* Full-page form (contacto.html, enlistar-propiedad.html) */
.tr-form--page {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 36px 32px;
    max-width: 700px;
    margin: 0 auto;
}

.tr-form--page .form-group .col-sm-6,
.tr-form--page .form-group .col-sm-4,
.tr-form--page .form-group .col-sm-12 {
    margin-bottom: 12px;
}

/* ==========================================================================
   Property Detail — Gallery Mosaic (flex + inner grid)
   ========================================================================== */

.tr-gallery {
    display: flex;
    gap: 4px;
    border-radius: var(--tr-radius);
    overflow: hidden;
    height: 420px;
}

.tr-gallery__main {
    flex: 3;
    position: relative;
    min-width: 0;
}

.tr-gallery__side {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    min-width: 0;
}

/* Adaptive side grid: 1 thumb fills entire side */
.tr-gallery__side .tr-gallery__thumb:only-child {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

/* 2 thumbs: stack vertically, each full width */
.tr-gallery__side .tr-gallery__thumb:first-child:nth-last-child(2),
.tr-gallery__side .tr-gallery__thumb:first-child:nth-last-child(2) ~ .tr-gallery__thumb {
    grid-column: 1 / -1;
}

/* 3 thumbs: last one spans full bottom row */
.tr-gallery__side .tr-gallery__thumb:first-child:nth-last-child(3) ~ .tr-gallery__thumb:last-child {
    grid-column: 1 / -1;
}

.tr-gallery__thumb {
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.tr-gallery__main a,
.tr-gallery__thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.tr-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.tr-gallery img:hover {
    opacity: 0.92;
}

.tr-gallery__more-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'montserratmed', sans-serif;
    font-size: 13px;
    color: var(--tr-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.tr-gallery__more-btn:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tr-gallery__more-btn i {
    margin-right: 6px;
}

.tr-gallery__count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    z-index: 2;
    display: none;
}

.tr-gallery__count i {
    margin-right: 4px;
}

/* Hidden images for Fancybox only */
.tr-gallery__hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .tr-gallery {
        display: block;
        height: auto;
        border-radius: 0;
    }
    .tr-gallery__main {
        height: 45vh;
        position: relative;
    }
    .tr-gallery__side {
        display: none;
    }
    .tr-gallery__count {
        display: flex;
        align-items: center;
        gap: 4px;
    }
}


/* ==========================================================================
   Property Detail — Price Block
   ========================================================================== */

.tr-price-block {
    margin-bottom: 16px;
}

.tr-price-block__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.tr-price-block__label {
    font-family: 'montserrat', sans-serif;
    font-size: 14px;
    color: var(--tr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tr-price-block__amount {
    font-family: 'judson', serif;
    font-size: 30px;
    color: var(--tr-navy);
    line-height: 1.2;
}

.tr-price-block__currency {
    font-family: 'alexandria-tin', sans-serif;
    font-size: 16px;
    color: var(--tr-text-secondary);
}

.tr-price-block__status {
    font-family: 'judson', serif;
    font-size: 18px;
    color: #c0392b;
    font-style: italic;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .tr-price-block__amount {
        font-size: 24px;
    }
}


/* ==========================================================================
   Property Detail — Title & Social Row
   ========================================================================== */

.tr-prop-header {
    padding: 20px 0 0;
}

.tr-prop-title {
    font-family: 'judson', serif;
    font-size: 28px;
    color: var(--tr-navy);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 8px;
}

.tr-prop-social {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tr-prop-social__views {
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    color: var(--tr-text-secondary);
}

.tr-prop-social__views i {
    color: var(--tr-navy);
    margin-right: 4px;
}

.tr-prop-social__share {
    font-family: 'montserrat', sans-serif;
    font-size: 13px;
    color: var(--tr-navy);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    text-decoration: none;
}

.tr-prop-social__share:hover {
    color: var(--tr-navy-light);
    text-decoration: none;
}

@media (max-width: 767px) {
    .tr-prop-title {
        font-size: 22px;
    }
}


/* ==========================================================================
   Property Detail — Specs Strip
   ========================================================================== */

.tr-specs-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tr-spec-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tr-bg-light);
    padding: 10px 18px;
    border-radius: 8px;
}

.tr-spec-pill__icon {
    color: var(--tr-navy);
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.tr-spec-pill__info {
    display: flex;
    flex-direction: column;
}

.tr-spec-pill__value {
    font-family: 'montserratmed', sans-serif;
    font-size: 16px;
    color: var(--tr-text-primary);
    line-height: 1.2;
}

.tr-spec-pill__label {
    font-family: 'montserrat', sans-serif;
    font-size: 11px;
    color: var(--tr-text-secondary);
}


/* ==========================================================================
   Property Detail — Description Text
   ========================================================================== */

.tr-content-area__text {
    font-family: 'montserrat', sans-serif;
    font-size: 14px;
    color: var(--tr-text-primary);
    line-height: 1.7;
    font-weight: 400;
}

.tr-content-area__text p {
    margin-bottom: 16px;
}

.tr-content-area__text h1,
.tr-content-area__text h2,
.tr-content-area__text h3,
.tr-content-area__text h4,
.tr-content-area__text h5,
.tr-content-area__text h6 {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    margin: 0 0 16px;
}

@media (max-width: 767px) {
    .tr-content-area__text {
        font-size: 14px;
    }
}


/* ==========================================================================
   Property Detail — Video/Plan Action Buttons
   ========================================================================== */

.tr-prop-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.tr-prop-actions__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'montserrat', sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.tr-prop-actions__btn:hover {
    text-decoration: none;
}

.tr-prop-actions__btn--video {
    background: var(--tr-navy);
    color: #fff;
}

.tr-prop-actions__btn--video:hover {
    background: var(--tr-navy-light);
    color: #fff;
}

.tr-prop-actions__btn--plan {
    background: var(--tr-bg-light);
    color: var(--tr-navy);
    border: 1px solid #e0e0e0;
}

.tr-prop-actions__btn--plan:hover {
    background: #e8e8e8;
    color: var(--tr-navy);
}


/* ==========================================================================
   Property Detail — Sticky Sidebar
   ========================================================================== */

.tr-prop-sidebar {
    position: sticky;
    top: 120px;
}

@media (max-width: 767px) {
    .tr-prop-sidebar {
        position: static;
    }
    .tr-prop-header {
        padding-left: 6px;
        padding-right: 6px;
    }
    .tr-breadcrumbs {
        padding-left: 6px;
        padding-right: 6px;
    }
    .tr-specs-strip {
        padding-left: 2px;
        padding-right: 2px;
    }
    .tr-content-area__text {
        padding-left: 6px;
        padding-right: 6px;
    }
    .tr-section-title {
        padding-left: 6px;
        padding-right: 6px;
    }
    .tr-amenities-grid {
        padding-left: 6px;
        padding-right: 6px;
    }
}


@media (max-width: 767px) {
    .tr-form-modal .modal-dialog {
        margin: 20px 10px;
    }
    .tr-form-modal .modal-header {
        padding: 24px 20px 0;
    }
    .tr-form-modal .modal-body {
        padding: 12px 20px 24px;
    }
    .tr-form__lada {
        width: 88px;
        min-width: 88px;
        font-size: 13px;
    }
    .tr-form--inline {
        padding: 24px 20px;
        margin: 0 10px;
    }
    .tr-form--page {
        padding: 24px 16px;
    }
}
