/* ============================================
   project-detail.css — Ficha de development (proyecto)
   Paleta: negro/blanco + dorado #c9a961
   Tipografía: Playfair Display (títulos) + sans-serif del sitio (body)
   Sin Bootstrap 3, sin jQuery 2.
   ============================================ */

:root {
    --pd-bg:         #ffffff;
    --pd-bg-dark:    #0a0a0a;
    --pd-bg-section: #f8f7f4;
    --pd-text:       #1a1a1a;
    --pd-text-light: #666666;
    --pd-accent:     #c9a961;
    --pd-accent-h:   #b8944f;
    --pd-border:     #e5e5e5;
    --pd-radius:     6px;
    --pd-shadow:     0 2px 12px rgba(0,0,0,.07);

    /* categorías */
    --cat-luxury:      #c9a961;
    --cat-playa:       #2b7a94;
    --cat-montana:     #4a7c59;
    --cat-residencial: #6c757d;
    --cat-comercial:   #343a40;
}

/* ============================================
   Tipografía luxury: Playfair Display en títulos
   ============================================ */
.pd-hero-name,
.pd-section-title,
.pd-contact-card h4,
.pd-contact-title,
.pd-summary {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================
   HERO SECTION
   ============================================ */
.pd-hero-section {
    position: relative;
    width: 100%;
    background: var(--pd-bg-dark);
    overflow: hidden;
}

.pd-hero-inner {
    position: relative;
    width: 100%;
    height: 580px;
}

@media (max-width: 992px) { .pd-hero-inner { height: 420px; } }
@media (max-width: 576px) { .pd-hero-inner { height: 300px; } }

/* Swiper hero */
.pd-hero-inner .swiper.pd-gallery-main {
    width: 100%;
    height: 100%;
}

.pd-hero-inner .swiper.pd-gallery-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-hero-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Swiper buttons heredados del sitio — sobreescribir color */
.pd-gallery-main .swiper-button-next,
.pd-gallery-main .swiper-button-prev {
    color: var(--pd-accent);
}
.pd-gallery-main .swiper-pagination-bullet-active {
    background: var(--pd-accent);
}

/* Overlay degradé + texto */
.pd-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
    padding: 60px 40px 32px;
}

.pd-hero-overlay-content {
    max-width: 700px;
}

.pd-hero-location {
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pd-accent);
    margin: 0 0 8px;
}

.pd-hero-name {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 12px;
}

@media (max-width: 768px) { .pd-hero-name { font-size: 1.9rem; } }
@media (max-width: 576px) { .pd-hero-name { font-size: 1.5rem; } }

.pd-hero-price {
    font-size: 1.1rem;
    color: rgba(255,255,255,.9);
    margin: 0 0 16px;
}
.pd-hero-price strong { color: var(--pd-accent); }

.pd-hero-gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--pd-accent);
    color: var(--pd-accent);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--pd-radius);
    transition: background .25s, color .25s;
}
.pd-hero-gallery-btn:hover {
    background: var(--pd-accent);
    color: #fff;
    text-decoration: none;
}

.pd-hero-no-imgs { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0; }

/* Thumbnails */
.pd-hero-thumbs {
    background: #111;
    padding: 8px 0;
}
.pd-gallery-thumbs .swiper-slide {
    width: 100px;
    height: 65px;
    cursor: pointer;
    opacity: .55;
    transition: opacity .2s;
}
.pd-gallery-thumbs .swiper-slide-thumb-active { opacity: 1; }
.pd-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* ============================================
   DATA STRIP
   ============================================ */
.pd-strip {
    background: var(--pd-bg-dark);
    color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid rgba(201,169,97,.3);
}

.pd-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

.pd-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 32px;
    border-right: 1px solid rgba(255,255,255,.1);
}
.pd-strip-item:last-child { border-right: none; }

@media (max-width: 768px) {
    .pd-strip-item { padding: 8px 16px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
    .pd-strip-item:last-child { border-bottom: none; }
}

.pd-strip-label {
    font-family: 'Playfair Display', Georgia, serif; /* Playfair para labels tipográficos, consistente con listado */
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: 2px;
}
.pd-strip-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pd-accent);
}

/* ============================================
   CONTENT AREA
   ============================================ */
.pd-content-area {
    padding: 60px 0 80px;
    background: var(--pd-bg);
}

.pd-section {
    border-radius: var(--pd-radius);
}

/* heredado del sitio */
.pd-content-area .bg1 {
    background: var(--pd-bg-section);
    border-radius: var(--pd-radius);
    padding: 28px 24px;
}

