/* ─── Add Property Button ───────────────────────────────────────── */
.add-property-btn {
    display: block;
    margin: 2rem auto 0;
    background: linear-gradient(to right, #3ecf8e, #26b07c);
    color: #001d16;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(62, 207, 142, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.add-property-btn:hover {
    background: linear-gradient(to right, #26b07c, #3ecf8e);
    transform: translateY(-3px);
}

/* ─── Add Property Overlay ───────────────────────────────────────── */
#add-property-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 15, 30, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}
#add-property-overlay.hidden {
    display: none;
}

/* ─── Modal Box ───────────────────────────────────────── */
#add-property-overlay .overlay-content {
    background: rgba(0, 43, 91, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.1);
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 217, 255, 0.15);
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
    color: #dff6ff;
    backdrop-filter: blur(12px);
}

/* ─── Close Button ───────────────────────────────────────── */
#add-property-overlay .close-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #00d4ff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}
#add-property-overlay .close-x:hover {
    color: #ffffff;
}

/* ─── Form Grid ───────────────────────────────────────── */
.add-property-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
}
.add-property-form .form-group.full {
    grid-column: 1 / -1;
}

/* ─── Form Labels & Inputs ───────────────────────────────────────── */
.add-property-form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #cbe9ff;
}
.add-property-form input[type="text"],
.add-property-form input[type="number"],
.add-property-form input[type="date"],
.add-property-form input[type="url"],
.add-property-form select,
.add-property-form textarea {
    padding: 0.65rem 0.9rem;
    border: 1px solid #00b4d8;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #001d3d;
    color: #dff6ff;
    box-shadow: 0 0 0 transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}
.add-property-form input:focus,
.add-property-form select:focus,
.add-property-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}
.add-property-form input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
    margin-top: 0.25rem;
}

/* ─── Sticky Footer Buttons ───────────────────────────────────────── */
.add-property-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    position: sticky;
    bottom: 10px;
    background: rgba(0, 43, 91, 0.4);
    padding-top: 1rem;
    border-top: 1px solid #0077b6;
}

/* ─── Action Buttons ───────────────────────────────────────── */
.apply-btn, .clear-btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Apply Button */
.apply-btn {
    background: linear-gradient(to right, #3ecf8e, #26b07c);
    color: #001d16;
    box-shadow: 0 0 10px rgba(62, 207, 142, 0.3);
}
.apply-btn:hover {
    background: linear-gradient(to right, #26b07c, #3ecf8e);
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(62, 207, 142, 0.5);
}

/* Clear Button */
.clear-btn {
    background: linear-gradient(to right, #ff5e5e, #ff3b3b);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 94, 94, 0.3);
}
.clear-btn:hover {
    background: linear-gradient(to right, #ff3b3b, #ff5e5e);
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(255, 94, 94, 0.5);
}

/* ─── Media Upload Area ───────────────────────────────────────── */
.media-dropzone {
    border: 2px dashed #00d4ff;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    background-color: rgba(0, 43, 91, 0.2);
    position: relative;
    margin-top: 1rem;
}

/* Dropzone Hint */
.drop-hint {
    font-size: 0.85rem;
    color: #a6e1fa;
    margin-top: 0.5rem;
}

/* ─── "+" Add Image Button ───────────────────────────────────────── */
#upload-trigger.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #3ecf8e, #26b07c);
    color: #001d16;
    border: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(62, 207, 142, 0.4);
    transition: background 0.3s ease, transform 0.2s ease;
}
#upload-trigger.upload-btn:hover {
    background: linear-gradient(to right, #26b07c, #3ecf8e);
    transform: translateY(-2px);
}

/* ─── Multi-Image Preview Grid ───────────────────────────────────────── */
.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 1rem;
}
.image-preview {
    position: relative;
    width: 120px;
    height: 90px;
    border: 1px solid #00d4ff;
    border-radius: 6px;
    overflow: hidden;
    background: #001d3d;
}
.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Red Minus "Remove" Button ───────────────────────────────────────── */
.remove-image-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}
/* ─── property type Button ───────────────────────────────────────── */
.property-type-tabs {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .property-type-tabs button {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #28a745;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
  }

  .property-type-tabs button:hover {
    background-color: #28a745;     /* Green background on hover */
    color: white;
  }
  
  .property-type-tabs button.active {
    background-color: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border-color: #1a73e8;
    font-weight: bold;
    box-shadow: 0 0 0 2px #1a1a1a inset; /* ⬅ gives a strong visual edge */
  }
  

/* ─── Custom Fields: Mia & Pet Type ───────────────────────── */
#mía-description-group,
#pet-type-group {
    grid-column: 1 / -1;
}
#mía-description-group textarea,
#pet-type-group input {
    resize: vertical;
}

/* ─── Responsive Layout ───────────────────────────────────────── */
@media (max-width: 600px) {
    .add-property-form {
        grid-template-columns: 1fr;
    }
}
