/* ===== PROPERTY SINGLE PAGE ===== */
.property-single {
    padding: 40px 0;
}

.property-header {
    margin-bottom: 40px;
}

.property-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.property-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.property-breadcrumb a:hover {
    text-decoration: underline;
}

.property-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.property-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.property-main {
    width: 100%;
}

.property-sidebar {
    width: 100%;
}

/* ===== PROPERTY GALLERY ===== */
.property-gallery {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    box-sizing: border-box;
}

.gallery-main {
    width: 100%;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    position: relative;
    box-sizing: border-box;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--light-grey-bg) transparent;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--light-grey-bg);
    border-radius: 2px;
}

.gallery-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    max-width: 80px;
    box-sizing: border-box;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
}

.gallery-thumb:hover {
    border-color: var(--accent-yellow);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.property-image-single {
    width: 100%;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-sizing: border-box;
}

.property-image-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== PROPERTY CARDS ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.property-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-black);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    z-index: 2;
}

.badge-rent {
    background: var(--success-green);
}

.badge-sale {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.badge-featured {
    background: var(--primary-gradient);
}

.property-content {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.property-location {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-grey-bg);
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-purple);
}

.property-agent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-name {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== FEATURED PROPERTIES SECTION ===== */
.featured-properties-section {
    margin-top: 40px;
    position: relative;
    z-index: 5;
}

.featured-properties-section .properties-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.featured-properties-section .property-card {
    box-shadow: 0 5px 15px var(--shadow-black);
}

.featured-properties-section .property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* New featured full-image cards */
.featured-card {
    position: relative;
    overflow: hidden;
    height: 320px;
    padding: 0;
}

.featured-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.featured-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.featured-card:hover .featured-card-image {
    transform: scale(1.06);
}

.featured-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 66%; /* bottom third */
    background: linear-gradient( to top, rgba(0,0,0,.55), rgba(0,0,0,0) );
    color: #fff;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity .25s ease;
    padding: 16px;
}

.featured-card:hover .featured-card-overlay {
    opacity: 1;
}

/* Mobile: always show featured details with subtle blur in bottom third */
@media (max-width: 480px) {
  .featured-card-overlay {
    opacity: 1;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.25));
  }
}

.featured-card-meta {
    width: 100%;
}

.featured-price {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 6px;
}

.featured-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.featured-location {
    font-size: 12px;
    opacity: .9;
}

.featured-properties-section .property-badge {
    display: none;
}

/* old compact content removed for full-image style */

.featured-properties-section .property-title {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.featured-properties-section .property-location {
    font-size: 12px;
    margin-bottom: 8px;
    gap: 3px;
}

.featured-properties-section .property-location svg {
    width: 12px;
    height: 12px;
}

.featured-properties-section .property-features {
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.featured-properties-section .feature {
    font-size: 11px;
    gap: 3px;
}

.featured-properties-section .feature svg {
    width: 12px;
    height: 12px;
}

.featured-properties-section .property-footer {
    gap: 8px;
}

.featured-properties-section .property-price {
    font-size: 16px;
}

.featured-properties-section .property-agent {
    gap: 4px;
}

.featured-properties-section .agent-avatar {
    width: 24px;
    height: 24px;
}

.featured-properties-section .agent-name {
    font-size: 11px;
}

/* ===== RECENT PROPERTIES SECTION ===== */
.recent-properties-section {
    padding: 60px 0;
    background: var(--light-grey-bg);
}

.recent-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.recent-property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.recent-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.recent-property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

/* Creative property-type badge */
.property-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.property-type-badge svg {
    width: 14px;
    height: 14px;
}

.badge-sale {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.badge-rent {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.recent-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recent-property-card:hover .recent-property-image img {
    transform: scale(1.08);
}

.recent-property-overlay {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 0 15px 0 15px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(125, 48, 255, 0.3);
}

.recent-property-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recent-property-header {
    margin-bottom: 15px;
}

.recent-property-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.recent-property-title a {
    color: var(--primary-purple);
    text-decoration: none;
}

.recent-property-title a:hover {
    color: #2e8b57; /* slightly darker than --primary-purple for hover */
    text-decoration: underline;
}

.recent-property-location {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-property-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

/* Category badge under the title/location */
.property-category-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 12px 16px 16px 12px; /* asymmetrical for a unique chip shape */
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    background: var(--primary-gradient); /* theme gradient */
    box-shadow: none;
}

.property-category-badge::after { content: none; }

.property-category-badge svg {
    width: 14px;
    height: 14px;
}

/* Category-specific themes */
/* Category-specific classes no longer change background; keep for semantic hooks if needed */
.badge-cat-house,
.badge-cat-villa,
.badge-cat-apartment,
.badge-cat-land,
.badge-cat-commercial { }

.recent-property-header .property-category-badge { margin: 0; }

.recent-property-features {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.recent-feature {
    background: var(--light-grey-bg);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--light-grey-border);
}

.recent-property-footer {
    margin-top: auto;
    display: none; /* removed separation and footer area */
}

.recent-property-agent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-purple);
}

.recent-agent-name {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.recent-property-status {
    background: var(--success-green);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
} 

/* Mobile tweaks for home cards */
@media (max-width: 480px) {
  .recent-properties-grid { grid-template-columns: 1fr; }
  .recent-property-image { height: 180px; }
  .property-type-badge { top: 8px; left: 8px; padding: 5px 8px; font-size: 10px; }
  .recent-property-overlay { padding: 10px 12px; font-size: 13px; }
  .recent-property-title { font-size: 15px; }
  .recent-feature { font-size: 10px; padding: 5px 10px; }
  .property-category-badge { padding: 5px 10px; font-size: 11px; }
  .property-category-badge::after { content: none; }
}