/* ============================================
   RESUMEN + CATEGORÍAS
   ============================================ */
.pd-summary {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--pd-text);
    margin: 0 0 16px;
    font-weight: 400;
}

.pd-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pd-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.pd-cat--luxury      { background: var(--cat-luxury);      color: #fff; }
.pd-cat--playa       { background: var(--cat-playa);       color: #fff; }
.pd-cat--montana     { background: var(--cat-montana);     color: #fff; }
.pd-cat--residencial { background: var(--cat-residencial); color: #fff; }
.pd-cat--comercial   { background: var(--cat-comercial);   color: #fff; }

/* ============================================
   SECCIÓN TITLE
   ============================================ */
.pd-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pd-text);
    margin: 0 0 4px;
    letter-spacing: -.01em;
}

/* ============================================
   DESCRIPCIÓN — 2 columnas desktop
   ============================================ */
.pd-description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .pd-description-grid { grid-template-columns: 1fr; }
}

.pd-description-text {
    font-size: .9rem;
    line-height: 1.75;
    color: var(--pd-text);
}
.pd-description-text p { margin: 0 0 12px; }

.pd-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pd-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: .88rem;
    color: var(--pd-text);
    border-bottom: 1px solid var(--pd-border);
}
.pd-features-list li:last-child { border-bottom: none; }
.pd-features-list li svg {
    color: var(--pd-accent);
    flex-shrink: 0;
    margin-top: 1px;
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.pd-no-content { color: var(--pd-text-light); font-size: .9rem; margin: 0; }

/* ============================================
   GALERÍA GRID
   ============================================ */
.pd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .pd-gallery-grid { grid-template-columns: 1fr; }
}

.pd-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: var(--pd-radius);
    aspect-ratio: 4/3;
}
.pd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.pd-gallery-item:hover img { transform: scale(1.04); }

/* ============================================
   DATOS RÁPIDOS GRID
   ============================================ */
.pd-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 992px) { .pd-facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .pd-facts-grid { grid-template-columns: 1fr; } }

.pd-fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    background: var(--pd-bg);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    gap: 6px;
}
.pd-fact svg { color: var(--pd-accent); width: 28px; height: 28px; }
.pd-fact-label { font-family: 'Playfair Display', Georgia, serif; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pd-text-light); }
.pd-fact-value { font-size: 1rem; font-weight: 700; color: var(--pd-text); }

/* ============================================
   UBICACIÓN
   ============================================ */
.pd-location-block {
    text-align: center;
    padding: 20px 0 4px;
}
.pd-location-province {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pd-text);
    margin: 0 0 4px;
}
.pd-location-zone {
    font-size: 1rem;
    color: var(--pd-accent);
    font-weight: 600;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.pd-location-note {
    font-size: .85rem;
    color: var(--pd-text-light);
    margin: 0;
    font-style: italic;
}

/* ============================================
   SIDEBAR
   ============================================ */
.pd-sidebar {
    position: sticky;
    top: 100px;
}

/* Previene overflow de contenido en flex row de Bootstrap */
.pd-content-area .col-lg-8,
.pd-content-area .col-lg-4 {
    min-width: 0;
}

/* ============================================
   CARD UNIFICADA: AGENTE + FORMULARIO
   ============================================ */
.pd-contact-card {
    background: var(--pd-bg);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 26px 24px 22px;
    box-shadow: var(--pd-shadow);
}

.pd-card-agent-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--pd-text-light);
    margin: 0 0 14px;
}

.pd-card-divider {
    height: 1px;
    background: var(--pd-border);
    margin: 20px 0 22px;
}

/* Agente — elementos internos */
.pd-agent-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pd-agent-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pd-agent-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pd-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.pd-agent-info h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--pd-text);
    margin: 0 0 3px;
}
.pd-agent-info a {
    display: block;
    font-size: .78rem;
    color: var(--pd-text-light);
    text-decoration: none;
    transition: color .2s;
}
.pd-agent-info a:hover { color: var(--pd-accent); }

/* ============================================
   FORMULARIO DE CONTACTO (dentro de la card)
   ============================================ */
.pd-contact-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pd-text);
    margin: 0 0 16px;
}

.pd-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    color: var(--pd-text);
    font-size: .88rem;
    margin-bottom: 10px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.pd-input::placeholder { color: var(--pd-text-light); }
.pd-input:focus { border-color: var(--pd-accent); }

.pd-textarea { resize: vertical; min-height: 80px; }

