import { StyleSheet } from 'react-native';
import { Colors } from 'src/theme';
import { getFontSize } from 'src/utils';

export const styles = StyleSheet.create({
  container: {
    flex: 1
  },
  wrapper: {
    marginLeft: '5%',
    marginRight: '5%',
    alignItems: 'center'
  },
  map: {
    ...StyleSheet.absoluteFillObject
  },
  searchContainer: {
    gap: 16,
    flexDirection: 'row',
    alignItems: 'center',
    marginBottom: 8
  },
  regionSelector: {
    flexDirection: 'row',
    alignItems: 'center',
    paddingHorizontal: 16,
    borderRadius: 4,
    height: 36,
    backgroundColor: Colors.FILL_LIGHT,
    justifyContent: 'flex-start',
    gap: 10,
    flex: 1
  },
  regionText: {
    fontSize: 15,
    fontWeight: '500',
    color: Colors.LIGHT_GRAY
  },
  saveBtn: {
    borderRadius: 20,
    paddingVertical: 10,
    paddingHorizontal: 16,
    borderWidth: 1
  },
  saveBtnActive: {
    borderColor: Colors.ORANGE,
    backgroundColor: Colors.ORANGE
  },
  saveBtnDisabled: {
    borderColor: Colors.LIGHT_GRAY
  },
  popupWrapper: {
    marginHorizontal: 24,
    position: 'absolute',
    bottom: 25,
    left: 0,
    right: 0
  },
  popupContainer: {
    alignItems: 'center',
    justifyContent: 'center',
    alignSelf: 'center',
    paddingVertical: 8,
    paddingHorizontal: 16,
    backgroundColor: 'rgba(33, 37, 41, 0.8)',
    borderRadius: 100,
    gap: 6
  },
  popupText: {
    color: Colors.WHITE,
    fontSize: getFontSize(12),
    fontWeight: '600'
  },
  cornerButton: {
    position: 'absolute',
    backgroundColor: Colors.WHITE,
    padding: 12,
    width: 48,
    height: 48,
    borderRadius: 24,
    alignItems: 'center',
    justifyContent: 'center',
    shadowColor: '#000',
    shadowOffset: {
      width: 0,
      height: 1
    },
    shadowOpacity: 0.25,
    shadowRadius: 1.5,
    elevation: 2
  },
  bottomButton: {
    width: 42,
    height: 42,
    borderRadius: 21
  },
  bottomRightButton: {
    right: 16
  }
});
