/**
 * SRM Property Manager - Public/Frontend Styles
 * 
 * Styles for the public-facing property listings and forms
 * 
 * @package SRM_Property_Manager
 * @since 2.3.0
 */

/* === GENERAL === */
.srm-wrap {
    max-width: 1100px;
    margin: 20px auto;
    font-family: system-ui, Arial, Helvetica, sans-serif;
}

/* === GRID & CARDS === */
.srm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.srm-card {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.srm-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* === SLIDER === */
.srm-slider {
    display: flex;
    gap: 12px;
    overflow: auto;
    padding: 8px;
}

.srm-slide {
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.srm-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* === BUTTONS === */
.srm-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #004aad;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* === TABLES === */
.srm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.srm-table th,
.srm-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

/* === UPLOAD BUTTON ANIMATION === */
.srm-upload-btn-animated {
    animation: srm-pulse 2s infinite;
    background-color: #006a4e;
}

@keyframes srm-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 106, 78, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 106, 78, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 106, 78, 0);
    }
}

/* === PROPERTY DETAILS & GALLERY === */
.srm-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 16px 0;
}

.srm-amenities span {
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.srm-gallery-wrap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: 8px;
    background: #f0f0f0;
    -webkit-overflow-scrolling: touch;
}

.srm-gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}

.srm-gallery-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.srm-long-desc {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.srm-long-desc h3 {
    margin-bottom: 10px;
}

.srm-long-desc p,
.srm-long-desc li {
    line-height: 1.6;
    font-size: 1.1em;
    color: #333;
}

/* === LOGIN FORM === */
.srm-login-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}

.srm-login-form .login-form-stacked label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.srm-login-form .login-form-stacked input[type='text'],
.srm-login-form .login-form-stacked input[type='password'] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
}

.srm-login-form .login-submit input {
    background: #004aad;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.srm-login-form .login-links {
    margin-top: 15px;
    color: #777;
    font-size: 0.9em;
}

/* === OWNER STATS & TABLES === */
.srm-owner-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.srm-owner-stats .srm-admin-panel {
    padding: 15px;
}

.srm-owner-stats h3 {
    font-size: 1.2em;
    margin-top: 0;
}

.srm-owner-stats .stat-value {
    font-size: 22px;
    font-weight: 700;
}

.srm-owner-payments-toggle {
    margin-top: 10px;
}

.srm-owner-payments-table {
    display: none;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* === PROOF ICONS === */
.srm-proof-link {
    display: inline-block;
    text-decoration: none;
    margin: 0 2px;
}

.srm-proof-link .dashicons {
    font-size: 28px;
    vertical-align: middle;
}

.srm-proof-link .srm-proof-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
    vertical-align: middle;
}

/* === LOADER === */
.srm-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #004aad;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: srm-spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes srm-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === EMPTY MESSAGE === */
.srm-empty-message {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 20px 0;
    color: #555;
}

.srm-empty-message h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
    font-weight: 600;
}

.srm-empty-message p {
    font-size: 1.1em;
    margin-bottom: 0;
}

/* === ADMIN PANEL (shared) === */
.srm-admin-panel {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 12px;
    border-radius: 8px;
}