/*
 * ===================================================================
 * Styles for API-Driven Hotel Booking Grid
 * ===================================================================
 */

/* --- 1. Main Grid Layout --- */
#product-container .grid {
    display: grid;
    gap: 2rem;
    /* This starts as a single column on mobile */
    grid-template-columns: 1fr;
}

/* --- 2. The Product Card --- */
.product-card-link {
    background-color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* FIX: Corrected typo from D15px to 15px */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* --- 3. Image Styles --- */
.product-image-wrapper {
    overflow: hidden;
    height: 250px;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card-link:hover .product-image {
    transform: scale(1.05);
}

/* --- 4. Content Area --- */
.product-info {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* --- 5. Typography --- */
.product-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.25rem; /* Slightly smaller for balance */
    font-weight: 600;  /* Bold but not overly so */
    /* FIX: Changed color from blue to dark gray to match image */
    color: #1a202c;
    margin: 0;
}

.product-price {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2f855a; /* This green color is correct */
    margin: 0;
}

.product-price .woocommerce-Price-amount {
    color: inherit !important;
}

/* --- 6. "Book Now" Button --- */
.book-now-button {
    background-color: #2d6a69; /* This dark teal is correct */
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
    display: inline-block;
    border: none;
    width: auto;
}

.book-now-button:hover {
    background-color: #214f4e; /* Darker shade for hover */
}

/* --- 7. Responsive Breakpoints --- */
/* These rules create the multi-column layout on larger screens */
@media (min-width: 640px) {
    #product-container .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    #product-container .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
    #product-container .grid { grid-template-columns: repeat(3, 1fr); }
}

#product-details-container {
    padding:12px 0 16px 16px
}