.pd-form-error {
    font-size: .8rem;
    color: #d9534f;
    margin-bottom: 10px;
}

.pd-submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--pd-bg-dark);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--pd-radius);
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.pd-submit-btn:hover { background: var(--pd-accent); }
.pd-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Botón WhatsApp (trigger del popup) dentro de la card */
.pd-wa-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    background: #25D366;
    color: #fff;
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--pd-radius);
    cursor: pointer;
    margin-top: 10px;
    transition: background .2s;
}
.pd-wa-trigger-btn:hover { background: #128C7E; }

.pd-form-success {
    text-align: center;
    padding: 20px 0;
    color: var(--pd-text);
}
.pd-form-success svg { color: var(--pd-accent); display: block; margin: 0 auto 12px; }
.pd-form-success h4 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; color: var(--pd-text); }
.pd-form-success p  { font-size: .85rem; color: var(--pd-text-light); margin: 0; }

/* intl-tel-input dentro de la card clara */
.pd-contact-card .iti { width: 100%; display: block; }
.pd-contact-card .iti__selected-flag { background: transparent; }

/* ============================================
   PROYECTOS SIMILARES
   ============================================ */
.pd-similar-section { padding-bottom: 40px; }

.pd-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) { .pd-similar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .pd-similar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .pd-similar-grid { grid-template-columns: 1fr; } }

.pd-similar-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--pd-bg);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    overflow: hidden;
    box-shadow: var(--pd-shadow);
    transition: transform .25s, box-shadow .25s;
}
.pd-similar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    text-decoration: none;
    color: inherit;
}

.pd-similar-card-img {
    height: 160px;
    overflow: hidden;
    background: #eee;
}
.pd-similar-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.pd-similar-card:hover .pd-similar-card-img img { transform: scale(1.04); }

.pd-similar-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e0d0, #c9a961);
}

.pd-similar-card-body { padding: 14px; }
.pd-similar-card-name  { font-family: 'Playfair Display', Georgia, serif; font-size: .95rem; font-weight: 700; color: var(--pd-text); margin: 0 0 3px; }
.pd-similar-card-title { font-size: .8rem; color: var(--pd-text-light); margin: 0 0 6px; }
.pd-similar-card-price { font-size: .85rem; font-weight: 600; color: var(--pd-accent); margin: 0 0 6px; }

.pd-similar-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.pd-similar-cats .pd-cat { font-size: .65rem; padding: 2px 8px; }

/* ============================================
   WHATSAPP POPUP — luxury overlay
   ============================================ */
.pd-wa-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-wa-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,10,.85);
    backdrop-filter: blur(4px);
}

.pd-wa-popup__content {
    position: relative;
    background: #fff;
    border-radius: var(--pd-radius);
    padding: 48px 40px 40px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    animation: pd-popup-in .3s ease-out;
}

@keyframes pd-popup-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pd-wa-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: var(--pd-text-light);
    cursor: pointer;
    transition: color .2s;
    padding: 0;
}
.pd-wa-popup__close:hover { color: var(--pd-text); }

.pd-wa-popup__content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pd-text);
    margin: 0 0 8px;
}

.pd-wa-popup__intro {
    font-size: .9rem;
    color: var(--pd-text-light);
    line-height: 1.55;
    margin: 0 0 24px;
}

.pd-wa-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    font-family: inherit;
    font-size: .9rem;
    color: var(--pd-text);
    margin-bottom: 12px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.pd-wa-input::placeholder { color: var(--pd-text-light); }
.pd-wa-input:focus { border-color: #25D366; }

.pd-wa-form-error {
    font-size: .8rem;
    color: #d9534f;
    margin-bottom: 10px;
}

/* submit dentro del popup hereda .pd-submit-btn */

.pd-wa-success {
    text-align: center;
    padding: 8px 0 4px;
}
.pd-wa-success-icon { color: var(--pd-accent); margin-bottom: 12px; }
.pd-wa-success h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pd-text);
    margin: 0 0 8px;
}
.pd-wa-success p { font-size: .88rem; color: var(--pd-text-light); margin: 0 0 20px; }

.pd-wa-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #25D366;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: var(--pd-radius);
    text-decoration: none;
    transition: background .2s;
}
.pd-wa-open-btn:hover { background: #128C7E; color: #fff; text-decoration: none; }

@media (max-width: 480px) {
    .pd-wa-popup__content { padding: 40px 24px 28px; }
    .pd-wa-popup__content h3 { font-size: 1.35rem; }
}
