/**
 * Carte Hôtes Alsace - Styles
 * Version: 1.0.0
 */

/* Container for all host cards */
.carte-hotes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Individual host card */
.hote-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Card image */
.hote-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.hote-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card content */
.hote-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hote-card-title {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
}

.hote-card-description {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.hote-card-description p {
    margin: 0 0 10px 0;
}

/* Card details */
.hote-card-details {
    margin-bottom: 15px;
}

.hote-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95em;
}

.hote-detail:last-child {
    margin-bottom: 0;
}

.hote-detail .dashicons {
    margin-right: 8px;
    margin-top: 2px;
    color: #0073aa;
    flex-shrink: 0;
}

.hote-detail a {
    color: #0073aa;
    text-decoration: none;
}

.hote-detail a:hover {
    text-decoration: underline;
}

/* Card footer */
.hote-card-footer {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.hote-card-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.hote-card-link:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .carte-hotes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hote-card-title {
        font-size: 1.3em;
    }
}

/* Single host page */
.single-hote .hote-featured-image {
    margin: 20px 0;
    max-width: 100%;
}

.single-hote .hote-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-hote .hote-meta-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.single-hote .hote-meta-info h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.single-hote .hote-hebergement-info {
    background: #f5f7fb;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.single-hote .hote-hebergement-info h2 {
    margin: 0 0 15px;
    color: #333;
}

.single-hote .hote-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-hote .hote-hebergement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-hote .hote-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #555;
}

.single-hote .hote-hebergement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #444;
}

.single-hote .hote-contact-item:last-child {
    margin-bottom: 0;
}

.single-hote .hote-hebergement-item:last-child {
    margin-bottom: 0;
}

.single-hote .hote-contact-item .dashicons {
    margin-right: 10px;
    margin-top: 2px;
    color: #0073aa;
    flex-shrink: 0;
}

.single-hote .hote-hebergement-item .dashicons {
    margin-right: 10px;
    margin-top: 2px;
    color: #2c3e50;
    flex-shrink: 0;
}

.single-hote .hote-contact-item a {
    color: #0073aa;
    text-decoration: none;
}

.single-hote .hote-contact-item a:hover {
    text-decoration: underline;
}

.single-hote .hote-hebergement-meta {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    font-size: 0.95em;
    color: #555;
}

.single-hote .hote-hebergement-meta span {
    display: inline-block;
    background: #e8eef7;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Admin styles */
.post-type-hote .wp-list-table .column-thumbnail {
    width: 80px;
}

.post-type-hote .wp-list-table .column-thumbnail img {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
}
