/* IWK-Plugins: light display cards and itinerary buttons.
   Generated from the child theme style.css by tools/build-plugin.py. */

.markerpopup {
    width: 175px;
}

/* Main Grid Layout - Responsive */
.lights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

/* Card Styling */
.light-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100% !important;
    margin: 0 !important;
}

.light-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Thumbnail (80x80) */
.light-thumb-link {
    display: block;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin: 20px 0 0 20px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f4f4f4;
}

.light-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content & Typography */
.light-card-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.light-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.light-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

.light-btn {
    text-align: center;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Filter Spacing */
.light-filter-area {
    margin-bottom: 30px;
}

/* Mobile Tweak */
@media (max-width: 480px) {
    .light-card {
        flex-direction: column;
    }

    .light-thumb-link {
        margin: 20px auto 0 auto;
        width: 100px;
        height: 100px;
    }
}

/* === STANDARD ITINERARY BUTTON === */
.iwk-itinerary-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #333;
    transition: all 0.2s ease;
    user-select: none;
    line-height: normal;
}

.iwk-itinerary-btn:hover {
    background: #e0e0e0;
}

.iwk-itinerary-btn.added {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

.iwk-itinerary-btn.processing {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

/* === CIRCLE ADD BUTTON (SHARED) === */
.iwk-circle-btn,
.floating-add-btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 0;
    transition: transform 0.2s, background 0.2s;
}

.iwk-circle-btn:hover,
.floating-add-btn:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

.iwk-circle-btn .dashicons,
.floating-add-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    /* Reset margin from gap or legacy */
}

/* Added Status */
.iwk-circle-btn.added,
.floating-add-btn.added {
    background: #2e7d32;
    /* Green */
    border-color: #2e7d32;
}

.iwk-circle-btn.added .dashicons:before,
.floating-add-btn.added .dashicons:before {
    content: "\f147";
    /* dashicons-yes */
}