/**
 * Frontend styles for Qeshm Villages Manager
 */

/* Container */
.qv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Village Page */
.qv-village-page {
    padding: 20px 0;
}

.qv-village-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.qv-village-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.qv-village-coordinates {
    font-size: 1.1em;
    color: #7f8c8d;
}

.qv-coord-label {
    font-weight: bold;
}

.qv-coord-value {
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Map Container */
.qv-map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.qv-village-map {
    margin: 30px 0;
}

/* Village Content */
.qv-village-content {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.qv-village-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.qv-village-description {
    line-height: 1.8;
    color: #34495e;
    font-size: 1.1em;
}

/* Village Meta */
.qv-village-meta {
    margin: 30px 0;
    padding: 15px;
    background: #ecf0f1;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.qv-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qv-meta-label {
    font-weight: bold;
    color: #2c3e50;
}

.qv-meta-value {
    color: #7f8c8d;
}

/* Village Actions */
.qv-village-actions {
    text-align: center;
    margin: 30px 0;
}

.qv-back-link {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.qv-back-link:hover {
    background: #2980b9;
    color: white;
}

/* Villages List Page */
.qv-villages-page {
    padding: 20px 0;
}

.qv-villages-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.qv-villages-title {
    font-size: 2.8em;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.qv-villages-description {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
}

.qv-villages-map {
    margin: 40px 0;
}

.qv-villages-list {
    margin: 40px 0;
}

.qv-villages-list h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2em;
}

/* Villages Grid */
.qv-villages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.qv-village-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.qv-village-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.qv-village-card-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.qv-village-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qv-village-card-title a:hover {
    color: #3498db;
}

.qv-village-card-coords {
    font-family: monospace;
    font-size: 0.9em;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 5px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
    display: inline-block;
}

.qv-village-card-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.qv-village-card-actions {
    text-align: center;
}

.qv-village-link {
    display: inline-block;
    padding: 8px 16px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.qv-village-link:hover {
    background: #229954;
    color: white;
}

/* Shortcode Styles */
.qv-shortcode-map {
    margin: 20px 0;
}

.qv-shortcode-villages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.qv-shortcode-village {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.qv-shortcode-village h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.qv-shortcode-village h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.qv-shortcode-village h3 a:hover {
    color: #3498db;
}

.qv-coords {
    font-family: monospace;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.qv-description {
    color: #5a6c7d;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qv-container {
        padding: 0 15px;
    }
    
    .qv-village-title {
        font-size: 2em;
    }
    
    .qv-villages-title {
        font-size: 2.2em;
    }
    
    .qv-villages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qv-shortcode-villages {
        grid-template-columns: 1fr;
    }
    
    .qv-village-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .qv-map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .qv-village-title {
        font-size: 1.8em;
    }
    
    .qv-villages-title {
        font-size: 2em;
    }
    
    .qv-village-card {
        padding: 15px;
    }
    
    .qv-village-content {
        padding: 15px;
    }
}

/* RTL Support */
.rtl .qv-village-actions {
    text-align: center;
}

.rtl .qv-village-card-actions {
    text-align: center;
}

/* Loading States */
.qv-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.qv-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: qv-spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes qv-spin {
    to { transform: rotate(360deg); }
}

/* Error States */
.qv-error {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

/* Success States */
.qv-success {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

/* Qeshm Map Shortcode Styles */
.qv-qeshm-map-container {
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.qv-map-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.qv-map-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: bold;
}

.qv-map-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9em;
}

.qv-villages-legend {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.qv-villages-legend h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
    text-align: center;
}

.qv-villages-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.qv-village-mini {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 8px;
    border-left: 3px solid #3498db;
    transition: all 0.3s ease;
}

.qv-village-mini:hover {
    background: #e3f2fd;
    transform: translateX(3px);
}

.qv-village-link-mini {
    text-decoration: none;
    color: inherit;
    display: block;
}

.qv-village-name-mini {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9em;
    margin-bottom: 3px;
}

.qv-village-coords-mini {
    display: block;
    font-family: monospace;
    font-size: 0.8em;
    color: #7f8c8d;
}

/* Map Info Windows */
.qv-info-window {
    max-width: 300px;
    direction: rtl;
    text-align: right;
}

.qv-info-window h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.qv-info-window h3 a {
    color: #3498db;
    text-decoration: none;
}

.qv-info-window h3 a:hover {
    color: #2980b9;
}

.qv-info-window p {
    margin: 0 0 10px 0;
    color: #5a6c7d;
    line-height: 1.5;
    font-size: 0.9em;
}

.qv-coords-info {
    font-family: monospace;
    font-size: 0.8em;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 5px 8px;
    border-radius: 3px;
    margin-top: 8px;
}

/* Leaflet Popup Styles */
.qv-popup {
    max-width: 300px;
    direction: rtl;
    text-align: right;
}

.qv-popup h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.qv-popup h3 a {
    color: #3498db;
    text-decoration: none;
}

.qv-popup h3 a:hover {
    color: #2980b9;
}

.qv-popup p {
    margin: 0 0 10px 0;
    color: #5a6c7d;
    line-height: 1.5;
    font-size: 0.9em;
}

/* Custom Marker Styles */
.qv-custom-marker {
    background: none;
    border: none;
}

.qv-marker-icon {
    line-height: 0;
}

.qv-marker-icon svg {
    fill: #079b9f;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Map Container Enhancements */
.qv-map-container {
    position: relative;
}

.qv-map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qv-map-container:hover::before {
    opacity: 1;
}

/* Responsive Qeshm Map */
@media (max-width: 768px) {
    .qv-villages-grid-mini {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
        max-height: 250px;
    }
    
    .qv-village-mini {
        padding: 6px;
    }
    
    .qv-village-name-mini {
        font-size: 0.8em;
    }
    
    .qv-village-coords-mini {
        font-size: 0.7em;
    }
    
    .qv-map-header h3 {
        font-size: 1.3em;
    }
    
    .qv-map-header p {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .qv-villages-grid-mini {
        grid-template-columns: 1fr;
        max-height: 200px;
    }
    
    .qv-map-header {
        padding: 15px;
    }
    
    .qv-villages-legend {
        padding: 15px;
    }
}

/* Comprehensive Village Page Styles */
.qv-village-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.qv-village-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.qv-village-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.qv-village-local-name {
    font-size: 1.2em;
    margin: 0 0 15px 0;
    opacity: 0.9;
    font-style: italic;
}

.qv-village-coordinates {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 15px;
}

.qv-coord-label {
    font-weight: bold;
    margin-left: 10px;
}

/* Gallery Styles */
.qv-village-gallery {
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.qv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.qv-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.qv-gallery-item:hover {
    transform: translateY(-5px);
}

.qv-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.qv-gallery-item:hover img {
    transform: scale(1.05);
}

/* Village Sections */
.qv-village-section {
    background: white;
    margin: 30px 0;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
}

.qv-village-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.qv-village-section h3 {
    color: #34495e;
    font-size: 1.3em;
    margin: 25px 0 15px 0;
}

/* Info Grid */
.qv-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.qv-info-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    border-right: 4px solid #3498db;
}

.qv-info-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.qv-info-item span {
    color: #34495e;
    font-size: 1.1em;
}

/* Content Sections */
.qv-content-section {
    margin: 25px 0;
}

.qv-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.8;
    color: #2c3e50;
    border-right: 4px solid #27ae60;
}

/* Council Members Styles */
.qv-council-section {
    background: white;
    margin: 40px 0;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #27ae60;
}

.qv-council-section h2 {
    color: #27ae60;
    font-size: 1.8em;
    margin: 0 0 25px 0;
    text-align: center;
}

.qv-council-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.qv-council-member-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.qv-council-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #27ae60;
}

.qv-member-image {
    margin-bottom: 20px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.qv-member-image img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #27ae60;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.qv-member-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #bdc3c7;
}

.qv-member-placeholder .dashicons {
    font-size: 40px;
    color: #7f8c8d;
}

.qv-member-name {
    color: #2c3e50;
    font-size: 1.3em;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.qv-member-position {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 0 8px 0;
}

.qv-member-gender,
.qv-member-mobile,
.qv-member-votes {
    color: #7f8c8d;
    margin: 5px 0;
    font-size: 0.9em;
}

.qv-member-mobile .dashicons,
.qv-member-votes .dashicons {
    font-size: 16px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Facilities Display */
.qv-facilities-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.qv-facility-display-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.qv-facility-display-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.qv-facility-display-icon {
    color: #2196f3;
    font-size: 18px;
}

.qv-facility-display-name {
    font-weight: 500;
    color: #333;
}

/* Gallery Caption Styles */
.qv-gallery-caption {
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.qv-gallery-item:hover .qv-gallery-caption {
    transform: translateY(0);
}

.qv-gallery-caption h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.qv-gallery-caption p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

/* Village Cards Styles */
.qv-villages-list {
    margin: 20px 0;
}

.qv-list-map {
    margin-bottom: 30px;
}

.qv-villages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.qv-village-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.qv-village-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.qv-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.qv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.qv-village-card:hover .qv-card-image img {
    transform: scale(1.05);
}

.qv-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.qv-no-image .dashicons {
    font-size: 48px;
}

.qv-card-content {
    padding: 20px;
}

.qv-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.qv-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qv-card-title a:hover {
    color: #3498db;
}

.qv-card-local-name {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0 0 15px 0;
    font-style: italic;
}

.qv-card-info {
    margin-bottom: 15px;
}

.qv-card-info .qv-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.qv-card-info .qv-info-item .dashicons {
    color: #3498db;
    font-size: 16px;
}

.qv-card-council {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.qv-card-council h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}

.qv-council-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qv-council-member-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.qv-member-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.qv-member-avatar-placeholder {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.qv-member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qv-member-name {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.qv-member-position {
    font-size: 11px;
    color: #6c757d;
}

.qv-card-actions {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.qv-card-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.qv-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Village Actions */
.qv-village-actions {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.qv-back-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.qv-back-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive Design for Village Pages */
@media (max-width: 768px) {
    .qv-village-page {
        padding: 15px;
    }
    
    .qv-village-title {
        font-size: 2em;
    }
    
    .qv-village-header {
        padding: 20px;
    }
    
    .qv-village-section,
    .qv-village-gallery,
    .qv-council-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .qv-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .qv-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .qv-council-members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .qv-village-title {
        font-size: 1.5em;
    }
    
    .qv-village-section h2 {
        font-size: 1.4em;
    }
    
    .qv-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .qv-member-image img,
    .qv-member-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .qv-member-placeholder .dashicons {
        font-size: 30px;
    }
}

/* Village Manager Card Styles */
.qv-manager-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    padding: 0;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.qv-manager-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.qv-manager-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.qv-manager-card.qv-no-manager {
    text-align: center;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: none;
}

.qv-no-manager-message {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.qv-no-manager-message p {
    margin-bottom: 25px;
    color: #8b4513;
    font-size: 18px;
    font-weight: 600;
}

.qv-partner-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qv-partner-button:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.qv-partner-button .dashicons {
    font-size: 20px;
}

.qv-manager-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.qv-manager-header h3 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.qv-manager-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.qv-manager-info {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.qv-manager-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.qv-manager-gender {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.qv-manager-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.qv-manager-partner {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qv-manager-partner strong {
    color: #667eea;
    font-weight: 800;
}

.qv-manager-name-gender {
    margin: 15px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qv-manager-contact {
    margin: 20px 0 0 0;
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.qv-contact-tel {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    margin: 0 10px;
    padding: 5px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.qv-contact-tel:hover {
    color: white;
    background: #667eea;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.qv-whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.qv-whatsapp-link:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: white;
    text-decoration: none;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.qv-whatsapp-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive Design for Manager Card */
@media (max-width: 768px) {
    .qv-manager-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .qv-manager-image img,
    .qv-manager-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .qv-manager-header h3 {
        font-size: 20px;
    }
    
    .qv-manager-partner {
        font-size: 16px;
    }
    
    .qv-manager-name-gender {
        font-size: 18px;
    }
    
    .qv-manager-contact {
        font-size: 14px;
    }
    
    .qv-partner-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

.qv-manager-image {
    flex-shrink: 0;
    position: relative;
}

.qv-manager-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.qv-manager-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.qv-manager-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.qv-manager-placeholder .dashicons {
    font-size: 40px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.qv-manager-details {
    flex: 1;
}

.qv-manager-details h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.qv-manager-village {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.qv-manager-contact {
    margin: 0;
    color: #34495e;
    font-size: 14px;
    line-height: 1.5;
}

.qv-manager-contact a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.qv-manager-contact a:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .qv-manager-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .qv-manager-image img,
    .qv-manager-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .qv-manager-placeholder .dashicons {
        font-size: 24px;
    }
}

/* Managers Showcase Styles */
.qv-managers-showcase {
    margin: 30px 0;
}

.qv-managers-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.qv-managers-grid.qv-manager-col-1 {
    grid-template-columns: 1fr;
}

.qv-managers-grid.qv-manager-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.qv-managers-grid.qv-manager-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.qv-managers-grid.qv-manager-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.qv-manager-showcase-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.qv-manager-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.qv-manager-card-image {
    padding: 20px 20px 10px 20px;
}

.qv-manager-card-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3498db;
}

.qv-manager-card-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #3498db;
    margin: 0 auto;
}

.qv-manager-card-placeholder .dashicons {
    font-size: 40px;
    color: #7f8c8d;
}

.qv-manager-card-content {
    padding: 0 20px 20px 20px;
}

.qv-manager-card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.qv-manager-card-content .qv-manager-village {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.qv-manager-card-content .qv-manager-mobile {
    margin: 0;
}

.qv-manager-card-content .qv-manager-mobile a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.qv-manager-card-content .qv-manager-mobile a:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .qv-managers-grid.qv-manager-col-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .qv-managers-grid.qv-manager-col-3,
    .qv-managers-grid.qv-manager-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qv-manager-card-image img,
    .qv-manager-card-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .qv-manager-card-placeholder .dashicons {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .qv-managers-grid.qv-manager-col-2,
    .qv-managers-grid.qv-manager-col-3,
    .qv-managers-grid.qv-manager-col-4 {
        grid-template-columns: 1fr;
    }
}

/* Managers Page Styles */
.qv-managers-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.qv-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.qv-page-header h1 {
    margin: 0;
    color: #2c3e50;
}

.qv-page-actions {
    display: flex;
    gap: 10px;
}

.qv-managers-content {
    margin-top: 30px;
}

.qv-search-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.qv-search-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qv-search-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.qv-search-input button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.qv-search-input button:hover {
    background: #2980b9;
}

.qv-clear-search {
    padding: 10px 15px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.qv-clear-search:hover {
    background: #c0392b;
    color: white;
}

.qv-managers-list .qv-managers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.qv-managers-list .qv-manager-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qv-managers-list .qv-manager-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.qv-managers-list .qv-manager-image {
    padding: 20px;
    text-align: center;
}

.qv-managers-list .qv-manager-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3498db;
}

.qv-managers-list .qv-manager-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #3498db;
    margin: 0 auto;
}

.qv-managers-list .qv-manager-placeholder .dashicons {
    font-size: 40px;
    color: #7f8c8d;
}

.qv-managers-list .qv-manager-info {
    padding: 0 20px 20px 20px;
    text-align: center;
}

.qv-managers-list .qv-manager-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.qv-managers-list .qv-manager-village {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.qv-managers-list .qv-manager-mobile {
    margin: 0 0 15px 0;
}

.qv-managers-list .qv-manager-mobile a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.qv-managers-list .qv-manager-mobile a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.qv-manager-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.qv-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qv-btn-primary {
    background: #3498db;
    color: white;
}

.qv-btn-primary:hover {
    background: #2980b9;
    color: white;
}

.qv-btn-secondary {
    background: #95a5a6;
    color: white;
}

.qv-btn-secondary:hover {
    background: #7f8c8d;
    color: white;
}

.qv-btn-edit {
    background: #f39c12;
    color: white;
}

.qv-btn-edit:hover {
    background: #e67e22;
    color: white;
}

.qv-btn-delete {
    background: #e74c3c;
    color: white;
}

.qv-btn-delete:hover {
    background: #c0392b;
    color: white;
}

.qv-managers-actions {
    text-align: center;
    margin-top: 30px;
}

.qv-no-managers {
    text-align: center;
    color: #7f8c8d;
    font-size: 16px;
    padding: 40px;
}

/* Manager Form Styles */
.qv-manager-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qv-manager-form h2 {
    margin: 0 0 30px 0;
    color: #2c3e50;
    text-align: center;
}

.qv-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.qv-form-group {
    display: flex;
    flex-direction: column;
}

.qv-form-group-full {
    grid-column: 1 / -1;
}

.qv-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.qv-form-group .required {
    color: #e74c3c;
}

.qv-form-description {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

/* Manager Login Page Styles */
.qv-manager-login-page {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}

.qv-login-form-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qv-login-form-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.qv-login-form .qv-form-group {
    margin-bottom: 20px;
}

.qv-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.qv-login-form input[type="text"],
.qv-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.qv-login-form input[type="text"]:focus,
.qv-login-form input[type="password"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.qv-form-actions {
    text-align: center;
    margin-top: 30px;
}

.qv-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qv-btn-primary {
    background: #3498db;
    color: white;
}

.qv-btn-primary:hover {
    background: #2980b9;
    color: white;
}

.qv-btn-secondary {
    background: #95a5a6;
    color: white;
}

.qv-btn-secondary:hover {
    background: #7f8c8d;
    color: white;
}

.qv-btn-edit {
    background: #f39c12;
    color: white;
}

.qv-btn-edit:hover {
    background: #e67e22;
    color: white;
}

.qv-login-links {
    text-align: center;
    margin-top: 20px;
}

.qv-login-links a {
    color: #3498db;
    text-decoration: none;
}

.qv-login-links a:hover {
    text-decoration: underline;
}

/* Notice Styles */
.qv-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid;
}

.qv-notice-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.qv-notice-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.qv-notice-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Manager Dashboard Styles */
.qv-manager-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.qv-dashboard-header {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.qv-dashboard-header h1 {
    margin: 0;
    color: #2c3e50;
}

.qv-manager-info p {
    margin: 5px 0;
    color: #7f8c8d;
}

.qv-dashboard-actions {
    display: flex;
    gap: 10px;
}

.qv-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.qv-dashboard-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.qv-dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.qv-manager-details p,
.qv-village-info p {
    margin: 10px 0;
    color: #34495e;
}

.qv-dashboard-actions p {
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qv-manager-login-page {
        margin: 20px auto;
        padding: 10px;
    }
    
    .qv-login-form-container {
        padding: 20px;
    }
    
    .qv-dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .qv-dashboard-actions {
        margin-top: 15px;
    }
    
    .qv-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.qv-form-group input,
.qv-form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.qv-form-group input:focus,
.qv-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.qv-current-image {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.qv-current-image p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #7f8c8d;
}

.qv-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.qv-notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: 500;
}

.qv-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.qv-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .qv-managers-page {
        padding: 10px;
    }
    
    .qv-search-input {
        flex-direction: column;
    }
    
    .qv-search-input input,
    .qv-search-input button,
    .qv-clear-search {
        width: 100%;
    }
    
    .qv-managers-list .qv-managers-grid {
        grid-template-columns: 1fr;
    }
    
    .qv-form-grid {
        grid-template-columns: 1fr;
    }
    
    .qv-form-actions {
        flex-direction: column;
    }
    
    .qv-btn {
        width: 100%;
        text-align: center;
    }
}