/* ============================================
   PROPERTY & STAY ECOSYSTEM — SHARED STYLES
   Extends main.css design tokens
   ============================================ */

/* --- Property Type Color Palette --- */
:root {
    --prop-sale:       #1e40af;
    --prop-sale-light: #3b82f6;
    --prop-longterm:   #92400e;
    --prop-longterm-light: #d97706;
    --prop-shortterm:  #b91c1c;
    --prop-shortterm-light: #ef4444;
    --prop-hotel:      #065f46;
    --prop-hotel-light: #10b981;
    --prop-featured:   #7c3aed;
    --prop-featured-light: #a78bfa;
}

/* --- Property Hub Hero --- */
.prop-hero {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #fff;
    border-radius: 16px;
    margin-bottom: 2.5rem;
}
.prop-hero h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}
.prop-hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 1.5rem;
}
.prop-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.prop-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}
@media (max-width: 768px) {
    .prop-hero { padding: 2rem 1rem; }
    .prop-hero h2 { font-size: 1.4rem; }
}

/* --- Property Category Grid (Hub Pages) --- */
.prop-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.prop-cat-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.prop-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    text-decoration: none;
}
.prop-cat-icon {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}
.prop-cat-body {
    padding: 1.5rem;
    flex: 1;
}
.prop-cat-body h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.prop-cat-body p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.prop-cat-cta {
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.prop-cat-card:hover .prop-cat-cta i {
    transform: translateX(3px);
}
.prop-cat-cta i {
    transition: transform 0.2s;
}
@media (max-width: 768px) {
    .prop-cat-grid { grid-template-columns: 1fr; }
}

/* --- Property Listing Cards (Data-Driven) --- */
.prop-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.prop-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.prop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.prop-card.hidden { display: none; }

.prop-card-hdr {
    padding: 1.25rem 1.5rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
.prop-card-hdr h3 {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}
.prop-card-hdr h3 a {
    color: inherit;
    text-decoration: none;
}
.prop-card-hdr h3 a:hover {
    text-decoration: underline;
}
.prop-card-price {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}
.prop-card-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}
.prop-card-rating i {
    color: #fbbf24;
    font-size: 0.75rem;
}

.prop-card-body {
    padding: 1.25rem 1.5rem;
}
.prop-card-address {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.prop-card-address i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.prop-card-tagline {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.prop-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}
.prop-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #475569;
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}
.prop-stat i {
    font-size: 0.7rem;
}
.prop-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
.prop-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
}
.prop-badge.verified {
    background: #ecfdf5;
    color: #065f46;
}
.prop-badge.featured {
    background: #f5f3ff;
    color: #7c3aed;
}
.prop-badge.tour-3d {
    background: #eff6ff;
    color: #1e40af;
}
.prop-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.prop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.prop-link:hover {
    opacity: 0.85;
    text-decoration: none;
}
.prop-link.primary   { background: #1e40af; color: #fff; }
.prop-link.secondary { background: #f1f5f9; color: #475569; }
.prop-link.call      { background: #ecfdf5; color: #065f46; }
.prop-link.details   { background: #7c3aed; color: #fff; }
.prop-link.tour      { background: #1e40af; color: #fff; }
.prop-link.book      { background: #b91c1c; color: #fff; }

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

/* --- Search & Filter Bar --- */
.prop-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}
.prop-search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.prop-search-input i.si {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}
.prop-search-input input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    background: #fff;
    color: #1e293b;
    box-sizing: border-box;
}
.prop-search-input input:focus {
    outline: none;
    border-color: var(--pine);
}
.prop-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.prop-filter-btn {
    padding: 0.6rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.prop-filter-btn:hover {
    border-color: var(--pine);
    color: var(--pine);
}
.prop-filter-btn.active {
    background: var(--pine);
    color: #fff;
    border-color: var(--pine);
}
.prop-sort-select {
    padding: 0.6rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.prop-results-count {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}
.prop-results-count strong {
    color: #1e293b;
}

/* --- Property Detail Page --- */
.prop-detail-hero {
    color: #fff;
    padding: 2.5rem 0;
}
.prop-detail-hero .breadcrumb a {
    color: rgba(255,255,255,0.7);
}
.prop-detail-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}
.prop-detail-hero .prop-subtitle {
    opacity: 0.9;
    font-size: 0.95rem;
}
.prop-detail-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-right: 0.4rem;
}
.prop-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
    .prop-detail-grid { grid-template-columns: 1fr; }
}
.prop-detail-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}
.prop-detail-card h2 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}
.prop-detail-card h2 i {
    margin-right: 0.4rem;
}
.prop-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    color: #475569;
}
.prop-info-row i {
    margin-top: 0.15rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.prop-info-row a {
    font-weight: 600;
    text-decoration: none;
}
.prop-info-row a:hover {
    text-decoration: underline;
}
.prop-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.prop-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.prop-score {
    font-weight: 800;
    font-size: 1.3rem;
    color: #1e293b;
}
.prop-review-count {
    font-size: 0.85rem;
    color: #94a3b8;
}
.prop-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.prop-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.prop-detail-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    text-decoration: none;
}
.prop-detail-btn.website  { background: #1e40af; color: #fff; }
.prop-detail-btn.map      { background: #1e40af; color: #fff; }
.prop-detail-btn.call     { background: #d97706; color: #fff; }
.prop-detail-btn.tour     { background: #7c3aed; color: #fff; }
.prop-detail-btn.book     { background: #b91c1c; color: #fff; }
.prop-detail-btn.back     { background: #f1f5f9; color: #475569; }

/* Feature tags in detail view */
.prop-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.prop-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #475569;
    background: #f1f5f9;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}
.prop-feature-tag i {
    font-size: 0.7rem;
}

/* Gallery placeholder */
.prop-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.prop-gallery-placeholder {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* 3D Tour embed */
.prop-tour-embed {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.prop-tour-embed iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Map embed */
.prop-map-frame {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 10px;
}

/* Agent / Contact Card */
.prop-agent-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}
.prop-agent-card h3 {
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.prop-agent-card .agent-detail {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.prop-agent-card .agent-detail i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* No results state */
.prop-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    display: none;
}
.prop-no-results i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}
.prop-data-note {
    text-align: center;
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

/* --- Partner / List Your Property Page --- */
.partner-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.benefit-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.25s;
}
.benefit-card:hover {
    transform: translateY(-3px);
}
.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.benefit-card h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.benefit-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}

.partner-form {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 720px;
}
.partner-form .form-group {
    margin-bottom: 1.25rem;
}
.partner-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--pine, #1a3a2a);
    font-size: 0.9rem;
}
.partner-form input,
.partner-form select,
.partner-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.partner-form input:focus,
.partner-form select:focus,
.partner-form textarea:focus {
    outline: none;
    border-color: var(--pine, #1a3a2a);
}
.partner-form textarea {
    min-height: 120px;
    resize: vertical;
}
.partner-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (max-width: 600px) {
    .partner-form .form-row { grid-template-columns: 1fr; }
}
.partner-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    background: var(--pine, #1a3a2a);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.partner-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* --- Stat Snapshot for Hubs --- */
.prop-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.prop-stat-item {
    text-align: center;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.prop-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pine, #1a3a2a);
}
.prop-stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* --- Cross-links (see also) --- */
.prop-crosslinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}
.prop-crosslink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.prop-crosslink:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #fff;
}
