/*
 * Style-ok a TZSVTAV Simple Rental plugin-hoz.
 */

/* Általános galéria és elemek stílusa */
.tzsvtav-rental-gallery {
    font-family: Arial, sans-serif;
    max-width: 600px; /* Szélesség csökkentve, hogy a galéria kisebb legyen */
    margin: 0 auto;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tzsvtav-gallery-title {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tzsvtav-gallery-intro {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.tzsvtav-rental-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.rental-item {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    background: white;
    text-align: center; /* Hozzáadva: Középre igazítja a szöveget */
}

.rental-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.rental-item-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.rental-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rental-item-title {
    font-size: 1.6em;
    color: #0073aa;
    padding: 15px;
    margin: 0;
    font-weight: bold;
}

.rental-item-description,
.rental-item-price {
    padding: 0 15px;
    color: #555;
    line-height: 1.5;
}

.rental-item-description {
    flex-grow: 1;
    font-size: 1em;
}

.rental-item-price {
    font-weight: bold;
    color: #2a2a2a;
    padding: 15px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
    text-align: center; /* Hozzáadva: Középre igazítja az árat */
}

.rental-item-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.rental-item-button:hover {
    background-color: #005f7c;
}

/* Modális ablak (felugró) stílusa */
.tzsvtav-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.tzsvtav-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 650px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation-name: animatetop;
    animation-duration: 0.5s;
}

/* Animáció a modális ablakhoz */
@keyframes animatetop {
    from { top: -300px; opacity: 0 }
    to { top: 0; opacity: 1 }
}

.tzsvtav-close-button {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: color 0.2s ease;
}

.tzsvtav-close-button:hover,
.tzsvtav-close-button:focus {
    color: #333;
    text-decoration: none;
}

/* Form stílusok a modális ablakban */
.modal-form-container form {
    display: flex;
    flex-direction: column;
}

.modal-form-container label {
    margin-top: 20px;
    font-weight: bold;
    color: #444;
    font-size: 1em;
}

.modal-form-container input[type="text"],
.modal-form-container input[type="email"],
.modal-form-container input[type="tel"],
.modal-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
}

.modal-form-container textarea {
    resize: vertical;
}

.tzsvtav-submit-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 25px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 25px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.tzsvtav-submit-button:hover {
    background-color: #218838;
}

.tzsvtav-disclaimer {
    font-size: 0.9em;
    color: #777;
    text-align: center;
    margin-top: 20px;
}

#terms-container {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

#terms-container h3 {
    margin-top: 0;
    color: #555;
    font-size: 1.2em;
}

#rental-terms-content {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
}
