/**
 * Premium Estate Plugin - Base Styles
 * 
 * Minimal fallback styles for plugin templates
 * These styles work with any WordPress theme
 * 
 * @package Premium_Estate
 * @version 1.0.0
 */

/* ===================================
   RESET & BASE
   =================================== */
.premium-estate-archive,
.premium-estate-single {
    max-width: 100%; /* NOTE: Inherit theme content width */
    margin: 0;
    padding: 40px 20px;
}

/* ===================================
   PROPERTIES GRID
   =================================== */
.premium-estate-properties-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.premium-estate-properties-grid.columns-1 {
    grid-template-columns: 1fr;
}

.premium-estate-properties-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.premium-estate-properties-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.premium-estate-properties-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .premium-estate-properties-grid.columns-3,
    .premium-estate-properties-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .premium-estate-properties-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   PROPERTY CARD
   =================================== */
.property-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.property-card .property-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-card .property-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-thumbnail img {
    transform: scale(1.05);
}

.property-card .property-content {
    padding: 20px;
}

.property-card h2,
.property-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.property-card a {
    color: inherit;
    text-decoration: none;
}

.property-card a:hover {
    color: #2563eb;
}

/* ===================================
   AGENTS GRID
   =================================== */
.premium-estate-agents-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .premium-estate-agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .premium-estate-agents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   AGENT CARD
   =================================== */
.agent-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===================================
   CAROUSEL
   =================================== */
.premium-estate-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 30px 0;
}

.premium-estate-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.premium-estate-carousel::-webkit-scrollbar {
    display: none;
}

.premium-estate-carousel .carousel-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #f3f4f6;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* ===================================
   SEARCH FORM
   =================================== */
.premium-estate-search-form {
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.premium-estate-widget-search {
    padding: 0;
}

/* ===================================
   WIDGETS
   =================================== */
.premium-estate-widget-properties .widget-property-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.premium-estate-widget-properties .widget-property-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ===================================
   SINGLE PROPERTY
   =================================== */
.property-single .entry-header {
    margin-bottom: 30px;
}

.property-single .property-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.property-single .property-price-box {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.property-single .property-key-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 8px;
}

.property-single .entry-content {
    margin-bottom: 30px;
}

.property-single .property-features,
.property-single .property-amenities {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 8px;
}

.property-single .property-features ul,
.property-single .property-amenities ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===================================
   SINGLE AGENT
   =================================== */
.agent-single .agent-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .agent-single .agent-profile {
        grid-template-columns: 1fr;
    }
}

.agent-single .agent-info {
    background: #f9fafb;
    padding: 25px;
    border-radius: 8px;
}

.agent-single .agent-properties {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    margin: 40px 0 0 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: #f3f4f6;
    border-radius: 4px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #2563eb;
    color: white;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .premium-estate-archive,
    .premium-estate-single {
        padding: 20px 15px;
    }
    
    .property-single .property-key-details {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .property-card .property-content {
        padding: 15px;
    }
}

/* ===================================
   UTILITIES
   =================================== */
.no-properties-found,
.no-agents-found,
.no-featured-properties {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
    margin: 30px 0;
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .premium-estate-carousel-wrapper,
    .premium-estate-search-form,
    .carousel-prev,
    .carousel-next {
        display: none;
    }
}
