/* Modern Apartment Listing Styles */

:root {
    --primary-color: #b58e3e;
    /* Gold/Luxury accent from logo/theme */
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Section Background */
#apartments {
    background-color: var(--bg-light);
}

/* Grid Layout */
.apartments-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Card Container */
.apartment-card-wrapper {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* Card Design */
.apt-card {
    background: #fff;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.apt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

/* Image Area */
.apt-img-container {
    position: relative;
    padding-top: 66.67%;
    /* 3:2 Aspect Ratio */
    overflow: hidden;
}

.apt-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apt-card:hover .apt-img {
    transform: scale(1.05);
}

/* Status Badge */
.apt-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.status-active {
    background-color: #28a745;
    color: white;
}

.status-booked {
    background-color: #6c757d;
    color: white;
}

/* Card Content */
.apt-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.apt-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.apt-price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
}

.apt-price span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 5px;
}

/* Features/Amenities */
.apt-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.apt-feature {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.apt-feature i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Action Buttons */
.apt-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-apt {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-apt-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-apt-primary:hover {
    background-color: #9a7832;
    color: white;
    text-decoration: none;
}

.btn-apt-outline {
    background-color: transparent;
    border-color: #e9ecef;
    color: var(--text-dark);
}

.btn-apt-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    background-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .apt-content {
        padding: 20px;
    }

    .apt-title {
        font-size: 1.1rem;
    }

    .apt-price {
        font-size: 1.3rem;
    }
}

/* --- New Slick Slider Styles --- */

.apt-image-slider-wrapper {
    /* Reset the previous explicit height/overflow styles */
    overflow: visible;
    box-shadow: none;
    background: transparent;
}

.slider-for {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
    /* Placeholder color before load */
    min-height: 400px;
    /* Prevent collapse */
}

/* Ensure no draggable cursor shows up on ANY slider list */
.slick-list.draggable {
    cursor: default !important;
}

.slider-for .slick-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    cursor: default;
    /* Remove pointer/grab cursor from image */
}

.slider-nav {
    margin-left: -5px;
    margin-right: -5px;
}

.slider-nav .slick-slide {
    padding: 0 5px;
    cursor: pointer;
}

.slider-nav .slick-slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    cursor: pointer;
    /* Explicitly set pointer for thumbnails only */
}

.slider-nav .slick-slide:hover img {
    opacity: 1;
}

.slider-nav .slick-current img {
    border-color: var(--primary-color);
    opacity: 1;
}

/* Arrow customization */
.slick-prev:before,
.slick-next:before {
    color: var(--primary-color);
    font-size: 24px;
}



/* Increase the clickable area and the arrow icon */
.slick-prev, 
.slick-next {
    width: 70px !important;    /* Default is usually 20px */
    height: 70px !important;   /* Default is usually 20px */
    z-index: 1;                /* Ensures it stays above the images */
}

/* Increase the actual arrow symbol size */
.slick-prev:before, 
.slick-next:before {
    font-size: 70px !important; /* Adjust this to scale the icon */
    line-height: 1;
    opacity: 1;                /* Optional: makes the arrow solid */
}

/* Adjust position if they overlap the content too much */
.slick-prev {
    left: -60px; 
}
.slick-next {
    right: -60px;
}





.slider-for .slick-prev {
    left: 10px;
    z-index: 10;
}

.slider-for .slick-next {
    right: 10px;
    z-index: 10;
}

/* New Description Styles */
.apt-description-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2px;
    /* For border effect */
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.apt-description-header {
    padding: 12px 20px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.apt-description-header i {
    color: var(--primary-color);
}

.apt-description-content {
    padding: 20px;
}

.apt-description-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 0.95rem;
}